mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-01 17:54:16 +03:00
Speculative fix for Windows tasks that sometime fail on aligned_alloc
This commit is contained in:
parent
44bb61e19e
commit
2004cf039e
1 changed files with 19 additions and 2 deletions
|
|
@ -2,15 +2,30 @@
|
|||
|
||||
case @abi@ in
|
||||
macho)
|
||||
export DYLD_FALLBACK_LIBRARY_PATH="@objroot@lib"
|
||||
export DYLD_FALLBACK_LIBRARY_PATH="@abs_objroot@lib"
|
||||
;;
|
||||
pecoff)
|
||||
export PATH="${PATH}:@objroot@lib"
|
||||
export PATH="@abs_objroot@lib:${PATH}"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
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
|
||||
# it can be repeatedly concatenated with per test settings.
|
||||
export MALLOC_CONF_ALL=${@JEMALLOC_CPREFIX@MALLOC_CONF}
|
||||
|
|
@ -45,10 +60,12 @@ for t in $@; do
|
|||
enable_prof=@enable_prof@ \
|
||||
disable_large_size_classes=@disable_large_size_classes@ \
|
||||
. @srcroot@${t}.sh && \
|
||||
prepare_test_exec ${t}@exe@ && \
|
||||
export_malloc_conf && \
|
||||
$JEMALLOC_TEST_PREFIX ${t}@exe@ @abs_srcroot@ @abs_objroot@
|
||||
else
|
||||
export MALLOC_CONF= && \
|
||||
prepare_test_exec ${t}@exe@ && \
|
||||
export_malloc_conf && \
|
||||
$JEMALLOC_TEST_PREFIX ${t}@exe@ @abs_srcroot@ @abs_objroot@
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue