1.1 --- a/src/share/vm/utilities/taskqueue.hpp Sat Oct 24 16:18:50 2020 +0800 1.2 +++ b/src/share/vm/utilities/taskqueue.hpp Sat Oct 24 16:43:47 2020 +0800 1.3 @@ -381,7 +381,8 @@ 1.4 // index, &_elems[index], _elems[index]); 1.5 E* t = (E*)&_elems[index]; // cast away volatility 1.6 oop* p = (oop*)t; 1.7 - assert((*t)->is_oop_or_null(), "Not an oop or null"); 1.8 + // G1 does its own checking 1.9 + assert(UseG1GC || (*t)->is_oop_or_null(), "Not an oop or null"); 1.10 f->do_oop(p); 1.11 } 1.12 // tty->print_cr("END OopTaskQueue::oops_do");