[D-runtime] [D-Programming-Language/druntime] 6b9e78: When allocating a struct with "new", do not pass t...

GitHub via D-runtime d-runtime at puremagic.com
Sun Aug 31 02:37:43 PDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/druntime
  Commit: 6b9e7813f4855b4bc1608911a3888d09db7001c4
      https://github.com/D-Programming-Language/druntime/commit/6b9e7813f4855b4bc1608911a3888d09db7001c4
  Author: Rainer Schuetze <r.sagitario at gmx.de>
  Date:   2014-08-31 (Sun, 31 Aug 2014)

  Changed paths:
    M src/rt/lifetime.d

  Log Message:
  -----------
  When allocating a struct with "new", do not pass the pointer type info to the runtime, but the struct type info.
The fix also provides a small performance improvement as it no longer calls the virtual function TypeInfo.next() multiple times


  Commit: d0bba643e9a6c40c56d84098ae024fde6eed9a66
      https://github.com/D-Programming-Language/druntime/commit/d0bba643e9a6c40c56d84098ae024fde6eed9a66
  Author: Daniel Murphy <yebblies at gmail.com>
  Date:   2014-08-31 (Sun, 31 Aug 2014)

  Changed paths:
    M src/rt/lifetime.d

  Log Message:
  -----------
  Merge pull request #941 from rainers/fix_13404

Issue 13404 - heap-allocating a struct passes TypeInfo_Pointer to the GC, not TypeInfo_struct


Compare: https://github.com/D-Programming-Language/druntime/compare/bd1557ad96b6...d0bba643e9a6


More information about the D-runtime mailing list