Skip to content

Instantly share code, notes, and snippets.

View djwatson's full-sized avatar
💭
Feelin good

Dave Watson djwatson

💭
Feelin good
  • Facebook
  • san francisco
View GitHub Profile
x a
x a
x a
x Disassembly of section .text: a
x a
x 000000000040c720 <__libc_malloc>: a
x tsd_state_get(): a
x * This sh
diff --git a/master/src/jemalloc.git-trunk/configure.ac b/master/src/jemalloc.git-trunk/configure.ac
index ffa0ece..d1d7f23 100644
--- a/master/src/jemalloc.git-trunk/configure.ac
+++ b/master/src/jemalloc.git-trunk/configure.ac
@@ -1457,6 +1457,29 @@ if test "x$have_sched_getcpu" = "x1" ; then
AC_DEFINE([JEMALLOC_HAVE_SCHED_GETCPU], [ ])
fi
+dnl Check if the glibc __libc_allocate_rtsig function exists.
+AC_CHECK_FUNC([__libc_allocate_rtsig],
diff --git a/Makefile.in b/Makefile.in
index e4aaaf2..7cae4be 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -100,6 +100,7 @@ C_SRCS := $(srcroot)src/jemalloc.c \
$(srcroot)src/prng.c \
$(srcroot)src/prof.c \
$(srcroot)src/rtree.c \
+ $(srcroot)src/slabcache.c \
$(srcroot)src/stats.c \
diff --git a/Makefile.in b/Makefile.in
index e4aaaf2..7cae4be 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -100,6 +100,7 @@ C_SRCS := $(srcroot)src/jemalloc.c \
$(srcroot)src/prng.c \
$(srcroot)src/prof.c \
$(srcroot)src/rtree.c \
+ $(srcroot)src/slabcache.c \
$(srcroot)src/stats.c \
@djwatson
djwatson / gs_test.c
Last active October 22, 2015 14:46
int migrate_cmpxchgcheck(intptr_t *ptr, intptr_t old, intptr_t new,
intptr_t *checkold, intptr_t checknew,
unsigned long lockval, int cpu) {
/* The preemption lock needs to be tagged:
* our tid in 32 bits, sequence counter in
* other 32 bits to avoid aba on calling tkill
*/
unsigned long newlockval = cached_tid | ((lockval+1) & 0xFFFFFFFF);
asm volatile goto(