Skip to content

Compiler: Fix MSVC separate heap assert/crash - #1620

Merged
rjodinchr merged 1 commit into
google:mainfrom
sarc-acl:msvcHeapFreeFix
Jul 24, 2026
Merged

Compiler: Fix MSVC separate heap assert/crash#1620
rjodinchr merged 1 commit into
google:mainfrom
sarc-acl:msvcHeapFreeFix

Conversation

@annestrand

@annestrand annestrand commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Assert/crash triggers on clspvFreeOutputBuildObjs
for windows builds due to API call being a
static inline declaration. Windows DLL's have
separate CRT heaps - free leads to heap boundary issue.

Fix is to remove static inline and define routine in the source compiler file (as well as export it).

Tests-Passing: oclcts.test_api_enqueue_task (Win32)

Assert triggers on clspvFreeOutputBuildObjs
for windows builds due to API call being a
static inline declaration. Windows DLL's have
separate CRT heaps - free leads to heap boundary issue.

Fix is to remove static inline and define routine in the
source compiler file (as well as export it).

Tests-Passing: oclcts.test_api_enqueue_task (Win32)
Change-Id: I168c44131e463b93de75f403ecee6b0ddfd6cbba
Signed-off-by: Austin Annestrand <a.annestrand@samsung.com>
@rjodinchr
rjodinchr enabled auto-merge (squash) July 24, 2026 06:07
@rjodinchr
rjodinchr merged commit 3c117cd into google:main Jul 24, 2026
17 of 18 checks passed
@annestrand
annestrand deleted the msvcHeapFreeFix branch July 24, 2026 15:35
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.

3 participants