mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8224966: ZGC: Don't skip oop verification in OopMapSet::all_do()
Reviewed-by: stefank, eosterlund
This commit is contained in:
parent
96bb069a2d
commit
fa85fe2012
1 changed files with 2 additions and 6 deletions
|
@ -379,12 +379,8 @@ void OopMapSet::all_do(const frame *fr, const RegisterMap *reg_map,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#ifdef ASSERT
|
#ifdef ASSERT
|
||||||
// We can not verify the oop here if we are using ZGC, the oop
|
if ((((uintptr_t)loc & (sizeof(*loc)-1)) != 0) ||
|
||||||
// will be bad in case we had a safepoint between a load and a
|
!Universe::heap()->is_in_or_null(*loc)) {
|
||||||
// load barrier.
|
|
||||||
if (!UseZGC &&
|
|
||||||
((((uintptr_t)loc & (sizeof(*loc)-1)) != 0) ||
|
|
||||||
!Universe::heap()->is_in_or_null(*loc))) {
|
|
||||||
tty->print_cr("# Found non oop pointer. Dumping state at failure");
|
tty->print_cr("# Found non oop pointer. Dumping state at failure");
|
||||||
// try to dump out some helpful debugging information
|
// try to dump out some helpful debugging information
|
||||||
trace_codeblob_maps(fr, reg_map);
|
trace_codeblob_maps(fr, reg_map);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue