src/hotspot/share/gc/shared/genCollectedHeap.cpp
changeset 50882 80abf702eed8
parent 50800 6da12aa23b88
child 51332 c25572739e7c
--- a/src/hotspot/share/gc/shared/genCollectedHeap.cpp	Thu Jun 28 15:17:44 2018 +0200
+++ b/src/hotspot/share/gc/shared/genCollectedHeap.cpp	Thu Jun 28 14:22:28 2018 +0200
@@ -275,9 +275,6 @@
 HeapWord* GenCollectedHeap::mem_allocate_work(size_t size,
                                               bool is_tlab,
                                               bool* gc_overhead_limit_was_exceeded) {
-  debug_only(check_for_valid_allocation_state());
-  assert(no_gc_in_progress(), "Allocation during gc not allowed");
-
   // In general gc_overhead_limit_was_exceeded should be false so
   // set it so here and reset it to true only if the gc time
   // limit is being exceeded as checked below.