RFR: 8338007: [JVMCI] ResolvedJavaMethod.reprofile can crash ciMethodData [v3]

Tom Rodriguez never at openjdk.org
Fri Nov 8 16:44:01 UTC 2024


> 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.

Tom Rodriguez has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge branch 'master' into tkr-mdo-reinitialize
 - Review comments
 - 8338007: [JVMCI] ResolvedJavaMethod.reprofile can crash ciMethodData

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/21746/files
  - new: https://git.openjdk.org/jdk/pull/21746/files/86c1625c..3543c20b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=21746&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=21746&range=01-02

  Stats: 193040 lines in 1814 files changed: 119909 ins; 51252 del; 21879 mod
  Patch: https://git.openjdk.org/jdk/pull/21746.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21746/head:pull/21746

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


More information about the graal-dev mailing list