RFR: 8276126: Dump time class transformation causes heap objects of non-boot classes to be archived [v2]

Calvin Cheung ccheung at openjdk.java.net
Wed Nov 24 02:42:53 UTC 2021


> During CDS static dump, if a class loaded by a boot class loader is transformed by a java agent, the transformed class is mistakenly identified as a class loaded by a custom loader. This would cause archiving of the heap objects to fail.
> 
> The proposed patch corrects the identification of the transformed class and will not include it in the archive.
> Also, if a transformed class is detected during dump time, the archiving of the heap objects will be disabled.
> 
> Testing: Oracle CI tiers 1-3, tier4 in progress.

Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:

  Fix the condition check in ClassLoaderExt::record_result().
  Otherwise, some appcds tests would fail in tier4 testing with -Xcomp

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/6484/files
  - new: https://git.openjdk.java.net/jdk/pull/6484/files/c033dd4d..58b1d9fa

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6484&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6484&range=00-01

  Stats: 34 lines in 3 files changed: 14 ins; 3 del; 17 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6484.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6484/head:pull/6484

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


More information about the hotspot-runtime-dev mailing list