[phobos] [D-Programming-Language/phobos] 630225: Prevent using alloca and tempCString in same funct...

GitHub via phobos phobos at puremagic.com
Sun Jun 21 07:07:38 PDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 6302257b0cdc5d171511cc6f1566956ff11b09c5
      https://github.com/D-Programming-Language/phobos/commit/6302257b0cdc5d171511cc6f1566956ff11b09c5
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-06-21 (Sun, 21 Jun 2015)

  Changed paths:
    M std/process.d

  Log Message:
  -----------
  Prevent using alloca and tempCString in same functions

Currently using both alloca and finalizers (==destructor call) in a function is unsupported excepting Win32 (issue 3753). However compiler doesn't recognize implicit destructor calls sometimes, and they're not called during stack unwinding (issue 14708).

For the workaround, replace alloca call with malloc + scope(exit) free.


  Commit: 25bec96d60086c7e16e92c3d950bafafb327fa30
      https://github.com/D-Programming-Language/phobos/commit/25bec96d60086c7e16e92c3d950bafafb327fa30
  Author: Hara Kenji <k.hara.pg+dev at gmail.com>
  Date:   2015-06-21 (Sun, 21 Jun 2015)

  Changed paths:
    M std/process.d

  Log Message:
  -----------
  Merge pull request #3432 from 9rnsr/fix_alloca

Prevent using alloca and tempCString in same functions


Compare: https://github.com/D-Programming-Language/phobos/compare/41d2027c22d6...25bec96d6008


More information about the phobos mailing list