Skip to content
Tcl Source Code Artifact [f539153892]
Login

Artifact [f539153892]

Artifact f539153892e52be8d33d185b082099461c02aa0b3daaa3e5dabd8a20a142eb2a:

Ticket change [f539153892] - Ticket [f9800d52bd61f240|f9800d52bd] <i>vwait is not NRE-enabled, and yieldto cannot find the right splicing spot</i> status still Open with 3 other changes by pooryorick on 2021-06-20 23:10:13.
D 2021-06-20T23:10:13.096
J icomment The\sproblem\sis\sthat\s<code>TclSetTailcall<code>\ssplices\sthe\scommand\sto\sbe\r\nyielded\sto\sinto\sthe\sright\splace,\sbut\swhen\r\n<code>TclNRCoroutineActivateCallback</code>\sdecides\sthe\sC\sstack\sis\sbusy,\sit\r\ndoesn't\sgo\sback\sand\sundo\sthe\ssplice.\s\sAt\sthat\spoint,\sthe\ssplicing\sspot\sis\r\nalready\staken\sand\sany\sother\sattempt\sto\syieldto\sproduces\sthe\serror,\s"tailcall\r\ncannot\sfind\sthe\sright\ssplicing\sspot:\sshould\snot\shappen!".\s\sFrom\shere\son\sout,\r\nthat\scommand\sthat\shasn't\sbeen\sunspliced\sbehaves\slike\sa\stailcall:\s\sWhen\sthe\r\ncoroutine\sends\sthat\scommand\stakes\sits\splace.\s\sTailcall\sitself\sdoesn't\shave\sthe\r\nsame\sproblem\sas\syieldto\sbecause\stailcall\suses\sa\sslightly\sdifferent\smechanism\sto\r\nregister\sthe\stailcall.\s\sThe\ssolution\sis\sto\sundo\sthat\ssplice\sof\sthe\spending\r\ncommand\sif\syieldto\scan't\sproceed.
J login pooryorick
J mimetype text/x-fossil-wiki
K f9800d52bd61f240938dbd3c3c6364c8a6184194
U pooryorick
Z 01ea87f7de8ac48a8182567ca365f9ce