Relative Content

Tag Archive for javamavenprofilinglocal-variablesinstrumentation

Get variable stored at specific memory address in Java

I am working with a Java instrumentation framework (DiSL) to profile some code. I am retrieving the values of local variables at various stages of execution, however some of them are only accessible as their memory locations, e.g. for a local var that is a char[], it returns an address like [C@7f9a81e8. Is there a way to “dereference” that address, i.e. get the value of the variable that is stored there?