equal
deleted
inserted
replaced
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"); |