Integrated: 8367902: Allocation after Universe::before_exit() in the VM shutdown sequence
Leonid Mesnik
lmesnik at openjdk.org
Wed Nov 12 18:58:04 UTC 2025
On Tue, 11 Nov 2025 03:49:07 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:
> Please review following fix that move GC shutdown start after VM Death and agent's unloading.
>
> The `Universe::before_exit();` switch GC to fail any new GC allocation. So any allocation in vm death is failing.
>
> The test is a little bit complicated because jtreg uses wrapper even to execute othrevm tests and also results might be confusing if test is failing after main() method is completed. So the better is to run new process for vm death event handling.
This pull request has now been integrated.
Changeset: 705bd6fb
Author: Leonid Mesnik <lmesnik at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/705bd6fbdc0e78625d05dbfa8af547c50b076e69
Stats: 161 lines in 3 files changed: 151 ins; 9 del; 1 mod
8367902: Allocation after Universe::before_exit() in the VM shutdown sequence
Reviewed-by: ayang, stefank, iwalulya, aboldtch, sspitsyn
-------------
PR: https://git.openjdk.org/jdk/pull/28227
More information about the hotspot-gc-dev
mailing list