Commit 2ef53ee
committed
Store Eval::Info in Search::Stack
Instead of a pointer. This should fix the issue of
remaining with a stale pointer when for instance calling
IID, but also null search verification, singular search
and razoring where we call search with the same ss
pointer. In this case ss->ei is overwritten in the
search() call and upon returning remains stale.
This patch could have a performance hit because Eval::Info
is big (176 bytes) and during splitting we copy 4 ss entries.
On the good side, this patch is a clean solution.
Proposed by Gary.
No functional change.1 parent d810441 commit 2ef53ee
2 files changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
493 | 492 | | |
494 | 493 | | |
495 | 494 | | |
| |||
524 | 523 | | |
525 | 524 | | |
526 | 525 | | |
527 | | - | |
528 | 526 | | |
529 | 527 | | |
530 | 528 | | |
| |||
594 | 592 | | |
595 | 593 | | |
596 | 594 | | |
597 | | - | |
| 595 | + | |
598 | 596 | | |
599 | 597 | | |
600 | 598 | | |
| |||
604 | 602 | | |
605 | 603 | | |
606 | 604 | | |
607 | | - | |
| 605 | + | |
608 | 606 | | |
609 | 607 | | |
610 | 608 | | |
| |||
1121 | 1119 | | |
1122 | 1120 | | |
1123 | 1121 | | |
1124 | | - | |
1125 | 1122 | | |
1126 | 1123 | | |
1127 | 1124 | | |
| |||
1178 | 1175 | | |
1179 | 1176 | | |
1180 | 1177 | | |
1181 | | - | |
| 1178 | + | |
1182 | 1179 | | |
1183 | 1180 | | |
1184 | | - | |
| 1181 | + | |
1185 | 1182 | | |
1186 | 1183 | | |
1187 | 1184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments