On Thu, 15 Oct 2026 19:50:25 GMT, Serguei Spitsyn <[email protected]> wrote:

> 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).

This pull request has now been integrated.

Changeset: 24347ff8
Author:    Serguei Spitsyn <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/24347ff8128ba2a04dd9adbc6170bc55d1dceb89
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8394696: Need minor correction of SampledObjectAlloc spec

Reviewed-by: cjplummer, lmesnik

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

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

Reply via email to