diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2023-11-01 18:25:06 +0100 |
|---|---|---|
| committer | Mirek Kratochvil <exa.exa@gmail.com> | 2023-11-01 18:25:06 +0100 |
| commit | 970ffb4684dbd88bd54e909820bbc5a66a87b18d (patch) | |
| tree | 43ad1d8438ef824deaf6d363d38f5d60f3d04645 /include/gc.s | |
| parent | d1a4eb56ccf39974dd93eeb0434721acc69bbc7c (diff) | |
| download | uskel-970ffb4684dbd88bd54e909820bbc5a66a87b18d.tar.gz uskel-970ffb4684dbd88bd54e909820bbc5a66a87b18d.tar.bz2 | |
all looks ok
Diffstat (limited to 'include/gc.s')
| -rw-r--r-- | include/gc.s | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/gc.s b/include/gc.s index ae71d5c..b40ac95 100644 --- a/include/gc.s +++ b/include/gc.s @@ -96,7 +96,7 @@ _uskel_alloc: _uskel_gc_init: mov %rsi, %r13 - movq $0x100, _gc_min_alloc # must be higher than 2x the biggest thunk possible + movq $0x100000, _gc_min_alloc # must be higher than 2x the biggest thunk possible movq $0x180, _gc_grow_ratio movq $0x40, _gc_shrink_ratio mov $0, %rsp # fake original rsp for first alloc run @@ -124,7 +124,7 @@ _uskel_gc: # point the writer to the new memory area mov _write_region_end, %rsp mov %rsp, %r8 # % r8 is the "last thing that was scavenged" - + # start by evacuating the thunk and cont mov _gc_backup_thunk, %rbp mov $_uskel_gc_evacuate_cont_thunk, %rsi @@ -167,7 +167,7 @@ _uskel_gc: mov _gc_region_start, %rdi # addr = gc start sub %rdi, %rsi # len = gc end - gc start syscall - + # recalculate the gc trigger point mov %rsp, %rax sub _write_region_start, %rax |
