RFR: 8339725: Concurrent GC crashed due to GetMethodDeclaringClass [v10]

Liang Mao lmao at openjdk.org
Wed Sep 11 10:23:49 UTC 2024


> Hi,
> 
> It's a fix for 8339725. I think getting the oop from Klass::java_mirror() should use a ON_PHANTOM_OOP_REF decorator here which could make sure the oop would be kept alive in concurrent marking and return nullptr while in concurrent reference processing and unloading.
> 
> test/hotspot/jtreg/runtime and gc are clean.
> 
> Thanks,
> Liang

Liang Mao has updated the pull request incrementally with one additional commit since the last revision:

  use -Xmx50m to increace the crash posibility

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20907/files
  - new: https://git.openjdk.org/jdk/pull/20907/files/5aa77542..d6c6559b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20907&range=09
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20907&range=08-09

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/20907.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20907/head:pull/20907

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


More information about the hotspot-dev mailing list