diff --git a/src/hotspot/share/runtime/java.cpp b/src/hotspot/share/runtime/java.cpp index f1199cdf3af26..cf52796316865 100644 --- a/src/hotspot/share/runtime/java.cpp +++ b/src/hotspot/share/runtime/java.cpp @@ -96,8 +96,6 @@ GrowableArray* collected_profiled_methods; int compare_methods(Method** a, Method** b) { - // invocation_count() may have overflowed already. Interpret it's result as - // unsigned int to shift the limit of meaningless results by a factor of 2. return (int32_t)(((uint32_t)(*b)->invocation_count() + (*b)->compiled_invocation_count()) - ((uint32_t)(*a)->invocation_count() + (*a)->compiled_invocation_count())); }