--- a/src/hotspot/share/classfile/systemDictionary.cpp Tue Jun 05 21:38:38 2018 +0200
+++ b/src/hotspot/share/classfile/systemDictionary.cpp Tue Jun 05 19:58:20 2018 -0400
@@ -110,9 +110,6 @@
bool SystemDictionary::_has_checkPackageAccess = false;
-// lazily initialized klass variables
-InstanceKlass* volatile SystemDictionary::_abstract_ownable_synchronizer_klass = NULL;
-
// Default ProtectionDomainCacheSize value
const int defaultProtectionDomainCacheSize = 1009;
@@ -1897,22 +1894,6 @@
}
// ----------------------------------------------------------------------------
-// Lazily load klasses
-
-void SystemDictionary::load_abstract_ownable_synchronizer_klass(TRAPS) {
- // if multiple threads calling this function, only one thread will load
- // the class. The other threads will find the loaded version once the
- // class is loaded.
- Klass* aos = _abstract_ownable_synchronizer_klass;
- if (aos == NULL) {
- Klass* k = resolve_or_fail(vmSymbols::java_util_concurrent_locks_AbstractOwnableSynchronizer(), true, CHECK);
- // Force a fence to prevent any read before the write completes
- OrderAccess::fence();
- _abstract_ownable_synchronizer_klass = InstanceKlass::cast(k);
- }
-}
-
-// ----------------------------------------------------------------------------
// Initialization
void SystemDictionary::initialize(TRAPS) {