RFR: 8317422: [JVMCI] concurrency issue in MethodData creation
Doug Simon
dnsimon at openjdk.org
Wed Oct 4 08:54:05 UTC 2023
`Method::build_profiling_method_data` is the safe way to create `MethodData` for a `Method` - it uses an atomic to do the write.
This PR updates `c2v_getFailedSpeculationAddress` and `c2v_reprofile` to use `Method::build_profiling_method_data`.
-------------
Commit messages:
- replace set_method_data with clear_method_data
- use Method::build_profiling_method_data in JVMCI
Changes: https://git.openjdk.org/jdk/pull/16026/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16026&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8317422
Stats: 33 lines in 5 files changed: 12 ins; 12 del; 9 mod
Patch: https://git.openjdk.org/jdk/pull/16026.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/16026/head:pull/16026
PR: https://git.openjdk.org/jdk/pull/16026
More information about the hotspot-compiler-dev
mailing list