< prev index next >

src/hotspot/share/memory/allocation.hpp

Print this page
rev 60538 : imported patch jep387-all.patch
   1 /*
   2  * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   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  *


 125   f(mtGC,             "GC")                                                          \
 126   f(mtCompiler,       "Compiler")                                                    \
 127   f(mtJVMCI,          "JVMCI")                                                       \
 128   f(mtInternal,       "Internal")    /* memory used by VM, but does not belong to */ \
 129                                      /* any of above categories, and not used by  */ \
 130                                      /* NMT                                       */ \
 131   f(mtOther,          "Other")       /* memory not used by VM                     */ \
 132   f(mtSymbol,         "Symbol")                                                      \
 133   f(mtNMT,            "Native Memory Tracking")  /* memory used by NMT            */ \
 134   f(mtClassShared,    "Shared class space")      /* class data sharing            */ \
 135   f(mtChunk,          "Arena Chunk") /* chunk that holds content of arenas        */ \
 136   f(mtTest,           "Test")        /* Test type for verifying NMT               */ \
 137   f(mtTracing,        "Tracing")                                                     \
 138   f(mtLogging,        "Logging")                                                     \
 139   f(mtStatistics,     "Statistics")                                                  \
 140   f(mtArguments,      "Arguments")                                                   \
 141   f(mtModule,         "Module")                                                      \
 142   f(mtSafepoint,      "Safepoint")                                                   \
 143   f(mtSynchronizer,   "Synchronization")                                             \
 144   f(mtServiceability, "Serviceability")                                              \

 145   f(mtNone,           "Unknown")                                                     \
 146   //end
 147 
 148 #define MEMORY_TYPE_DECLARE_ENUM(type, human_readable) \
 149   type,
 150 
 151 /*
 152  * Memory types
 153  */
 154 enum MemoryType {
 155   MEMORY_TYPES_DO(MEMORY_TYPE_DECLARE_ENUM)
 156   mt_number_of_types   // number of memory types (mtDontTrack
 157                        // is not included as validate type)
 158 };
 159 
 160 typedef MemoryType MEMFLAGS;
 161 
 162 
 163 #if INCLUDE_NMT
 164 


   1 /*
   2  * Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   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  *


 125   f(mtGC,             "GC")                                                          \
 126   f(mtCompiler,       "Compiler")                                                    \
 127   f(mtJVMCI,          "JVMCI")                                                       \
 128   f(mtInternal,       "Internal")    /* memory used by VM, but does not belong to */ \
 129                                      /* any of above categories, and not used by  */ \
 130                                      /* NMT                                       */ \
 131   f(mtOther,          "Other")       /* memory not used by VM                     */ \
 132   f(mtSymbol,         "Symbol")                                                      \
 133   f(mtNMT,            "Native Memory Tracking")  /* memory used by NMT            */ \
 134   f(mtClassShared,    "Shared class space")      /* class data sharing            */ \
 135   f(mtChunk,          "Arena Chunk") /* chunk that holds content of arenas        */ \
 136   f(mtTest,           "Test")        /* Test type for verifying NMT               */ \
 137   f(mtTracing,        "Tracing")                                                     \
 138   f(mtLogging,        "Logging")                                                     \
 139   f(mtStatistics,     "Statistics")                                                  \
 140   f(mtArguments,      "Arguments")                                                   \
 141   f(mtModule,         "Module")                                                      \
 142   f(mtSafepoint,      "Safepoint")                                                   \
 143   f(mtSynchronizer,   "Synchronization")                                             \
 144   f(mtServiceability, "Serviceability")                                              \
 145   f(mtMetaspace,      "Metaspace")                                                   \
 146   f(mtNone,           "Unknown")                                                     \
 147   //end
 148 
 149 #define MEMORY_TYPE_DECLARE_ENUM(type, human_readable) \
 150   type,
 151 
 152 /*
 153  * Memory types
 154  */
 155 enum MemoryType {
 156   MEMORY_TYPES_DO(MEMORY_TYPE_DECLARE_ENUM)
 157   mt_number_of_types   // number of memory types (mtDontTrack
 158                        // is not included as validate type)
 159 };
 160 
 161 typedef MemoryType MEMFLAGS;
 162 
 163 
 164 #if INCLUDE_NMT
 165 


< prev index next >