]> ocean-lang.org Git - ocean/commit - csrc/oceani-tests.mdc
oceani: free variables as soon as they go out of scope.
authorNeilBrown <neil@brown.name>
Sat, 6 Nov 2021 04:54:52 +0000 (15:54 +1100)
committerNeilBrown <neil@brown.name>
Mon, 8 Nov 2021 09:56:36 +0000 (20:56 +1100)
commit84f4783c47a0fcb74b7f46d3ff96fe8a3ad1b278
tree19aa048d0c2bc637eee5c562238c07281fc20301
parent98e9ff743107bb2ec43acbd6b361cddddcb6f1c0
oceani: free variables as soon as they go out of scope.

Each 'exec' now keeps track of the variables that go out-of-scope when
the exec completes.
CondScope variables need to be re-linked when they get merged.

We now poison a variable when it is freed to ensure it doesn't get used
again by mistake.

The final cleanup now only needs to handle global variables

Signed-off-by: NeilBrown <neil@brown.name>
csrc/oceani-tests.mdc
csrc/oceani.mdc