[PATCH] Define _CRT_SPINCOUNT in test/src/mtx.c like in src/mutex.c

Mike Hommey mh+jemalloc at glandium.org
Wed May 21 00:59:50 PDT 2014


From: Mike Hommey <mh at glandium.org>

---
 test/src/mtx.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/src/mtx.c b/test/src/mtx.c
index 41b95d5..73bd02f 100644
--- a/test/src/mtx.c
+++ b/test/src/mtx.c
@@ -1,5 +1,9 @@
 #include "test/jemalloc_test.h"
 
+#ifndef _CRT_SPINCOUNT
+#define	_CRT_SPINCOUNT 4000
+#endif
+
 bool
 mtx_init(mtx_t *mtx)
 {
-- 
2.0.0.rc2



More information about the jemalloc-discuss mailing list