This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit 41fe259
committed
[[ Bug 22130 ]] Disable deleted object pool creation whilst debugging
This patch adds a 'freeze' count to the deleted object pool logic. When the current
pool is frozen, no new pools will be created until it is thawed again. This means
that all objects that are deleted during that period are accumulated in the frozen
pool.
This ability is used inside MCB_prepmessage, which is the handler which causes the
engine to enter debug mode and send a message. Doing this prevents corruption of
the deleted object pools stack which appears to occur when the script editor
manipulates menus in the context of a debug-related message.
As the use of freezing the current object pool is only used in this one place it
has no effect on normal running code, only on code which runs in the context of
a debug-related message.1 parent b5dbb62 commit 41fe259
File tree
4 files changed
+25
-1
lines changed- docs/notes
- engine/src
4 files changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
288 | 290 | | |
289 | 291 | | |
290 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5519 | 5519 | | |
5520 | 5520 | | |
5521 | 5521 | | |
| 5522 | + | |
5522 | 5523 | | |
5523 | 5524 | | |
5524 | 5525 | | |
| |||
5604 | 5605 | | |
5605 | 5606 | | |
5606 | 5607 | | |
| 5608 | + | |
| 5609 | + | |
| 5610 | + | |
| 5611 | + | |
| 5612 | + | |
| 5613 | + | |
| 5614 | + | |
| 5615 | + | |
| 5616 | + | |
| 5617 | + | |
5607 | 5618 | | |
5608 | 5619 | | |
| 5620 | + | |
| 5621 | + | |
| 5622 | + | |
| 5623 | + | |
5609 | 5624 | | |
5610 | 5625 | | |
5611 | 5626 | | |
| |||
5632 | 5647 | | |
5633 | 5648 | | |
5634 | 5649 | | |
| 5650 | + | |
| 5651 | + | |
| 5652 | + | |
| 5653 | + | |
5635 | 5654 | | |
5636 | 5655 | | |
5637 | 5656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| 509 | + | |
| 510 | + | |
509 | 511 | | |
510 | 512 | | |
511 | 513 | | |
| |||
0 commit comments