src/hotspot/share/gc/shared/referenceProcessor.inline.hpp
changeset 50605 7f63c74f0974
parent 49967 672ded60a082
child 51332 c25572739e7c
--- a/src/hotspot/share/gc/shared/referenceProcessor.inline.hpp	Mon Jun 18 08:07:15 2018 +0530
+++ b/src/hotspot/share/gc/shared/referenceProcessor.inline.hpp	Tue May 29 09:26:00 2018 +0200
@@ -47,6 +47,11 @@
  return head() == NULL;
 }
 
+void DiscoveredList::clear() {
+  set_head(NULL);
+  set_length(0);
+}
+
 DiscoveredListIterator::DiscoveredListIterator(DiscoveredList&    refs_list,
                                                OopClosure*        keep_alive,
                                                BoolObjectClosure* is_alive):
@@ -57,10 +62,8 @@
 #ifdef ASSERT
   _first_seen(refs_list.head()),
 #endif
-#ifndef PRODUCT
   _processed(0),
   _removed(0),
-#endif
   _next_discovered(NULL),
   _keep_alive(keep_alive),
   _is_alive(is_alive) {