Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/runtime/include/j9memcategories.h
5986 views
1
/*******************************************************************************
2
* Copyright (c) 2010, 2022 IBM Corp. and others
3
*
4
* This program and the accompanying materials are made available under
5
* the terms of the Eclipse Public License 2.0 which accompanies this
6
* distribution and is available at https://www.eclipse.org/legal/epl-2.0/
7
* or the Apache License, Version 2.0 which accompanies this distribution and
8
* is available at https://www.apache.org/licenses/LICENSE-2.0.
9
*
10
* This Source Code may also be made available under the following
11
* Secondary Licenses when the conditions for such availability set
12
* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
13
* General Public License, version 2 with the GNU Classpath
14
* Exception [1] and GNU General Public License, version 2 with the
15
* OpenJDK Assembly Exception [2].
16
*
17
* [1] https://www.gnu.org/software/classpath/license.html
18
* [2] http://openjdk.java.net/legal/assembly-exception.html
19
*
20
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
21
*******************************************************************************/
22
23
#ifndef J9MEMCATEGORIES_H
24
#define J9MEMCATEGORIES_H
25
26
/*
27
* This include file includes all the categories from omrmemcategories.h.
28
* j9vm/j9memcategories.c organises the whole set into the tree for the JVM.
29
*/
30
#include "omrmemcategories.h"
31
32
/*
33
* To add a new category:
34
* - Add a new #define to the end of this list
35
* - Add the corresponding entries in VM_Sidecar/j9vm/j9memcategories.c
36
*
37
* Don't delete old categories or move existing ones.
38
* They may be in use by the class library native code.
39
* Only add new categories at the end of the range.
40
* (The unused categories have moved to OMR and can be re-used.)
41
*/
42
#define J9MEM_CATEGORY_JRE 0
43
#define J9MEM_CATEGORY_UNUSED1 1 /* #define J9MEM_CATEGORY_VM 1 */
44
#define J9MEM_CATEGORY_CLASSES 2
45
#define J9MEM_CATEGORY_CLASSES_SHC_CACHE 3
46
#define J9MEM_CATEGORY_CUDA4J 4
47
#define J9MEM_CATEGORY_UNUSED5 5 /* #define J9MEM_CATEGORY_MM_RUNTIME_HEAP 7 */
48
#define J9MEM_CATEGORY_UNUSED6 6 /* #define J9MEM_CATEGORY_THREADS 6 */
49
#define J9MEM_CATEGORY_UNUSED7 7 /* #define J9MEM_CATEGORY_THREADS_RUNTIME_STACK 7 */
50
#define J9MEM_CATEGORY_UNUSED8 8 /* #define J9MEM_CATEGORY_THREADS_NATIVE_STACK 8 */
51
#define J9MEM_CATEGORY_UNUSED9 9 /* #define J9MEM_CATEGORY_TRACE 9 */
52
#define J9MEM_CATEGORY_UNUSED10 10 /* #define J9MEM_CATEGORY_JIT 10 */
53
#define J9MEM_CATEGORY_UNUSED11 11 /* #define J9MEM_CATEGORY_JIT_CODE_CACHE 11 */
54
#define J9MEM_CATEGORY_UNUSED12 12 /* #define J9MEM_CATEGORY_JIT_DATA_CACHE 12 */
55
#if JAVA_SPEC_VERSION >= 16
56
#define J9MEM_CATEGORY_VM_FFI 13
57
#else /* JAVA_SPEC_VERSION >= 16 */
58
#define J9MEM_CATEGORY_UNUSED13 13 /* #define J9MEM_CATEGORY_HARMONY 13 */
59
#endif /* JAVA_SPEC_VERSION >= 16 */
60
#define J9MEM_CATEGORY_SUN_MISC_UNSAFE_ALLOCATE 14
61
#define J9MEM_CATEGORY_VM_JCL 15
62
#define J9MEM_CATEGORY_CLASS_LIBRARIES 16
63
#define J9MEM_CATEGORY_JVMTI 17
64
#define J9MEM_CATEGORY_JVMTI_ALLOCATE 18
65
#define J9MEM_CATEGORY_JNI 19
66
#define J9MEM_CATEGORY_SUN_JCL 20
67
#define J9MEM_CATEGORY_CLASSLIB_IO_MATH_LANG 21
68
#define J9MEM_CATEGORY_CLASSLIB_ZIP 22
69
#define J9MEM_CATEGORY_CLASSLIB_WRAPPERS 23
70
#define J9MEM_CATEGORY_CLASSLIB_WRAPPERS_MALLOC 24
71
#define J9MEM_CATEGORY_CLASSLIB_WRAPPERS_EBCDIC 25
72
#define J9MEM_CATEGORY_CLASSLIB_NETWORKING 26
73
#define J9MEM_CATEGORY_CLASSLIB_NETWORKING_NET 27
74
#define J9MEM_CATEGORY_CLASSLIB_NETWORKING_NIO 28
75
#define J9MEM_CATEGORY_CLASSLIB_NETWORKING_RMI 29
76
#define J9MEM_CATEGORY_CLASSLIB_GUI 30
77
#define J9MEM_CATEGORY_CLASSLIB_GUI_AWT 31
78
#define J9MEM_CATEGORY_CLASSLIB_GUI_MAWT 32
79
#define J9MEM_CATEGORY_CLASSLIB_GUI_JAWT 33
80
#define J9MEM_CATEGORY_CLASSLIB_GUI_MEDIALIB 34
81
#define J9MEM_CATEGORY_CLASSLIB_FONT 35
82
#define J9MEM_CATEGORY_CLASSLIB_SOUND 36
83
#define J9MEM_CATEGORY_UNUSED37 37
84
#define J9MEM_CATEGORY_SUN_MISC_UNSAFE_ALLOCATEDBB 38
85
#define J9MEM_CATEGORY_MODULES 39
86
87
#endif /* J9MEMCATEGORIES_H */
88
89