Bug #8680 » 0001-enable-usage-of-AddressSanitizer-in-CRuby.patch
| gc.c | ||
|---|---|---|
|
#include <sys/types.h>
|
||
|
#include <assert.h>
|
||
|
#if defined(__clang__) || defined (__GNUC__)
|
||
|
# define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS __attribute__((no_address_safety_analysis)) __attribute__ ((noinline))
|
||
|
#else
|
||
|
# define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS
|
||
|
#endif
|
||
|
#ifdef HAVE_SYS_TIME_H
|
||
|
#include <sys/time.h>
|
||
|
#endif
|
||
| ... | ... | |
|
#endif
|
||
|
}
|
||
|
ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS
|
||
|
static void
|
||
|
mark_locations_array(rb_objspace_t *objspace, register VALUE *x, register long n)
|
||
|
{
|
||