RFR: 8312596: Potential null pointer access in Compile::TracePhase::~TracePhase after JDK-8311976
Ashutosh Mehra
duke at openjdk.org
Mon Jul 24 18:22:56 UTC 2023
Please review this PR to fix a potential null pointer access in using `_compile`.
Updated the code to unconditionally initialize `_compile` and added an assert (similar to C1's `PhaseTraceTime` constructor) for it to be non-null.
-------------
Commit messages:
- 8312596: Potential null pointer access in Compile::TracePhase::~TracePhase after JDK-8311976
Changes: https://git.openjdk.org/jdk/pull/15002/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15002&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8312596
Stats: 7 lines in 1 file changed: 4 ins; 1 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/15002.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/15002/head:pull/15002
PR: https://git.openjdk.org/jdk/pull/15002
More information about the hotspot-compiler-dev
mailing list