[phobos] [D-Programming-Language/phobos] 35f1f6: Supplemental fix for issue 14860

GitHub via phobos phobos at puremagic.com
Sun Aug 2 04:07:52 PDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 35f1f6226aa523305e41f3dee68fbb0ce8fafdf4
      https://github.com/D-Programming-Language/phobos/commit/35f1f6226aa523305e41f3dee68fbb0ce8fafdf4
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-08-02 (Sun, 02 Aug 2015)

  Changed paths:
    M std/parallelism.d

  Log Message:
  -----------
  Supplemental fix for issue 14860

`task[] = RTask.init;` has two bugs:

1. `RTask` is a nested struct, so `RTask.init` contains null context pointer.
2. That is a block assignment, so there is a possibility to call
   `RTask.~this()` on garbage objects (stack allocated `buf` is initialized by `void`).

Fixed to use `emplaceRef` on each elements.


  Commit: deeab6c867fbed479fe57604a52f25e360f0b410
      https://github.com/D-Programming-Language/phobos/commit/deeab6c867fbed479fe57604a52f25e360f0b410
  Author: Hara Kenji <k.hara.pg+dev at gmail.com>
  Date:   2015-08-02 (Sun, 02 Aug 2015)

  Changed paths:
    M std/parallelism.d

  Log Message:
  -----------
  Merge pull request #3522 from 9rnsr/fix14860

Supplemental fix for issue 14860


Compare: https://github.com/D-Programming-Language/phobos/compare/89f53cb61948...deeab6c867fb


More information about the phobos mailing list