Skip to content

fix(Memory): Fixed malloc initialization and SGL work area#128

Open
ReyeMe wants to merge 2 commits into
mainfrom
bugfix/workarea
Open

fix(Memory): Fixed malloc initialization and SGL work area#128
ReyeMe wants to merge 2 commits into
mainfrom
bugfix/workarea

Conversation

@ReyeMe
Copy link
Copy Markdown
Owner

@ReyeMe ReyeMe commented May 21, 2026

fix(SGL): fix workarea size, alignment and placement - ReyeMe
fix(memory): resolve static initialization fiasco with std::optional - Danny

ReyeMe and others added 2 commits May 20, 2026 17:05
Replace inline static MemoryZone variables with std::optional<MemoryZone> to
avoid conflicts between compiler automatic initialization and manual PreLoader
initialization. The optional ensures zones start empty and are only initialized
when Initialize() is explicitly called via emplace(), eliminating the race
condition in the startup sequence.
@ReyeMe ReyeMe requested a review from robertoduarte May 21, 2026 07:49
@ReyeMe ReyeMe added bug Something isn't working required hardware test Issues marked with this label must be tested on real HW before merging. labels May 21, 2026
@ReyeMe ReyeMe requested review from bimmerlabs and willll May 21, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working required hardware test Issues marked with this label must be tested on real HW before merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue: Building with TLSF included is causing problems in some cases (Temporary workaround in the description)

2 participants