Repository navigation
Commit 48d54dc
Barrier the pointer stores of a cppia field set by name.
CppiaVar::setValue, behind Reflect.setField and Reflect.setProperty on a cppia instance, stored
object and string pointers without a generational write barrier. A young value set on an old
instance was reachable only through it, so the next minor collection freed it, and the instance
then pointed at reused memory. The JIT and interpreted field setters already had the barrier.
HaxeFoundation/hxcpp#1408
Fixes #241 parent 8b52508 commit 48d54dc
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
224 | 229 | | |
225 | 230 | | |
226 | 231 | | |
| |||
252 | 257 | | |
253 | 258 | | |
254 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
255 | 264 | | |
256 | 265 | | |
257 | 266 | | |
| |||
0 commit comments