RFR: 8170812: Metaspace corruption caused by incorrect memory size for MethodCounters
Andrew Haley
aph at redhat.com
Thu Apr 6 10:57:25 UTC 2017
On 06/04/17 11:35, Thomas Stüfe wrote:
>
> I think it would make sense. From what I can see, the following methods are affected:
>
> ConstantPool::header_size()
Not this one, because the declaration of ConstantPoolCache is
int _length;
ConstantPool* _constant_pool; // the corresponding constant pool
The size of this declaration must be a multiple of wordSize
because the fields must be allocated in order, they must be
aligned, and _constant_pool comes last.
It's very confusing code, but not actually a bug, IMO.
Andrew.
More information about the hotspot-dev
mailing list