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 43ba7d9c0..f87d7a94d 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -26,6 +26,7 @@ #include #include +#include "memory.h" #include "movegen.h" #include "search.h" #include "syzygy/tbprobe.h" @@ -53,8 +54,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 00616097a..79376b10a 100644 --- a/src/thread.h +++ b/src/thread.h @@ -28,6 +28,7 @@ #include #include +#include "memory.h" #include "numa.h" #include "position.h" #include "search.h" @@ -93,8 +94,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;