1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03:09 +00:00
BadFish/src
Marco Costalba 74203e181d Retire EvalInfo* in SearchStack
It is an hidden bug waiting to fire. The main problem is
that ss[ply] is overwritten by search() and qsearch() called
from IID and razoring, so that we cannot hold a pointer to a
local EvalInfo variable.

For instance if we go razoring then we overwrite the pointer
with the address of a variable local to qsearch(), when we return
from qsearch() variable goes out of scope and now ss[ply].evalInfo
holds a stale pointer !

Because we are not looking for troubles we go through the
safe route and we remove it entirely.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2010-02-08 10:50:17 +01:00
..
application.cpp Implement init_search() 2010-02-07 13:09:03 +01:00
application.h Remove unused members in Application class 2009-07-26 16:11:20 +01:00
benchmark.cpp Fix sending of best move during an infinite search 2010-01-10 13:18:43 +01:00
benchmark.h Update copyright year 2009-05-07 14:54:40 +02:00
bitbase.cpp Update copyright year 2009-05-07 14:54:40 +02:00
bitbase.h Update copyright year 2009-05-07 14:54:40 +02:00
bitboard.cpp Fix a little warning under gcc compiler 2009-12-30 13:25:22 +01:00
bitboard.h Logaritmic futility margins 2009-11-23 20:59:24 +01:00
bitcount.h Add hardware POPCNT support for gcc 2010-01-31 09:39:32 +01:00
book.cpp Simplify move legality check for uncommon cases 2009-09-22 07:07:18 +01:00
book.h Update copyright year 2009-05-07 14:54:40 +02:00
color.h Use string instead of std::string 2009-05-10 18:38:47 +01:00
COPYING Initial import of Glaurung 2.1 2008-09-01 07:59:13 +02:00
depth.h Use calculate_reduction() function to simplify code 2010-01-28 11:15:41 +01:00
direction.cpp Space inflate and cleanup direction.cpp 2009-05-20 12:02:39 +02:00
direction.h Update copyright year 2009-05-07 14:54:40 +02:00
endgame.cpp Rename piece_attacks_from() in attacks_from() 2009-09-20 14:55:28 +01:00
endgame.h Better naming and document some endgame functions 2009-08-14 08:19:55 +01:00
evaluate.cpp Save futilityMargin for both colors 2010-02-01 20:06:56 +01:00
evaluate.h Save futilityMargin for both colors 2010-02-01 20:06:56 +01:00
history.cpp Convert gains to use a piece-to mapping 2010-02-03 19:33:59 +01:00
history.h Convert gains to use a piece-to mapping 2010-02-03 19:33:59 +01:00
lock.h Simplify locking in sp_search and sp_search_pv 2010-01-27 17:58:04 +01:00
main.cpp Implemented perft 2009-11-01 17:05:00 +01:00
Makefile Add hardware POPCNT support for gcc 2010-01-31 09:39:32 +01:00
material.cpp Fix duplicated scaling function 2010-02-01 19:33:02 +01:00
material.h Move game phase computation to MaterialInfo 2009-11-14 17:57:49 +01:00
mersenne.cpp Warnings termination fest 2008-09-24 00:32:53 +02:00
mersenne.h Update copyright year 2009-05-07 14:54:40 +02:00
misc.cpp Restore development version 2009-12-30 13:25:21 +01:00
misc.h Use string instead of std::string 2009-05-10 18:38:47 +01:00
move.cpp Micro optimize and rename move_promotion() 2009-06-20 09:04:32 +01:00
move.h Delay sorting of negative scored non-captures 2010-02-05 18:31:09 +01:00
movegen.cpp Small code-style touches in movegen.cpp 2009-11-06 14:42:48 +01:00
movegen.h Retire MovePicker::discovered_check_candidates() 2009-11-05 07:03:48 +01:00
movepick.cpp Use gain table to order non-captures 2010-02-07 08:55:51 +01:00
movepick.h Delay sorting of negative scored non-captures 2010-02-05 18:31:09 +01:00
pawns.cpp Convert pawns evaluation to Score 2009-11-14 17:57:50 +01:00
pawns.h Convert pawns evaluation to Score 2009-11-14 17:57:50 +01:00
piece.cpp Update copyright year 2009-05-07 14:54:40 +02:00
piece.h Retire piece_is_slider(PieceType pt) 2009-09-04 08:21:07 +01:00
position.cpp Implement MaxGain table 2010-01-27 09:57:14 +01:00
position.h Implement MaxGain table 2010-01-27 09:57:14 +01:00
psqtab.h Joona tweaks of piece values 2009-07-02 06:29:14 +01:00
san.cpp Avoid copy a Position to get a move's san notation 2010-01-25 16:22:50 +01:00
san.h Avoid copy a Position to get a move's san notation 2010-01-25 16:22:50 +01:00
scale.h Update copyright year 2009-05-07 14:54:40 +02:00
search.cpp Retire EvalInfo* in SearchStack 2010-02-08 10:50:17 +01:00
search.h Retire EvalInfo* in SearchStack 2010-02-08 10:50:17 +01:00
square.h Update copyright year 2009-05-07 14:54:40 +02:00
thread.h Remove unused failHighPly1 flag 2010-02-05 15:21:05 +01:00
tt.cpp Increase TT size limit to 8 GB 2010-02-01 16:53:10 +01:00
tt.h Increase TT size limit to 8 GB 2010-02-01 16:53:10 +01:00
types.h Fix correct name of int64_t type 2009-11-07 10:08:28 +01:00
uci.cpp Standardize set_option function 2010-01-27 20:03:44 +01:00
uci.h Update copyright year 2009-05-07 14:54:40 +02:00
ucioption.cpp Increase TT size limit to 8 GB 2010-02-01 16:53:10 +01:00
ucioption.h Use string instead of std::string 2009-05-10 18:38:47 +01:00
value.cpp Update copyright year 2009-05-07 14:54:40 +02:00
value.h Fix enum Value issue with gcc 4.4 2010-01-19 23:30:23 +01:00