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

remove use of global operator new - take 2

XMLWordPrintable

    • b33
    • generic
    • generic
    • Not verified

        8010992 was anti-delta'd (8012907) due to the following failure mode in nightly testing since global operator new removal in debug mode. This CR re-applies 8010992 with the necessary corrections

        These failures were spotted in the 2013.04.19 RT_Baseline nightly.

        too_many_to_list

            Tests are failing the following assertion:

            # A fatal error has been detected by the Java Runtime Environment:
            #
            # Internal Error (/opt/jprt/T/P1/181533.yqi/s/src/share/vm/memory/allocation.cpp:688), pid=22531, tid=140455867508480
            # Error: ShouldNotReachHere()

            Here is the failing thread's stacktrace:

            --------------- T H R E A D ---------------

            Current thread is native thread

            Stack: [0x00007fbe6e06e000,0x00007fbe6e16f000], sp=0x00007fbe6e16d670, free space=1021k
            Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
            V [libjvm.so+0xdc2ad2] VMError::report_and_die()+0x302;; VMError::report_and_die()+0x302
            V [libjvm.so+0x694ac8] report_should_not_reach_here(char const*, int)+0x78;; report_should_not_reach_here(char const*, int)+0x78
            V [libjvm.so+0x395f75] operator new(unsigned long)+0x15;; operator new(unsigned long)+0x15
            V [libjvm.so+0x9be624] JvmtiEnv::CreateRawMonitor(char const*, _jrawMonitorID**)+0x24;; JvmtiEnv::CreateRawMonitor(char const*, _jrawMonitorID**)+0x24
            V [libjvm.so+0x95c57a] jvmti_CreateRawMonitor+0x9a;; jvmti_CreateRawMonitor+0x9a

            The failing assertion was added by the following changeset:

            Changeset: 6f817ce50129
            Author: minqi
            Date: 2013-04-19 11:08 -0700
            URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/6f817ce50129

            8010992: Remove calls to global ::operator new[] and new
            Summary: disable use of global operator new and new[] which could cause unexpected exception and escape from NMT tracking.
            Reviewed-by: coleenp, dholmes, zgu
            Contributed-by: yumin.qi@oracle.com

              minqi Yumin Qi
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: