From 15d8fe7e998551dd5b752d8ee60d61fde8dc56a8 Mon Sep 17 00:00:00 2001 From: zgu Date: Mon, 16 Jul 2012 14:05:34 -0400 Subject: [PATCH] 7181989: NMT ON: Assertion failure when NMT checks thread's native stack base address Summary: Assertion on stack base is not necessary Reviewed-by: coleenp, dholmes, kvn --- src/share/vm/services/memTracker.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/share/vm/services/memTracker.cpp b/src/share/vm/services/memTracker.cpp index 55c985965..9a0f87963 100644 --- a/src/share/vm/services/memTracker.cpp +++ b/src/share/vm/services/memTracker.cpp @@ -351,12 +351,6 @@ void MemTracker::create_memory_record(address addr, MEMFLAGS flags, } if (thread != NULL) { -#ifdef ASSERT - // cause assertion on stack base. This ensures that threads call - // Thread::record_stack_base_and_size() method, which will create - // thread native stack records. - thread->stack_base(); -#endif // for a JavaThread, if it is running in native state, we need to transition it to // VM state, so it can stop at safepoint. JavaThread running in VM state does not // need lock to write records. -- GitLab