1

我正在努力解决这个问题,我可以得到你的帮助。

运行环境:

Mac Book 10.15.7 

java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)

org.openjdk.jol.jol-core:0.14

运行代码:

public class ClassHeader {
}

public class ClassHeaderTest {
    public static void main(String[] args) {
        // Viewing internal object information.
        System.out.println("Before Print...");
        System.out.println(ClassLayout.parseInstance(new ClassHeader()).toPrintable());
        System.out.println("After Print...");
    }
}

控制台输出结果

Before Print...

Process finished with exit code 137 (interrupted by signal 9: SIGKILL)

我只是想做一个简单的测试,结果导致了这个问题,请帮助我

4

0 回答 0