[Issue 21365] New: TypeInfo.swap must not allow reachable memory to be freed if interrupted for a garbage collection pass
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 5 16:33:15 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21365
Issue ID: 21365
Summary: TypeInfo.swap must not allow reachable memory to be
freed if interrupted for a garbage collection pass
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: n8sh.secondary at hotmail.com
If the type might contain pointers perform the swap in pointer-sized chunks in
case a garbage collection pass occurs partway through the function. Directly
affected TypeInfo subclasses that were not overriding swap:
- TypeInfo_AssociativeArray
- TypeInfo_Class
- TypeInfo_Delegate
- TypeInfo_Interface
- TypeInfo_Struct
--
More information about the Digitalmars-d-bugs
mailing list