Skip to content

Commit 93cbec9

Browse files
committed
Regex library needs to push the SC it builds onto the compiling stack while doing so, to prevent spurious repossession; clears up all but two instances in the build of the barrier triggering (which it never should in the NQP build).
1 parent e4937be commit 93cbec9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Regex.pir

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ This file brings together the various Regex modules needed for Regex.pbc .
4747
# Create a serialization context for this compilation unit.
4848
.local pmc sc
4949
sc = nqp_create_sc "__REGEX_CORE_SC__"
50+
nqp_push_compiling_sc sc
5051

5152
# Load setting.
5253
load_bytecode 'ModuleLoader.pbc'
@@ -132,6 +133,9 @@ This file brings together the various Regex modules needed for Regex.pbc .
132133
hllns = get_hll_namespace
133134
imports = split ' ', 'PAST _dumper'
134135
parrotns.'export_to'(hllns, imports)
136+
137+
# Pop SC off current SCs stack.
138+
nqp_pop_compiling_sc
135139
.end
136140

137141
=head1 AUTHOR

0 commit comments

Comments
 (0)