eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 721 forks source link

Some JVMTI tests in cmdLineTester_jvmtitests_hcr hang with -XX:+DynamicHeapification #18134

Open hzongaro opened 1 year ago

hzongaro commented 1 year ago

Some JVMTI tests in cmdLineTester_jvmtitests_hcr are hanging when run with -XX:+DynamicHeapification, even with Escape Analysis disabled. I have links to internal grinder runs using a recent nightly build, one with options -XX:+DynamicHeapification -XX:+MergeCompilerOptions -Xjit:disableEscapeAnalysis[1] and a second with options -XX:-DynamicHeapification -XX:+MergeCompilerOptions -Xjit:disableEscapeAnalysis.[2].

I tried to track down when the problem first came up, and it looks like it might have been OpenJ9 commit 9a795f12185eaa1f7dd0f21e7d19d52249108b07 and OMR commit 34b6ba4 - I can reproduce the problem using a build after that point, but not before. (Before that point, I see two failures with Metronome GC policy, but I think they're not quite as important as these hangs.)

[1] https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/34939/ [2] https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/34940/

Originally posted by @hzongaro in https://github.com/eclipse-openj9/openj9/issues/13192#issuecomment-1711576633

hzongaro commented 1 year ago

@gacholio - FYI

gacholio commented 1 year ago

This (and likely the metronome problems) is almost certainly related to the new halt flag that's only ever used by this feature. I'll look into it.

gacholio commented 1 year ago

After the above fix, there are still 2 hanging jobs (rrc001 with balanced GC, both compressed and non-compressed). I will continue to look into those, but this should get you going.