aboutsummaryrefslogtreecommitdiff
path: root/moonshine.h
diff options
context:
space:
mode:
authorGravatar Moon Flower <moon@coffin.ir> 2025-02-26 12:30:00 +0330
committerGravatar Moon Flower <moon@coffin.ir> 2025-02-26 12:30:00 +0330
commit7ad7ac89d9cc650765a526dacd0272415748181e (patch)
treef206a812fd3927e69df2988b4cae57e7a4281f95 /moonshine.h
parenta few fixes and changes (diff)
added readme
Diffstat (limited to 'moonshine.h')
-rw-r--r--moonshine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/moonshine.h b/moonshine.h
index ab0ba1a..6a5215e 100644
--- a/moonshine.h
+++ b/moonshine.h
@@ -604,7 +604,7 @@ void clean_pages() {
__attribute__((diagnose_as_builtin(__builtin_malloc, 1))) __attribute__((malloc)) var alloc(const u8 _len)
[[clang::allocating]] {
static int alloc_count = 0;
- if (alloc_count++ == 10) {
+ if (alloc_count++ == 16) {
alloc_count = 0;
clean_pages();
}