@@ -587,7 +587,7 @@ int Profiler::getJavaTraceAsync(void *ucontext, ASGCT_CallFrame *frames,
587587 VM::_asyncGetCallTrace (&trace, max_depth, ucontext);
588588 }
589589 } else if (VMStructs::hasMethodStructs ()) {
590- NMethod *nmethod = CodeHeap::findNMethod ((const void *)frame.pc ());
590+ VMNMethod *nmethod = CodeHeap::findNMethod ((const void *)frame.pc ());
591591 if (nmethod != NULL && nmethod->isNMethod () && nmethod->isAlive ()) {
592592 VMMethod *method = nmethod->method ();
593593 if (method != NULL ) {
@@ -623,7 +623,7 @@ int Profiler::getJavaTraceAsync(void *ucontext, ASGCT_CallFrame *frames,
623623 }
624624 } else if (trace.num_frames == ticks_unknown_not_Java &&
625625 !(_safe_mode & LAST_JAVA_PC )) {
626- JavaFrameAnchor * anchor = vm_thread->anchor ();
626+ VMJavaFrameAnchor * anchor = vm_thread->anchor ();
627627 uintptr_t sp = anchor->lastJavaSP ();
628628 const void * pc = anchor->lastJavaPC ();
629629 if (sp != 0 && pc == NULL ) {
@@ -632,7 +632,7 @@ int Profiler::getJavaTraceAsync(void *ucontext, ASGCT_CallFrame *frames,
632632 pc = ((const void **)sp)[-1 ];
633633 anchor->setLastJavaPC (pc);
634634
635- NMethod *m = CodeHeap::findNMethod (pc);
635+ VMNMethod *m = CodeHeap::findNMethod (pc);
636636 if (m != NULL ) {
637637 // AGCT fails if the last Java frame is a Runtime Stub with an invalid
638638 // _frame_complete_offset. In this case we patch _frame_complete_offset
@@ -650,13 +650,13 @@ int Profiler::getJavaTraceAsync(void *ucontext, ASGCT_CallFrame *frames,
650650 }
651651 } else if (trace.num_frames == ticks_not_walkable_not_Java &&
652652 !(_safe_mode & LAST_JAVA_PC )) {
653- JavaFrameAnchor * anchor = vm_thread->anchor ();
653+ VMJavaFrameAnchor * anchor = vm_thread->anchor ();
654654 uintptr_t sp = anchor->lastJavaSP ();
655655 const void * pc = anchor->lastJavaPC ();
656656 if (sp != 0 && pc != NULL ) {
657657 // Similar to the above: last Java frame is set,
658658 // but points to a Runtime Stub with an invalid _frame_complete_offset
659- NMethod *m = CodeHeap::findNMethod (pc);
659+ VMNMethod *m = CodeHeap::findNMethod (pc);
660660 if (m != NULL && !m->isNMethod () && m->frameSize () > 0 &&
661661 m->frameCompleteOffset () == -1 ) {
662662 m->setFrameCompleteOffset (0 );
@@ -691,7 +691,7 @@ int Profiler::getJavaTraceAsync(void *ucontext, ASGCT_CallFrame *frames,
691691}
692692
693693void Profiler::fillFrameTypes (ASGCT_CallFrame *frames, int num_frames,
694- NMethod *nmethod) {
694+ VMNMethod *nmethod) {
695695 if (nmethod->isNMethod () && nmethod->isAlive ()) {
696696 VMMethod *method = nmethod->method ();
697697 if (method == NULL ) {
@@ -850,7 +850,7 @@ void Profiler::recordSample(void *ucontext, u64 counter, int tid,
850850 if (mutex.acquired ()) {
851851 java_frames = getJavaTraceAsync (ucontext, frames + num_frames, max_remaining, &java_ctx, &truncated);
852852 if (java_frames > 0 && java_ctx.pc != NULL && VMStructs::hasMethodStructs ()) {
853- NMethod * nmethod = CodeHeap::findNMethod (java_ctx.pc );
853+ VMNMethod * nmethod = CodeHeap::findNMethod (java_ctx.pc );
854854 if (nmethod != NULL ) {
855855 fillFrameTypes (frames + num_frames, java_frames, nmethod);
856856 }
0 commit comments