[phobos] [dlang/phobos] 856c98: Avoid GC Allocations in sharedStaticDtor

GitHub via phobos phobos at puremagic.com
Tue Oct 4 16:51:40 PDT 2016


  Branch: refs/heads/stable
  Home:   https://github.com/dlang/phobos
  Commit: 856c984b78267de4bdf3fb61a5c27122e041a534
      https://github.com/dlang/phobos/commit/856c984b78267de4bdf3fb61a5c27122e041a534
  Author: Etienne Cimon <etcimon at gmail.com>
  Date:   2016-10-04 (Tue, 04 Oct 2016)

  Changed paths:
    M std/parallelism.d

  Log Message:
  -----------
  Avoid GC Allocations in sharedStaticDtor

The `Thread.opApply` static method will use `realloc` from `core.stdc.stdlib` instead of `gc.gc.GC.malloc` which sometimes fails with `onInvalidMemoryOperationError` when run within a `static ~this` module dtor


  Commit: 8006c13644a826d15fe3effcebbdf001d352b085
      https://github.com/dlang/phobos/commit/8006c13644a826d15fe3effcebbdf001d352b085
  Author: Martin Nowak <code at dawg.eu>
  Date:   2016-10-05 (Wed, 05 Oct 2016)

  Changed paths:
    M std/parallelism.d

  Log Message:
  -----------
  Merge pull request #4837 from etcimon/patch-1

Avoid GC Allocations in sharedStaticDtor


Compare: https://github.com/dlang/phobos/compare/e3f842d52a3e...8006c13644a8


More information about the phobos mailing list