changeset 7716:e57441562769

6928562: Assert(_no_handle_mark_nesting==0,"allocating handle inside NoHandleMark") Summary: reset NoHandleMark before going into VM. Reviewed-by: iveresov
author kvn
date Thu, 30 Dec 2010 09:36:03 -0800
parents 12998f95a334
children 2c1b91209f0f
files hotspot/src/share/vm/compiler/abstractCompiler.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/share/vm/compiler/abstractCompiler.cpp	Wed Dec 29 10:41:43 2010 -0800
+++ b/hotspot/src/share/vm/compiler/abstractCompiler.cpp	Thu Dec 30 09:36:03 2010 -0800
@@ -33,6 +33,7 @@
     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 @@
       // 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;