--- old/src/hotspot/share/prims/jvmti.xml 2018-03-19 14:01:12.521616763 -0700 +++ new/src/hotspot/share/prims/jvmti.xml 2018-03-19 14:01:12.225617726 -0700 @@ -10357,7 +10357,7 @@ Can sample the heap. If this capability is enabled then the heap sampling method - can be called and the + can be called and the events can be enabled. @@ -11540,15 +11540,16 @@ - - Set TLAB Heap Sampling + + Set Heap Sampling Rate - Set up the TLAB allocation system to sample memory by forcing slow path execution at a given - average rate via the . The - will be the average sampling rate used throughout + Set up the allocation system to sample memory at a given + average rate via the parameter, defined + by sampling rate in bytes. The + will be the average sampling rate in bytes used throughout the execution. - Setting to 0 disables the TLAB heap sampling. + Setting to 0 disables the heap sampling. Combined with a event, the Java agent can obtain object allocations with a given sample rate. new @@ -11556,13 +11557,13 @@ - + - The monitoring rate in bytes used for sampling. The sampler will use a statistical approach to - provide in average sampling every allocated bytes. + The sampling rate in bytes used for sampling. The sampler will use a statistical approach to + provide in average sampling every allocated bytes. - Note: a low monitoring rate, such as sampling every 1024 bytes, will probably incur a high overhead. + Note: a low sampling rate, such as sampling every 1024 bytes, will probably incur a high overhead. Due to the incurred overhead, the sampler should only be used when knowing it may impact performance. On the other hand, sampling however every 1024kB has a far less chance of a high overhead since it will sample 1024 times less than the 1024-byte sampling. @@ -11571,10 +11572,7 @@ - is less than zero. - - - Calling this method without TLAB. + is less than zero. @@ -11788,9 +11786,6 @@ A method in the new class version has different modifiers than its counterpart in the old class version. - - The Thread Local Allocation Buffer system is disabled and the method requires it enabled. - @@ -13566,12 +13561,12 @@ + id="SampledObjectAlloc" const="JVMTI_EVENT_SAMPLED_OBJECT_ALLOC" num="86" since="11"> Sent when an object is sampled via the Heap Sampling Monitoring system . Therefore, this event is sent to the user if there is at least one call to - with a strictly positive integer value. + with a strictly positive integer value. The event is sent once the allocation has been done and provides the object, stack trace for the allocation, the thread allocating, the size of allocation, and class.