@HotSpotIntrinsicCandidate
public static long addExact (long x, long y)

Returns the sum of its arguments, throwing an exception if the result overflows a long.

Parameters:
x    the first value
y    the second value

Returns:  the result

Exceptions:
ArithmeticException    if the result overflows a long

Since:  1.8