mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-13 12:17:18 +03:00
Speculative fix for Windows tasks that sometime fail on aligned_alloc
This commit is contained in:
parent
0bce098955
commit
c823cf2f3c
1 changed files with 19 additions and 2 deletions
|
|
@ -2,15 +2,30 @@
|
||||||
|
|
||||||
case @abi@ in
|
case @abi@ in
|
||||||
macho)
|
macho)
|
||||||
export DYLD_FALLBACK_LIBRARY_PATH="@objroot@lib"
|
export DYLD_FALLBACK_LIBRARY_PATH="@abs_objroot@lib"
|
||||||
;;
|
;;
|
||||||
pecoff)
|
pecoff)
|
||||||
export PATH="${PATH}:@objroot@lib"
|
export PATH="@abs_objroot@lib:${PATH}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
prepare_test_exec() {
|
||||||
|
case @abi@ in
|
||||||
|
pecoff)
|
||||||
|
test_dir=`dirname "$1"`
|
||||||
|
for dll in @abs_objroot@lib/*.dll ; do
|
||||||
|
if [ -f "${dll}" ] ; then
|
||||||
|
cp -f "${dll}" "${test_dir}/"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
# Make a copy of the @JEMALLOC_CPREFIX@MALLOC_CONF passed in to this script, so
|
# Make a copy of the @JEMALLOC_CPREFIX@MALLOC_CONF passed in to this script, so
|
||||||
# it can be repeatedly concatenated with per test settings.
|
# it can be repeatedly concatenated with per test settings.
|
||||||
export MALLOC_CONF_ALL=${@JEMALLOC_CPREFIX@MALLOC_CONF}
|
export MALLOC_CONF_ALL=${@JEMALLOC_CPREFIX@MALLOC_CONF}
|
||||||
|
|
@ -45,10 +60,12 @@ for t in $@; do
|
||||||
enable_prof=@enable_prof@ \
|
enable_prof=@enable_prof@ \
|
||||||
disable_large_size_classes=@disable_large_size_classes@ \
|
disable_large_size_classes=@disable_large_size_classes@ \
|
||||||
. @srcroot@${t}.sh && \
|
. @srcroot@${t}.sh && \
|
||||||
|
prepare_test_exec ${t}@exe@ && \
|
||||||
export_malloc_conf && \
|
export_malloc_conf && \
|
||||||
$JEMALLOC_TEST_PREFIX ${t}@exe@ @abs_srcroot@ @abs_objroot@
|
$JEMALLOC_TEST_PREFIX ${t}@exe@ @abs_srcroot@ @abs_objroot@
|
||||||
else
|
else
|
||||||
export MALLOC_CONF= && \
|
export MALLOC_CONF= && \
|
||||||
|
prepare_test_exec ${t}@exe@ && \
|
||||||
export_malloc_conf && \
|
export_malloc_conf && \
|
||||||
$JEMALLOC_TEST_PREFIX ${t}@exe@ @abs_srcroot@ @abs_objroot@
|
$JEMALLOC_TEST_PREFIX ${t}@exe@ @abs_srcroot@ @abs_objroot@
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue