Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/shared/generationCounters.hpp @ 3289:b52782ae3880
6946417: G1: Java VisualVM does not support G1 properly.
Summary: Added counters for jstat
Reviewed-by: tonyp, jwilhelm, stefank, ysr, johnc
author | jmasa |
---|---|
date | Thu, 21 Apr 2011 10:23:44 -0700 |
parents | f95d63e2154a |
children | 8229bd737950 |
comparison
equal
deleted
inserted
replaced
3288:c0dcda80820f | 3289:b52782ae3880 |
---|---|
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. |
59 ~GenerationCounters() { | 59 ~GenerationCounters() { |
60 if (_name_space != NULL) FREE_C_HEAP_ARRAY(char, _name_space); | 60 if (_name_space != NULL) FREE_C_HEAP_ARRAY(char, _name_space); |
61 } | 61 } |
62 | 62 |
63 virtual void update_all() { | 63 virtual void update_all() { |
64 _current_size->set_value(_virtual_space->committed_size()); | 64 _current_size->set_value(_virtual_space == NULL ? 0 : |
65 _virtual_space->committed_size()); | |
65 } | 66 } |
66 | 67 |
67 const char* name_space() const { return _name_space; } | 68 const char* name_space() const { return _name_space; } |
69 | |
68 }; | 70 }; |
69 | |
70 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_GENERATIONCOUNTERS_HPP | 71 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_GENERATIONCOUNTERS_HPP |