src/hotspot/share/include/jmm.h
changeset 58348 c29e49148be7
parent 58223 778fc2dcbdaa
child 58679 9c3209ff7550
equal deleted inserted replaced
58347:ac24594d2c8c 58348:c29e49148be7
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    48   JMM_VERSION_1_0 = 0x20010000,
    48   JMM_VERSION_1_0 = 0x20010000,
    49   JMM_VERSION_1_1 = 0x20010100, // JDK 6
    49   JMM_VERSION_1_1 = 0x20010100, // JDK 6
    50   JMM_VERSION_1_2 = 0x20010200, // JDK 7
    50   JMM_VERSION_1_2 = 0x20010200, // JDK 7
    51   JMM_VERSION_1_2_1 = 0x20010201, // JDK 7 GA
    51   JMM_VERSION_1_2_1 = 0x20010201, // JDK 7 GA
    52   JMM_VERSION_1_2_2 = 0x20010202,
    52   JMM_VERSION_1_2_2 = 0x20010202,
    53   JMM_VERSION_2  = 0x20020000,  // JDK 10
    53   JMM_VERSION_2   = 0x20020000, // JDK 10
    54   JMM_VERSION     = 0x20020000
    54   JMM_VERSION_3   = 0x20030000, // JDK 14
       
    55   JMM_VERSION     = JMM_VERSION_3
    55 };
    56 };
    56 
    57 
    57 typedef struct {
    58 typedef struct {
    58   unsigned int isLowMemoryDetectionSupported : 1;
    59   unsigned int isLowMemoryDetectionSupported : 1;
    59   unsigned int isCompilationTimeMonitoringSupported : 1;
    60   unsigned int isCompilationTimeMonitoringSupported : 1;
   237   jobjectArray (JNICALL *GetMemoryManagers)      (JNIEnv* env, jobject pool);
   238   jobjectArray (JNICALL *GetMemoryManagers)      (JNIEnv* env, jobject pool);
   238 
   239 
   239   jobject      (JNICALL *GetMemoryPoolUsage)     (JNIEnv* env, jobject pool);
   240   jobject      (JNICALL *GetMemoryPoolUsage)     (JNIEnv* env, jobject pool);
   240   jobject      (JNICALL *GetPeakMemoryPoolUsage) (JNIEnv* env, jobject pool);
   241   jobject      (JNICALL *GetPeakMemoryPoolUsage) (JNIEnv* env, jobject pool);
   241 
   242 
       
   243   jlong        (JNICALL *GetOneThreadAllocatedMemory)
       
   244                                                  (JNIEnv *env,
       
   245                                                   jlong thread_id);
   242   void         (JNICALL *GetThreadAllocatedMemory)
   246   void         (JNICALL *GetThreadAllocatedMemory)
   243                                                  (JNIEnv *env,
   247                                                  (JNIEnv *env,
   244                                                   jlongArray ids,
   248                                                   jlongArray ids,
   245                                                   jlongArray sizeArray);
   249                                                   jlongArray sizeArray);
   246 
   250