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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 12
    • hotspot
    • 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:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: