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

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

                Created:
                Updated:
                Resolved: