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

Fix the signature of the global new/delete operators in allocation.cpp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • b15

      For non-product builds we define global new/delete operators which shut down the VM if called. The rational behind this is that the these global operators shouldn't be used in HotSpot.

      Unfortunately, the signature of some of these operators doesn't conform to the C++ standard which confuses some C++ compilers.

      Also, the asserts in the operators should be changed to guarantees because the code may also be active in not-product (aka. 'optimized') builds.

            simonis Volker Simonis
            simonis Volker Simonis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: