Java code for JVM internals testing