jemalloc.c (palemoon-29.4.1-source.tar.xz) | : | jemalloc.c (palemoon-29.4.2-source.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 297 | skipping to change at line 297 | |||
# define SIZE_T_MAX SIZE_MAX | # define SIZE_T_MAX SIZE_MAX | |||
#endif | #endif | |||
#include <pthread.h> | #include <pthread.h> | |||
#include <sched.h> | #include <sched.h> | |||
#include <stdarg.h> | #include <stdarg.h> | |||
#include <stdio.h> | #include <stdio.h> | |||
#include <stdbool.h> | #include <stdbool.h> | |||
#include <stdint.h> | #include <stdint.h> | |||
#include <stdlib.h> | #include <stdlib.h> | |||
#include <string.h> | #include <string.h> | |||
#ifndef MOZ_MEMORY_DARWIN | ||||
#include <strings.h> | #include <strings.h> | |||
#endif | ||||
#include <unistd.h> | #include <unistd.h> | |||
#ifdef MOZ_MEMORY_DARWIN | ||||
#include <libkern/OSAtomic.h> | ||||
#include <mach/mach_error.h> | ||||
#include <mach/mach_init.h> | ||||
#include <mach/vm_map.h> | ||||
#include <malloc/malloc.h> | ||||
#ifndef _pthread_self | ||||
#define _pthread_self() pthread_self() | ||||
#endif | ||||
#endif | ||||
#endif | #endif | |||
#include "jemalloc_types.h" | #include "jemalloc_types.h" | |||
#include "linkedlist.h" | #include "linkedlist.h" | |||
#include "mozmemory_wrap.h" | #include "mozmemory_wrap.h" | |||
/* Some tools, such as /dev/dsp wrappers, LD_PRELOAD libraries that | /* Some tools, such as /dev/dsp wrappers, LD_PRELOAD libraries that | |||
* happen to override mmap() and call dlsym() from their overridden | * happen to override mmap() and call dlsym() from their overridden | |||
* mmap(). The problem is that dlsym() calls malloc(), and this ends | * mmap(). The problem is that dlsym() calls malloc(), and this ends | |||
* up in a dead lock in jemalloc. | * up in a dead lock in jemalloc. | |||
End of changes. 3 change blocks. | ||||
13 lines changed or deleted | 0 lines changed or added |