comparison src/share/vm/c1/c1_LIRAssembler.cpp @ 4583:597bc897257d

Made DebugInformationRecorder::describe_scope() take both a methodHandle _and_ a ciMethod* parameter to avoid creating handles in scopes where it is not allowed.
author Doug Simon <doug.simon@oracle.com>
date Mon, 13 Feb 2012 23:15:53 +0100
parents b70d180ec022
children 33df1aeaebbf
comparison
equal deleted inserted replaced
4582:b24386206122 4583:597bc897257d
403 int s_bci = bci; 403 int s_bci = bci;
404 ValueStack* s = nth_oldest(vstack, n, s_bci); 404 ValueStack* s = nth_oldest(vstack, n, s_bci);
405 if (s == NULL) break; 405 if (s == NULL) break;
406 IRScope* scope = s->scope(); 406 IRScope* scope = s->scope();
407 //Always pass false for reexecute since these ScopeDescs are never used for deopt 407 //Always pass false for reexecute since these ScopeDescs are never used for deopt
408 ResetNoHandleMark rnhm; 408 methodHandle null_mh;
409 debug_info->describe_scope(pc_offset, (methodOop)scope->method()->get_oop(), s->bci(), false/*reexecute*/, false/*rethrow_exception*/); 409 debug_info->describe_scope(pc_offset, null_mh, scope->method(), s->bci(), false/*reexecute*/);
410 } 410 }
411 411
412 debug_info->end_non_safepoint(pc_offset); 412 debug_info->end_non_safepoint(pc_offset);
413 } 413 }
414 414