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
Sebastian Wilzbach
1e7f7a1ba2
Revert "Use OpaquePointer as a safe support for region based allocators"
2017-06-08 09:45:31 +02:00
Eduard Staniloiu
79cf4ab913
Use OpaquePointer as a safe support for region based allocators
2017-06-08 00:40:14 +03:00
Eduard Staniloiu
5bc80e6dd6
Add ISharedAllocator and have the _processAllocator use it
2017-05-01 02:52:50 +03:00
Eduard Staniloiu
04e844da77
Allocators should take a ubyte[] memory block instead of a void[] one
...
Allocators that rely on taking a block of unused memory to manage and allocate
from it should take a ubyte[] instead of a void[] in order to prevent users
from accidentally passing valid data and cause memory corruption/leaks.
2017-04-04 16:46:38 +03:00
Eduard Staniloiu
7c0ebad377
Make allocators' resolveInternalPointer take a const pointer as source
2017-04-03 20:35:01 +03:00
The Dlang Bot
ccf4ad1fca
Merge pull request #5237 from wilzbach/booktable-stdx-allocator
...
[BOOKTABLES]: Add BOOKTABLE to stdx.allocator
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-03-30 18:18:08 +02:00
Eduard Staniloiu
85000db4be
Make the resolveInternalPointer method abide the IAllocator API
2017-03-15 16:54:31 +02:00
Sebastian Wilzbach
1dfbb9ad16
[BOOKTABLES]: Add BOOKTABLE to stdx.allocator
2017-03-04 05:07:14 +01:00
Sebastian Wilzbach
b8a88558a9
Fix Ddoc warnings
2017-02-26 09:33:14 +01:00
Sebastian Wilzbach
64a0814ae4
Issue 16824: fix experimental makeMultidimensionalArray API
2017-02-22 23:32:04 +01:00
Sebastian Wilzbach
a36cec8686
DScanner: automatially set all unattributed unittests to @safe or @system
2017-02-22 05:42:04 +01:00
Sebastian Wilzbach
805c720595
Unify Phobos by ensuring there's always a space after cast(...)
...
Command:
sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
5521541032
Unify assert style to have no spaces between the first brace
...
Application of:
sed -E "s/assert +\(/assert(/" -i **/*.d
2017-02-21 15:27:15 +01:00
RazvanN7
23fcc1cc25
Style changes
2017-01-15 12:11:06 +02:00
RazvanN7
098e52ba21
Created the make/disposeMultidimensionalArray functions + unittest
2017-01-12 19:47:37 +02:00
RazvanN7
936a802b50
Issue 16824 - std.experimental.allocator.dispose leaks memory for arrays of more than 1 dimension
2016-12-21 16:38:59 +02:00