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

JShell LocalExecutionControl should add stopCheck() at method entry

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25
    • tools
    • None
    • jdk-25+18-43-g1d7138fe021

    • 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.

            acobbs Archie Cobbs
            acobbs Archie Cobbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: