From b1a9491844a165bf5ae54c50b4f8573bd3f3e24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20Sikstr=C3=B6m?= Date: Mon, 11 Nov 2024 10:36:46 +0000 Subject: [PATCH] 8343321: Bad verify in LockStack::oops_do() Reviewed-by: stefank, rkennke, coleenp --- src/hotspot/share/runtime/lockStack.inline.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hotspot/share/runtime/lockStack.inline.hpp b/src/hotspot/share/runtime/lockStack.inline.hpp index 515ca94c741e0..6c25a2a3a9871 100644 --- a/src/hotspot/share/runtime/lockStack.inline.hpp +++ b/src/hotspot/share/runtime/lockStack.inline.hpp @@ -216,7 +216,9 @@ inline bool LockStack::contains(oop o) const { } inline void LockStack::oops_do(OopClosure* cl) { - verify("pre-oops-do"); + // We don't perform pre oops_do verify here because this function + // is used by the GC to fix the oops. + int end = to_index(_top); for (int i = 0; i < end; i++) { cl->do_oop(&_base[i]);