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

oopDesc::print_on should consistently use a trailing newline

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • None
    • b08

      JDK-8284161 added special printing when oopDesc contains badHeapWordVal or badMetaWordVal. However these two cases do not print a trailing newline. The previous behaviour was to always use a trailing newline.

      Propose making this consistent with *klass::oop_print_on and InstanceStackChunkKlass::print_chunk, that both uses a trailing newline.

      This new behaviour messes up some printing code, e.g. can be seen in print_location when printing hs_err files which assumes that it always prints a trailing newline.

            aboldtch Axel Boldt-Christmas
            aboldtch Axel Boldt-Christmas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: