--- old/src/hotspot/share/prims/forte.cpp 2018-07-25 11:34:52.120639317 -0400 +++ new/src/hotspot/share/prims/forte.cpp 2018-07-25 11:34:51.711171374 -0400 @@ -248,7 +248,7 @@ // a valid method. Then again we may have caught an interpreter // frame in the middle of construction and the bci field is // not yet valid. - if (!method->is_valid_method()) return false; + if (!Method::is_valid_method(method)) return false; *method_p = method; // If the Method* found is invalid, it is // ignored by forte_fill_call_trace_given_top(). // So set method_p only if the Method is valid. @@ -434,7 +434,7 @@ // Check if a Java Method has been found. if (method == NULL) return; - if (!method->is_valid_method()) { + if (!Method::is_valid_method(method)) { trace->num_frames = ticks_GC_active; // -2 return; } @@ -445,7 +445,7 @@ bci = st.bci(); method = st.method(); - if (!method->is_valid_method()) { + if (!Method::is_valid_method(method)) { // we throw away everything we've gathered in this sample since // none of it is safe trace->num_frames = ticks_GC_active; // -2