Thread overview
[Issue 23090] Allocators should not use NullAllocator as a sentinel type
Sep 19, 2022
Dlang Bot
Dec 17, 2022
Iain Buclaw
September 19, 2022
https://issues.dlang.org/show_bug.cgi?id=23090

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@pbackus updated dlang/phobos pull request #8574 "[allocator/region] Issue 23090 - Don't use NullAllocator as a sentinel type" mentioning this issue:

- Region: don't use NullAllocator as a sentinel

  Region will now always assume that its ParentAllocator is a real
  allocator, and attempt to use its 'allocate' and 'deallocate' methods
  accordingly.

  The behavior previously provided by Region!(NullAllocator, ...) remains
  available via BorrowedRegion!(...).

  See issue 23090 for detailed rationale.

- SharedRegion: don't use NullAllocator as sentinel

  SharedRegion will now always assume that its ParentAllocator is a real
  allocator, and attempt to use its 'allocate' and 'deallocate' methods
  accordingly.

  The behavior previously provided by SharedRegion!(NullAllocator, ...)
  remains available via shared(BorrowedRegion!(...)).

  See issue 23090 for detailed rationale.

https://github.com/dlang/phobos/pull/8574

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=23090

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 01
https://issues.dlang.org/show_bug.cgi?id=23090

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10492

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--