Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/shared/cSpaceCounters.hpp @ 6725:da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author | coleenp |
---|---|
date | Sat, 01 Sep 2012 13:25:18 -0400 |
parents | d2a62e0f25eb |
children |
comparison
equal
deleted
inserted
replaced
6724:36d1d483d5d6 | 6725:da91efe96a93 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2002, 2012, 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. |
36 friend class VMStructs; | 36 friend class VMStructs; |
37 | 37 |
38 private: | 38 private: |
39 PerfVariable* _capacity; | 39 PerfVariable* _capacity; |
40 PerfVariable* _used; | 40 PerfVariable* _used; |
41 PerfVariable* _max_capacity; | |
41 | 42 |
42 // Constant PerfData types don't need to retain a reference. | 43 // Constant PerfData types don't need to retain a reference. |
43 // However, it's a good idea to document them here. | 44 // However, it's a good idea to document them here. |
44 // PerfConstant* _size; | 45 // PerfConstant* _size; |
45 | 46 |
53 | 54 |
54 ~CSpaceCounters() { | 55 ~CSpaceCounters() { |
55 if (_name_space != NULL) FREE_C_HEAP_ARRAY(char, _name_space, mtInternal); | 56 if (_name_space != NULL) FREE_C_HEAP_ARRAY(char, _name_space, mtInternal); |
56 } | 57 } |
57 | 58 |
58 inline void update_capacity() { | 59 virtual inline void update_capacity() { |
59 _capacity->set_value(_space->capacity()); | 60 _capacity->set_value(_space->capacity()); |
60 } | 61 } |
61 | 62 |
62 inline void update_used() { | 63 virtual inline void update_used() { |
63 _used->set_value(_space->used()); | 64 _used->set_value(_space->used()); |
64 } | 65 } |
65 | 66 |
66 inline void update_all() { | 67 virtual inline void update_all() { |
67 update_used(); | 68 update_used(); |
68 update_capacity(); | 69 update_capacity(); |
69 } | 70 } |
70 | 71 |
71 const char* name_space() const { return _name_space; } | 72 const char* name_space() const { return _name_space; } |