From 19b847c1a4a2fa1c5dc48807e7dc189c3b130262 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Sat, 20 May 2017 00:04:03 +0900 Subject: [PATCH] DEBUG: vecelements test triggers assert on CI but not locally --- src/julia_internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/julia_internal.h b/src/julia_internal.h index 63f855bc55c81e..fd12c45fb5299d 100644 --- a/src/julia_internal.h +++ b/src/julia_internal.h @@ -178,7 +178,9 @@ STATIC_INLINE int JL_CONST_FUNC jl_gc_alignsz(size_t sz, size_t alignment) { // The pools are aligned wit JL_CACHE_BYTE_ALIGNMENT (typically 64) // and we can't guarantee a bigger alignment. - assert(alignment <= JL_CACHE_BYTE_ALIGNMENT); + if (!(alignment <= JL_CACHE_BYTE_ALIGNMENT)) { + printf("Alignment %lu, sz: %lu\n", alignment, sz); + } // Pools with the correct alignment will have an object size that // is a multiple of the alignment. As an example an allocation with // sz of 48 and an alignment of 32 will need to be in pool of size 64.