Overview
| Artifact ID: | fb9205a634e75ff276b72cc6c62bdac5b12ceccd3022903bb97cf35803da9d8a |
|---|---|
| Ticket: | 4b7311c839f053e164d49d7a06f3debcbe44b767
Call auto_reset when access path changes in safe interp |
| User & Date: | kjnash on 2020-07-16 01:12:55 |
Changes
- comment changed to:
When a script calls safe::interpConfigure $int option value ?option value...? the Safe Base tests to see if the interpreter's access path (option -accessPath) has changed. If the value changes, the mapping from directories to tokens also changes, and the Safe Base is supposed to call auto_reset in the safe interpreter so that stale data is flushed from the autoloader. Without this feature, the autoloader in the safe interpreter would believe that files are in the wrong directories. The test in safe.tcl is the wrong way around: auto_reset is called if the value of access path has *not* changed. Fixed in branch safe-bugfixes-8-6 commit [ecc0872a76]. New test safe-9.9 checks that auto_reset is called when it should be.
- login: "kjnash"
- mimetype: "text/plain"