Skip to content

Avoid GC_add_current_malloc_heap overhead.#101

Open
joncham wants to merge 1 commit intounity-masterfrom
unity-master-avoid-malloc-heap
Open

Avoid GC_add_current_malloc_heap overhead.#101
joncham wants to merge 1 commit intounity-masterfrom
unity-master-avoid-malloc-heap

Conversation

@joncham
Copy link
Copy Markdown
Member

@joncham joncham commented Jun 4, 2025

Add check for GC_no_win32_dlls to avoid unnecessary malloc heap registration when not needed.

Add check for GC_no_win32_dlls to avoid unnecessary malloc heap
registration when not needed.
@joncham joncham self-assigned this Jun 4, 2025
Comment thread os_dep.c
struct GC_malloc_heap_list *new_l;
void * candidate;

if (!GC_no_win32_dlls) return;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Condition is wrong. Should be: if (GC_no_win32_dlls) return;

@ivmai
Copy link
Copy Markdown

ivmai commented Feb 25, 2026

I've fixed the condition and upsreamed the patch - see f99ab74

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.

4 participants