mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 16:47:21 +03:00
SC: Make some key size classes static.
The largest small class, smallest large class, and largest large class may all be needed down fast paths; to avoid the risk of touching another cache line, we can make them available as constants.
This commit is contained in:
parent
5112d9e5fd
commit
55e5cc1341
18 changed files with 129 additions and 96 deletions
|
|
@ -41,13 +41,13 @@ test_zero(size_t sz_min, size_t sz_max) {
|
|||
|
||||
TEST_BEGIN(test_zero_small) {
|
||||
test_skip_if(!config_fill);
|
||||
test_zero(1, sc_data_global.small_maxclass - 1);
|
||||
test_zero(1, SC_SMALL_MAXCLASS - 1);
|
||||
}
|
||||
TEST_END
|
||||
|
||||
TEST_BEGIN(test_zero_large) {
|
||||
test_skip_if(!config_fill);
|
||||
test_zero(sc_data_global.small_maxclass + 1,
|
||||
test_zero(SC_SMALL_MAXCLASS + 1,
|
||||
1U << (sc_data_global.lg_large_minclass + 1));
|
||||
}
|
||||
TEST_END
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue