mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8209975: Some GCThreadLocalData not initialized
Perform deferred BarrierSet initializations for NonJavaThreads too. Reviewed-by: eosterlund, pliden
This commit is contained in:
parent
26560a934d
commit
6a0bb0955e
3 changed files with 52 additions and 8 deletions
|
@ -2146,6 +2146,7 @@ class Threads: AllStatic {
|
|||
static int _thread_claim_parity;
|
||||
#ifdef ASSERT
|
||||
static bool _vm_complete;
|
||||
static size_t _threads_before_barrier_set;
|
||||
#endif
|
||||
|
||||
static void initialize_java_lang_classes(JavaThread* main_thread, TRAPS);
|
||||
|
@ -2215,7 +2216,15 @@ class Threads: AllStatic {
|
|||
|
||||
#ifdef ASSERT
|
||||
static bool is_vm_complete() { return _vm_complete; }
|
||||
#endif
|
||||
|
||||
static size_t threads_before_barrier_set() {
|
||||
return _threads_before_barrier_set;
|
||||
}
|
||||
|
||||
static void inc_threads_before_barrier_set() {
|
||||
++_threads_before_barrier_set;
|
||||
}
|
||||
#endif // ASSERT
|
||||
|
||||
// Verification
|
||||
static void verify();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue