7000578: CMS: assert(SafepointSynchronize::is_at_safepoint()) failed: Else races are possible

Weakened assert in onj_is_alive() to allow its use at initialization time when is_at_safepoint() normally reports false; added some related asserts to check order of is_init_completed() after Universe::is_fully_initialized().

Reviewed-by: jcoomes
This commit is contained in:
Y. Srinivas Ramakrishna 2010-11-16 13:58:48 -08:00
parent fbe476856f
commit 9af444d011
4 changed files with 5 additions and 1 deletions

View file

@ -945,6 +945,7 @@ void universe2_init() {
extern void initialize_converter_functions();
bool universe_post_init() {
assert(!is_init_completed(), "Error: initialization not yet completed!");
Universe::_fully_initialized = true;
EXCEPTION_MARK;
{ ResourceMark rm;