I'm struggling with this problem, can I get your help.
Run Environment:
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
Run Code:
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...");
}
}
Console output results
Before Print...
Process finished with exit code 137 (interrupted by signal 9: SIGKILL)
I was just trying to do a simple test and it led to this question, please help me
Because the JDK used by IDEA by default is not OpenJDK, just replace the Project SDK with Open JDK