Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8296496

Overzealous check in sizecalc.h prevents large memory allocation

    XMLWordPrintable

Backports

    Description

      The new macro in sizecalc.h that is supposed to catch the integer multiplication overflow while allocating and reallocating memory for native arrays is too restrictive and limits the amount of memory that can be allocated - especially on the 32-bit systems. Right now the existing functionality that uses this macro does not require such memory allocation but i think we should be proactively defensive in anticipation that this macro might be used in the future for something else that will require large amount of memory allocated at once.

      Attachments

        Issue Links

          Activity

            People

              kizune Alexander Zuev
              kizune Alexander Zuev
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: