comparison src/share/vm/gc_implementation/parallelScavenge/vmPSOperations.cpp @ 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 4bfc44ba0d19
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.
31 #include "memory/gcLocker.inline.hpp" 31 #include "memory/gcLocker.inline.hpp"
32 #include "utilities/dtrace.hpp" 32 #include "utilities/dtrace.hpp"
33 33
34 // The following methods are used by the parallel scavenge collector 34 // The following methods are used by the parallel scavenge collector
35 VM_ParallelGCFailedAllocation::VM_ParallelGCFailedAllocation(size_t size, 35 VM_ParallelGCFailedAllocation::VM_ParallelGCFailedAllocation(size_t size,
36 unsigned int gc_count) : 36 uint gc_count) :
37 VM_GC_Operation(gc_count, GCCause::_allocation_failure), 37 VM_GC_Operation(gc_count, GCCause::_allocation_failure),
38 _size(size), 38 _size(size),
39 _result(NULL) 39 _result(NULL)
40 { 40 {
41 } 41 }
53 set_gc_locked(); 53 set_gc_locked();
54 } 54 }
55 } 55 }
56 56
57 // Only used for System.gc() calls 57 // Only used for System.gc() calls
58 VM_ParallelGCSystemGC::VM_ParallelGCSystemGC(unsigned int gc_count, 58 VM_ParallelGCSystemGC::VM_ParallelGCSystemGC(uint gc_count,
59 unsigned int full_gc_count, 59 uint full_gc_count,
60 GCCause::Cause gc_cause) : 60 GCCause::Cause gc_cause) :
61 VM_GC_Operation(gc_count, gc_cause, full_gc_count, true /* full */) 61 VM_GC_Operation(gc_count, gc_cause, full_gc_count, true /* full */)
62 { 62 {
63 } 63 }
64 64