-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Labels
kind:bugA bug in the code. Does not apply to documentation, specs, etc.A bug in the code. Does not apply to documentation, specs, etc.topic:compiler:codegen
Description
Bug Report
When allocating non-atomic memory using the pointer_malloc
or allocate
primitives, crystal currently always inserts a LLVM memset intrinsic [1] [2] to clear the malloc
-d memory.
However, bdwgc already ensures that all memory allocated using GC.malloc
is cleared - so this is actually unnecessary.
Metadata
Metadata
Assignees
Labels
kind:bugA bug in the code. Does not apply to documentation, specs, etc.A bug in the code. Does not apply to documentation, specs, etc.topic:compiler:codegen