RFR: 8257186: Size of heap segments is not computed correctlyFix overflow in size computation for heap segments

Chris Hegarty chegar at openjdk.java.net
Fri Nov 27 09:16:58 UTC 2020


On Thu, 26 Nov 2020 18:29:42 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> There is a subtle bug in the heap segment factories: the byte size is computed using an int multiplication instead of a long multiplication. Because of that, it is possible to observe overflow when creating segments out of arrays whose carrier has a byte size greater than one.

Marked as reviewed by chegar (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/1466


More information about the core-libs-dev mailing list