Loading...
--- libmalloc/libmalloc-657.80.3/tests/threaded_stress.c
+++ libmalloc/libmalloc-646.40.3/tests/threaded_stress.c
@@ -12,9 +12,6 @@
#if !MALLOC_TARGET_EXCLAVES
#include <sys/sysctl.h>
#include <mach/mach.h>
-typedef unsigned seed_type_t;
-#else
-typedef unsigned long seed_type_t;
#endif // !MALLOC_TARGET_EXCLAVES
// These tests are based on perf_contended_malloc_free, but intended as
@@ -30,7 +27,7 @@
#pragma mark -
static uint64_t
-random_busy_counts(seed_type_t *seed, uint64_t *first, uint64_t *second)
+random_busy_counts(unsigned int *seed, uint64_t *first, uint64_t *second)
{
uint64_t random = rand_r(seed);
*first = 0x4 + (random & (0x10 - 1));
@@ -230,7 +227,7 @@
{
kern_return_t kr;
int r;
- seed_type_t seed;
+ unsigned int seed;
volatile double dummy;
uint64_t pos, remaining_frees;
void *alloc;