Repository navigation
Commit 1612cea
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 68f1a45 commit 1612cea
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
231 | 236 | | |
232 | 237 | | |
233 | 238 | | |
| |||
259 | 264 | | |
260 | 265 | | |
261 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
262 | 271 | | |
263 | 272 | | |
264 | 273 | | |
| |||
0 commit comments