On Tue, 2 Mar 2021 17:30:47 GMT, Lutz Schmidt <[email protected]> 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
