equal
deleted
inserted
replaced
736 if (!should_rotate(force)) { |
736 if (!should_rotate(force)) { |
737 return; |
737 return; |
738 } |
738 } |
739 |
739 |
740 #ifdef ASSERT |
740 #ifdef ASSERT |
741 Thread *thread = Thread::current(); |
741 Thread *thread = Thread::current_or_null(); |
742 assert(thread == NULL || |
742 assert(thread == NULL || |
743 (thread->is_VM_thread() && SafepointSynchronize::is_at_safepoint()), |
743 (thread->is_VM_thread() && SafepointSynchronize::is_at_safepoint()), |
744 "Must be VMThread at safepoint"); |
744 "Must be VMThread at safepoint"); |
745 #endif |
745 #endif |
746 if (NumberOfGCLogFiles == 1) { |
746 if (NumberOfGCLogFiles == 1) { |
1056 writer_id == NO_WRITER || |
1056 writer_id == NO_WRITER || |
1057 |
1057 |
1058 // bootstrap problem |
1058 // bootstrap problem |
1059 tty_lock == NULL || |
1059 tty_lock == NULL || |
1060 |
1060 |
1061 // can't grab a lock or call Thread::current() if TLS isn't initialized |
1061 // can't grab a lock if current Thread isn't set |
1062 ThreadLocalStorage::thread() == NULL || |
1062 Thread::current_or_null() == NULL || |
1063 |
1063 |
1064 // developer hook |
1064 // developer hook |
1065 !SerializeVMOutput || |
1065 !SerializeVMOutput || |
1066 |
1066 |
1067 // VM already unhealthy |
1067 // VM already unhealthy |