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

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

XMLWordPrintable

    • gc
    • b18
    • aarch64
    • linux

        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.

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

                Created:
                Updated:
                Resolved: