comparison src/share/vm/runtime/unhandledOops.cpp @ 17876:9c3dc501b5eb

8028498: runtime/SharedArchiveFile/CdsDifferentObjectAlignment.java asserts in RT_Baseline Summary: Preventing GCs to occur before VM is completely initialized. This was previously partly done by one part of the GC locker which not was removed. Reviewed-by: coleenp, pliden
author sjohanss
date Thu, 13 Feb 2014 10:05:03 +0100
parents da91efe96a93
children 78bbf4d43a14
comparison
equal deleted inserted replaced
17875:cb1b723cbca8 17876:9c3dc501b5eb
111 _oop_list->remove_at(i); 111 _oop_list->remove_at(i);
112 } 112 }
113 113
114 void UnhandledOops::clear_unhandled_oops() { 114 void UnhandledOops::clear_unhandled_oops() {
115 assert (CheckUnhandledOops, "should only be called with checking option"); 115 assert (CheckUnhandledOops, "should only be called with checking option");
116 if (_thread->is_gc_locked_out()) { 116
117 return;
118 }
119 for (int k = 0; k < _oop_list->length(); k++) { 117 for (int k = 0; k < _oop_list->length(); k++) {
120 UnhandledOopEntry entry = _oop_list->at(k); 118 UnhandledOopEntry entry = _oop_list->at(k);
121 // If an entry is on the unhandled oop list but isn't on the stack 119 // If an entry is on the unhandled oop list but isn't on the stack
122 // anymore, it must not have gotten unregistered properly and it's a bug 120 // anymore, it must not have gotten unregistered properly and it's a bug
123 // in the unhandled oop generator. 121 // in the unhandled oop generator.