Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3eb3c4db74ce037af738aa2d8c83c5afaf2d8eb7
Ticket: 05489ce33509af52219db03214faf1445dcab5a4
for-8.[124568] stack management panic
User & Date: dkf on 2015-09-30 21:17:44
Changes

  1. icomment:
    The backport of the 8.6 solution would require the exact stack depth calculation fixes (which were a massive PITA in the 8.6 development, but necessary) and backporting a single bytecode so that expansion stack entries could be dropped. Which should act as a massive hint as to the sorts of tests that you should be thinking about! The stack depth fixes are particularly important to the example described in this bug report; popping the BAD is exactly what is necessary, but that requires knowing that that's the stack entry that's surplus...
    <p>With those two preparatory changes in place, the fix is just to rewrite break/continue (when in a looping context) to a sequence of expansion-pops, ordinary-pops and a jump, which should be pretty simple actually. But you <i>need</i> the exact stack depth fixes to safely know how much to pop at compile time, and the extra bytecode in order to clean up the expansion stack.
    
  2. login: "dkf"
  3. mimetype: "text/html"
  4. username: "dkf"