mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8217387: Remove dead develop flag CIFireOOMAt
Reviewed-by: shade, kbarrett
This commit is contained in:
parent
108c7bbe0b
commit
d3cd2cb795
4 changed files with 0 additions and 27 deletions
|
@ -2212,15 +2212,6 @@ void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
|
||||||
// the point somewhat) our clearing of the bits must be occurring
|
// the point somewhat) our clearing of the bits must be occurring
|
||||||
// only after the setting of the bits. See also 14012000 above.
|
// only after the setting of the bits. See also 14012000 above.
|
||||||
method->clear_queued_for_compilation();
|
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -51,10 +51,6 @@
|
||||||
|
|
||||||
class ClassLoaderData;
|
class ClassLoaderData;
|
||||||
|
|
||||||
#ifdef ASSERT
|
|
||||||
int CollectedHeap::_fire_out_of_memory_count = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
size_t CollectedHeap::_filler_array_max_size = 0;
|
size_t CollectedHeap::_filler_array_max_size = 0;
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
|
|
|
@ -100,10 +100,6 @@ class CollectedHeap : public CHeapObj<mtInternal> {
|
||||||
friend class MemAllocator;
|
friend class MemAllocator;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#ifdef ASSERT
|
|
||||||
static int _fire_out_of_memory_count;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
GCHeapLog* _gc_heap_log;
|
GCHeapLog* _gc_heap_log;
|
||||||
|
|
||||||
MemRegion _reserved;
|
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(volatile size_t* count);
|
||||||
void reset_promotion_should_fail();
|
void reset_promotion_should_fail();
|
||||||
#endif // #ifndef PRODUCT
|
#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.
|
// Class to set and reset the GC cause for a CollectedHeap.
|
||||||
|
|
|
@ -1994,10 +1994,6 @@ define_pd_global(uint64_t,MaxRAM, 1ULL*G);
|
||||||
product(bool, CICompilerCountPerCPU, false, \
|
product(bool, CICompilerCountPerCPU, false, \
|
||||||
"1 compiler thread for log(N CPUs)") \
|
"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, \
|
notproduct(intx, CICrashAt, -1, \
|
||||||
"id of compilation to trigger assert in compiler thread for " \
|
"id of compilation to trigger assert in compiler thread for " \
|
||||||
"the purpose of testing, e.g. generation of replay data") \
|
"the purpose of testing, e.g. generation of replay data") \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue