< prev index next >

src/hotspot/share/memory/allocation.hpp

Print this page
*** 312,11 ***
    f(MethodData) \
    f(ConstantPool) \
    f(ConstantPoolCache) \
    f(Annotations) \
    f(MethodCounters) \
!   f(RecordComponent)
  
  #define METASPACE_OBJ_TYPE_DECLARE(name) name ## Type,
  #define METASPACE_OBJ_TYPE_NAME_CASE(name) case name ## Type: return #name;
  
    enum Type {
--- 312,16 ---
    f(MethodData) \
    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;
  
    enum Type {

*** 350,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();
+   // HACK -- this is used for allocating training data. See JDK-8331086
+   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 >