[lworld] RFR: 8358093: [lworld] Crash when passing invalid constant pool index to early_larval frame

Coleen Phillimore coleenp at openjdk.org
Thu Jun 12 16:09:50 UTC 2025


On Wed, 11 Jun 2025 17:18:35 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:

> An early_larval frame contains a set of constant pool indices that are meant to refer to NameAndTypes. These NameAndType entries should refer to strict fields which must be marked as unset and there exists a verify error and associated test to check this, but there are no checks to ensure the input values actually refer to a NameAndType or valid constant pool index.
> 
>  This patch introduces a new error case and adds a test case to `StrictInstanceFieldsTest`. Note that `StrictInstanceFieldsTest.java` is problem listed so the test will not be used until JTREG 7.6 is integrated. Verified with tier 1-5 tests.

Looks good!

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

Marked as reviewed by coleenp (Committer).

PR Review: https://git.openjdk.org/valhalla/pull/1484#pullrequestreview-2921819429


More information about the valhalla-dev mailing list