[jdk17] RFR: 8258746: illegal access to global field _jvmci_old_thread_counters by terminated thread causes crash

Dean Long dlong at openjdk.java.net
Sat Jun 26 00:28:14 UTC 2021


This change moves the access to the global field _jvmci_old_thread_counters from the thread destructor to JavaThread::exit().  See the JBS issue for more details.  The free of _jvmci_counters is left in the destructor intentionally, as it is allocated in the JavaThread constructor and not all termination paths go through JavaThread::exit().

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

Commit messages:
 - move access to global from thread destructor to exit()

Changes: https://git.openjdk.java.net/jdk17/pull/154/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=154&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8258746
  Stats: 16 lines in 1 file changed: 11 ins; 5 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk17/pull/154.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/154/head:pull/154

PR: https://git.openjdk.java.net/jdk17/pull/154


More information about the hotspot-runtime-dev mailing list