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

Pointer validity checks are applied inconsistently

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: repo-panama
    • Component/s: tools
    • Labels:

      Description

      To check the validity of a BoundedPointer we have 3 methods; checkAlive for liveness checks, checkBounds for bounds checks, and checkAccess which call checkAlive, checks whether the given access mode is valid (i.e. read/write), and then does it's own version of a bounds check, instead of calling checkBounds.

      As a result of this, some places only call one check or the other. We should clean this up, and make sure checks are applied consistently.

        Attachments

          Activity

            People

            • Assignee:
              jvernee Jorn Vernee
              Reporter:
              jvernee Jorn Vernee
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: