src/hotspot/share/jfr/leakprofiler/chains/bfsClosure.cpp
branchJEP-349-branch
changeset 57987 23e3cd901cb6
parent 57870 00860d9caf4d
child 58154 060d9d139109
equal deleted inserted replaced
57985:be121cbf3284 57987:23e3cd901cb6
   228   }
   228   }
   229 }
   229 }
   230 
   230 
   231 void BFSClosure::do_root(const oop* ref) {
   231 void BFSClosure::do_root(const oop* ref) {
   232   assert(ref != NULL, "invariant");
   232   assert(ref != NULL, "invariant");
   233   assert(is_aligned(ref, HeapWordSize), "invariant");
       
   234   assert(*ref != NULL, "invariant");
       
   235   if (!_edge_queue->is_full()) {
   233   if (!_edge_queue->is_full()) {
   236     _edge_queue->add(NULL, ref);
   234     _edge_queue->add(NULL, ref);
   237   }
   235   }
   238 }
   236 }