From 817d58904297cb0634565e94a79c25df07a068ca Mon Sep 17 00:00:00 2001 From: rektdie Date: Thu, 21 Aug 2025 15:26:49 +0200 Subject: [PATCH] small bugfix in datagen | bench 10419455 --- source/datagen.cpp | 2 +- source/search.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/datagen.cpp b/source/datagen.cpp index d29410f..c56b893 100644 --- a/source/datagen.cpp +++ b/source/datagen.cpp @@ -217,7 +217,7 @@ void Run(int targetPositions, int threads) { for (int i = 0; i < threads - 1; ++i) { pthread_attr_t attr; pthread_attr_init(&attr); - pthread_attr_setstacksize(&attr, 8 * 1024 * 1024); // 2 MB stack + pthread_attr_setstacksize(&attr, 8 * 1024 * 1024); // 8 MB stack auto* args = new std::tuple*, std::atomic*>(i, &positions, &stopFlag); diff --git a/source/search.h b/source/search.h index 8dcd560..3a2a9b8 100644 --- a/source/search.h +++ b/source/search.h @@ -154,7 +154,7 @@ public: sw.Restart(); killerMoves = {}; ss = {}; - positionHistory.reserve(1000); + positionHistory.resize(1000); } };