--- old/src/hotspot/share/prims/jvmti.xml 2018-02-12 20:05:10.175746753 -0800 +++ new/src/hotspot/share/prims/jvmti.xml 2018-02-12 20:05:09.907747785 -0800 @@ -11539,42 +11539,20 @@ - - - - jvmtiFrameInfo + + + + jvmtiStackInfo - Pointer to the call frames. - - - - The number of frames for the trace. + Pointer to the stack information. - + The size of the object allocation. - - The thread id number. - - - - - - - jvmtiStackTrace - - - The array with the various stack traces. - - - - - - Number of traces pointed by the array . - + The thread id of the object allocation. @@ -11627,7 +11605,7 @@ rate requested and will fill internal data structures with heap allocation samples. The samples are obtained via the , , , - or functions. + or functions. new @@ -11664,12 +11642,12 @@ Stop the heap sampler in the JVM. Any sample obtained during sampling is still available via the , , , - or functions. + or functions. Stopping the heap sampler resets internal traces and counters. Therefore stopping the sampler frees any internal trace samples, any subsequent call to the , , , - or functions will return no traces. + or functions will return no traces. new @@ -11681,15 +11659,15 @@ - - Get Live Traces + + Get Object Allocation Traces Get Live Heap Sampled traces. The fields of the structure are filled in with details of the specified sampled allocation. This methods call full GC and can be costly. Use with care as it can affect performance. For - continuous profiling, perhaps prefer GetCachedTraces, which returns the live traces at the last - full GC point. + continuous profiling, perhaps prefer GetCachedObjectAllocTraces, which returns the live + traces at the last full GC point. This method can be called at any time but if the sampler is not enabled, via , it returns no traces. @@ -11699,10 +11677,27 @@ - - jvmtiStackTraces + + + jvmtiAllocTraceInfo + - The stack trace data structure to be filled. + On return, this buffer is filled with stack information for each live object. + The number of records is determined + by . +

+ Note that this buffer is allocated to include the + buffers pointed to by , which also + include the buffers pointed by + . + + All these buffers must not be separately deallocated. + + + + + + The number of traces allocated. @@ -11724,10 +11719,27 @@ - - jvmtiStackTraces + + + jvmtiAllocTraceInfo + + + On return, this buffer is filled with stack information for each live object. + The number of records is determined + by . +

+ Note that this buffer is allocated to include the + buffers pointed to by , which also + include the buffers pointed by + . + + All these buffers must not be separately deallocated. + + + + - The stack trace data structure to be filled. + The number of traces allocated. @@ -11749,10 +11761,27 @@ - - jvmtiStackTraces + + + jvmtiAllocTraceInfo + + + On return, this buffer is filled with stack information for each live object. + The number of records is determined + by . +

+ Note that this buffer is allocated to include the + buffers pointed to by , which also + include the buffers pointed by + . + + All these buffers must not be separately deallocated. + + + + - The stack trace data structure to be filled. + The number of traces allocated. @@ -11760,8 +11789,8 @@ - - Get Live Traces + + Get Cached Object Allocated Traces Get the cached sampled traces: the traces are the ones that were collected during the last full GC. The fields of the structure are filled in with @@ -11775,31 +11804,27 @@ - - jvmtiStackTraces + + + jvmtiAllocTraceInfo + - The stack trace data structure to be filled. + On return, this buffer is filled with stack information for each live object. + The number of records is determined + by . +

+ Note that this buffer is allocated to include the + buffers pointed to by , which also + include the buffers pointed by + . + + All these buffers must not be separately deallocated. - - - - - - - Release traces provided by the heap monitoring - - Release traces provided by any of the trace retrieval methods. - - new - - - - - - jvmtiStackTraces + + - The stack trace data structure to be released. + The number of traces allocated. @@ -11807,7 +11832,7 @@ - + Get the heap sampling statistics Returns a to understand the heap sampling behavior and current