class OnSpinWaitJDK8Adapter {

    static boolean onSpinWaitOrNothing() {
        if (ON_SPIN_WAIT_HANDLE != null) {
            try {
                ON_SPIN_WAIT_HANDLE.invokeExact();
                return true;
            } catch (Throwable ignore) {
            }
        }
        return false;
    }

    private  OnSpinWaitJDK8Adapter();

}