mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8206977: Minor improvements of runtime code
Reviewed-by: coleenp, lfoltan
This commit is contained in:
parent
89f13ef117
commit
8a9b0134a8
18 changed files with 68 additions and 55 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue