Skip to content

Use static buffer for motherofall.#1193

Merged
karya0 merged 1 commit intomainfrom
dev/karya0/init_loop
Mar 8, 2025
Merged

Use static buffer for motherofall.#1193
karya0 merged 1 commit intomainfrom
dev/karya0/init_loop

Conversation

@karya0
Copy link
Copy Markdown
Member

@karya0 karya0 commented Mar 2, 2025

When using JALLOC_MALLOC for motherofall allocation, we can get into infinite recursion if a user application has put wrappers around mmap. The fix is to use a static buffer.

When using JALLOC_MALLOC for motherofall allocation, we can get into
infinite recursion if a user application has put wrappers around mmap.
The fix is to use a static buffer.
@karya0 karya0 requested a review from gc00 March 2, 2025 06:01
Copy link
Copy Markdown
Contributor

@gc00 gc00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Nice! This might explain the few instances where I've seen an infinite recursion before 'main()'.

@karya0 karya0 merged commit 31ff2f3 into main Mar 8, 2025
1 check passed
@karya0 karya0 deleted the dev/karya0/init_loop branch March 8, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants