Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/thread.cpp @ 9071:68fe50d4f1d5
8011343: Add new flag for verifying the heap during startup
Summary: Perform verification during VM startup under control of new flag and within a VMOperation.
Reviewed-by: stefank, jmasa, brutisso
author | johnc |
---|---|
date | Fri, 05 Apr 2013 10:20:04 -0700 |
parents | 24ef5fb05e0f |
children | 89e4d67fdd2a 6f817ce50129 b06ac540229e |
comparison
equal
deleted
inserted
replaced
9055:dcdeb150988c | 9071:68fe50d4f1d5 |
---|---|
3444 } | 3444 } |
3445 } | 3445 } |
3446 } | 3446 } |
3447 | 3447 |
3448 assert (Universe::is_fully_initialized(), "not initialized"); | 3448 assert (Universe::is_fully_initialized(), "not initialized"); |
3449 if (VerifyBeforeGC && VerifyGCStartAt == 0) { | 3449 if (VerifyDuringStartup) { |
3450 Universe::heap()->prepare_for_verify(); | 3450 VM_Verify verify_op(false /* silent */); // make sure we're starting with a clean slate |
3451 Universe::verify(); // make sure we're starting with a clean slate | 3451 VMThread::execute(&verify_op); |
3452 } | 3452 } |
3453 | 3453 |
3454 EXCEPTION_MARK; | 3454 EXCEPTION_MARK; |
3455 | 3455 |
3456 // At this point, the Universe is initialized, but we have not executed | 3456 // At this point, the Universe is initialized, but we have not executed |