This website requires JavaScript.
Explore
Help
Register
Sign In
project-base
/
server-skynet-source-3rd-jemalloc
Watch
2
Star
0
Fork
0
You've already forked server-skynet-source-3rd-jemalloc
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
ef6d51ed44
server-skynet-source-3rd-je...
/
test
/
unit
/
arena_decay.sh
4 lines
88 B
Bash
Raw
Normal View
History
Unescape
Escape
Use MALLOC_CONF rather than malloc_conf for tests. malloc_conf does not reliably work with MSVC, which complains of "inconsistent dll linkage", i.e. its inability to support the application overriding malloc_conf when dynamically linking/loading. Work around this limitation by adding test harness support for per test shell script sourcing, and converting all tests to use MALLOC_CONF instead of malloc_conf.
2017-02-22 15:40:06 +08:00
#!/bin/sh
Allow opt.tcache_max to accept small size classes. Previously all the small size classes were cached. However this has downsides -- particularly when page size is greater than 4K (e.g. iOS), which will result in much higher SMALL_MAXCLASS. This change allows tcache_max to be set to lower values, to better control resources taken by tcache.
2020-10-22 10:47:57 +08:00
export
MALLOC_CONF
=
"dirty_decay_ms:1000,muzzy_decay_ms:1000,tcache_max:1024"
Reference in New Issue
Copy Permalink