Skip to content

Instantly share code, notes, and snippets.

@loverdos
Created December 30, 2014 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loverdos/f18966f8b1afd17ff2fc to your computer and use it in GitHub Desktop.
Save loverdos/f18966f8b1afd17ff2fc to your computer and use it in GitHub Desktop.
JVM crasher
{ val u = classOf[sun.misc.Unsafe].getDeclaredField("theUnsafe")
u.setAccessible(true)
u.get(null).asInstanceOf[sun.misc.Unsafe]
} freeMemory 1024
@mranest
Copy link

mranest commented Dec 30, 2014

Κάφρος!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment