Printing Generated Assembly Code From The Hotspot JIT Compiler documented back in 2013 how to view Java Hotspot generated assembly code. While still useful, the disassembler plugin referenced in the post is no longer available in binary form as the Kenai project has been decommissioned. A number of references are available on how to build the… Continue reading Java 10 HotSpot Disassembly on macOS High Sierra
Category: Java
The Cost of Contention
Martin Thompson first reported on the cost of contention using a simple benchmark that measures the time to increment a 64-bit counter 500 million times using various strategies. Results were reported here (section 3.1) and here (Managing Contention vs. Doing Real Work). I re-implemented this benchmark here. https://gist.github.com/nikolaybotevb/bc8cc1cdfa2f7cc212a915c487771d53 The results I observed (running on Java 9… Continue reading The Cost of Contention
Gradle Build with Java 9 Modules and Kotlin
When starting a new Java project recently, I found it surprisingly difficult to setup the Gradle build with support for Java 9 modules and the Kotlin language. For others who might find themselves in the same bind, here is a gist with the simplest, minimal gradle setup I came up with that includes: A multi-project… Continue reading Gradle Build with Java 9 Modules and Kotlin