< prev index next >

src/hotspot/share/memory/allocation.hpp

Print this page
*** 313,10 ***
--- 313,13 ---
    f(ConstantPool) \
    f(ConstantPoolCache) \
    f(Annotations) \
    f(MethodCounters) \
    f(RecordComponent) \
+   f(KlassTrainingData) \
+   f(MethodTrainingData) \
+   f(CompileTrainingData) \
    f(AdapterHandlerEntry) \
    f(AdapterFingerPrint)
  
  #define METASPACE_OBJ_TYPE_DECLARE(name) name ## Type,
  #define METASPACE_OBJ_TYPE_NAME_CASE(name) case name ## Type: return #name;

*** 352,10 ***
--- 355,12 ---
                       Type type, JavaThread* thread) throw();
                       // can't use TRAPS from this header file.
    void* operator new(size_t size, ClassLoaderData* loader_data,
                       size_t word_size,
                       Type type) throw();
+   // This is used for allocating training data. We are allocating training data in many cases where a GC cannot be triggered.
+   void* operator new(size_t size, MemTag flags) throw();
    void operator delete(void* p) = delete;
  
    // Declare a *static* method with the same signature in any subclass of MetaspaceObj
    // that should be read-only by default. See symbol.hpp for an example. This function
    // is used by the templates in metaspaceClosure.hpp
< prev index next >