Skip to content

Fix memory allocation failed regression introduced by #22766 - #23776

Merged
thewilsonator merged 1 commit into
dlang:masterfrom
ibuclaw:ctfe_int_underflow
Sep 3, 2026
Merged

Fix memory allocation failed regression introduced by #22766#23776
thewilsonator merged 1 commit into
dlang:masterfrom
ibuclaw:ctfe_int_underflow

Conversation

@ibuclaw

@ibuclaw ibuclaw commented Sep 3, 2026

Copy link
Copy Markdown
Member

When Object doesn't exist, there is no __monitor field to skip.

core.exception.OutOfMemoryError@src/dmd/root/rmem.d(103): Memory allocation failed
----------------
??:? onOutOfMemoryError [0x5a5c859d445c]
src/dmd/root/rmem.d:103 _ZN3Mem5errorEv [0x5a5c858a316b]
src/dmd/root/rmem.d:117 _ZN3Mem5checkEPv [0x5a5c858a3189]
src/dmd/root/rmem.d:46 _ZN3Mem7xmallocEm [0x5a5c858a2f76]
/home/ibuclaw/src/dlang/dmd/compiler/src/dmd/root/array.d:182 pure nothrow void dmd.root.array.Array!(dmd.expression.Expression).Array.reserve(ulong).enlarge(ulong) [0x5a5c8558fd8a]
/home/ibuclaw/src/dlang/dmd/compiler/src/dmd/root/array.d:239 _ZN5ArrayIP10ExpressionE7reserveEm [0x5a5c8558fd35]
/home/ibuclaw/src/dlang/dmd/compiler/src/dmd/root/array.d:46 _ZN5ArrayIP10ExpressionEC1Em [0x5a5c8558fb33]
src/dmd/dinterpret.d:2873 _ZN11Interpreter5visitEP6NewExp [0x5a5c8566b068]

@ibuclaw ibuclaw added the Severity:Regression PRs that fix regressions label Sep 3, 2026
@thewilsonator
thewilsonator merged commit 00ff84c into dlang:master Sep 3, 2026
34 of 42 checks passed
@ibuclaw
ibuclaw deleted the ctfe_int_underflow branch September 4, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Severity:Regression PRs that fix regressions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants