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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b15

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: