aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-11-02 17:38:46 +0100
committerSverker Eriksson <[email protected]>2012-11-13 19:51:11 +0100
commit770ee09dfbe5c9024432ac8696be6b91d2ec9a9f (patch)
tree22c95fab7b675d9b5edabf3cbf7fb4a4e6094a99 /erts/emulator/test
parenta758faacea2e77039113995596ad87f67a48eec3 (diff)
downloadotp-770ee09dfbe5c9024432ac8696be6b91d2ec9a9f.tar.gz
otp-770ee09dfbe5c9024432ac8696be6b91d2ec9a9f.tar.bz2
otp-770ee09dfbe5c9024432ac8696be6b91d2ec9a9f.zip
erts: New mseg allocator cache
* utilize the power of two
Diffstat (limited to 'erts/emulator/test')
-rw-r--r--erts/emulator/test/alloc_SUITE_data/mseg_clear_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/test/alloc_SUITE_data/mseg_clear_cache.c b/erts/emulator/test/alloc_SUITE_data/mseg_clear_cache.c
index 0277616bd0..7d5608f890 100644
--- a/erts/emulator/test/alloc_SUITE_data/mseg_clear_cache.c
+++ b/erts/emulator/test/alloc_SUITE_data/mseg_clear_cache.c
@@ -52,10 +52,10 @@ testcase_run(TestCaseState_t *tcs)
tcs->extra = &seg[0];
for (i = 0; i < MAX_SEGS; i++) {
- seg[i].size = 1000;
+ seg[i].size = 1 << 18;
seg[i].ptr = MSEG_ALLOC(&seg[i].size);
ASSERT(tcs, seg[i].ptr);
- ASSERT(tcs, seg[i].size >= 1000);
+ ASSERT(tcs, seg[i].size >= (1 << 18));
}
n = MSEG_NO();