Skip to content

Why are string values shown to be on the stack? #4

Description

@mb720

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions