--- 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.