jstack.stp should work with -XX:+UseCompressedOops

Yasumasa Suenaga suenaga.yasumasa at lab.ntt.co.jp
Sun Aug 5 17:36:52 PDT 2012


> I'll integrate it and add the testcase.

Thanks!
I'm glad to contribute this patch.


Yasumasa

On 2012/08/03 19:47, Mark Wielaard wrote:
> On Fri, 2012-08-03 at 11:31 +0200, Mark Wielaard wrote:
>> On Fri, 2012-08-03 at 09:26 +0900, Yasumasa Suenaga wrote:
>>> Testcase is also attached. Please run Simple.java and test.stp .
>>
>> Thanks. I see why it wasn't triggering on my setup. Even with
>> CompressedOops on both _base and _shift are zero. Is there a way to
>> force the heap somewhere that needs a base/shift?
>
> Found it, just create a vm with something bigger than 4GB to get a
> positive shift, or something really big, but smaller than 32GB, like
> -Xmx31G, to get a non-zero base.
>
> And your patch makes jstack work fine with or without compressed oops.
> I'll integrate it and add the testcase.
>
> Thanks,
>
> Mark




More information about the distro-pkg-dev mailing list