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

Boundless soft caching of property map histories causes high memory pressure

    Details

    • Subcomponent:
    • Resolved In Build:
      b85
    • CPU:
      x86
    • OS:
      os_x

      Backports

        Description

        FULL PRODUCT VERSION :


        A DESCRIPTION OF THE PROBLEM :
        We use Nashorn to run the zxcvb javascript, which is a password strength checker.
        We do that to perform the same serverside validation as in the webpage.
        There is a sample repository at
        https://github.com/bripkens/nashorn-pw-check-example
        which contains a unit test https://github.com/bripkens/nashorn-pw-check-example/blob/master/src/test/java/de/codecentric/StrengthCheckerTest.java
        This unit test takes about 7 seconds to complete when run with a java 8 u 20.

        Running it with 8u40 or 9ea spins forever in internal Nashorn code.

        While it is possible tht this behaviour is triggered by the zxcvb library, as a user, I consider it to be a regression when it worked in u20 and no longer works in u40.

        REGRESSION. Last worked in version 8u40

        ADDITIONAL REGRESSION INFORMATION:
        worked in u20, does NOT work in u40 (the select box does not allow this combination)

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        clone the repo. run maven install with the desired jvms, or run mvn eclipse:eclipse and try to run from eclipse with the given jdks.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        unit tests pass.
        ACTUAL -
        spins forever

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        https://github.com/bripkens/nashorn-pw-check-example/
        ---------- END SOURCE ----------

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  attila Attila Szegedi
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: