mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6946417
: G1: Java VisualVM does not support G1 properly
Added counters for jstat Reviewed-by: tonyp, jwilhelm, stefank, ysr, johnc
This commit is contained in:
parent
11badb92aa
commit
6663052a88
10 changed files with 575 additions and 117 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 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
|
||||
|
@ -61,10 +61,11 @@ class GenerationCounters: public CHeapObj {
|
|||
}
|
||||
|
||||
virtual void update_all() {
|
||||
_current_size->set_value(_virtual_space->committed_size());
|
||||
_current_size->set_value(_virtual_space == NULL ? 0 :
|
||||
_virtual_space->committed_size());
|
||||
}
|
||||
|
||||
const char* name_space() const { return _name_space; }
|
||||
};
|
||||
|
||||
};
|
||||
#endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_GENERATIONCOUNTERS_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue