mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-19 13:53:50 +03:00
Test with background_thread:true.
Add testing for background_thread:true, and condition a xallocx() --> rallocx() escalation assertion to allow for spurious in-place rallocx() following xallocx() failure.
This commit is contained in:
parent
b511232fcd
commit
fd0fa003e1
4 changed files with 35 additions and 6 deletions
|
|
@ -28,6 +28,7 @@ possible_malloc_conf_opts = [
|
|||
'tcache:false',
|
||||
'dss:primary',
|
||||
'percpu_arena:percpu',
|
||||
'background_thread:true',
|
||||
]
|
||||
|
||||
print 'set -e'
|
||||
|
|
@ -57,7 +58,8 @@ for cc, cxx in possible_compilers:
|
|||
)
|
||||
|
||||
# Per CPU arenas are only supported on Linux.
|
||||
linux_supported = ('percpu_arena:percpu' in malloc_conf_opts)
|
||||
linux_supported = ('percpu_arena:percpu' in malloc_conf_opts \
|
||||
or 'background_thread:true' in malloc_conf_opts)
|
||||
# Heap profiling and dss are not supported on OS X.
|
||||
darwin_unsupported = ('--enable-prof' in config_opts or \
|
||||
'dss:primary' in malloc_conf_opts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue