mini-tracing
branch in the Javelus)Checkout the build instructions of Javelus.
jvm.dll
in your local JDK or JRE installation.hotspot
in your built directory.To be added.
We mainly trace locking and unlocking of the following locks.
synchronized
keyword.java.util.concurrent.locks
.The following options should be assigned when starting the JVM (MiniTracing).
Enable MiniTracing
-XX:+EnableMiniTracing
-XX:+MiniTracingGlobalLogger
-XX:+MiniTracingLockAcquire
-XX:+MiniTracingLockRelease
-XX:+MiniTracingObjectAlloc
-XX:+MiniTracingForwardPointers
Disable JVM optimizations
-XX:-TieredCompilation
-XX:+UseHeavyMonitors
-XX:EmitSync=5
-XX:-UseCompressedOops
-XX:-UseCompressedClassPointers
-XX:-DoEscapeAnalysis
Replace the implementation of locks in the package java.util.concurrent.locks
.
For the modified implementation, check https://bitbucket.org/txgu/phd/src/master/concurrent-lock-hooks/.
-Xbootclasspath/p:<path-to->
Feel free to contact me if you have any problem in running this easy-to-use tracer for locks in the HotSpot JVM.