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

move print() functions to cpp files

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 13
    • 13
    • hotspot
    • None
    • b21

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: