comparison src/share/vm/memory/dump.cpp @ 1980:828eafbd85cc

6348631: remove the use of the HPI library from Hotspot Summary: move functions from hpi library to hotspot, communicate with licensees and open source community, check jdk for dependency, file CCC request Reviewed-by: coleenp, acorn, dsamersoff
author ikrylov
date Wed, 01 Dec 2010 18:26:32 -0500
parents f95d63e2154a
children 3582bf76420e
comparison
equal deleted inserted replaced
1972:f95d63e2154a 1980:828eafbd85cc
1363 void GenCollectedHeap::preload_and_dump(TRAPS) { 1363 void GenCollectedHeap::preload_and_dump(TRAPS) {
1364 TraceTime timer("Dump Shared Spaces", TraceStartupTime); 1364 TraceTime timer("Dump Shared Spaces", TraceStartupTime);
1365 ResourceMark rm; 1365 ResourceMark rm;
1366 1366
1367 // Preload classes to be shared. 1367 // Preload classes to be shared.
1368 // Should use some hpi:: method rather than fopen() here. aB. 1368 // Should use some os:: method rather than fopen() here. aB.
1369 // Construct the path to the class list (in jre/lib) 1369 // Construct the path to the class list (in jre/lib)
1370 // Walk up two directories from the location of the VM and 1370 // Walk up two directories from the location of the VM and
1371 // optionally tack on "lib" (depending on platform) 1371 // optionally tack on "lib" (depending on platform)
1372 char class_list_path[JVM_MAXPATHLEN]; 1372 char class_list_path[JVM_MAXPATHLEN];
1373 os::jvm_path(class_list_path, sizeof(class_list_path)); 1373 os::jvm_path(class_list_path, sizeof(class_list_path));
1502 fatal("Dumping shared spaces failed."); 1502 fatal("Dumping shared spaces failed.");
1503 } 1503 }
1504 1504
1505 } else { 1505 } else {
1506 char errmsg[JVM_MAXPATHLEN]; 1506 char errmsg[JVM_MAXPATHLEN];
1507 hpi::lasterror(errmsg, JVM_MAXPATHLEN); 1507 os::lasterror(errmsg, JVM_MAXPATHLEN);
1508 tty->print_cr("Loading classlist failed: %s", errmsg); 1508 tty->print_cr("Loading classlist failed: %s", errmsg);
1509 exit(1); 1509 exit(1);
1510 } 1510 }
1511 1511
1512 // Since various initialization steps have been undone by this process, 1512 // Since various initialization steps have been undone by this process,