@Test public void shouldDoNothingOnSpinWait() { for (int i = 0; i < 100; i++) { ThreadHints.onSpinWait(); } }
public static void onSpinWait() { if (null != ON_SPIN_WAIT_METHOD_HANDLE) { try { ON_SPIN_WAIT_METHOD_HANDLE.invokeExact(); } catch (final Throwable ignore) { } } }
ThreadHints { public static void onSpinWait() { if (null != ON_SPIN_WAIT_METHOD_HANDLE) { try { ON_SPIN_WAIT_METHOD_HANDLE.invokeExact(); } catch (final Throwable ignore) { } } } }
ThreadHints { public static void onSpinWait() { if (null != ON_SPIN_WAIT_METHOD_HANDLE) { try { ON_SPIN_WAIT_METHOD_HANDLE.invokeExact(); } catch (final Throwable ignore) { } } } private  ThreadHints(); }
ThreadHints { public static void onSpinWait() { if (null != ON_SPIN_WAIT_METHOD_HANDLE) { try { ON_SPIN_WAIT_METHOD_HANDLE.invokeExact(); } catch (final Throwable ignore) { } } } private  ThreadHints(); static void onSpinWait(); }
ThreadHints { public static void onSpinWait() { if (null != ON_SPIN_WAIT_METHOD_HANDLE) { try { ON_SPIN_WAIT_METHOD_HANDLE.invokeExact(); } catch (final Throwable ignore) { } } } private  ThreadHints(); static void onSpinWait(); static final String DISABLE_ON_SPIN_WAIT_PROP_NAME; }