1.1 --- a/src/share/vm/gc_implementation/shared/cSpaceCounters.hpp Fri Aug 31 16:39:35 2012 -0700 1.2 +++ b/src/share/vm/gc_implementation/shared/cSpaceCounters.hpp Sat Sep 01 13:25:18 2012 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2002, 2012, 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 @@ -38,6 +38,7 @@ 1.11 private: 1.12 PerfVariable* _capacity; 1.13 PerfVariable* _used; 1.14 + PerfVariable* _max_capacity; 1.15 1.16 // Constant PerfData types don't need to retain a reference. 1.17 // However, it's a good idea to document them here. 1.18 @@ -55,15 +56,15 @@ 1.19 if (_name_space != NULL) FREE_C_HEAP_ARRAY(char, _name_space, mtInternal); 1.20 } 1.21 1.22 - inline void update_capacity() { 1.23 + virtual inline void update_capacity() { 1.24 _capacity->set_value(_space->capacity()); 1.25 } 1.26 1.27 - inline void update_used() { 1.28 + virtual inline void update_used() { 1.29 _used->set_value(_space->used()); 1.30 } 1.31 1.32 - inline void update_all() { 1.33 + virtual inline void update_all() { 1.34 update_used(); 1.35 update_capacity(); 1.36 }