Request for reviews (XL): 6894206: JVM needs a way to traverse method handle structures
Vladimir Kozlov
Vladimir.Kozlov at Sun.COM
Fri Dec 4 09:58:25 PST 2009
Christian Thalinger wrote:
>> Why it is not simple ?:
>>
>> ! assert(flags_for(id) == Flags(flags), "correct id");
>
> Well, I don't see how this should work. The Flags enum has completely
> different values than AccessFlags.
>
> (dbx) p flags
> flags = 257
> (dbx) p flags_for(id)
> flags_for(id) = F_R
> (dbx) whatis F_R
> enum Flags {..., F_R=1, ...};
>
It could be useful to have an array to map Flags to AccessFlags combination,
it is only 7 elements.
Vladimir
More information about the hotspot-compiler-dev
mailing list