diff --git a/AUTHORS b/AUTHORS index 4729afeab..31ff51def 100644 --- a/AUTHORS +++ b/AUTHORS @@ -136,6 +136,7 @@ Ken Takusagawa Kenneth Lee (kennethlee33) kevlu8 Kian E (KJE-98) +Kieren Pearson (KierenP) kinderchocolate Kiran Panditrao (Krgp) Kirill Zaripov (kokodio) diff --git a/src/thread.cpp b/src/thread.cpp index d6f33472b..c1b1db8bf 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -28,6 +28,7 @@ #include "cluster.h" #include "misc.h" +#include "memory.h" #include "movegen.h" #include "search.h" #include "syzygy/tbprobe.h" @@ -55,8 +56,8 @@ Thread::Thread(Search::SharedState& sharedState, // the Worker allocation. Ideally we would also allocate the SearchManager // here, but that's minor. this->numaAccessToken = binder(); - this->worker = - std::make_unique(sharedState, std::move(sm), n, this->numaAccessToken); + this->worker = make_unique_large_page(sharedState, std::move(sm), n, + this->numaAccessToken); }); wait_for_search_finished(); diff --git a/src/thread.h b/src/thread.h index b971e0b41..1ecd325b8 100644 --- a/src/thread.h +++ b/src/thread.h @@ -28,6 +28,7 @@ #include #include +#include "memory.h" #include "movepick.h" #include "numa.h" #include "position.h" @@ -94,8 +95,8 @@ class Thread { void wait_for_search_finished(); size_t id() const { return idx; } - std::unique_ptr worker; - std::function jobFunc; + LargePagePtr worker; + std::function jobFunc; private: std::mutex mutex;