8214786: Remove unused ThreadLocalAllocBuffer::verify()
authorpliden
Wed, 05 Dec 2018 17:11:22 +0100
changeset 52854 eb4f89bce401
parent 52853 0e2e67902add
child 52855 dffc52d799f1
8214786: Remove unused ThreadLocalAllocBuffer::verify() Reviewed-by: kbarrett, eosterlund
src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp
src/hotspot/share/gc/shared/threadLocalAllocBuffer.hpp
--- a/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp	Wed Dec 05 17:11:21 2018 +0100
+++ b/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp	Wed Dec 05 17:11:22 2018 +0100
@@ -279,18 +279,6 @@
             _fast_refill_waste * HeapWordSize);
 }
 
-void ThreadLocalAllocBuffer::verify() {
-  HeapWord* p = start();
-  HeapWord* t = top();
-  HeapWord* prev_p = NULL;
-  while (p < t) {
-    oopDesc::verify(oop(p));
-    prev_p = p;
-    p += oop(p)->size();
-  }
-  guarantee(p == top(), "end of last object must match end of space");
-}
-
 void ThreadLocalAllocBuffer::set_sample_end() {
   size_t heap_words_remaining = pointer_delta(_end, _top);
   size_t bytes_until_sample = thread()->heap_sampler().bytes_until_sample();
--- a/src/hotspot/share/gc/shared/threadLocalAllocBuffer.hpp	Wed Dec 05 17:11:21 2018 +0100
+++ b/src/hotspot/share/gc/shared/threadLocalAllocBuffer.hpp	Wed Dec 05 17:11:22 2018 +0100
@@ -188,8 +188,6 @@
   static ByteSize end_offset()                   { return byte_offset_of(ThreadLocalAllocBuffer, _end); }
   static ByteSize top_offset()                   { return byte_offset_of(ThreadLocalAllocBuffer, _top); }
   static ByteSize pf_top_offset()                { return byte_offset_of(ThreadLocalAllocBuffer, _pf_top); }
-
-  void verify();
 };
 
 class ThreadLocalAllocStats : public StackObj {