]> gitweb.factorcode.org Git - factor.git/commit
tools.deploy.shaker: more timid global stripping
authorJoe Groff <arcata@gmail.com>
Tue, 13 Dec 2011 00:08:25 +0000 (16:08 -0800)
committerJoe Groff <arcata@gmail.com>
Tue, 13 Dec 2011 00:08:25 +0000 (16:08 -0800)
commitff50cc6f0f3e8577b106766ab1b0093d217c94a1
tree7d8acf4d89a90b16fb247bbe5a58b864d906dc4e
parent6e141b8f6efa866c9f3606795bfd6ac93a14dcea
tools.deploy.shaker: more timid global stripping
Strip globals by replacing their value with "f". The list of globals to strip was written with the assumption that the stripped globals would get restored like normal hashtable keys when accessed. This isn't valid anymore with the globals optimization, since creating a new box breaks the foldable invariant between a global name and its associated box. Need to go through the list of globals to strip and find the ones that actually can be entirely removed as opposed to just reset to f. Fixes #445. Fixes #446.
basis/tools/deploy/shaker/shaker.factor