move print() functions to cpp files

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: 13
    • Component/s: hotspot
    • None
    • b21

      There's a convention in hotspot to have a print function for most (many?) of the classes, like:

       295 void print() const { print_on(tty); }
       296 void print_on(outputStream* st) const;

      Unfortunately, this makes calling print in gdb return:

      (gdb) print mirror._o->klass()->print()
      Cannot evaluate function -- may be inlined

      There is no performance reason for print() to be inlined. With Unified Logging, most printing should go to a logStream anyway.

            Assignee:
            Coleen Phillimore
            Reporter:
            Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: