Skip to content

Commit a1509c5

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 6a709ee + b43935a commit a1509c5

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

cmake/RuntimeConfig.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ else()
2525
set(HDR_MASK -16888498602639361) # 0xffc3ffffffffffff
2626
endif()
2727

28+
set(HYPERBLOCK_SIZE_MULTIPLIER 1024
29+
CACHE STRING "Default Multiplier for Arena Semispaces size")
30+
2831
set(MAP_LAYOUT 1)
2932
set(LIST_LAYOUT 2)
3033
set(SET_LAYOUT 3)

config/macros.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#define TAG_MASK @TAG_MASK@LL
1616
#define LENGTH_MASK @LENGTH_MASK@
1717

18+
#define HYPERBLOCK_SIZE_MULTIPLIER @HYPERBLOCK_SIZE_MULTIPLIER@
19+
1820
#define MAP_LAYOUT @MAP_LAYOUT@
1921
#define LIST_LAYOUT @LIST_LAYOUT@
2022
#define SET_LAYOUT @SET_LAYOUT@

include/runtime/arena.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
#include <sys/types.h>
99
#include <utility>
1010

11+
#include "config/macros.h"
1112
#include "runtime/alloc.h"
1213

1314
extern "C" {
1415

15-
size_t const HYPERBLOCK_SIZE = (size_t)BLOCK_SIZE * 1024 * 1024;
16+
size_t const HYPERBLOCK_SIZE
17+
= (size_t)BLOCK_SIZE * HYPERBLOCK_SIZE_MULTIPLIER * 1024;
1618

1719
// After a garbage collect we change the tripwire to the amount of non-garbage times
1820
// this factor, so we do a decent amount of allocations between collections even

0 commit comments

Comments
 (0)