java-visualizer-intellij-plugin
java-visualizer-intellij-plugin copied to clipboard
Why are string values shown to be on the stack?
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:
I'm using JDK 22 on Arch Linux.