RFR: 8261447: MethodInvocationCounters frequently run into overflow [v8]
Igor Veresov
iveresov at openjdk.java.net
Tue Mar 2 20:04:06 UTC 2021
On Tue, 2 Mar 2021 17:30:47 GMT, Lutz Schmidt <lucy at openjdk.org> wrote:
>> src/hotspot/share/oops/method.cpp line 518:
>>
>>> 516: // Print a "overflow" notification to create awareness.
>>> 517: const char* addMsg;
>>> 518: unsigned int maxInt = (1U<<31) - 1;
>>
>> Why not use INT_MAX?
>
> Will change.
I'd be better to change the logic to check if the counter is ```>= InvocationCounter::count_limit``` then it's in overflow.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2511
More information about the serviceability-dev
mailing list