Mercurial > hg > truffle
comparison src/share/vm/services/memTracker.cpp @ 6768:716e6ef4482a
7190089: NMT ON: NMT failed assertion on thread's stack base address
Summary: Solaris only, record stack info to NMT after stack size adjustment was made for primordial threads
Reviewed-by: kvn, acorn, coleenp
author | zgu |
---|---|
date | Mon, 17 Sep 2012 10:20:04 -0400 |
parents | e5bf1c79ed5b |
children | b711844284e2 |
comparison
equal
deleted
inserted
replaced
6765:15ba0e7a3ff4 | 6768:716e6ef4482a |
---|---|
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"); |