79 // The null-class-loader should always be kept alive. |
79 // The null-class-loader should always be kept alive. |
80 _keep_alive(is_anonymous || h_class_loader.is_null()), |
80 _keep_alive(is_anonymous || h_class_loader.is_null()), |
81 _metaspace(NULL), _unloading(false), _klasses(NULL), |
81 _metaspace(NULL), _unloading(false), _klasses(NULL), |
82 _claimed(0), _jmethod_ids(NULL), _handles(NULL), _deallocate_list(NULL), |
82 _claimed(0), _jmethod_ids(NULL), _handles(NULL), _deallocate_list(NULL), |
83 _next(NULL), _dependencies(dependencies), |
83 _next(NULL), _dependencies(dependencies), |
84 _metaspace_lock(new Mutex(Monitor::leaf+1, "Metaspace allocation lock", true)) { |
84 _metaspace_lock(new Mutex(Monitor::leaf+1, "Metaspace allocation lock", true, |
|
85 Monitor::_safepoint_check_never)) { |
85 // empty |
86 // empty |
86 } |
87 } |
87 |
88 |
88 void ClassLoaderData::init_dependencies(TRAPS) { |
89 void ClassLoaderData::init_dependencies(TRAPS) { |
89 assert(!Universe::is_fully_initialized(), "should only be called when initializing"); |
90 assert(!Universe::is_fully_initialized(), "should only be called when initializing"); |