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

Add stable printing of sbe vm::CodeFragment

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • 162
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

       

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

              Created:
              Updated:
              Resolved: