Integrated: 8310874: Runthese30m crashes with klass should be in the placeholders during verification

Coleen Phillimore coleenp at openjdk.org
Thu Sep 21 12:20:58 UTC 2023


On Thu, 14 Sep 2023 18:59:14 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> For non-parallel capable class loaders, the class is not put in the placeholders table, so a verification at the wrong time will hit this assert. This change removes the invalid assert.
> While studying this code, we also noticed that if an error occurs during class loading after the klass is put in the LoaderConstraints table but before adding to the dictionary, we weren't removing the klass from the LoaderConstraints table.  This change also fixes this.
> Tested with inserting a LoaderConstraintTable::verify while running jck tests.  Also tested with failure insertion after the addClass() call to throw OutOfMemoryError.  Also tested with tier1-4.

This pull request has now been integrated.

Changeset: b3d75fe1
Author:    Coleen Phillimore <coleenp at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b3d75fe12ec74e3c2445ef2615425867ccb7d4a2
Stats:     36 lines in 3 files changed: 22 ins; 11 del; 3 mod

8310874: Runthese30m crashes with klass should be in the placeholders during verification

Reviewed-by: dholmes, iklam

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

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


More information about the hotspot-runtime-dev mailing list