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

Memory leak when executing octane pdfjs with optimistic typing

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 8u40
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b10

      Backports

        Description

        Running octane pdfjs with optimistic typing it is visible how occupied OldSpace is increasing in time. It causes performance degradation and OutOfMemoryError at the end.
        Used heap increases slowly - required long execution: e.g. with 512M heapsize it requires up to 200-300 iterations before OOM:
        java -Xmx512m -Xms512m jdk.nashorn.tools.Shell test/script/basic/run-octane.js --optimistic-types=true -scripting -- pdfjs --runtime nashorn --verbose --iterations 300

        PS There is no memory leak when optimistic typing turned off.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  hannesw Hannes Wallnoefer
                  Reporter:
                  skuksenko Sergey Kuksenko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: