Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-70844

Add stable printing of sbe vm::CodeFragment

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • 162

    Description

      Sbe vm::CodeFragment pretty printing includes the memory addresses and accessor addresses. This makes printing non-repeatable as it is dependent on memory layout.

      We should add option for vm::CodeFragment printing to print in repeatable way. This would allow for using the print output in unit tests.

      1) Instruction pointers can be printed with starting offset of 0.

      2) Slot addresses need to be replaced by slotId (it is unavailable to CodeFragment) or just masked out/omitted.

       

      Attachments

        Activity

          People

            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: