Nick Treleaven
4a9668ea24
Tweak std.experimental.allocator docs
...
Add missing LREFs in top table.
Use RUNNABLE_EXAMPLE.
2022-10-16 14:26:19 +01:00
Paul Backus
e05ee968ac
Region: don't use NullAllocator as a sentinel
...
Region will now always assume that its ParentAllocator is a real
allocator, and attempt to use its 'allocate' and 'deallocate' methods
accordingly.
The behavior previously provided by Region!(NullAllocator, ...) remains
available via BorrowedRegion!(...).
See issue 23090 for detailed rationale.
2022-09-19 16:31:20 -04:00
Walter Bright
374eefefbf
Comment out randomly failing test in std.experimental.allocator
2022-01-08 21:14:11 -08:00
berni44
b2019ebab0
Narrow imports of std.math in the rest of phobos.
2021-04-21 03:00:57 +02:00
MoonlightSentinel
d5412f71cc
Remove spurious __EOF__ hiding existing declarations/tests
2021-02-01 16:42:37 +01:00
Martin Kinkelin
543994eec0
std.experimental.allocator: Adapt unittests to emplace() fix (proper rvalue forwarding)
2021-01-18 12:00:32 +01:00
Martin Kinkelin
1a459c5996
Get rid of std.conv.emplace[Ref](), use core[.internal].lifetime
...
The emplace() stuff was moved to druntime; for some reason, it's still
in Phobos.
I've diffed the two versions, and they are still almost identical (incl.
unittests); the druntime version appears to have seen some improvements
(e.g., forwarding r/lvalueness of the arguments) in the meantime.
2021-01-17 16:02:25 +01:00
Nathan Sashihara
453faadf5b
Replace is(Unqual!T == Unqual!U) with is(immutable T == immutable U) for speed & memory usage
2020-08-03 15:07:32 +02:00
Harry Gillanders
86e2d75187
Fix issue 20929
...
std.experimental.allocator.expandArray's range-based overload fails to
instantiate for char and wchar arrays.
2020-06-18 05:56:06 +01:00
Geod24
04f3979317
Replace 'Issue XXX' with Bugzilla links
...
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
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