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

Clean up compressed pointer logic in lcm.cpp

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 15
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      The following code in lcm.cpp is unintuitive:

              if ((UseCompressedOops || UseCompressedClassPointers) &&
                  (CompressedOops::shift() == 0 || CompressedKlassPointers::shift() == 0)) {
                // 32-bits narrow oop can be the base of address expressions
                tptr = base->get_ptr_type();
              } else {
                // only regular oops are expected here
                tptr = base->bottom_type()->is_ptr();
              }

      It should be cleaned up.

        Attachments

          Activity

            People

            • Assignee:
              eosterlund Erik Ă–sterlund
              Reporter:
              eosterlund Erik Ă–sterlund
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: