RFR (L) : 8014013 : CallInfo structure no longer accurately reports the result of a LinkResolver operation

John Rose john.r.rose at oracle.com
Fri Aug 16 22:41:48 PDT 2013

On Aug 16, 2013, at 1:05 PM, David Chase <david.r.chase at oracle.com> wrote:

> How does this look?
> void fieldDescriptor::reinitialize(InstanceKlass* ik, int index) {
>  if (_cp.is_null() || field_holder() != ik) {
>    _cp = constantPoolHandle(Thread::current(), ik->constants());
>    // _cp should now reference ik's constant pool; i.e., ik is now field_holder.
>    assert(field_holder() == ik, "must be already initialized to this class");


As a side note, this bit of code (and many others) assume that there is a 1-1 correspondence between constant pools and instance klasses.

I hope we can change this some day; the tracking bug is http://bugs.sun.com/view_bug.do?bug_id=6711913

— John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20130816/ec507de3/attachment.html 

More information about the hotspot-compiler-dev mailing list