RFR: 8269736: Optimize CDS PatchEmbeddedPointers::do_bit()

Matias Saavedra Silva matsaave at openjdk.org
Thu Dec 15 22:47:51 UTC 2022


The current implementation reads the narrow oop, decodes it using the "dump time" encoding, encodes it using "runtime" encoding, and then stores it back into the heap. In the cases where the dumptime and runtime shifts are equal, there is an opportunity to calculate the fixed distance between oops so they can be patched more optimally.

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

Commit messages:
 - Moved some functionality to it's own method and cleanup
 - Merge branch 'master' into dobit
 - 8269736: Optimize CDS PatchEmbeddedPointers::do_bit()

Changes: https://git.openjdk.org/jdk/pull/10863/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10863&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8269736
  Stats: 116 lines in 6 files changed: 89 ins; 16 del; 11 mod
  Patch: https://git.openjdk.org/jdk/pull/10863.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10863/head:pull/10863

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


More information about the hotspot-runtime-dev mailing list