]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
no lock checks(file size) and align 64 bits, because otherwise bus error
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 13 Jun 2007 12:27:18 +0000 (12:27 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 13 Jun 2007 12:27:18 +0000 (12:27 +0000)
on solaris.

git-svn-id: file:///svn/unbound/trunk@386 be551aaa-1e26-0410-a405-d3ace91eadb9

testcode/checklocks.c
util/region-allocator.c

index 6d1ac9c83be64a398df5e2182abb5b95f8972384..f8e8969015db73687a4a857b472955738cd59757 100644 (file)
@@ -63,7 +63,7 @@ static ub_thread_key_t thr_debug_key;
 /** the list of threads, so all threads can be examined. NULL if unused. */
 static struct thr_check* thread_infos[THRDEBUG_MAX_THREADS];
 /** do we check locking order */
-int check_locking_order = 1;
+int check_locking_order = 0;
 /** the pid of this runset, reasonably unique. */
 static pid_t check_lock_pid;
 
index d4753bb7d8f1722ee40ca212e99239f9ac47de02..daa1c0a89decc67ce9d810cfc598d34bf4d5fad3 100644 (file)
@@ -50,7 +50,7 @@
 /** increase size until it fits alignment of s bytes */
 #define ALIGN_UP(x, s)     (((x) + s - 1) & (~(s - 1)))
 /** what size to align on */
-#define ALIGNMENT          (sizeof(void *))
+#define ALIGNMENT          (sizeof(uint64_t))
 /** set to 1 to perform expensive check for double recycle() */
 #define CHECK_DOUBLE_FREE 0