Thu, 30 Dec 2010 09:36:03 -0800
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 | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/compiler/abstractCompiler.cpp Wed Dec 29 10:41:43 2010 -0800 1.2 +++ b/src/share/vm/compiler/abstractCompiler.cpp Thu Dec 30 09:36:03 2010 -0800 1.3 @@ -33,6 +33,7 @@ 1.4 bool do_initialization = false; 1.5 { 1.6 ThreadInVMfromNative tv(thread); 1.7 + ResetNoHandleMark rnhm; 1.8 MutexLocker only_one(CompileThread_lock, thread); 1.9 if ( *state == uninitialized) { 1.10 do_initialization = true; 1.11 @@ -53,6 +54,7 @@ 1.12 // To in_vm so we can use the lock 1.13 1.14 ThreadInVMfromNative tv(thread); 1.15 + ResetNoHandleMark rnhm; 1.16 MutexLocker only_one(CompileThread_lock, thread); 1.17 assert(*state == initializing, "wrong state"); 1.18 *state = initialized;