vmClass.resolveCpRefs(clsMgr);
vmClass.resolveCpRefs();
    private final void compileClasses(NativeStream os, VmArchitecture arch)            throws ClassNotFoundException {        final NativeCodeCompiler[] compilers = arch.getCompilers();        final int optLevel = compilers.length - 1;        // Use the most optimizing compiler here        final NativeCodeCompiler compiler = compilers[optLevel];        int oldCount;        int newCount;        boolean again;        do {            again = false;            oldCount = clsMgr.getLoadedClassCount();            for (VmType< ? > vmClass : clsMgr.getLoadedClasses()) {                vmClass.link();                final boolean compHigh = isCompileHighOptLevel(vmClass);                try {                    if (!vmClass.isCpRefsResolved() && compHigh) {                        // log("Resolving CP of " + vmClass.getName(),                        // Project.MSG_VERBOSE);                        vmClass.resolveCpRefs(clsMgr);                        again = true;                    }                    final int mcnt;                    final int startLength = os.getLength();                    if (compHigh) {                        log("Full Compile " + vmClass.getName(),                                Project.MSG_VERBOSE);                        mcnt = vmClass.compileBootstrap(compiler, os, optLevel);                        totalHighMethods += mcnt;                        totalHighMethodSize += (os.getLength() - startLength);                    } else {                        log("Min. Compile " + vmClass.getName(),                                Project.MSG_VERBOSE);                        mcnt = vmClass.compileBootstrap(compilers[0], os, 0);                        totalLowMethods += mcnt;                        totalLowMethodSize += (os.getLength() - startLength);                    }                    again |= (mcnt > 0);                } catch (Throwable ex) {                    throw new BuildException("Compile of " + vmClass.getName()                            + " failed", ex);                }                if (!vmClass.isCompiled()) {                    throw new BuildException(                            "Class should have been compiled by now");                }            }            newCount = clsMgr.getLoadedClassCount();            if (false) {                log("oldCount " + oldCount + ", newCount " + newCount,                        Project.MSG_INFO);            }        } while ((oldCount != newCount) || again);        log("End of compileClasses", Project.MSG_VERBOSE);    }