comparison src/share/vm/memory/metaspaceShared.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 4f9a42c33738
children 78bbf4d43a14
comparison
equal deleted inserted replaced
17875:cb1b723cbca8 17876:9c3dc501b5eb
643 // file. 643 // file.
644 void MetaspaceShared::preload_and_dump(TRAPS) { 644 void MetaspaceShared::preload_and_dump(TRAPS) {
645 TraceTime timer("Dump Shared Spaces", TraceStartupTime); 645 TraceTime timer("Dump Shared Spaces", TraceStartupTime);
646 ResourceMark rm; 646 ResourceMark rm;
647 647
648 // Lock out GC - is it necessary? I don't think we care.
649 No_GC_Verifier no_gc;
650
651 // Preload classes to be shared. 648 // Preload classes to be shared.
652 // Should use some os:: method rather than fopen() here. aB. 649 // Should use some os:: method rather than fopen() here. aB.
653 // Construct the path to the class list (in jre/lib) 650 // Construct the path to the class list (in jre/lib)
654 // Walk up two directories from the location of the VM and 651 // Walk up two directories from the location of the VM and
655 // optionally tack on "lib" (depending on platform) 652 // optionally tack on "lib" (depending on platform)