sun.jvm.hotspot.runtime.JavaVFrame Java Examples

The following examples show how to use sun.jvm.hotspot.runtime.JavaVFrame. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CommandProcessor.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 0) {
        usage();
    } else {
        ArrayList nmethods = new ArrayList();
        Threads threads = VM.getVM().getThreads();
        HTMLGenerator gen = new HTMLGenerator(false);
        for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) {
            try {
                for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) {
                    if (vf instanceof CompiledVFrame) {
                        NMethod c = ((CompiledVFrame)vf).getCode();
                        if (!nmethods.contains(c)) {
                            nmethods.add(c);
                            out.println(gen.genHTML(c));
                        }
                    }
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
 
Example #2
Source File: CommandProcessor.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 0) {
        usage();
    } else {
        ArrayList nmethods = new ArrayList();
        Threads threads = VM.getVM().getThreads();
        HTMLGenerator gen = new HTMLGenerator(false);
        for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) {
            try {
                for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) {
                    if (vf instanceof CompiledVFrame) {
                        NMethod c = ((CompiledVFrame)vf).getCode();
                        if (!nmethods.contains(c)) {
                            nmethods.add(c);
                            out.println(gen.genHTML(c));
                        }
                    }
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
 
Example #3
Source File: CommandProcessor.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 0) {
        usage();
    } else {
        ArrayList nmethods = new ArrayList();
        Threads threads = VM.getVM().getThreads();
        HTMLGenerator gen = new HTMLGenerator(false);
        for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) {
            try {
                for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) {
                    if (vf instanceof CompiledVFrame) {
                        NMethod c = ((CompiledVFrame)vf).getCode();
                        if (!nmethods.contains(c)) {
                            nmethods.add(c);
                            out.println(gen.genHTML(c));
                        }
                    }
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
 
Example #4
Source File: CommandProcessor.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 0) {
        usage();
    } else {
        ArrayList nmethods = new ArrayList();
        Threads threads = VM.getVM().getThreads();
        HTMLGenerator gen = new HTMLGenerator(false);
        for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) {
            try {
                for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) {
                    if (vf instanceof CompiledVFrame) {
                        NMethod c = ((CompiledVFrame)vf).getCode();
                        if (!nmethods.contains(c)) {
                            nmethods.add(c);
                            out.println(gen.genHTML(c));
                        }
                    }
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
 
Example #5
Source File: CommandProcessor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 0) {
        usage();
    } else {
        ArrayList nmethods = new ArrayList();
        Threads threads = VM.getVM().getThreads();
        HTMLGenerator gen = new HTMLGenerator(false);
        for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) {
            try {
                for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) {
                    if (vf instanceof CompiledVFrame) {
                        NMethod c = ((CompiledVFrame)vf).getCode();
                        if (!nmethods.contains(c)) {
                            nmethods.add(c);
                            out.println(gen.genHTML(c));
                        }
                    }
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
 
Example #6
Source File: CommandProcessor.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 0) {
        usage();
    } else {
        ArrayList nmethods = new ArrayList();
        Threads threads = VM.getVM().getThreads();
        HTMLGenerator gen = new HTMLGenerator(false);
        for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) {
            try {
                for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) {
                    if (vf instanceof CompiledVFrame) {
                        NMethod c = ((CompiledVFrame)vf).getCode();
                        if (!nmethods.contains(c)) {
                            nmethods.add(c);
                            out.println(gen.genHTML(c));
                        }
                    }
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
 
Example #7
Source File: CommandProcessor.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 0) {
        usage();
    } else {
        ArrayList nmethods = new ArrayList();
        Threads threads = VM.getVM().getThreads();
        HTMLGenerator gen = new HTMLGenerator(false);
        for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) {
            try {
                for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) {
                    if (vf instanceof CompiledVFrame) {
                        NMethod c = ((CompiledVFrame)vf).getCode();
                        if (!nmethods.contains(c)) {
                            nmethods.add(c);
                            out.println(gen.genHTML(c));
                        }
                    }
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
 
Example #8
Source File: CommandProcessor.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 0) {
        usage();
    } else {
        ArrayList nmethods = new ArrayList();
        Threads threads = VM.getVM().getThreads();
        HTMLGenerator gen = new HTMLGenerator(false);
        for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) {
            try {
                for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) {
                    if (vf instanceof CompiledVFrame) {
                        NMethod c = ((CompiledVFrame)vf).getCode();
                        if (!nmethods.contains(c)) {
                            nmethods.add(c);
                            out.println(gen.genHTML(c));
                        }
                    }
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
 
Example #9
Source File: StackFrameImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
StackFrameImpl(VirtualMachine vm, ThreadReferenceImpl thread,
               JavaVFrame jvf) {
    super(vm);
    this.thread = thread;
    this.saFrame = jvf;

    sun.jvm.hotspot.oops.Method SAMethod = jvf.getMethod();

    ReferenceType rt = ((VirtualMachineImpl)vm).referenceType(SAMethod.getMethodHolder());

    this.location = new LocationImpl(vm, rt, SAMethod, (long)jvf.getBCI());
}
 
Example #10
Source File: StackFrameImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
StackFrameImpl(VirtualMachine vm, ThreadReferenceImpl thread,
               JavaVFrame jvf) {
    super(vm);
    this.thread = thread;
    this.saFrame = jvf;

    sun.jvm.hotspot.oops.Method SAMethod = jvf.getMethod();

    ReferenceType rt = ((VirtualMachineImpl)vm).referenceType(SAMethod.getMethodHolder());

    this.location = new LocationImpl(vm, rt, SAMethod, (long)jvf.getBCI());
}
 
Example #11
Source File: StackFrameImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
StackFrameImpl(VirtualMachine vm, ThreadReferenceImpl thread,
               JavaVFrame jvf) {
    super(vm);
    this.thread = thread;
    this.saFrame = jvf;

    sun.jvm.hotspot.oops.Method SAMethod = jvf.getMethod();

    ReferenceType rt = ((VirtualMachineImpl)vm).referenceType(SAMethod.getMethodHolder());

    this.location = new LocationImpl(vm, rt, SAMethod, (long)jvf.getBCI());
}
 
Example #12
Source File: StackFrameImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
StackFrameImpl(VirtualMachine vm, ThreadReferenceImpl thread,
               JavaVFrame jvf) {
    super(vm);
    this.thread = thread;
    this.saFrame = jvf;

    sun.jvm.hotspot.oops.Method SAMethod = jvf.getMethod();

    ReferenceType rt = ((VirtualMachineImpl)vm).referenceType(SAMethod.getMethodHolder());

    this.location = new LocationImpl(vm, rt, SAMethod, (long)jvf.getBCI());
}
 
Example #13
Source File: StackFrameImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
StackFrameImpl(VirtualMachine vm, ThreadReferenceImpl thread,
               JavaVFrame jvf) {
    super(vm);
    this.thread = thread;
    this.saFrame = jvf;

    sun.jvm.hotspot.oops.Method SAMethod = jvf.getMethod();

    ReferenceType rt = ((VirtualMachineImpl)vm).referenceType(SAMethod.getMethodHolder());

    this.location = new LocationImpl(vm, rt, SAMethod, (long)jvf.getBCI());
}
 
Example #14
Source File: StackFrameImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
StackFrameImpl(VirtualMachine vm, ThreadReferenceImpl thread,
               JavaVFrame jvf) {
    super(vm);
    this.thread = thread;
    this.saFrame = jvf;

    sun.jvm.hotspot.oops.Method SAMethod = jvf.getMethod();

    ReferenceType rt = ((VirtualMachineImpl)vm).referenceType(SAMethod.getMethodHolder());

    this.location = new LocationImpl(vm, rt, SAMethod, (long)jvf.getBCI());
}
 
Example #15
Source File: StackFrameImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
StackFrameImpl(VirtualMachine vm, ThreadReferenceImpl thread,
               JavaVFrame jvf) {
    super(vm);
    this.thread = thread;
    this.saFrame = jvf;

    sun.jvm.hotspot.oops.Method SAMethod = jvf.getMethod();

    ReferenceType rt = ((VirtualMachineImpl)vm).referenceType(SAMethod.getMethodHolder());

    this.location = new LocationImpl(vm, rt, SAMethod, (long)jvf.getBCI());
}
 
Example #16
Source File: StackFrameImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
JavaVFrame getJavaVFrame() {
    return saFrame;
}
 
Example #17
Source File: StackFrameImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
JavaVFrame getJavaVFrame() {
    return saFrame;
}
 
Example #18
Source File: StackFrameImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
JavaVFrame getJavaVFrame() {
    return saFrame;
}
 
Example #19
Source File: StackFrameImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
JavaVFrame getJavaVFrame() {
    return saFrame;
}
 
Example #20
Source File: StackFrameImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
JavaVFrame getJavaVFrame() {
    return saFrame;
}
 
Example #21
Source File: StackFrameImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
JavaVFrame getJavaVFrame() {
    return saFrame;
}
 
Example #22
Source File: StackFrameImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
JavaVFrame getJavaVFrame() {
    return saFrame;
}