2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-02 20:52:21 +00:00

reset stack-size to 4kB for skynet-tests

This commit is contained in:
Oliver Kowalke
2017-06-08 20:40:32 +02:00
parent 3e7e9e6a67
commit d55ba1d97f
8 changed files with 8 additions and 8 deletions

View File

@@ -85,7 +85,7 @@ int main() {
barrier b{ hardware_concurrency( topo) };
std::size_t size{ 1000000 };
std::size_t div{ 10 };
allocator_type salloc{ 2*allocator_type::traits_type::page_size() };
allocator_type salloc{ allocator_type::traits_type::page_size() };
std::uint64_t result{ 0 };
channel_type rc{ 2 };
std::vector< std::thread > threads;

View File

@@ -51,7 +51,7 @@ int main() {
try {
std::size_t size{ 1000000 };
std::size_t div{ 10 };
allocator_type salloc{ 2*allocator_type::traits_type::page_size() };
allocator_type salloc{ allocator_type::traits_type::page_size() };
std::uint64_t result{ 0 };
channel_type rc{ 2 };
time_point_type start{ clock_type::now() };

View File

@@ -55,7 +55,7 @@ int main() {
try {
std::size_t size{ 1000000 };
std::size_t div{ 10 };
allocator_type salloc{ 2*allocator_type::traits_type::page_size() };
allocator_type salloc{ allocator_type::traits_type::page_size() };
std::uint64_t result{ 0 };
channel_type rc{ 2 };
time_point_type start{ clock_type::now() };

View File

@@ -78,7 +78,7 @@ int main() {
for ( unsigned int i = 1; i < n; ++i) {
threads.emplace_back( thread, i - 1, & b);
};
allocator_type salloc{ 2*allocator_type::traits_type::page_size() };
allocator_type salloc{ allocator_type::traits_type::page_size() };
std::uint64_t result{ 0 };
channel_type rc{ 2 };
b.wait();

View File

@@ -82,7 +82,7 @@ int main() {
for ( unsigned int i = 1; i < n; ++i) {
threads.emplace_back( thread, i - 1, & b);
};
allocator_type salloc{ 2*allocator_type::traits_type::page_size() };
allocator_type salloc{ allocator_type::traits_type::page_size() };
std::uint64_t result{ 0 };
channel_type rc{ 2 };
b.wait();

View File

@@ -83,7 +83,7 @@ int main() {
barrier b{ thread_count };
std::size_t size{ 1000000 };
std::size_t div{ 10 };
allocator_type salloc{ 2*allocator_type::traits_type::page_size() };
allocator_type salloc{ allocator_type::traits_type::page_size() };
std::uint64_t result{ 0 };
channel_type rc{ 2 };
std::vector< std::thread > threads;

View File

@@ -77,7 +77,7 @@ int main() {
barrier b{ thread_count };
std::size_t size{ 1000000 };
std::size_t div{ 10 };
allocator_type salloc{ 2*allocator_type::traits_type::page_size() };
allocator_type salloc{ allocator_type::traits_type::page_size() };
std::uint64_t result{ 0 };
channel_type rc{ 2 };
std::vector< std::thread > threads;

View File

@@ -81,7 +81,7 @@ int main() {
barrier b{ thread_count };
std::size_t size{ 1000000 };
std::size_t div{ 10 };
allocator_type salloc{ 2*allocator_type::traits_type::page_size() };
allocator_type salloc{ allocator_type::traits_type::page_size() };
std::uint64_t result{ 0 };
channel_type rc{ 2 };
std::vector< std::thread > threads;