mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8066771: Refactor VM GC operations caused by allocation failure
Reviewed-by: brutisso, jmasa
This commit is contained in:
parent
7727fe0044
commit
71cfff7df1
6 changed files with 36 additions and 36 deletions
|
@ -29,20 +29,14 @@
|
|||
#include "gc_implementation/shared/vmGCOperations.hpp"
|
||||
#include "gc_interface/gcCause.hpp"
|
||||
|
||||
class VM_ParallelGCFailedAllocation: public VM_GC_Operation {
|
||||
private:
|
||||
size_t _size;
|
||||
HeapWord* _result;
|
||||
|
||||
class VM_ParallelGCFailedAllocation : public VM_CollectForAllocation {
|
||||
public:
|
||||
VM_ParallelGCFailedAllocation(size_t size, uint gc_count);
|
||||
VM_ParallelGCFailedAllocation(size_t word_size, uint gc_count);
|
||||
|
||||
virtual VMOp_Type type() const {
|
||||
return VMOp_ParallelGCFailedAllocation;
|
||||
}
|
||||
virtual void doit();
|
||||
|
||||
HeapWord* result() const { return _result; }
|
||||
};
|
||||
|
||||
class VM_ParallelGCSystemGC: public VM_GC_Operation {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue