SetHeapSamplingRate api for rate=0 does not behave as expected

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • 11
    • Affects Version/s: 11
    • Component/s: 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>

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

              Created:
              Updated:
              Resolved: