src/hotspot/share/gc/serial/markSweep.cpp
changeset 58015 dd84de796f2c
parent 57777 90ead0febf56
child 58679 9c3209ff7550
equal deleted inserted replaced
58014:aba258cd7df8 58015:dd84de796f2c
   125 MarkSweep::FollowStackClosure MarkSweep::follow_stack_closure;
   125 MarkSweep::FollowStackClosure MarkSweep::follow_stack_closure;
   126 
   126 
   127 void MarkSweep::FollowStackClosure::do_void() { follow_stack(); }
   127 void MarkSweep::FollowStackClosure::do_void() { follow_stack(); }
   128 
   128 
   129 template <class T> inline void MarkSweep::follow_root(T* p) {
   129 template <class T> inline void MarkSweep::follow_root(T* p) {
   130   assert(!Universe::heap()->is_in_reserved(p),
   130   assert(!Universe::heap()->is_in(p),
   131          "roots shouldn't be things within the heap");
   131          "roots shouldn't be things within the heap");
   132   T heap_oop = RawAccess<>::oop_load(p);
   132   T heap_oop = RawAccess<>::oop_load(p);
   133   if (!CompressedOops::is_null(heap_oop)) {
   133   if (!CompressedOops::is_null(heap_oop)) {
   134     oop obj = CompressedOops::decode_not_null(heap_oop);
   134     oop obj = CompressedOops::decode_not_null(heap_oop);
   135     if (!obj->mark_raw().is_marked()) {
   135     if (!obj->mark_raw().is_marked()) {