src/hotspot/share/gc/shared/collectedHeap.cpp
branchstuefe-new-metaspace-branch
changeset 58494 54c1ba464b78
parent 58199 595fcbebaa77
parent 58229 722a19a45994
child 59272 54750b448264
--- a/src/hotspot/share/gc/shared/collectedHeap.cpp	Mon Oct 07 15:48:26 2019 +0200
+++ b/src/hotspot/share/gc/shared/collectedHeap.cpp	Mon Oct 07 16:48:42 2019 +0200
@@ -344,11 +344,6 @@
 }
 #endif // PRODUCT
 
-void CollectedHeap::check_oop_location(void* addr) const {
-  assert(is_object_aligned(addr), "address is not aligned");
-  assert(_reserved.contains(addr),  "address is not in reserved heap");
-}
-
 size_t CollectedHeap::max_tlab_size() const {
   // TLABs can't be bigger than we can fill with a int[Integer.MAX_VALUE].
   // This restriction could be removed by enabling filling with multiple arrays.
@@ -377,8 +372,6 @@
 {
   assert(words >= min_fill_size(), "too small to fill");
   assert(is_object_aligned(words), "unaligned size");
-  DEBUG_ONLY(Universe::heap()->check_oop_location(start);)
-  DEBUG_ONLY(Universe::heap()->check_oop_location(start + words - MinObjAlignment);)
 }
 
 void CollectedHeap::zap_filler_array(HeapWord* start, size_t words, bool zap)