8215097: Do not create NonJavaThreads before BarrierSet

G1 and CMS delay worker thread creation until BarrierSet exists.

Reviewed-by: dholmes, tschatzl
This commit is contained in:
Kim Barrett 2018-12-11 18:00:17 -05:00
parent c2364ff9e0
commit 13b56530f4
5 changed files with 32 additions and 52 deletions

View file

@ -2156,7 +2156,6 @@ 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);
@ -2226,14 +2225,6 @@ class Threads: AllStatic {
#ifdef ASSERT
static bool is_vm_complete() { return _vm_complete; }
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