Bug 19191 – Memory allocation failure with -profile=gc and dynamic array of opaque handles

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2018-08-25T19:45:16Z
Last change time
2024-12-13T19:00:22Z
Assigned to
No Owner
Creator
GoaLitiuM
Moved to GitHub: dmd#19479 →

Comments

Comment #0 by goalitium — 2018-08-25T19:45:16Z
Following minified code from a project using ErupteD Vulkan bindings crashes to "core.exception.OutOfMemoryError@src/core/exception.d(700): Memory allocation failed" when compiled with -profile=gc: struct VkInstance_handle; alias VkInstance = VkInstance_handle*; void main() { VkInstance[] instances = new VkInstance[1]; } This can be worked around by changing the opaque handle declaration to: struct VkInstance_handle {}; The related issue in ErupteD GitHub: https://github.com/ParticlePeter/ErupteD/issues/11
Comment #1 by robert.schadek — 2024-12-13T19:00:22Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19479 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB