Repository navigation
Pin ztk to dd10466, with ztcl 0e9e8bf - #69
Open
beetlebugorg wants to merge 1 commit into
Open
beetlebugorg wants to merge 1 commit into
beetlebugorg wants to merge 1 commit into
Conversation
The new ztcl keeps the JIT code of a Debug build in the .bss of the program, so a debug dockyard no longer loads the unwind tables again for each stack trace through JIT code: the start of the headless window goes from 292 MB to 57 MB of resident memory. Three changes follow the new versions. The build uses the ztcl module that ztk imports, since ztk gives ztcl the option drop and a second dependency made a second module of the same files. ztk.bundle.run now needs the environment, which main gives to apps. ztcl fails a set of a variable in a namespace that does not exist, as Tcl does, so the code creates ::dockyard before it sets the variables.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pins ztk to dd10466 (main), which pins ztcl to 0e9e8bf (main). The old pin was ztk 31af992 with ztcl 0.1.0-alpha. Part of ztk#353 and ztcl#792.
The new ztcl (ztcl PR 793) keeps the JIT code of a Debug build in the .bss of the program. Before, each stack trace that the debug allocator recorded through JIT code made std.debug load the unwind tables of the program again, into an arena that keeps them.
Start memory of a debug dockyard:
dockyard --headless --agent /bin/sh --exit-after-ms 40000 PROJECT, with a main.tcl of one label, VmRSS from /proc every 5 s:Changes for the new versions:
ztclimport is the ztcl module that ztk imports (import_table). ztk now gives its ztcl dependency the optiondrop, soztk_dep.builder.dependency("ztcl", ...)made a second module of the same files, and the compile failed with "file exists in modules 'ztcl' and 'ztcl0'".ztk.bundle.runnow has the environment as an argument.mainsetsapps.environ; the tests give an empty environment.set ::dockyard::xwhen the namespace::dockyarddoes not exist, as Tcl does. host.zig, sandbox.zig, guest_release.zig, crash.zig, main.zig, and one audit test create the namespace withnamespace evalbefore they set the variables.What I ran on Linux:
zig build,zig build test-binandzig-out/bin/test(30 passed, 3 skipped, 0 failed), andzig build -Dtarget=x86_64-windows(builds). I did not run a macOS build.