494252 s390x: incorrect disassembly for LOCHI and friends
495278 PowerPC instruction dcbf should allow the L field values of 4, 6 on
ISA 3.0 and earlier, just ignore the value
+495469 aligned_alloc and posix_memalign missing MALLOC_TRACE with returned
+ pointer
n-i-bz Improve messages for sigaltstack errors, use specific
stack_t member names
MALLOC_TRACE("reallocarray(%p,%llu,%llu)", ptrV, (ULong)nmemb, (ULong)size ); \
if (nmemb > 0 && (SizeT)-1 / nmemb < size) { \
SET_ERRNO_ENOMEM; \
+ MALLOC_TRACE(" = 0\n"); \
return NULL; \
} \
v = (void*)VALGRIND_NON_SIMD_CALL2( info.tl_realloc, ptrV, nmemb*size ); \
(alignment & (alignment - 1)) != 0) || \
(VG_MEMALIGN_ALIGN_FACTOR_FOUR && (alignment % 4 != 0))) { \
SET_ERRNO_EINVAL; \
+ MALLOC_TRACE(" = 0\n"); \
return 0; \
} \
/* Round up to minimum alignment if necessary. */ \
if (!mem) \
SET_ERRNO_ENOMEM; \
\
+ MALLOC_TRACE(" = %p\n", mem); \
+ \
return mem; \
}
\
if (!mem) SET_ERRNO_ENOMEM; \
\
+ MALLOC_TRACE(" = %p\n", mem); \
+ \
return mem; \
}
if (alignment == 0 \
|| alignment % sizeof (void *) != 0 \
|| (alignment & (alignment - 1)) != 0) { \
+ MALLOC_TRACE(" = 0\n"); \
return VKI_EINVAL; \
} \
if (VG_POSIX_MEMALIGN_SIZE_0_RETURN_NULL && \
size == 0U) { \
/* no allocation for zero size on Solaris/Illumos */ \
*memptr = NULL; \
+ MALLOC_TRACE(" = 0\n"); \
return 0; \
} \
/* Round up to minimum alignment if necessary. */ \
mem = (void*)VALGRIND_NON_SIMD_CALL3( info.tl_memalign, \
alignment, orig_alignment, size ); \
\
+ MALLOC_TRACE(" = %p\n", mem); \
+ \
if (mem != NULL) { \
*memptr = mem; \
return 0; \
mem = (void*)VALGRIND_NON_SIMD_CALL3( info.tl_memalign, \
alignment, orig_alignment, size ); \
\
+ MALLOC_TRACE(" = %p\n", mem); \
+ \
return mem; \
}
|| (VG_ALIGNED_ALLOC_ALIGN_POWER_TWO && (alignment & (alignment - 1)) != 0) \
|| (VG_ALIGNED_ALLOC_ALIGN_FACTOR_FOUR && (alignment % 4 != 0))) { \
SET_ERRNO_EINVAL; \
+ MALLOC_TRACE(" = 0\n"); \
return 0; \
} \
\
\
if (!mem) SET_ERRNO_ENOMEM; \
\
+ MALLOC_TRACE(" = %p\n", mem); \
+ \
return mem; \
}
#endif