Unsafe Java World - Crossing the Borderline - JokerConf 2014 Saint Petersburg

8
Unsafe Java World http://www.underwhelmedcomic.com/wp-content/uploads/2012/03/runningdude.jpg Crossing the Borderline

Transcript of Unsafe Java World - Crossing the Borderline - JokerConf 2014 Saint Petersburg

Page 1: Unsafe Java World - Crossing the Borderline - JokerConf 2014 Saint Petersburg

Unsafe Java World

http://www.underwhelmedcomic.com/wp-content/uploads/2012/03/runningdude.jpg

Crossing the Borderline

Page 2: Unsafe Java World - Crossing the Borderline - JokerConf 2014 Saint Petersburg

WA R N I N GThe following talk features stunts and code examples performed either by

professional insane people orunder the supervision of crazy guys.

Accordingly, JokerConf and the presentersmust insist that no one attempt to

try to use the obviously non-production-readystunts and Java examples on this talk.

Page 3: Unsafe Java World - Crossing the Borderline - JokerConf 2014 Saint Petersburg

Principal Consultant

Peter LawreyHigher Frequency Trading

3rd on StackOverflow for Java Founder of Performance Java User’s Group

Vanilla Java Blog has had 3mio views

Page 4: Unsafe Java World - Crossing the Borderline - JokerConf 2014 Saint Petersburg

Chris EngelbertHazelcast, Inc.

Twitter: @noctarius2k

8+ years Java Weirdo

Travel Management Gaming Industry

Distributed Computing

Apache Committer

Page 5: Unsafe Java World - Crossing the Borderline - JokerConf 2014 Saint Petersburg

Chris EngelbertHazelcast, Inc.

Twitter: @noctarius2k

8+ years Java Weirdo

Travel Management Gaming Industry

Distributed Computing

Apache Committer

Page 6: Unsafe Java World - Crossing the Borderline - JokerConf 2014 Saint Petersburg

1. Hacking Immutable2. Easy Offheap3. CompareAndSwap4. Bytecode Instantiation Hack 5. Resetting Hashcode6. Enum Instances7. Sneaky Throw Exception8. Exploit Security Check9. (Replacing JRE Classes)

http://www.firstpourwine.com/wp-content/uploads/2012/05/2009-Running-w-Scissors.jpg

Page 7: Unsafe Java World - Crossing the Borderline - JokerConf 2014 Saint Petersburg

Demostration

http://mycraftyadventures.com/wp-content/uploads/2011/11/scissors.jpg

http://github.com/noctarius/unsafe-java-world

Page 8: Unsafe Java World - Crossing the Borderline - JokerConf 2014 Saint Petersburg

THANK YOU!ANY QUESTIONS?

@noctarius2khttp://www.sourceprojects.org

@PeterLawreyhttp://www.vanillajava.blogspot.de