Code for the Inside Java blog post Deciphering the stacktrace.
Download the entire repo.
-
If you want to use Docker, you just execute
Dockerstart.bat|shwhich will build an image, and start a docker container. This is recommended since it'll download OpenJDK 15, and everything you need. -
If you'd rather build it without Docker, you need a JVM of some kind, an SDK for native compilation, and then perhaps modify the Makefile slightly to suit your system.
Make all will compile all Java classes, the native library, and the AOT compiled class.
make all
Following the Inside Java article, these are the make targets that will provoke the crashes.
This will produce an hs_err file showing stacktrace with native execution, interpreted Java and VM internal frames.
make test_loop
This will produce an hs_err file showing JIT compiled Java frames.
make test_loop
This will produce an hs_err file showing AOT compiled Java frames.
make test_aot