[Issue 21365] TypeInfo.swap must not allow reachable memory to be freed if interrupted by a garbage collection pass
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 5 16:39:17 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21365
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@n8sh created dlang/druntime pull request #3264 "TypeInfo.swap must not allow
reachable memory to be freed if interrupted by a garbage collection pass"
fixing this issue:
- Fix Issue 21365 - TypeInfo.swap must not allow reachable memory to be freed
if interrupted by a garbage collection pass
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
https://github.com/dlang/druntime/pull/3264
--
More information about the Digitalmars-d-bugs
mailing list