package org.selfstudy.javalang.common.bridgemethod;

//import sun.jvm.hotspot.oops.Method;
//import sun.jvm.hotspot.oops.Symbol;
//import sun.jvm.hotspot.runtime.Frame;
//import sun.jvm.hotspot.runtime.JavaThread;
//
//import java.io.PrintStream;

/**
 * @author liqingsong on 2018/5/22
 * @project javalang-common
 */
public class JvmTest {
//    public void printStack(JavaThread cur, PrintStream ps){
//        Frame frame = cur.getCurrentFrameGuess();
//        while (frame != null){
//            ps.println("frame: pc=" + frame.getPC() + ", sp=" + frame.getSP() + ", fp=" + frame.getFP());
//            Method method = frame.getInterpreterFrameMethod();
//
//            if(null != method){
//                Symbol symbol = method.getName();
//                ps.println("method name: " + symbol.asString());
//            }
//
//            if(!frame.isFirstFrame()){
////                frame = frame.
//            }else{
//                frame = null;
//            }
//        }
//    }
}
