comparison src/cpu/x86/vm/frame_x86.cpp @ 7176:59c790074993

8003635: NPG: AsynchGetCallTrace broken by Method* virtual call Summary: Make metaspace::contains be lock free and used to see if something is in metaspace, also compare Method* with vtbl pointer. Reviewed-by: dholmes, sspitsyn, dcubed, jmasa
author coleenp
date Wed, 28 Nov 2012 17:50:21 -0500
parents da91efe96a93
children 291ffc492eb6 ec2eddfed950
comparison
equal deleted inserted replaced
7175:b51dc8df86e5 7176:59c790074993
532 // first the method 532 // first the method
533 533
534 Method* m = *interpreter_frame_method_addr(); 534 Method* m = *interpreter_frame_method_addr();
535 535
536 // validate the method we'd find in this potential sender 536 // validate the method we'd find in this potential sender
537 if (!Universe::heap()->is_valid_method(m)) return false; 537 if (!m->is_valid_method()) return false;
538 538
539 // stack frames shouldn't be much larger than max_stack elements 539 // stack frames shouldn't be much larger than max_stack elements
540 540
541 if (fp() - sp() > 1024 + m->max_stack()*Interpreter::stackElementSize) { 541 if (fp() - sp() > 1024 + m->max_stack()*Interpreter::stackElementSize) {
542 return false; 542 return false;