Changeset View
Changeset View
Standalone View
Standalone View
test/scudo/threads.c
// RUN: %clang_scudo %s -o %t | // RUN: %clang_scudo %s -o %t | ||||
// RUN: %env_scudo_opts="QuarantineSizeKb=0:ThreadLocalQuarantineSizeKb=0" %run %t 5 1000000 2>&1 | // RUN: %env_scudo_opts="QuarantineSizeKb=0:ThreadLocalQuarantineSizeKb=0" %run %t 5 1000000 2>&1 | ||||
// RUN: %env_scudo_opts="QuarantineSizeKb=1024:ThreadLocalQuarantineSizeKb=64" %run %t 5 1000000 2>&1 | // RUN: %env_scudo_opts="QuarantineSizeKb=1024:ThreadLocalQuarantineSizeKb=64" %run %t 5 1000000 2>&1 | ||||
// UNSUPPORTED: win32 | |||||
// Tests parallel allocations and deallocations of memory chunks from a number | // Tests parallel allocations and deallocations of memory chunks from a number | ||||
// of concurrent threads, with and without quarantine. | // of concurrent threads, with and without quarantine. | ||||
// This test passes if everything executes properly without crashing. | // This test passes if everything executes properly without crashing. | ||||
#include <assert.h> | #include <assert.h> | ||||
#include <pthread.h> | #include <pthread.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |