8343321: Bad verify in LockStack::oops_do()

Reviewed-by: stefank, rkennke, coleenp
This commit is contained in:
Joel Sikström 2024-11-11 10:36:46 +00:00
parent cbe8448f28
commit b1a9491844

@ -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]);