From 362c2a8f6d4124c59eb7b3ac6e830c3109b6da0c Mon Sep 17 00:00:00 2001 From: Brent Christian Date: Thu, 22 Sep 2016 10:24:25 -0700 Subject: [PATCH] 8166501: compilation error in stackwalk.cpp on some gccs Reviewed-by: coleenp --- hotspot/src/share/vm/prims/stackwalk.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hotspot/src/share/vm/prims/stackwalk.cpp b/hotspot/src/share/vm/prims/stackwalk.cpp index 6821e6fc1ee..0948e50e8be 100644 --- a/hotspot/src/share/vm/prims/stackwalk.cpp +++ b/hotspot/src/share/vm/prims/stackwalk.cpp @@ -331,10 +331,12 @@ oop StackWalk::walk(Handle stackStream, jlong mode, assert (use_frames_array(mode), "Bad mode for get live frame"); RegisterMap regMap(jt, true); LiveFrameStream stream(jt, ®Map); - return fetchFirstBatch(stream, stackStream, mode, skip_frames, frame_count, start_index, frames_array, CHECK_NULL); + return fetchFirstBatch(stream, stackStream, mode, skip_frames, frame_count, + start_index, frames_array, THREAD); } else { JavaFrameStream stream(jt, mode); - return fetchFirstBatch(stream, stackStream, mode, skip_frames, frame_count, start_index, frames_array, CHECK_NULL); + return fetchFirstBatch(stream, stackStream, mode, skip_frames, frame_count, + start_index, frames_array, THREAD); } }