1.1 --- a/src/share/vm/gc_implementation/parallelScavenge/vmPSOperations.cpp Thu Feb 03 16:06:01 2011 -0500 1.2 +++ b/src/share/vm/gc_implementation/parallelScavenge/vmPSOperations.cpp Thu Feb 03 20:49:09 2011 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -34,7 +34,7 @@ 1.11 // The following methods are used by the parallel scavenge collector 1.12 VM_ParallelGCFailedAllocation::VM_ParallelGCFailedAllocation(size_t size, 1.13 bool is_tlab, unsigned int gc_count) : 1.14 - VM_GC_Operation(gc_count), 1.15 + VM_GC_Operation(gc_count, GCCause::_allocation_failure), 1.16 _size(size), 1.17 _is_tlab(is_tlab), 1.18 _result(NULL) 1.19 @@ -57,7 +57,7 @@ 1.20 1.21 VM_ParallelGCFailedPermanentAllocation::VM_ParallelGCFailedPermanentAllocation(size_t size, 1.22 unsigned int gc_count, unsigned int full_gc_count) : 1.23 - VM_GC_Operation(gc_count, full_gc_count, true /* full */), 1.24 + VM_GC_Operation(gc_count, GCCause::_allocation_failure, full_gc_count, true /* full */), 1.25 _size(size), 1.26 _result(NULL) 1.27 { 1.28 @@ -80,9 +80,8 @@ 1.29 VM_ParallelGCSystemGC::VM_ParallelGCSystemGC(unsigned int gc_count, 1.30 unsigned int full_gc_count, 1.31 GCCause::Cause gc_cause) : 1.32 - VM_GC_Operation(gc_count, full_gc_count, true /* full */) 1.33 + VM_GC_Operation(gc_count, gc_cause, full_gc_count, true /* full */) 1.34 { 1.35 - _gc_cause = gc_cause; 1.36 } 1.37 1.38 void VM_ParallelGCSystemGC::doit() {