mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8132510: Replace ThreadLocalStorage with compiler/language-based thread-local variables
Used compiled-based TLS when available. Additional contributions by Thomas Stufe (AIX) and Andrew Haley (Aarch64) Reviewed-by: stuefe, bdelsart, dcubed
This commit is contained in:
parent
8929fdddb8
commit
6e0ea9d21c
101 changed files with 449 additions and 1966 deletions
|
@ -360,10 +360,10 @@ void MacroAssembler::leave() {
|
|||
#ifdef ASSERT
|
||||
// a hook for debugging
|
||||
static Thread* reinitialize_thread() {
|
||||
return ThreadLocalStorage::thread();
|
||||
return Thread::current();
|
||||
}
|
||||
#else
|
||||
#define reinitialize_thread ThreadLocalStorage::thread
|
||||
#define reinitialize_thread Thread::current
|
||||
#endif
|
||||
|
||||
#ifdef ASSERT
|
||||
|
@ -393,7 +393,7 @@ void MacroAssembler::get_thread() {
|
|||
}
|
||||
|
||||
static Thread* verify_thread_subroutine(Thread* gthread_value) {
|
||||
Thread* correct_value = ThreadLocalStorage::thread();
|
||||
Thread* correct_value = Thread::current();
|
||||
guarantee(gthread_value == correct_value, "G2_thread value must be the thread");
|
||||
return correct_value;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue