Fix test refactoring issues for Linux.
This commit is contained in:
parent
72284f0335
commit
14990b83d1
@ -224,7 +224,7 @@ $(STATIC_LIBS):
|
|||||||
|
|
||||||
$(objroot)test/unit/%$(EXE): $(objroot)test/unit/%.$(O) $(C_JET_OBJS) $(C_TESTLIB_UNIT_OBJS)
|
$(objroot)test/unit/%$(EXE): $(objroot)test/unit/%.$(O) $(C_JET_OBJS) $(C_TESTLIB_UNIT_OBJS)
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
$(CC) $(LDTARGET) $(filter %.$(O),$^) $(call RPATH,$(objroot)lib) $(filter -lpthread,$(LIBS)) $(EXTRA_LDFLAGS)
|
$(CC) $(LDTARGET) $(filter %.$(O),$^) $(call RPATH,$(objroot)lib) $(LIBS) $(EXTRA_LDFLAGS)
|
||||||
|
|
||||||
$(objroot)test/integration/%$(EXE): $(objroot)test/integration/%.$(O) $(C_TESTLIB_INTEGRATION_OBJS) $(C_UTIL_INTEGRATION_OBJS) $(objroot)lib/$(LIBJEMALLOC).$(IMPORTLIB)
|
$(objroot)test/integration/%$(EXE): $(objroot)test/integration/%.$(O) $(C_TESTLIB_INTEGRATION_OBJS) $(C_UTIL_INTEGRATION_OBJS) $(objroot)lib/$(LIBJEMALLOC).$(IMPORTLIB)
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
@ -232,7 +232,7 @@ $(objroot)test/integration/%$(EXE): $(objroot)test/integration/%.$(O) $(C_TESTLI
|
|||||||
|
|
||||||
$(objroot)test/stress/%$(EXE): $(objroot)test/stress/%.$(O) $(C_JET_OBJS) $(C_TESTLIB_STRESS_OBJS) $(objroot)lib/$(LIBJEMALLOC).$(IMPORTLIB)
|
$(objroot)test/stress/%$(EXE): $(objroot)test/stress/%.$(O) $(C_JET_OBJS) $(C_TESTLIB_STRESS_OBJS) $(objroot)lib/$(LIBJEMALLOC).$(IMPORTLIB)
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
$(CC) $(LDTARGET) $(filter %.$(O),$^) $(call RPATH,$(objroot)lib) $(objroot)lib/$(LIBJEMALLOC).$(IMPORTLIB) $(filter -lpthread,$(LIBS)) $(EXTRA_LDFLAGS)
|
$(CC) $(LDTARGET) $(filter %.$(O),$^) $(call RPATH,$(objroot)lib) $(objroot)lib/$(LIBJEMALLOC).$(IMPORTLIB) $(LIBS) $(EXTRA_LDFLAGS)
|
||||||
|
|
||||||
build_lib_shared: $(DSOS)
|
build_lib_shared: $(DSOS)
|
||||||
build_lib_static: $(STATIC_LIBS)
|
build_lib_static: $(STATIC_LIBS)
|
||||||
|
@ -241,37 +241,6 @@ static const bool config_ivsalloc =
|
|||||||
# define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var))
|
# define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* JEMALLOC_ALWAYS_INLINE is used within header files for functions that are
|
|
||||||
* static inline functions if inlining is enabled, and single-definition
|
|
||||||
* library-private functions if inlining is disabled.
|
|
||||||
*
|
|
||||||
* JEMALLOC_ALWAYS_INLINE_C is for use in .c files, in which case the denoted
|
|
||||||
* functions are always static, regardless of whether inlining is enabled.
|
|
||||||
*/
|
|
||||||
#ifdef JEMALLOC_DEBUG
|
|
||||||
/* Disable inlining to make debugging easier. */
|
|
||||||
# define JEMALLOC_ALWAYS_INLINE
|
|
||||||
# define JEMALLOC_ALWAYS_INLINE_C static
|
|
||||||
# define JEMALLOC_INLINE
|
|
||||||
# define inline
|
|
||||||
#else
|
|
||||||
# define JEMALLOC_ENABLE_INLINE
|
|
||||||
# ifdef JEMALLOC_HAVE_ATTR
|
|
||||||
# define JEMALLOC_ALWAYS_INLINE \
|
|
||||||
static inline JEMALLOC_ATTR(unused) JEMALLOC_ATTR(always_inline)
|
|
||||||
# define JEMALLOC_ALWAYS_INLINE_C \
|
|
||||||
static inline JEMALLOC_ATTR(always_inline)
|
|
||||||
# else
|
|
||||||
# define JEMALLOC_ALWAYS_INLINE static inline
|
|
||||||
# define JEMALLOC_ALWAYS_INLINE_C static inline
|
|
||||||
# endif
|
|
||||||
# define JEMALLOC_INLINE static inline
|
|
||||||
# ifdef _MSC_VER
|
|
||||||
# define inline _inline
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Smallest size class to support. */
|
/* Smallest size class to support. */
|
||||||
#define LG_TINY_MIN 3
|
#define LG_TINY_MIN 3
|
||||||
#define TINY_MIN (1U << LG_TINY_MIN)
|
#define TINY_MIN (1U << LG_TINY_MIN)
|
||||||
|
@ -89,6 +89,37 @@
|
|||||||
*/
|
*/
|
||||||
#undef JEMALLOC_DEBUG
|
#undef JEMALLOC_DEBUG
|
||||||
|
|
||||||
|
/*
|
||||||
|
* JEMALLOC_ALWAYS_INLINE is used within header files for functions that are
|
||||||
|
* static inline functions if inlining is enabled, and single-definition
|
||||||
|
* library-private functions if inlining is disabled.
|
||||||
|
*
|
||||||
|
* JEMALLOC_ALWAYS_INLINE_C is for use in .c files, in which case the denoted
|
||||||
|
* functions are always static, regardless of whether inlining is enabled.
|
||||||
|
*/
|
||||||
|
#ifdef JEMALLOC_DEBUG
|
||||||
|
/* Disable inlining to make debugging easier. */
|
||||||
|
# define JEMALLOC_ALWAYS_INLINE
|
||||||
|
# define JEMALLOC_ALWAYS_INLINE_C static
|
||||||
|
# define JEMALLOC_INLINE
|
||||||
|
# define inline
|
||||||
|
#else
|
||||||
|
# define JEMALLOC_ENABLE_INLINE
|
||||||
|
# ifdef JEMALLOC_HAVE_ATTR
|
||||||
|
# define JEMALLOC_ALWAYS_INLINE \
|
||||||
|
static inline JEMALLOC_ATTR(unused) JEMALLOC_ATTR(always_inline)
|
||||||
|
# define JEMALLOC_ALWAYS_INLINE_C \
|
||||||
|
static inline JEMALLOC_ATTR(always_inline)
|
||||||
|
# else
|
||||||
|
# define JEMALLOC_ALWAYS_INLINE static inline
|
||||||
|
# define JEMALLOC_ALWAYS_INLINE_C static inline
|
||||||
|
# endif
|
||||||
|
# define JEMALLOC_INLINE static inline
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
# define inline _inline
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* JEMALLOC_STATS enables statistics calculation. */
|
/* JEMALLOC_STATS enables statistics calculation. */
|
||||||
#undef JEMALLOC_STATS
|
#undef JEMALLOC_STATS
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/*
|
/*
|
||||||
@ -59,7 +60,6 @@
|
|||||||
# include <inttypes.h>
|
# include <inttypes.h>
|
||||||
# include <stdarg.h>
|
# include <stdarg.h>
|
||||||
# include <errno.h>
|
# include <errno.h>
|
||||||
# define JEMALLOC_CC_SILENCE
|
|
||||||
# define JEMALLOC_H_TYPES
|
# define JEMALLOC_H_TYPES
|
||||||
# define JEMALLOC_H_STRUCTS
|
# define JEMALLOC_H_STRUCTS
|
||||||
# define JEMALLOC_H_EXTERNS
|
# define JEMALLOC_H_EXTERNS
|
||||||
@ -69,7 +69,6 @@
|
|||||||
# undef JEMALLOC_H_STRUCTS
|
# undef JEMALLOC_H_STRUCTS
|
||||||
# undef JEMALLOC_H_EXTERNS
|
# undef JEMALLOC_H_EXTERNS
|
||||||
# undef JEMALLOC_H_INLINES
|
# undef JEMALLOC_H_INLINES
|
||||||
# undef JEMALLOC_CC_SILENCE
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user