Skip to content

ivankrylov/onSpinWaitMultiReleaseJar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

onSpinWaitMultiReleaseJar

This makefile builds a jar that works with and JDK from 6 to 9 (and beyond). Just add this jar to the classpath and insert ThreadHints.onSpinWait() whereever you have a busy loop.

There is a simple example that you can use as a depo and also PrintAssembly to verify that the pause instruction is indeed being used (Your would need a Hotspot Disassembler for a proper print).

On my TODO list: convert this Makefile into a maven build.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published