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

G1: assert_used_and_recalculate_used_equal performs work in product builds

XMLWordPrintable

    • gc
    • b07

      The macro G1CollectedHeap::assert_used_and_recalculate_used_equal always recalculates the bytes used in the regions, although it does not use the value in release builds.

      This can cause long delays on large heaps (with many regions).

      E.g. on BigRAMTester@50g heap@1m regions (50k regions) this method may take ~20ms (up to 200ms).

      Note that using 1M regions on a 50g heap is not advised (and G1 will not select 1m regions)

            tschatzl Thomas Schatzl
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: