RFR: 8366865: Allocation GC Pauses Triggered after JVM has started shutdown [v3]
David Holmes
dholmes at openjdk.org
Tue Sep 16 03:02:09 UTC 2025
On Mon, 15 Sep 2025 10:29:11 GMT, Ivan Walulya <iwalulya at openjdk.org> wrote:
>> Thanks, I completely overlooked the JVMTI callbacks. It’s probably better to stall with a timeout and then return an allocation failure.
>
> I moved the `Universe::before_exit()` call and also added a timed `wait`.
> @dholmes-ora do you have any concerns with this approach?
Yes I do have concerns - sorry. Any change to the shutdown sequence needs very careful analysis. You have now changed the circumstances whereby the JVMTI events get posted. Maybe it won't matter, maybe it will - the issue is that it is very hard to determine the impact of such a change until you get notified that someone's code is now broken.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27190#discussion_r2350540080
More information about the hotspot-gc-dev
mailing list