comparison src/share/vm/memory/universe.cpp @ 1959:9eecf81a02fb

7000578: CMS: assert(SafepointSynchronize::is_at_safepoint()) failed: Else races are possible Summary: 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
author ysr
date Tue, 16 Nov 2010 13:58:48 -0800
parents e9ff18c4ace7
children 4110c3e0c50d
comparison
equal deleted inserted replaced
1954:e3e1fb85e50a 1959:9eecf81a02fb
943 943
944 // This function is defined in JVM.cpp 944 // This function is defined in JVM.cpp
945 extern void initialize_converter_functions(); 945 extern void initialize_converter_functions();
946 946
947 bool universe_post_init() { 947 bool universe_post_init() {
948 assert(!is_init_completed(), "Error: initialization not yet completed!");
948 Universe::_fully_initialized = true; 949 Universe::_fully_initialized = true;
949 EXCEPTION_MARK; 950 EXCEPTION_MARK;
950 { ResourceMark rm; 951 { ResourceMark rm;
951 Interpreter::initialize(); // needed for interpreter entry points 952 Interpreter::initialize(); // needed for interpreter entry points
952 if (!UseSharedSpaces) { 953 if (!UseSharedSpaces) {