[aarch64-port-dev ] RFR: [backport] overflow integer during size calculation

Andrew Haley aph at redhat.com
Thu Jun 21 09:51:09 UTC 2018


On 06/21/2018 10:22 AM, Roman Kennke wrote:
> -  int size = obj->size() + BrooksPointer::word_size();
> +  size_t size = obj->size() + BrooksPointer::word_size();

Ouch!  Yes.  That's a heck of a humongous object.

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the aarch64-port-dev mailing list