RFR: 8267836: Separate eager reclaim remembered set threshold from G1RSetSparseRegionEntries

Thomas Schatzl tschatzl at openjdk.java.net
Fri May 28 14:26:24 UTC 2021


Hi all,

  currently the remembered set eager reclaim threshold is based directly on G1RSetSparseRegionEntries. I.e. otherwise eligible humongous objects are only considered candidates for eager reclaim if their remembered set has less than G1RSetSparseRegionEntries entries.

The reason for this limitation has been that before JDK-8233919 (in JDK14) it has been very expensive to get a remembered set size estimate if the remembered set for that heap region had expanded to fine tables.

This is not the case any more, and there are situation where you want to set this threshold (much) larger than the number of sparse table entries.

By default, this new value will still be based on the current value. 

Unfortunately I did not manage to create a useful test case that verifies whether a given threshold is met.

Testing: tier1

Thanks,
  Thomas

-------------

Commit messages:
 - Remove unstable test
 - Initial implementation and test

Changes: https://git.openjdk.java.net/jdk/pull/4248/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4248&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8267836
  Stats: 15 lines in 4 files changed: 13 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4248.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4248/head:pull/4248

PR: https://git.openjdk.java.net/jdk/pull/4248



More information about the hotspot-gc-dev mailing list