Overview
| Artifact ID: | 07bcb007cd2ed9f3a7fbcb8a536e57b0144b4d3e |
|---|---|
| Ticket: | 2995655fffffffffffffffffffffffffffffffff
Report inner contexts in [info errorstack] |
| User & Date: | ferrieux on 2010-09-30 04:49:29 |
Changes
- icomment:
OK, you made it all clear in one sentence: with saner NRE, TEBC is no longer a long-lived while(1)...switch(*pc), but rather a TEBCresume callback that gets re-pushed forever doing switch(*pc). Neat ! As a result, please find attached as inner6.patch the corrected inner context patch. Outline: - pcBeg is now a field in BP as per your suggestion - it is directly initialised to pc at beginning of TEBCresume (and to codeStart at beginning of TnrEBC) - it is directly used in the TclLogCommandInfo call - no more extra local :) Test suite okay. Now re the coro warning, it seems to cross the coro bottom correctly, up into the resume's caller stack, just as before (after you fixed the wub crash). Moreover, we see that [info level $n] doesn't cross the coro bottom: % proc c x {yield;stack;error BEUH:$x} % coroutine C c bla % proc stack {} {catch {for {set n 0} {1} {incr n -1} {puts "LEVEL $n: [info level $n]"}}} % proc f x {g $x} % proc g x C % f 2 LEVEL 0: stack LEVEL -1: c bla BEUH:bla % info errorstack INNER {returnStk BEUH:bla} CALL {c bla} CALL {g 2} CALL {f 2} - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"