Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b99
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        This is the failure mode seen with NASHORN-421 with megamorphic threshold set to 1.

          Issue Links

            Activity

            Hide
            sundar Sundararajan Athijegannathan added a comment -
            NativeArray.popObject is chosen for Array.prototype.pop call when it is invoked via ScriptFunction.invoke (for megamorphic sites). But being SpecializedFunction, NativeArray.popObject thinks throwing CCE is fine! This is not the case for ScriptFunction.invoke. We need a way to select CompiledFunction without any special LinkLogic for such "top-level invokes".
            Show
            sundar Sundararajan Athijegannathan added a comment - NativeArray.popObject is chosen for Array.prototype.pop call when it is invoked via ScriptFunction.invoke (for megamorphic sites). But being SpecializedFunction, NativeArray.popObject thinks throwing CCE is fine! This is not the case for ScriptFunction.invoke. We need a way to select CompiledFunction without any special LinkLogic for such "top-level invokes".
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/nashorn/rev/7dc1ce8ceb1f
            User: sundar
            Date: 2015-12-17 03:01:40 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/nashorn/rev/7dc1ce8ceb1f User: sundar Date: 2015-12-17 03:01:40 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/nashorn/rev/7dc1ce8ceb1f
            User: lana
            Date: 2015-12-23 23:04:13 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/nashorn/rev/7dc1ce8ceb1f User: lana Date: 2015-12-23 23:04:13 +0000

              People

              • Assignee:
                sundar Sundararajan Athijegannathan
                Reporter:
                sundar Sundararajan Athijegannathan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: