8206977: Minor improvements of runtime code

Reviewed-by: coleenp, lfoltan
This commit is contained in:
Goetz Lindenmaier 2018-07-11 16:11:10 +02:00
parent 89f13ef117
commit 8a9b0134a8
18 changed files with 68 additions and 55 deletions

View file

@ -1219,7 +1219,7 @@ VM_GetMultipleStackTraces::fill_frames(jthread jt, JavaThread *thr, oop thread_o
}
infop->state = state;
if (thr != NULL || (state & JVMTI_THREAD_STATE_ALIVE) != 0) {
if (thr != NULL && (state & JVMTI_THREAD_STATE_ALIVE) != 0) {
infop->frame_buffer = NEW_RESOURCE_ARRAY(jvmtiFrameInfo, max_frame_count());
env()->get_stack_trace(thr, 0, max_frame_count(),
infop->frame_buffer, &(infop->frame_count));