Search code examples
javacompiler-errorsbytecodejit

Please explain "java frame" meaning from stacktrace?


In dump I see following information:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.barcap.fox.log.Syslog.plog(ILjava/lang/String;)Z+0
j  com.barcap.fox.log.Syslog.log(ILjava/lang/String;)Z+317
j  com.barcap.fox.log.Syslog$BS.flush()V+37
j  java.io.PrintStream.write([BII)V+30
....

Can you explain meaning of Java frame

I tryied to google it but I see only results related with swing(Jframe).


Solution

  • In other languages this would be called a "stack frame", but the Java Virtual Machine Specification uses just the term "frame". It is the segment of the call stack devoted to one invocation of a method, where that method keeps its state (local variables, parameters, etc.).