Bug 21393 – core.thread.fiber: ignores RAM allocation if mmap/valloc/malloc not found
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
Other
Creation time
2020-11-16T00:29:42Z
Last change time
2024-03-31T06:42:12Z
Assigned to
No Owner
Creator
feklushkin.denis
Comments
Comment #0 by feklushkin.denis — 2020-11-16T00:29:42Z
Code inside of fiber.d silently ignores RAM allocation if all of mmap/valloc/malloc calls is not detected by __traits( compiles, xxx ).
Expected behavior: compilation error.
Related unsucessful PR: https://github.com/dlang/druntime/pull/3241
Comment #1 by feklushkin.denis — 2020-11-16T04:33:07Z
Addition: this is about Posix only.
malloc will never be found, even if it is listed in the stdlib module, because this function also isn't imported
Comment #2 by feklushkin.denis — 2024-03-31T06:42:12Z