Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/parallelScavenge/vmPSOperations.hpp @ 22936:fb69749583e8
8072621: Clean up around VM_GC_Operations
Reviewed-by: brutisso, jmasa
author | mlarsson |
---|---|
date | Thu, 09 Apr 2015 15:58:49 +0200 |
parents | da91efe96a93 |
children | af8f16ac392c |
comparison
equal
deleted
inserted
replaced
22935:bff23dedb306 | 22936:fb69749583e8 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
33 private: | 33 private: |
34 size_t _size; | 34 size_t _size; |
35 HeapWord* _result; | 35 HeapWord* _result; |
36 | 36 |
37 public: | 37 public: |
38 VM_ParallelGCFailedAllocation(size_t size, unsigned int gc_count); | 38 VM_ParallelGCFailedAllocation(size_t size, uint gc_count); |
39 | 39 |
40 virtual VMOp_Type type() const { | 40 virtual VMOp_Type type() const { |
41 return VMOp_ParallelGCFailedAllocation; | 41 return VMOp_ParallelGCFailedAllocation; |
42 } | 42 } |
43 virtual void doit(); | 43 virtual void doit(); |
45 HeapWord* result() const { return _result; } | 45 HeapWord* result() const { return _result; } |
46 }; | 46 }; |
47 | 47 |
48 class VM_ParallelGCSystemGC: public VM_GC_Operation { | 48 class VM_ParallelGCSystemGC: public VM_GC_Operation { |
49 public: | 49 public: |
50 VM_ParallelGCSystemGC(unsigned int gc_count, unsigned int full_gc_count, | 50 VM_ParallelGCSystemGC(uint gc_count, uint full_gc_count, GCCause::Cause gc_cause); |
51 GCCause::Cause gc_cause); | |
52 virtual VMOp_Type type() const { return VMOp_ParallelGCSystemGC; } | 51 virtual VMOp_Type type() const { return VMOp_ParallelGCSystemGC; } |
53 virtual void doit(); | 52 virtual void doit(); |
54 }; | 53 }; |
55 | 54 |
56 #endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_VMPSOPERATIONS_HPP | 55 #endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_VMPSOPERATIONS_HPP |