Mercurial > hg > truffle
comparison src/share/vm/gc_interface/gcCause.hpp @ 2225:c798c277ddd1
7015169: GC Cause not always set
Summary: Sometimes the gc cause was not always set. This caused JStat to print the wrong information.
Reviewed-by: tonyp, ysr
Contributed-by: suenaga.yasumasa@oss.ntt.co.jp
author | brutisso |
---|---|
date | Thu, 03 Feb 2011 20:49:09 -0800 |
parents | f95d63e2154a |
children | 9509c20bba28 |
comparison
equal
deleted
inserted
replaced
2189:176d0be30214 | 2225:c798c277ddd1 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2002, 2011, 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. |
83 cause == GCCause::_heap_dump); | 83 cause == GCCause::_heap_dump); |
84 } | 84 } |
85 | 85 |
86 // Return a string describing the GCCause. | 86 // Return a string describing the GCCause. |
87 static const char* to_string(GCCause::Cause cause); | 87 static const char* to_string(GCCause::Cause cause); |
88 // Return true if the GCCause is for a full collection. | |
89 static bool is_for_full_collection(GCCause::Cause cause) PRODUCT_RETURN0; | |
90 }; | 88 }; |
91 | 89 |
92 #endif // SHARE_VM_GC_INTERFACE_GCCAUSE_HPP | 90 #endif // SHARE_VM_GC_INTERFACE_GCCAUSE_HPP |