java-visualizer-intellij-plugin icon indicating copy to clipboard operation
java-visualizer-intellij-plugin copied to clipboard

Why are string values shown to be on the stack?

Open mb720 opened this issue 6 months ago • 0 comments

Hi and thanks a lot for your plugin!

When debugging a program, I noticed that Java Visualizer shows string values to be part of the stack.

From my understanding, in Java, the values of all strings are stored on the heap.

Also, VisualVM indicates that a string's value (called random in this experiment) is on the heap, while Java Visualizer shows the value to reside in the stack:

Screenshot of Java Visualizer and VisualVM

I'm using JDK 22 on Arch Linux.

mb720 avatar Aug 07 '24 10:08 mb720