[M6] --sMAXIMUM_MEMORY has a double-dash typo (and no memory growth) #27
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
indigocode/igasset-viewer-react#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
File:
wasm/CMakeLists.txt:78should be
-sMAXIMUM_MEMORY=...(compare the correct-sINITIAL_MEMORYon line 77). As written, emcc treats--sMAXIMUM_MEMORYas an unknown--s…driver flag.Separately,
MAXIMUM_MEMORYis only meaningful alongside-sALLOW_MEMORY_GROWTH, which is not set — so the heap is fixed atINITIAL_MEMORY(16 MiB) and the cap is inert regardless.Fix: decide intent — either drop the line, or fix the flag and add
-sALLOW_MEMORY_GROWTH.Filed by an automated AI code review (manual proof-of-concept run). Code locations reference the
various-cleanupbranch.This one requires some thought, removing
ALLOW_MEMORY_GROWTHwas part of a perf improvement story. It can be added back and be correct, but the "correct" decision here takes thought.