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

nsk.share.gc.Memory::getArrayLength returns wrong value

XMLWordPrintable

    • gc
    • b18

        nsk.share.gc.Memory::getArrayLength estimates array size as '(memory - extraSize) / (objectSize + referenceSize)'. this formula is incorrect, since array doesn't use reference for each element.
        the correct formula is '(memory - extraSize) / objectSize'

        nsk.share.gc.Memory::getArraySize should be fixed correspondingly

              rsunderbabu Ramkumar Sunderbabu
              iignatyev Igor Ignatyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: