Repository navigation
Commit 5e19acf
Mark every loaded cppia module on every collection.
A module is an ordinary GC object, so a generational collection stops traversing it once it is old. What it holds still changes after that: a literal boxes itself on first use, the JIT embeds that box, a script static is assigned. None of those writes has a barrier, so a minor collection freed the young object while the module still pointed at it, and the next use read reused memory. Modules are now marked with the class statics when the collector is generational.
HaxeFoundation/hxcpp#1406
Fixes #271 parent 49eb7e2 commit 5e19acf
3 files changed
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
358 | 391 | | |
359 | 392 | | |
360 | 393 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
465 | 469 | | |
466 | 470 | | |
467 | 471 | | |
| |||
4406 | 4410 | | |
4407 | 4411 | | |
4408 | 4412 | | |
| 4413 | + | |
| 4414 | + | |
| 4415 | + | |
4409 | 4416 | | |
4410 | 4417 | | |
4411 | 4418 | | |
| |||
4856 | 4863 | | |
4857 | 4864 | | |
4858 | 4865 | | |
| 4866 | + | |
| 4867 | + | |
| 4868 | + | |
4859 | 4869 | | |
4860 | 4870 | | |
4861 | 4871 | | |
| |||
0 commit comments