Integrated: 8338007: [JVMCI] ResolvedJavaMethod.reprofile can crash ciMethodData

Tom Rodriguez never at openjdk.org
Tue Nov 12 15:55:53 UTC 2024


On Mon, 28 Oct 2024 19:13:28 GMT, Tom Rodriguez <never at openjdk.org> wrote:

> Graal unit testing uses ResolvedJavaMethod.reprofile to reset profiles between test but the current code rewrites the layout in a non-atomic way which can break other readers.  Instead perform the reinitialization at a safepoint which should protect all readers from seeing any transient initialization states.

This pull request has now been integrated.

Changeset: c12b386d
Author:    Tom Rodriguez <never at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c12b386d1916af9a04b4c6698838c2b40c6cdd86
Stats:     43 lines in 4 files changed: 37 ins; 0 del; 6 mod

8338007: [JVMCI] ResolvedJavaMethod.reprofile can crash ciMethodData

Reviewed-by: dnsimon, kvn

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

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


More information about the graal-dev mailing list