src/hotspot/share/jfr/periodic/sampling/jfrCallTrace.cpp
changeset 51263 b5aac518b097
parent 50113 caf115bb98ad
child 54603 cb8e16d6ff1e
equal deleted inserted replaced
51262:d4b9a434af84 51263:b5aac518b097
    48     if (candidate.is_interpreted_frame()) {
    48     if (candidate.is_interpreted_frame()) {
    49       JavaThreadState state = _thread->thread_state();
    49       JavaThreadState state = _thread->thread_state();
    50       const bool known_valid = (state == _thread_in_native || state == _thread_in_vm || state == _thread_blocked);
    50       const bool known_valid = (state == _thread_in_native || state == _thread_in_vm || state == _thread_blocked);
    51       if (known_valid || candidate.is_interpreted_frame_valid(_thread)) {
    51       if (known_valid || candidate.is_interpreted_frame_valid(_thread)) {
    52         Method* im = candidate.interpreter_frame_method();
    52         Method* im = candidate.interpreter_frame_method();
    53         if (known_valid && !im->is_valid_method()) {
    53         if (known_valid && !Method::is_valid_method(im)) {
    54           return false;
    54           return false;
    55         }
    55         }
    56         *method = im;
    56         *method = im;
    57         first_frame = candidate;
    57         first_frame = candidate;
    58         return true;
    58         return true;