Skip to content

Commit 307f5a0

Browse files
committed
Add padding to malloc increase
1 parent 62d03a5 commit 307f5a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gc/default/default.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ enum gc_mode {
466466

467467
typedef struct rb_objspace {
468468
struct {
469+
alignas(64) size_t increase;
469470
size_t limit;
470-
size_t increase;
471471
#if MALLOC_ALLOCATED_SIZE
472472
size_t allocated_size;
473473
size_t allocations;
@@ -586,7 +586,7 @@ typedef struct rb_objspace {
586586
size_t old_objects_limit;
587587

588588
#if RGENGC_ESTIMATE_OLDMALLOC
589-
size_t oldmalloc_increase;
589+
alignas(64) size_t oldmalloc_increase;
590590
size_t oldmalloc_increase_limit;
591591
#endif
592592

0 commit comments

Comments
 (0)