Alexandru Militaru
bb62aaca3d
Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest
2020-01-19 14:05:17 +02:00
Harry T. Vennik
c44b4717cf
Fix Issue 20046 - Get make!T to compile when T is a shared value type
2019-07-13 11:14:53 +02:00
Iain Buclaw
fd5facfe04
posix.mak: Enforce whitespace before opening parenthesis for version conditions
2018-09-22 16:57:24 +02:00
Nathan Sashihara
3255a2ebbb
Replace isInitAllZeroBits with new __traits(isZeroInit)
...
Requires https://github.com/dlang/dmd/pull/8583 .
Also remove isInitAllOneBits and replace with direct check for
char/wchar. isInitAllOneBits had the same problem with unreasonable
memory usage as the old isInitAllZeroBits
(https://issues.dlang.org/show_bug.cgi?id=18937 ).
2018-09-09 11:27:38 -04:00
Sebastian Wilzbach
6479a70a3b
Fix Issue 19085 - std.experimental.allocator.makeArray should work with void
2018-09-01 13:50:31 -04:00
Martin Nowak
75feb5726a
Merge pull request #6537 from aG0aep6G/18937
...
fix issue 18937 - [REG 2.080.0] std.experimental.allocator: compiling…
2018-06-25 15:14:47 +02:00
Sebastian Wilzbach
c324714fde
Remove a few cases of underscore escaping
2018-06-04 13:05:01 +02:00
aG0aep6G
86af9e6bce
fix issue 18937 - [REG 2.080.0] std.experimental.allocator: compiling make
needs an unreasonable amount of memory for structs that contain static arrays
2018-06-03 15:34:38 +02:00
Nathan Sashihara
d7d6babd6e
Check for overflow in std.experimental.allocator.makeArray
2018-05-29 20:49:13 -04:00
Nathan Sashihara
8d070a5c81
Merge branch 'master' into fix_i17806
2018-04-24 21:19:02 -04:00
Eduard Staniloiu
9384f30faa
Make RCIAllocators pure
2018-04-24 15:17:22 +00:00
Andrei Alexandrescu
4126f92827
Merge pull request #6449 from edi33416/fix_thread_alloc
...
Fix Issue 18760 - theAllocator dangling reference bug
2018-04-17 16:13:10 -04:00
Nathan Sashihara
6848fa9646
make/makeArray: take advantage of allocators with smth. faster than allocate+memset zero
2018-04-15 17:48:29 -04:00
Eduard Staniloiu
50bf106d5b
Fix theAllocator dangling reference bug
2018-04-13 11:45:27 +00:00
Sebastian Wilzbach
6f766dce5d
Remove redundant 'static' storage classes
2018-04-05 13:11:48 +02:00
Eduard Staniloiu
4b0b02e9e1
Fix Issue 17806 - processAllocator getter will override set value if it was set before getter was called at least once
2018-04-04 12:41:20 +00:00
Sebastian Wilzbach
42894784dd
Markdownify Phobos
...
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
The Dlang Bot
6797b52c0d
Merge pull request #6024 from n8sh/uninitializedFillDefault-memset
...
Fix Issue 18223: use memset in uninitializedFillDefault(T[])
merged-on-behalf-of: unknown
2018-03-31 06:58:26 +02:00
Nathan Sashihara
8777cbf355
Fix Issue 18223: use memset in uninitializedFillDefault(T[])
...
When we can statically determine that the representation of T.init
consists of nothing but zeroes or nothing but ones we use memset.
(The second case occurs for char and wchar.)
2018-03-28 13:59:19 -04:00
Jack Stouffer
663b5b9278
Revert addition of StdUnittest
2018-02-20 13:32:32 -05:00
Pradeep Gowda
96586fda48
typo. concret; -> concrete
2018-02-16 10:10:07 -05:00
Eduard Staniloiu
872b84e6b8
Mark @safe ctor, postblit and opAssign for RCAllocator
2018-02-14 14:00:39 +00:00
Eduard Staniloiu
8705ce581e
Declare RCISharedAllocator as shared struct
2018-02-13 16:39:04 +00:00
Sebastian Wilzbach
a2985edaad
Use -return-exit-code to fail the testsuite on DScanner failures
2018-02-11 01:55:09 +01:00
Sebastian Wilzbach
d9830b739e
Fix DScanner warnings
2018-02-10 22:46:32 +01:00
Jack Stouffer
18cbb29b04
Replaced version(unittest) blocks with version(StdUnittest)
2018-02-01 19:56:59 -05:00
The Dlang Bot
aa7b6c03ae
Merge pull request #5921 from edi33416/rc_iallocator
...
Replace IAllocator with reference counted struct
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-01-26 19:53:03 +01:00
Sebastian Wilzbach
b9eaa3b1bd
Fix Issue 18278 - writef documentation 404 error
2018-01-26 10:17:47 +01:00
Eduard Staniloiu
573a85b101
Replace IAllocator with reference counted struct
2018-01-25 14:19:21 +01:00
The Dlang Bot
382a8ea922
Merge pull request #6044 from edi33416/fix_allocator_obj
...
Fix Issue 18259 - allocatorObject's CAllocatorImpl should store the passed allocator within
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-17 23:55:50 +01:00
Eduard Staniloiu
7220c57286
Fix Issue 18259 - allocatorObject's CAllocatorImpl should store the passed allocator within
2018-01-17 22:04:55 +00:00
Nathan Sashihara
66ede852bf
Fix Issue 18239: fillWithMemcpy use memset when T.sizeof == 1
2018-01-15 13:24:27 -05:00
Eduard Staniloiu
da335ad328
Mark deallocate as nothrow @nogc
2017-11-06 10:09:29 +00:00
Eduard Staniloiu
badaa758e7
Revert "Allocators owns should take const void[]"
2017-11-02 20:23:35 +02:00
Eduard Staniloiu
6f8b418e6c
Allocators owns should take const void[]
2017-11-01 10:01:36 +00:00
Andrei Alexandrescu
2882ff113f
Merge pull request #5783 from edi33416/safe_alloc_resolv_int_ptr
...
Make resolveInternalPointer @safe
2017-10-30 10:48:32 -04:00
somzzz
cd66c0cba6
fix issue 16542
2017-10-30 06:04:30 -07:00
Eduard Staniloiu
c1efb05ebf
Improve unittests
2017-10-28 22:31:36 +00:00
Eduard Staniloiu
d37bc9dc6e
Make resolveInternalPointer @safe
2017-10-28 22:31:36 +00:00
Basile Burg
920f6b3473
nullify when necessary, despite of possible elimination of dead assignment by compiler
2017-09-08 00:19:12 +02:00
Basile Burg
7cb35fd849
Also nullify the arrays
2017-09-01 22:10:42 +02:00
Basile Burg
63ed59ffc7
fix issue 16512 - Nullify the argument passed to allocator.dispose
2017-08-27 09:37:10 +02:00
Martin Nowak
b8b60fb347
avoid redundant TLS reads
2017-06-29 02:08:44 +02:00
Sönke Ludwig
67e33d7748
Make _threadAllocator private.
2017-06-29 01:45:01 +02:00
Sönke Ludwig
4a5d2b3b18
Fix issue 17564: Eliminate "static this" for theAllocator
...
This switches to lazy initialization of theAllocator, so that accessing it form within `shared static this` works as expected.
2017-06-29 01:45:01 +02:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
...
This reverts commit 998ad51fd7
.
2017-06-13 17:51:52 +00:00
The Dlang Bot
9b5a54189d
Merge pull request #5463 from andralex/allocatorhassharedstaticzisnomore
...
Eliminate shared this for allocators
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-06-13 07:32:13 +02:00
Sebastian Wilzbach
998ad51fd7
Sort selective imports
2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d
Sort imports
2017-06-12 07:54:38 +02:00
Andrei Alexandrescu
1cdd07b60d
Eliminate shared this for allocators
2017-06-11 11:28:48 -04:00