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
RazvanN7
935d4ada9a
Issue 16824 - std.experimental.allocator.dispose leaks memory for arrays of more than 1 dimension
2016-12-21 16:31:44 +02:00
Sebastian Wilzbach
b82ae35fd7
Use void for auto function without return statement
2016-12-08 12:32:14 +01:00
Nick Treleaven
46d281bd07
expandArray: Move ForcedInputRange example into undocumented test
...
ForcedInputRange is private.
2016-09-05 12:17:06 +01:00
Andrei Alexandrescu
2854ae011f
Merge pull request #4680 from wilzbach/allocator_safe_2
...
Propagate attributes in std.experimental.allocator.make
2016-08-30 07:53:38 -04:00
Lodovico Giaretta
b96a330b77
fix issue 16319
2016-08-15 21:02:30 +02:00
Sebastian Wilzbach
ed4404399f
Propagate attributes in std.experimental.allocator.make
2016-08-15 12:09:23 +02:00
Sebastian Wilzbach
9c7bd0e24e
std.experimental.allocator: Add attributes to makeArray - part 3
2016-08-15 10:17:40 +02:00
Andrei Alexandrescu
a5c8440bc6
Merge pull request #4681 from wilzbach/allocator_safe_4
...
Add attributes to makeArray - part 1 (length)
2016-08-15 01:56:42 -04:00
Andrei Alexandrescu
c8e0c6ea08
Merge pull request #4679 from wilzbach/allocator_safe_1
...
Add attributes to GCAllocator and theAllocator
2016-08-15 01:26:11 -04:00
Sebastian Wilzbach
b0e5a1b7da
std.experimental.allocator: Add attributes to makeArray - part 2
2016-08-03 03:39:34 +02:00
Sebastian Wilzbach
6d9918e183
std.experimental.allocator: Add attributes to makeArray - part 1
2016-08-03 03:35:44 +02:00
Sebastian Wilzbach
a5b0016ebb
Add attributes to GCAllocator and theAllocator
2016-08-03 03:16:31 +02:00
Sebastian Wilzbach
f35efe42f0
infer ElementType for ranges in makeArray and makeSlice
2016-07-23 01:21:34 +02:00
Jack Stouffer
b7019f1677
Removed unused debug imports from std.experimental.allocator
2016-07-03 21:34:26 -04:00
Jack Stouffer
9e75dd0b35
Removed global std.exception import from std.experimental.allocator
2016-07-03 21:33:18 -04:00
Jack Stouffer
3f618f24f8
Removed global std.conv import from std.experimental.allocator
2016-07-03 21:32:11 -04:00
Jack Stouffer
ffd5c44de6
Replaced package wide std.range import in std.experimental.allocator
2016-07-03 21:30:34 -04:00
Jack Stouffer
665dd87fde
Removed global std.algorithm import from std.experimental.allocator
2016-07-03 21:29:17 -04:00
Jack Stouffer
c183c2e5c2
Fixed std.algorithm imports in std.experimental.allocator to not be package wide
2016-07-03 01:34:31 -04:00
Jack Stouffer
98531fbd57
Fixed local imports in std.experimental.allocator.package
2016-06-30 18:07:00 -04:00
Robert Schadek
7f3d8545dc
Merge pull request #4503 from JackStouffer/makeArray
...
[Issue 16219] makeArray does unnecessary allocations for ranges with length
2016-06-30 12:02:47 +02:00
Jack Stouffer
833bca4aa5
Fixed Issue 16219: std.experimental.allocator.makeArray does unnecessary allocations for ranges with length
2016-06-29 16:51:18 -04:00
Jack Stouffer
9ad30b3e39
Fix too permissive constraint on std.experimental.allocator.makeArray
2016-06-29 14:03:02 -04:00
Sebastian Wilzbach
ec47ac4224
Remove the WEB macro in favor of HTTP
...
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
anonymous
68742c059a
Ddoc: clean up macros in std.experimental.allocator
...
Replacing LINK2, A, and the custom XREF2 with MREF and friends. Also
removing other unused macros.
This fixes the links on DDOX pages.
2016-06-04 22:16:11 +02:00
Sebastian Wilzbach
2dfbc51f17
Standardize whitespace after imports
...
Unified with:
sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00