mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
7015169: GC Cause not always set
Sometimes the gc cause was not always set. This caused JStat to print the wrong information. Reviewed-by: tonyp, ysr
This commit is contained in:
parent
5b37c4faec
commit
60418bbde3
8 changed files with 24 additions and 51 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -34,7 +34,7 @@
|
|||
// The following methods are used by the parallel scavenge collector
|
||||
VM_ParallelGCFailedAllocation::VM_ParallelGCFailedAllocation(size_t size,
|
||||
bool is_tlab, unsigned int gc_count) :
|
||||
VM_GC_Operation(gc_count),
|
||||
VM_GC_Operation(gc_count, GCCause::_allocation_failure),
|
||||
_size(size),
|
||||
_is_tlab(is_tlab),
|
||||
_result(NULL)
|
||||
|
@ -57,7 +57,7 @@ void VM_ParallelGCFailedAllocation::doit() {
|
|||
|
||||
VM_ParallelGCFailedPermanentAllocation::VM_ParallelGCFailedPermanentAllocation(size_t size,
|
||||
unsigned int gc_count, unsigned int full_gc_count) :
|
||||
VM_GC_Operation(gc_count, full_gc_count, true /* full */),
|
||||
VM_GC_Operation(gc_count, GCCause::_allocation_failure, full_gc_count, true /* full */),
|
||||
_size(size),
|
||||
_result(NULL)
|
||||
{
|
||||
|
@ -80,9 +80,8 @@ void VM_ParallelGCFailedPermanentAllocation::doit() {
|
|||
VM_ParallelGCSystemGC::VM_ParallelGCSystemGC(unsigned int gc_count,
|
||||
unsigned int full_gc_count,
|
||||
GCCause::Cause gc_cause) :
|
||||
VM_GC_Operation(gc_count, full_gc_count, true /* full */)
|
||||
VM_GC_Operation(gc_count, gc_cause, full_gc_count, true /* full */)
|
||||
{
|
||||
_gc_cause = gc_cause;
|
||||
}
|
||||
|
||||
void VM_ParallelGCSystemGC::doit() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue