8265148: StackWatermarkSet being updated during AsyncGetCallTrace

Reviewed-by: stefank, eosterlund
This commit is contained in:
Leonid Mesnik 2021-06-01 18:06:19 +00:00
parent 64ba2f0e8f
commit 2b3383557f

@ -323,7 +323,7 @@ static bool find_initial_Java_frame(JavaThread* thread,
// See if we can find a useful frame
int loop_count;
int loop_max = MaxJavaStackTraceDepth * 2;
RegisterMap map(thread, false);
RegisterMap map(thread, false, false);
for (loop_count = 0; loop_max == 0 || loop_count < loop_max; loop_count++) {
if (!candidate.safe_for_sender(thread)) return false;
@ -337,7 +337,7 @@ static bool find_initial_Java_frame(JavaThread* thread,
// We will hopefully be able to figure out something to do with it.
int loop_count;
int loop_max = MaxJavaStackTraceDepth * 2;
RegisterMap map(thread, false);
RegisterMap map(thread, false, false);
for (loop_count = 0; loop_max == 0 || loop_count < loop_max; loop_count++) {