@HotSpotIntrinsicCandidate
public static long incrementExact (long a)

Returns the argument incremented by one, throwing an exception if the result overflows a long.

Parameters:
a    the value to increment

Returns:  the result

Exceptions:
ArithmeticException    if the result overflows a long

Since:  1.8