8282224: Correct TIG::bang_stack_shadow_pages comments

Reviewed-by: coleenp
This commit is contained in:
Aleksey Shipilev 2022-03-07 15:23:10 +00:00
parent e544e354a4
commit 8e70f4c3dc

View File

@ -755,8 +755,8 @@ void TemplateInterpreterGenerator::bang_stack_shadow_pages(bool native_call) {
__ bang_stack_with_offset(p*page_size);
}
// Record a new watermark, unless the update is above the safe limit.
// Otherwise, the next time around a check above would pass the safe limit.
// Record the new watermark, but only if update is above the safe limit.
// Otherwise, the next time around the check above would pass the safe limit.
__ cmpptr(rsp, Address(thread, JavaThread::shadow_zone_safe_limit()));
__ jccb(Assembler::belowEqual, L_done);
__ movptr(Address(thread, JavaThread::shadow_zone_growth_watermark()), rsp);