Skip to content
Discussion options

You must be logged in to vote

Thanks for the report — this was a real gap in the #2672 amortization, and it's fixed in #2713 plus the hardening follow-ups #2714/#2715 (will be in the next release).

Rather than adding an option to disable or tune the amortization, the amortization itself was fixed. It bounded timeout/cancellation detection latency in statement count (64 statements), which is only a valid proxy for wall-clock time while statements stay cheap — and a statement that calls into host code can take arbitrarily long, exactly as in your repro. The engine now re-checks the time/cancellation constraints whenever control returns from host code to the interpreter (delegates registered via SetValue, wrapped methods…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lekrus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants