From d635d8be6dca7973679336f4b00e7bf2f2b94016 Mon Sep 17 00:00:00 2001 From: kvn Date: Thu, 30 Dec 2010 09:36:03 -0800 Subject: [PATCH] 6928562: Assert(_no_handle_mark_nesting==0,"allocating handle inside NoHandleMark") Summary: reset NoHandleMark before going into VM. Reviewed-by: iveresov --- src/share/vm/compiler/abstractCompiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/share/vm/compiler/abstractCompiler.cpp b/src/share/vm/compiler/abstractCompiler.cpp index 5594d1afa..942c168e5 100644 --- a/src/share/vm/compiler/abstractCompiler.cpp +++ b/src/share/vm/compiler/abstractCompiler.cpp @@ -33,6 +33,7 @@ void AbstractCompiler::initialize_runtimes(initializer f, volatile int* state) { bool do_initialization = false; { ThreadInVMfromNative tv(thread); + ResetNoHandleMark rnhm; MutexLocker only_one(CompileThread_lock, thread); if ( *state == uninitialized) { do_initialization = true; @@ -53,6 +54,7 @@ void AbstractCompiler::initialize_runtimes(initializer f, volatile int* state) { // To in_vm so we can use the lock ThreadInVMfromNative tv(thread); + ResetNoHandleMark rnhm; MutexLocker only_one(CompileThread_lock, thread); assert(*state == initializing, "wrong state"); *state = initialized; -- GitLab