The JVMTI SampledObjectAlloc spec has this statement:
 "If another sampling interval is required, the user can call 
SetHeapSamplingInterval with a strictly positive integer value, representing 
the new sampling interval."

However, 0 is also a valid sampling interval as the JVMTI 
SetHeapSamplingInterval spec states:
  " Setting sampling_interval to 0 will cause an event to be generated by each 
allocation supported by the system once the new interval is taken into account. 
"

The SampledObjectAlloc spec has to state this instead:
 "If another sampling interval is required, the user can call 
SetHeapSamplingInterval with a non-negative integer value, representing the new 
sampling interval."
 
 Testing: N/A

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8394696: Need minor correction of SampledObjectAlloc spec

Changes: https://git.openjdk.org/jdk/pull/33389/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33389&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8394696
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/33389.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33389/head:pull/33389

PR: https://git.openjdk.org/jdk/pull/33389

Reply via email to