final VmMethod[] mt = this.methodTable; int compileCount = 0; if (mt != null) { final int count = mt.length; for (int i = 0; i < count; i++) { final VmMethod method = mt[i]; if (optLevel > method.getNativeCodeOptLevel()) { loader.compileRuntime(method, optLevel); method.setModifier(true, Modifier.ACC_COMPILED); compileCount++; } } } this.modifiers |= Modifier.ACC_COMPILED; return compileCount;
return doCompileRuntime(optLevel);
	public final synchronized int compileRuntime(int optLevel) {		if (!isPrepared()) {			throw new IllegalStateException("VmType must have been prepared");		}		final VmMethod[] mt = this.methodTable;		int compileCount = 0;		if (mt != null) {			final int count = mt.length;			for (int i = 0; i < count; i++) {				final VmMethod method = mt[i];				if (optLevel > method.getNativeCodeOptLevel()) {					loader.compileRuntime(method, optLevel);					method.setModifier(true, Modifier.ACC_COMPILED);					compileCount++;				}			}		}		this.modifiers |= Modifier.ACC_COMPILED;		return compileCount;	}