RFR(S) : 8029381 : assert(is_method_type()) failed: bad cast

David Chase david.r.chase at oracle.com
Fri May 30 22:14:07 UTC 2014


On 2014-05-30, at 5:50 PM, John Rose <john.r.rose at oracle.com> wrote:

> Wow, that hurts.  Thanks for tracking and fixing that bug, which I think was mine.
> 
> Safe publication is hard enough through a single pointer; it's nearly impossible when two or more words of racy state are involved.
> 
> Did you consider guarding more (or all) uses of _flags?  That would be a more disruptive change, of course.
> 
> I mean something like (but more complex than):
>  intx flags()                     { return is_f1_null() ? 0 : _flags; }

Christian and Coleen seemed to think that this race was peculiar to invokedynamic and those two bits.
Perhaps they will have something to say.

David


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20140530/f92aeba7/signature.asc>


More information about the hotspot-compiler-dev mailing list