[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    =?utf-8?B?UkU6IGluc3BlY3QgYSB0aHJlYWTigJlzIHN0YWNr?=
From:       Pietro Paolini <Pietro.Paolini () alfasystems ! com>
Date:       2018-04-10 7:26:31
Message-ID: 5D285FC05679A441ACF34A90905BFA92241A80A7 () GBEDBP01 ! chp ! co ! uk
[Download RAW message or body]

> 
> I think the conversation will shift a bit if you explain what you mean with:
> 
> "// inspect the frames of that thread doing any needed business with them"
> 
> What exactly do you have in mind? Do you want to change the stack in some
> way?

I would like to inspect the variable's name/value on the stack at a specific point in \
time for diagnostic purposes, I don't want to change their value. I don't think that \
should be allowed anyway :-)

> 
> Because, depending on what you want, Andrew's comment on:
> ThreadMXBean.getThreadInfo(id).getStackTrace() ?
> 
> 
> seems reasonable to me :)

I had a look to the API's Javadoc, my understanding is that I could to get to the \
StackTraceElement array with it . That is OK to see the  calls' stack but it does not \
provide any API to inspect what is actually on the stack in terms of variable's \
<name, value> pair.

Did I miss anything ?

Thanks,
P.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic