Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Join all capture init stages in MovePicker
Passed STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 16789 W: 3685 L: 3554 D: 9550 http://tests.stockfishchess.org/tests/view/5a91a8bb0ebc590297cc875b Passed LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 21293 W: 3527 L: 3407 D: 14359 http://tests.stockfishchess.org/tests/view/5a920a730ebc590297cc87ba No functional change
- Loading branch information
Showing
1 changed file
with
7 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8dd6875
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, we now have this code in the capture init stages:
I suddenly wonder if it is safe to change endBadCaptures again in stage PROBCUT_CAPTURES_INIT.
Could it be the cause of some recent crashes observed in the framework?
Should it be:
@vondele @mcostalba @syzygy1
Opinions?
I have never really liked the trick with the juggling of pointers for endBadCaptures and putting it back at the top, if we could rewrite it in a more pedestrian way it would be an occasion :-)
8dd6875
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@snicolet I don't think it is a problem. The assignment is not needed, but I wanted to treat all 4 stages the same.
Concerning the crashes, I'm running some more analysis of current master (40000 games match with debugging settings etc), but will only be able to investigate results tonight.
8dd6875
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, endBadCaptures is only used in the MovePicker for normal search, never for probcut, so it shouldn't matter.
Thanks for having a look at the crashes, keep us updated if you find anything :)
8dd6875
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(edited) The only crashes I've seen in movepicker is when cur is not set to moves before looking at moves.
Looks like it is set properly in the PROBCUT_INIT stage.