hotspot/src/share/vm/services/memTracker.cpp
changeset 13859 7fe4578493fc
parent 13478 85fe611440e5
child 13872 bbee2239e884
equal deleted inserted replaced
13856:bb11e2aa5265 13859:7fe4578493fc
   339  *    Important note:
   339  *    Important note:
   340  *    NO LOCK should be taken inside ThreadCritical lock !!!
   340  *    NO LOCK should be taken inside ThreadCritical lock !!!
   341  */
   341  */
   342 void MemTracker::create_memory_record(address addr, MEMFLAGS flags,
   342 void MemTracker::create_memory_record(address addr, MEMFLAGS flags,
   343     size_t size, address pc, Thread* thread) {
   343     size_t size, address pc, Thread* thread) {
       
   344   assert(addr != NULL, "Sanity check");
   344   if (!shutdown_in_progress()) {
   345   if (!shutdown_in_progress()) {
   345     // single thread, we just write records direct to global recorder,'
   346     // single thread, we just write records direct to global recorder,'
   346     // with any lock
   347     // with any lock
   347     if (_state == NMT_bootstrapping_single_thread) {
   348     if (_state == NMT_bootstrapping_single_thread) {
   348       assert(_main_thread_tid == os::current_thread_id(), "wrong thread");
   349       assert(_main_thread_tid == os::current_thread_id(), "wrong thread");