8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc_implementation/shared/ageTable.hpp"
27 #include "gc_implementation/shared/gcPolicyCounters.hpp"
28 #include "memory/collectorPolicy.hpp"
29 #include "memory/resourceArea.hpp"
30 #include "memory/sharedHeap.hpp"
31 #include "runtime/atomic.inline.hpp"
32 #include "utilities/copy.hpp"
33
34 /* Copyright (c) 1992-2009 Oracle and/or its affiliates, and Stanford University.
35 See the LICENSE file for license information. */
36
37 ageTable::ageTable(bool global) {
38
39 clear();
40
41 if (UsePerfData && global) {
42
43 ResourceMark rm;
44 EXCEPTION_MARK;
45
46 const char* agetable_ns = "generation.0.agetable";
47 const char* bytes_ns = PerfDataManager::name_space(agetable_ns, "bytes");
48
49 for(int age = 0; age < table_size; age ++) {
50 char age_name[10];
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc_implementation/shared/ageTable.hpp"
27 #include "gc_implementation/shared/gcPolicyCounters.hpp"
28 #include "gc_interface/collectedHeap.hpp"
29 #include "memory/collectorPolicy.hpp"
30 #include "memory/resourceArea.hpp"
31 #include "runtime/atomic.inline.hpp"
32 #include "utilities/copy.hpp"
33
34 /* Copyright (c) 1992-2009 Oracle and/or its affiliates, and Stanford University.
35 See the LICENSE file for license information. */
36
37 ageTable::ageTable(bool global) {
38
39 clear();
40
41 if (UsePerfData && global) {
42
43 ResourceMark rm;
44 EXCEPTION_MARK;
45
46 const char* agetable_ns = "generation.0.agetable";
47 const char* bytes_ns = PerfDataManager::name_space(agetable_ns, "bytes");
48
49 for(int age = 0; age < table_size; age ++) {
50 char age_name[10];
|