RFR: 8305898: Alternative self-forwarding mechanism [v14]

Roman Kennke rkennke at openjdk.org
Sat May 13 22:07:41 UTC 2023


> Currently, the Serial, Parallel and G1 GCs store a pointer to self into object headers, when compaction fails, to indicate that the object has been looked at, but failed compaction into to-space. This is problematic for compact object headers ([JDK-8294992](https://bugs.openjdk.org/browse/JDK-8294992)) because it would (temporarily) over-write the crucial class information, which we need for heap parsing. I would like to propose an alternative: use the bit #3 (previously biased-locking bit) to indicate that an object is 'self-forwarded'. That preserves the crucial class information in the upper bits of the header until the full header gets restored.

Roman Kennke has updated the pull request incrementally with one additional commit since the last revision:

  Fix tests on 32bit builds

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/13779/files
  - new: https://git.openjdk.org/jdk/pull/13779/files/880d564a..d35cfb47

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=13779&range=13
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=13779&range=12-13

  Stats: 14 lines in 2 files changed: 11 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/13779.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13779/head:pull/13779

PR: https://git.openjdk.org/jdk/pull/13779


More information about the hotspot-gc-dev mailing list