As per jvmti spec, SetHeapSamplingRate for rate=0 should trigger SampledObjectAlloc event for every allocation. For the attached code sample, it is found, even for 100KB allocation, the callback is not invoked.
Ex: java -agentlib:HeapTest HeapTest <buffer-size>
Ex: java -agentlib:HeapTest HeapTest <buffer-size>
- duplicates
-
JDK-8205725 Update the JVMTI Spec for Heap Sampling
-
- Resolved
-