[Issue 21371] core.stdcpp.allocator: _Adjust_manually_vector_aligned checks for sentinel unconditionally (Windows only)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 9 05:42:00 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21371

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 #3265 "core.stdcpp.allocator:
_Adjust_manually_vector_aligned checks for sentinel unconditionally (Windows
only)" fixing this issue:

- Fix Issue 21371 - core.stdcpp.allocator: _Adjust_manually_vector_aligned
checks for sentinel unconditionally (Windows only)

  This bug resulted in assertion failures when deleting large blocks of memory
using core.stdcpp.allocator on Windows. _Allocate_manually_vector_aligned
  only sets a sentinel when version(_DEBUG) so _Adjust_manually_vector_aligned
  should only check for this sentinel when version(_DEBUG).

  Additionally change the linkage of those functions from C++ to D to avoid
  possible linker confusion.

https://github.com/dlang/druntime/pull/3265

--


More information about the Digitalmars-d-bugs mailing list