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 #ifndef SHARE_VM_MEMORY_METASPACECHUNKFREELISTSUMMARY_HPP
26 #define SHARE_VM_MEMORY_METASPACECHUNKFREELISTSUMMARY_HPP
27
28 #include "memory/allocation.hpp"
29
30 class MetaspaceChunkFreeListSummary {
31 size_t _num_specialized_chunks;
32 size_t _num_small_chunks;
33 size_t _num_medium_chunks;
34 size_t _num_humongous_chunks;
35
36 size_t _specialized_chunks_size_in_bytes;
37 size_t _small_chunks_size_in_bytes;
38 size_t _medium_chunks_size_in_bytes;
39 size_t _humongous_chunks_size_in_bytes;
40
41 public:
42 MetaspaceChunkFreeListSummary() :
43 _num_specialized_chunks(0),
44 _num_small_chunks(0),
45 _num_medium_chunks(0),
46 _num_humongous_chunks(0),
47 _specialized_chunks_size_in_bytes(0),
48 _small_chunks_size_in_bytes(0),
|
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 #ifndef SHARE_VM_MEMORY_METASPACECHUNKFREELISTSUMMARY_HPP
26 #define SHARE_VM_MEMORY_METASPACECHUNKFREELISTSUMMARY_HPP
27
28
29 class MetaspaceChunkFreeListSummary {
30 size_t _num_specialized_chunks;
31 size_t _num_small_chunks;
32 size_t _num_medium_chunks;
33 size_t _num_humongous_chunks;
34
35 size_t _specialized_chunks_size_in_bytes;
36 size_t _small_chunks_size_in_bytes;
37 size_t _medium_chunks_size_in_bytes;
38 size_t _humongous_chunks_size_in_bytes;
39
40 public:
41 MetaspaceChunkFreeListSummary() :
42 _num_specialized_chunks(0),
43 _num_small_chunks(0),
44 _num_medium_chunks(0),
45 _num_humongous_chunks(0),
46 _specialized_chunks_size_in_bytes(0),
47 _small_chunks_size_in_bytes(0),
|