RFR: 8318586: Explicitly handle upcall stub allocation failure [v2]
David Holmes
dholmes at openjdk.org
Thu Oct 26 12:20:39 UTC 2023
On Wed, 25 Oct 2023 10:10:57 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
>> Explicitly handle UpcallStub allocation failures by terminating. We currently might try to use the returned `nullptr` which would fail sooner or later. This patch just makes the termination explicit.
>
> Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:
>
> call fatal without holding code cache lock
Is stub allocation the same as other VM C heap exhaustion cases? They will terminate the VM too. Otherwise it would be better report an error and have the Java code thrown OOME.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16311#issuecomment-1781002967
More information about the core-libs-dev
mailing list