RFR: 7093328: JVMTI: jvmtiPrimitiveFieldCallback always report 0's for static primitives
serguei.spitsyn at oracle.com
serguei.spitsyn at oracle.com
Wed Aug 29 10:17:07 PDT 2012
On 8/29/12 7:25 AM, Daniel D. Daugherty wrote:
> . . . <skip>
>
> Very nice find:
>
>> I did some research (archeology), the change that introduced this:
>>
>> changeset: 2223:c7f3d0b4570f
>> user: never
>> date: Fri Mar 18 16:00:34 2011 -0700
>> summary: 7017732: move static fields into Class to prepare for
>> perm ten removal
>
> I had forgotten that static fields moved from the instanceKlass
> into Class. The original code from 2005 did indeed work as expected
> way back then. In fact, there were three such uses in jvmtiTagMap.cpp
> back then and it looks like the other two uses were updated to use
> the Java mirror and one was missed.
Right. This explains how it did happened.
Thanks,
Serguei
>
> Dan
>
More information about the serviceability-dev
mailing list