Mercurial > hg > graal-compiler
comparison src/share/vm/services/classLoadingService.cpp @ 12816:2720ab7a0d70
Merge
author | ccheung |
---|---|
date | Fri, 04 Oct 2013 21:00:43 -0700 |
parents | 268e7a2178d7 |
children | e6195383bcaf 78bbf4d43a14 |
comparison
equal
deleted
inserted
replaced
12815:4212bfb33d76 | 12816:2720ab7a0d70 |
---|---|
200 | 200 |
201 bool ClassLoadingService::set_verbose(bool verbose) { | 201 bool ClassLoadingService::set_verbose(bool verbose) { |
202 MutexLocker m(Management_lock); | 202 MutexLocker m(Management_lock); |
203 | 203 |
204 // verbose will be set to the previous value | 204 // verbose will be set to the previous value |
205 bool succeed = CommandLineFlags::boolAtPut((char*)"TraceClassLoading", &verbose, MANAGEMENT); | 205 bool succeed = CommandLineFlags::boolAtPut((char*)"TraceClassLoading", &verbose, Flag::MANAGEMENT); |
206 assert(succeed, "Setting TraceClassLoading flag fails"); | 206 assert(succeed, "Setting TraceClassLoading flag fails"); |
207 reset_trace_class_unloading(); | 207 reset_trace_class_unloading(); |
208 | 208 |
209 return verbose; | 209 return verbose; |
210 } | 210 } |
211 | 211 |
212 // Caller to this function must own Management_lock | 212 // Caller to this function must own Management_lock |
213 void ClassLoadingService::reset_trace_class_unloading() { | 213 void ClassLoadingService::reset_trace_class_unloading() { |
214 assert(Management_lock->owned_by_self(), "Must own the Management_lock"); | 214 assert(Management_lock->owned_by_self(), "Must own the Management_lock"); |
215 bool value = MemoryService::get_verbose() || ClassLoadingService::get_verbose(); | 215 bool value = MemoryService::get_verbose() || ClassLoadingService::get_verbose(); |
216 bool succeed = CommandLineFlags::boolAtPut((char*)"TraceClassUnloading", &value, MANAGEMENT); | 216 bool succeed = CommandLineFlags::boolAtPut((char*)"TraceClassUnloading", &value, Flag::MANAGEMENT); |
217 assert(succeed, "Setting TraceClassUnLoading flag fails"); | 217 assert(succeed, "Setting TraceClassUnLoading flag fails"); |
218 } | 218 } |
219 | 219 |
220 GrowableArray<KlassHandle>* LoadedClassesEnumerator::_loaded_classes = NULL; | 220 GrowableArray<KlassHandle>* LoadedClassesEnumerator::_loaded_classes = NULL; |
221 Thread* LoadedClassesEnumerator::_current_thread = NULL; | 221 Thread* LoadedClassesEnumerator::_current_thread = NULL; |