Java Code Examples for sun.jvm.hotspot.LinuxVtblAccess

Following code examples demonstrate how to use sun.jvm.hotspot.LinuxVtblAccessfrom java. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use sun.jvm.hotspot.LinuxVtblAccessand various code implementation of this class.

    public void attach(int processID) {
        pid = processID;
        jvmLibNames = new String[] { "libjvm.so", "libjvm_g.so", "gamma_g" };
        machDesc = new MachineDescriptionAMD64();
        debugger = new LinuxDebuggerLocal(machDesc, true);
        MyLog.getInstance().getLogger().info(String.valueOf(debugger.getClass()));
        MyLog.getInstance().getLogger().info(String.valueOf(debugger.getClass().getClassLoader()));
        debugger.attach(pid);

        db = new HotSpotTypeDataBase(machDesc, new LinuxVtblAccess(debugger, jvmLibNames), debugger, jvmLibNames);
        debugger.configureJavaPrimitiveTypeSizes(db.getJBooleanType().getSize(),
                db.getJByteType().getSize(),
                db.getJCharType().getSize(),
                db.getJDoubleType().getSize(),
                db.getJFloatType().getSize(),
                db.getJIntType().getSize(),
                db.getJLongType().getSize(),
                db.getJShortType().getSize());
        VM.initialize(db, debugger);
    } 


Advertisement
Advertisement