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

MacroAssembler::unimplemented calls global operator new[]

XMLWordPrintable

    • b03
    • generic
    • generic

      There are several copies of the following function, in the various cpu-specific MacroAssembler classes:

      void MacroAssembler::unimplemented(const char* what) {
        char* b = new char[1024];
        jio_snprintf(b, 1024, "unimplemented: %s", what);
        stop(b);
      }

      That "new char[1024]" is a call to global operator new[], which is forbidden for HotSpot code.

            thartmann Tobias Hartmann
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: