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

NMT: cleanup _mst_marker

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 24
    • 21
    • hotspot

      While learning the NMT code I came across _mst_marker and I don't really care that it combines 16bit index and 16bit position into one 32bit mst_marker.

      We need these extra 3 APIs: build_marker(), bucket_idx_from_marker(), pos_idx_from_marker()

      They are really unnecessary, in my opinion, and in fact obfuscate the code.

      I'd like to propose that we simplify the code and pass along index and position individually as needed. In my opinion, this makes the code easier to read and understand, with no need to explain what mst_marker is.

            gziemski Gerard Ziemski
            gziemski Gerard Ziemski
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: