8209975: Some GCThreadLocalData not initialized

Perform deferred BarrierSet initializations for NonJavaThreads too.

Reviewed-by: eosterlund, pliden
This commit is contained in:
Kim Barrett 2018-08-30 17:03:46 -04:00
parent 26560a934d
commit 6a0bb0955e
3 changed files with 52 additions and 8 deletions

View file

@ -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();