You never heard of sun.misc.Unsafe? You may be using it without realising it. Are you using Spring or Hibernate? 90% of todays applications use sun.misc.Unsafe directly or indirectly. Unsafe is meant to be an API internal to the JVM but since it turned out to be extremely powerful, more and more frameworks have used it.
This talk will show different usecases of sun.misc.Unsafe. Some are commonly used in production environments like fast Serialization, Offheap or to build lock-free algorithms, some not suitable for production but fun to play with breaking the rules of what you can do in Java.
After the talk you’ll understand what is possible and what might help you, but not to forget, this talk is given with a big warning: Don’t Try That At Home!
- Peter LawreyLikes to inspire developers to improve the craftmanship of their solutions, engineer their systems for simplicity and performance, and enjoy their work more by being creative and innovative. Has a popular blog "Vanilla Java" which has had over 3 million page views, is 3rd on StackOverflow.com for Java with over 10K answers. Founder of the Performance Java User's Group with 900 members. Lead developer of the OpenHFT project which includes support for off heap memory such as embedded databases supporting billions of keys-values with 1 micro-second update latency, thread pinning and low latency persisted IPC (as low as 100 nano-seconds)". @peterlawrey