8217387: Remove dead develop flag CIFireOOMAt

Reviewed-by: shade, kbarrett
This commit is contained in:
Claes Redestad 2019-01-20 16:55:21 +01:00
parent 108c7bbe0b
commit d3cd2cb795
4 changed files with 0 additions and 27 deletions

View File

@ -2212,15 +2212,6 @@ void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
// the point somewhat) our clearing of the bits must be occurring
// only after the setting of the bits. See also 14012000 above.
method->clear_queued_for_compilation();
#ifdef ASSERT
if (CollectedHeap::fired_fake_oom()) {
// The current compile received a fake OOM during compilation so
// go ahead and exit the VM since the test apparently succeeded
tty->print_cr("*** Shutting down VM after successful fake OOM");
vm_exit(0);
}
#endif
}
/**

View File

@ -51,10 +51,6 @@
class ClassLoaderData;
#ifdef ASSERT
int CollectedHeap::_fire_out_of_memory_count = 0;
#endif
size_t CollectedHeap::_filler_array_max_size = 0;
template <>

View File

@ -100,10 +100,6 @@ class CollectedHeap : public CHeapObj<mtInternal> {
friend class MemAllocator;
private:
#ifdef ASSERT
static int _fire_out_of_memory_count;
#endif
GCHeapLog* _gc_heap_log;
MemRegion _reserved;
@ -600,12 +596,6 @@ class CollectedHeap : public CHeapObj<mtInternal> {
void reset_promotion_should_fail(volatile size_t* count);
void reset_promotion_should_fail();
#endif // #ifndef PRODUCT
#ifdef ASSERT
static int fired_fake_oom() {
return (CIFireOOMAt > 1 && _fire_out_of_memory_count >= CIFireOOMAt);
}
#endif
};
// Class to set and reset the GC cause for a CollectedHeap.

View File

@ -1994,10 +1994,6 @@ define_pd_global(uint64_t,MaxRAM, 1ULL*G);
product(bool, CICompilerCountPerCPU, false, \
"1 compiler thread for log(N CPUs)") \
\
develop(intx, CIFireOOMAt, -1, \
"Fire OutOfMemoryErrors throughout CI for testing the compiler " \
"(non-negative value throws OOM after this many CI accesses " \
"in each compile)") \
notproduct(intx, CICrashAt, -1, \
"id of compilation to trigger assert in compiler thread for " \
"the purpose of testing, e.g. generation of replay data") \