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

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

XMLWordPrintable

    • b16

        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.

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

                Created:
                Updated:
                Resolved: