JShell LocalExecutionControl should add stopCheck() at method entry

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 25
    • Component/s: tools
    • None
    • Environment:

      jdk-25+18-43-g1d7138fe021

    • b25
    • generic
    • generic

      During the discussion of the PR for JDK-8350983 it was pointed out that even with stop checks at each forward and backward branch, it could still take arbitrarily long for a snippet to notice a stop request (e.g., if the snippet was recursive).

      To close this loophole, stop checks should also be added at the entry to every method. This would then create a hard limit on the amount of time it takes to notice a stop request to however long it takes to execute 65,535 bytes worth of bytecode.

            Assignee:
            Archie Cobbs
            Reporter:
            Archie Cobbs
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: