private static void initialize(TypeDataBase db) { if (VM.getVM().isServerCompiler()) { Type type = db.lookupType("Matcher"); Field f = type.getField("_regEncode"); matcherRegEncodeAddr = f.getStaticFieldAddress(); } }
private static synchronized void initialize(TypeDataBase db) { Type type = db.lookupType("JNIHandleBlock"); handlesField = type.getField("_handles"); topField = type.getCIntegerField("_top"); nextField = type.getAddressField("_next"); blockSizeInOops = db.lookupIntConstant("JNIHandleBlock::block_size_in_oops").intValue(); }