Skip to content
  • ehuelsmann@1c010e3e-69d0-11dd-93a8-456734b0d56f's avatar
    Don't throw Go and Return exceptions as means for non-local transfers · c8e09829
    of control, if the extent of the defining lexical context has ended.
    Throwing the exceptions anyway causes leaking of exceptions and possibly
    unwanted thread termination.
    
    
    Note: This commit breaks MISC.293A, MISC.293B and MISC.293C.
      This however is not a problem with this change, but exposes the fact
      that our compiler doesn't conform to the JVM specification of
      exception handlers: you can't expect the built-up stack to stay in place
      when the exception handler is invoked.
    c8e09829