Mercurial > hg > graal-compiler
comparison src/share/vm/memory/universe.cpp @ 8855:24ef5fb05e0f
8010463: G1: Crashes with -UseTLAB and heap verification
Summary: Some parts of the G1 heap can only be walked during a safepoint. Skip verifying these parts of the heap when verifying during JVM startup.
Reviewed-by: brutisso, tschatzl
author | johnc |
---|---|
date | Fri, 29 Mar 2013 13:49:37 -0700 |
parents | 42e370795a39 |
children | b9a918201d47 8be1318fbe77 |
comparison
equal
deleted
inserted
replaced
8854:754c24457b20 | 8855:24ef5fb05e0f |
---|---|
951 | 951 |
952 | 952 |
953 void universe2_init() { | 953 void universe2_init() { |
954 EXCEPTION_MARK; | 954 EXCEPTION_MARK; |
955 Universe::genesis(CATCH); | 955 Universe::genesis(CATCH); |
956 // Although we'd like to verify here that the state of the heap | |
957 // is good, we can't because the main thread has not yet added | |
958 // itself to the threads list (so, using current interfaces | |
959 // we can't "fill" its TLAB), unless TLABs are disabled. | |
960 if (VerifyBeforeGC && !UseTLAB && | |
961 Universe::heap()->total_collections() >= VerifyGCStartAt) { | |
962 Universe::heap()->prepare_for_verify(); | |
963 Universe::verify(); // make sure we're starting with a clean slate | |
964 } | |
965 } | 956 } |
966 | 957 |
967 | 958 |
968 // This function is defined in JVM.cpp | 959 // This function is defined in JVM.cpp |
969 extern void initialize_converter_functions(); | 960 extern void initialize_converter_functions(); |