Path: blob/master/runtime/include/j9memcategories.h
5986 views
/*******************************************************************************1* Copyright (c) 2010, 2022 IBM Corp. and others2*3* This program and the accompanying materials are made available under4* the terms of the Eclipse Public License 2.0 which accompanies this5* distribution and is available at https://www.eclipse.org/legal/epl-2.0/6* or the Apache License, Version 2.0 which accompanies this distribution and7* is available at https://www.apache.org/licenses/LICENSE-2.0.8*9* This Source Code may also be made available under the following10* Secondary Licenses when the conditions for such availability set11* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU12* General Public License, version 2 with the GNU Classpath13* Exception [1] and GNU General Public License, version 2 with the14* OpenJDK Assembly Exception [2].15*16* [1] https://www.gnu.org/software/classpath/license.html17* [2] http://openjdk.java.net/legal/assembly-exception.html18*19* 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-exception20*******************************************************************************/2122#ifndef J9MEMCATEGORIES_H23#define J9MEMCATEGORIES_H2425/*26* This include file includes all the categories from omrmemcategories.h.27* j9vm/j9memcategories.c organises the whole set into the tree for the JVM.28*/29#include "omrmemcategories.h"3031/*32* To add a new category:33* - Add a new #define to the end of this list34* - Add the corresponding entries in VM_Sidecar/j9vm/j9memcategories.c35*36* Don't delete old categories or move existing ones.37* They may be in use by the class library native code.38* Only add new categories at the end of the range.39* (The unused categories have moved to OMR and can be re-used.)40*/41#define J9MEM_CATEGORY_JRE 042#define J9MEM_CATEGORY_UNUSED1 1 /* #define J9MEM_CATEGORY_VM 1 */43#define J9MEM_CATEGORY_CLASSES 244#define J9MEM_CATEGORY_CLASSES_SHC_CACHE 345#define J9MEM_CATEGORY_CUDA4J 446#define J9MEM_CATEGORY_UNUSED5 5 /* #define J9MEM_CATEGORY_MM_RUNTIME_HEAP 7 */47#define J9MEM_CATEGORY_UNUSED6 6 /* #define J9MEM_CATEGORY_THREADS 6 */48#define J9MEM_CATEGORY_UNUSED7 7 /* #define J9MEM_CATEGORY_THREADS_RUNTIME_STACK 7 */49#define J9MEM_CATEGORY_UNUSED8 8 /* #define J9MEM_CATEGORY_THREADS_NATIVE_STACK 8 */50#define J9MEM_CATEGORY_UNUSED9 9 /* #define J9MEM_CATEGORY_TRACE 9 */51#define J9MEM_CATEGORY_UNUSED10 10 /* #define J9MEM_CATEGORY_JIT 10 */52#define J9MEM_CATEGORY_UNUSED11 11 /* #define J9MEM_CATEGORY_JIT_CODE_CACHE 11 */53#define J9MEM_CATEGORY_UNUSED12 12 /* #define J9MEM_CATEGORY_JIT_DATA_CACHE 12 */54#if JAVA_SPEC_VERSION >= 1655#define J9MEM_CATEGORY_VM_FFI 1356#else /* JAVA_SPEC_VERSION >= 16 */57#define J9MEM_CATEGORY_UNUSED13 13 /* #define J9MEM_CATEGORY_HARMONY 13 */58#endif /* JAVA_SPEC_VERSION >= 16 */59#define J9MEM_CATEGORY_SUN_MISC_UNSAFE_ALLOCATE 1460#define J9MEM_CATEGORY_VM_JCL 1561#define J9MEM_CATEGORY_CLASS_LIBRARIES 1662#define J9MEM_CATEGORY_JVMTI 1763#define J9MEM_CATEGORY_JVMTI_ALLOCATE 1864#define J9MEM_CATEGORY_JNI 1965#define J9MEM_CATEGORY_SUN_JCL 2066#define J9MEM_CATEGORY_CLASSLIB_IO_MATH_LANG 2167#define J9MEM_CATEGORY_CLASSLIB_ZIP 2268#define J9MEM_CATEGORY_CLASSLIB_WRAPPERS 2369#define J9MEM_CATEGORY_CLASSLIB_WRAPPERS_MALLOC 2470#define J9MEM_CATEGORY_CLASSLIB_WRAPPERS_EBCDIC 2571#define J9MEM_CATEGORY_CLASSLIB_NETWORKING 2672#define J9MEM_CATEGORY_CLASSLIB_NETWORKING_NET 2773#define J9MEM_CATEGORY_CLASSLIB_NETWORKING_NIO 2874#define J9MEM_CATEGORY_CLASSLIB_NETWORKING_RMI 2975#define J9MEM_CATEGORY_CLASSLIB_GUI 3076#define J9MEM_CATEGORY_CLASSLIB_GUI_AWT 3177#define J9MEM_CATEGORY_CLASSLIB_GUI_MAWT 3278#define J9MEM_CATEGORY_CLASSLIB_GUI_JAWT 3379#define J9MEM_CATEGORY_CLASSLIB_GUI_MEDIALIB 3480#define J9MEM_CATEGORY_CLASSLIB_FONT 3581#define J9MEM_CATEGORY_CLASSLIB_SOUND 3682#define J9MEM_CATEGORY_UNUSED37 3783#define J9MEM_CATEGORY_SUN_MISC_UNSAFE_ALLOCATEDBB 3884#define J9MEM_CATEGORY_MODULES 398586#endif /* J9MEMCATEGORIES_H */878889