1517 NEWPERFEVENTCOUNTER(_sync_systemLoaderLockContentionRate, SUN_CLS,
1518 "systemLoaderLockContentionRate");
1519 NEWPERFEVENTCOUNTER(_sync_nonSystemLoaderLockContentionRate, SUN_CLS,
1520 "nonSystemLoaderLockContentionRate");
1521 NEWPERFEVENTCOUNTER(_sync_JVMFindLoadedClassLockFreeCounter, SUN_CLS,
1522 "jvmFindLoadedClassNoLockCalls");
1523 NEWPERFEVENTCOUNTER(_sync_JVMDefineClassLockFreeCounter, SUN_CLS,
1524 "jvmDefineClassNoLockCalls");
1525
1526 NEWPERFEVENTCOUNTER(_sync_JNIDefineClassLockFreeCounter, SUN_CLS,
1527 "jniDefineClassNoLockCalls");
1528
1529 NEWPERFEVENTCOUNTER(_unsafe_defineClassCallCounter, SUN_CLS,
1530 "unsafeDefineClassCalls");
1531 }
1532
1533 // lookup zip library entry points
1534 load_zip_library();
1535 // lookup jimage library entry points
1536 load_jimage_library();
1537
1538 setup_bootstrap_search_path();
1539 }
1540
1541 #if INCLUDE_CDS
1542 void ClassLoader::initialize_shared_path() {
1543 if (DumpSharedSpaces || DynamicDumpSharedSpaces) {
1544 ClassLoaderExt::setup_search_paths();
1545 }
1546 }
1547
1548 void ClassLoader::initialize_module_path(TRAPS) {
1549 if (DumpSharedSpaces || DynamicDumpSharedSpaces) {
1550 ClassLoaderExt::setup_module_paths(THREAD);
1551 FileMapInfo::allocate_shared_path_table();
1552 }
1553 }
1554 #endif
1555
1556 jlong ClassLoader::classloader_time_ms() {
1557 return UsePerfData ?
|
1517 NEWPERFEVENTCOUNTER(_sync_systemLoaderLockContentionRate, SUN_CLS,
1518 "systemLoaderLockContentionRate");
1519 NEWPERFEVENTCOUNTER(_sync_nonSystemLoaderLockContentionRate, SUN_CLS,
1520 "nonSystemLoaderLockContentionRate");
1521 NEWPERFEVENTCOUNTER(_sync_JVMFindLoadedClassLockFreeCounter, SUN_CLS,
1522 "jvmFindLoadedClassNoLockCalls");
1523 NEWPERFEVENTCOUNTER(_sync_JVMDefineClassLockFreeCounter, SUN_CLS,
1524 "jvmDefineClassNoLockCalls");
1525
1526 NEWPERFEVENTCOUNTER(_sync_JNIDefineClassLockFreeCounter, SUN_CLS,
1527 "jniDefineClassNoLockCalls");
1528
1529 NEWPERFEVENTCOUNTER(_unsafe_defineClassCallCounter, SUN_CLS,
1530 "unsafeDefineClassCalls");
1531 }
1532
1533 // lookup zip library entry points
1534 load_zip_library();
1535 // lookup jimage library entry points
1536 load_jimage_library();
1537 setup_bootstrap_search_path();
1538 }
1539
1540 #if INCLUDE_CDS
1541 void ClassLoader::initialize_shared_path() {
1542 if (DumpSharedSpaces || DynamicDumpSharedSpaces) {
1543 ClassLoaderExt::setup_search_paths();
1544 }
1545 }
1546
1547 void ClassLoader::initialize_module_path(TRAPS) {
1548 if (DumpSharedSpaces || DynamicDumpSharedSpaces) {
1549 ClassLoaderExt::setup_module_paths(THREAD);
1550 FileMapInfo::allocate_shared_path_table();
1551 }
1552 }
1553 #endif
1554
1555 jlong ClassLoader::classloader_time_ms() {
1556 return UsePerfData ?
|