I’m looking at garbage collection with statepoints in LLVM, and with substantial difficulty I’ve got to a point where I have a working example, which I intend to fit the actual GC into later. This post is my attempt to help others get started on statepoints with less difficulty. It begins with a brief explanation… Continue reading LLVM garbage collection statepoints demo
Tag: macos
A simple Opus audio player with JNI
In this fourth part of the JNI tutorial series, we use the Java native interface to maintain an external resource with a state. Specifically, our example opens and plays an Opus audio file through the opusfile API, but the pattern is general enough to be used for any kind of resource. Getting a handle As… Continue reading A simple Opus audio player with JNI
Tutorial: The Java native interface to C code
This post is the first in a tutorial series about how JNI, the Java native interface, can be used to call C code from a Java program. We start with the basics and finish with a useful Java class that uses an external library for its core operation. Along the way, we look at some… Continue reading Tutorial: The Java native interface to C code