--- a/src/hotspot/share/gc/shared/collectedHeap.cpp Thu Sep 19 10:52:22 2019 +0200
+++ b/src/hotspot/share/gc/shared/collectedHeap.cpp Thu Sep 19 16:05:47 2019 +0200
@@ -343,11 +343,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.
@@ -376,8 +371,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)