Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8206876

SetHeapSamplingRate api for rate=0 does not behave as expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 11
    • 11
    • hotspot
    • None

      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>

            jcbeyler Jean Christophe Beyler
            pgundarlahal Prashanthram Gundarlahally
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: