On Tue, 2 Mar 2021 20:55:50 GMT, Igor Veresov <[email protected]> wrote:

>> With overflow I do not mean "counter overflow" as it is used to trigger 
>> compiler activities but plain simple "range of singed int exceeded". Should 
>> I use different wording? E.g. "counter in signed int overflow"?
>
> Then it will never happen. These values come from 
> ```InvocationCounter::count()```. And it will never return a value > 2^31 - 1.

Sorry, it can return 2^31. Which would be an indication of a counter overflow 
(InvocationCounter::count_limit == 2^31). Your code is correct in both senses. 
It is a counter overflow and a signed int overflow.

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

PR: https://git.openjdk.java.net/jdk/pull/2511

Reply via email to