August 31, 2014 [D-runtime] [D-Programming-Language/druntime] 6b9e78: When allocating a struct with "new", do not pass t... | ||||
---|---|---|---|---|
| ||||
Attachments:
| 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@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@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 |
Copyright © 1999-2021 by the D Language Foundation