diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-12-19 16:06:16 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-12-20 05:10:52 +0000 |
commit | a00e560b0d8267e9b376e5c0e6a2139a7be63281 (patch) | |
tree | ba207915b8cac9fb92493cc103821f6cce9db31b /eval | |
parent | 05b58ac83b06b00ae97ecafad101e44d4dd76aee (diff) |
Remove stacksize from the thread pools and thread executors.
Diffstat (limited to 'eval')
-rw-r--r-- | eval/src/tests/eval/compile_cache/compile_cache_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eval/src/tests/eval/compile_cache/compile_cache_test.cpp b/eval/src/tests/eval/compile_cache/compile_cache_test.cpp index 2688dc7b4f5..6cf95cc526d 100644 --- a/eval/src/tests/eval/compile_cache/compile_cache_test.cpp +++ b/eval/src/tests/eval/compile_cache/compile_cache_test.cpp @@ -166,7 +166,7 @@ TEST("require that cache usage works") { } TEST("require that async cache usage works") { - auto executor = std::make_shared<ThreadStackExecutor>(8, 256_Ki); + auto executor = std::make_shared<ThreadStackExecutor>(8); auto binding = CompileCache::bind(executor); CompileCache::Token::UP token_a = CompileCache::compile(*Function::parse("x+y"), PassParams::SEPARATE); EXPECT_EQUAL(5.0, token_a->get().get_function<2>()(2.0, 3.0)); @@ -298,7 +298,7 @@ TEST_F("compile sequentially, then run all conformance tests", test::EvalSpec()) TEST_F("compile concurrently (8 threads), then run all conformance tests", test::EvalSpec()) { f1.add_all_cases(); - auto executor = std::make_shared<ThreadStackExecutor>(8, 256_Ki); + auto executor = std::make_shared<ThreadStackExecutor>(8); auto binding = CompileCache::bind(executor); while (executor->num_idle_workers() < 8) { std::this_thread::sleep_for(1ms); @@ -333,7 +333,7 @@ TEST_MT_FF("require that deadlock is avoided with blocking executor", 8, std::sh size_t loop = 16; if (thread_id == 0) { auto t0 = steady_clock::now(); - f1 = std::make_shared<BlockingThreadStackExecutor>(2, 256_Ki, 3); + f1 = std::make_shared<BlockingThreadStackExecutor>(2, 3); auto binding = CompileCache::bind(f1); TEST_BARRIER(); // #1 for (size_t i = 0; i < num_threads; ++i) { |