[jdk17] Integrated: 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 20:10:02 UTC 2021


On Sat, 26 Jun 2021 00:21:26 GMT, Dean Long <dlong at openjdk.org> wrote:

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

This pull request has now been integrated.

Changeset: d9cb068f
Author:    Dean Long <dlong at openjdk.org>
URL:       https://git.openjdk.java.net/jdk17/commit/d9cb068f4ba85e2be2ebc14e89e739b0a2d90409
Stats:     16 lines in 1 file changed: 11 ins; 5 del; 0 mod

8258746: illegal access to global field _jvmci_old_thread_counters by terminated thread causes crash

Reviewed-by: dholmes, kvn

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

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


More information about the hotspot-runtime-dev mailing list