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

[metaspace] Improve MetaspaceObj::is_metaspace_obj() and friends

    Details

    • Subcomponent:
    • Resolved In Build:
      b16

      Backports

        Description

        There are several functions which, given an unknown pointer assumed to be a metaspace object, check if the pointer is indeed a metaspace object by walking the VirtualSpaceList and checking the ranges.

        This can be avoided completely when the pointer is obviously bogus, or, in the case of MetaspaceObj::is_metaspace_obj(), not correctly aligned.

        It could also be avoided when the address does not fall within a range of [lowest ever|highest ever), were the list to keep such a range.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  stuefe Thomas Stuefe
                  Reporter:
                  stuefe Thomas Stuefe
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: