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>

        1. HeapTest.c
          3 kB
          Prashanthram Gundarlahally
        2. HeapTest.java
          0.7 kB
          Prashanthram Gundarlahally

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

              Created:
              Updated:
              Resolved: