Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8242029

AArch64: skip G1 array copy pre-barrier if marking not active

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b18
    • CPU:
      aarch64
    • OS:
      linux

      Backports

        Description

        Currently the AArch64 version of G1BarrierSetAssembler::gen_write_ref_array_pre_barrier unconditionally calls into the G1 runtime to perform the pre-barrier. This is unnecessary when marking is not active.

        Change the barrier code to check the marking active field and skip the call if not active (like X86). On AArch64 we get an extra win as this avoids the ISB when returning native->Java, the overhead of which can be high if the arrays are small.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ngasson Nick Gasson
                  Reporter:
                  ngasson Nick Gasson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: