Commit graph

60 commits

Author SHA1 Message Date
Sebastian Wilzbach
233e90bdc1 Add PHOBOSSRC urls to std.experimental 2018-01-08 02:52:50 +01:00
Alexandru Jercaianu
f529c855ae Fix Issue 17986 - Erratic failure with std/experimental/allocator/common.d(445): unittest failure 2017-11-17 12:15:05 +02:00
Alexandru Jercaianu
b619323193 added testcase for alignedReallocate
replaced ulong with size_t

spaces after cast
2017-11-14 20:00:57 +02:00
Alexandru Jercaianu
4df0c64179 alignedReallocate checks for alignment if sizes are equal 2017-11-14 18:38:11 +02:00
Alexandru Jercaianu
1f63f2d039 Added constraint for Allocator to have alignedAllocate 2017-11-10 15:31:00 +02:00
Alexandru Jercaianu
9bad191d6a alignedReallocate returns false if alignedAllocate fails
FallbackAllocator requires both allocators to be stateless when running tests

fallback test
2017-11-09 13:45:48 +02:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00: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
Sebastian Wilzbach
1e7f7a1ba2 Revert "Use OpaquePointer as a safe support for region based allocators" 2017-06-08 09:45:31 +02:00
Andrei Alexandrescu
5cc9d8b1a8 Eliminate failing assert on 32 bit platforms 2017-06-08 00:40:14 +03: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
dd304f635b Allow AffixAllocator to work with IAllocator 2017-03-16 14:44:46 +02:00
Eduard Staniloiu
85000db4be Make the resolveInternalPointer method abide the IAllocator API 2017-03-15 16:54:31 +02:00
Sebastian Wilzbach
a36cec8686 DScanner: automatially set all unattributed unittests to @safe or @system 2017-02-22 05:42:04 +01:00
Sebastian Wilzbach
d331a5d176 Extend reallocate test for all Allocators 2016-08-03 03:10:41 +02:00
Jack Stouffer
f085c82bf6 Removed global std.math import from std.experimental.allocator.common 2016-07-03 21:39:59 -04:00
Jack Stouffer
79e87255ba Fixed std.algorithm import in std.experimental.allocator.common to not be package wide 2016-07-03 21:38:30 -04:00
Andrei Alexandrescu
7172eda466 Merge pull request #4327 from tsbockman/isPowerOf2
Add `std.math.isPowerOf2()`. Supports floating-point and integers.
2016-06-16 23:09: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
tsbockman
18d1b436e4 Update Phobos to use the new std.math.isPowerOf2() everywhere.
`std.uni` looks like it may depend upon its local `isPowerOf2()` implementation
to return `true` for `0`. Since the semantics are different from the standard
version, I have renamed it to `isPow2OrZero()` to avoid confusion.
2016-06-04 21:19:38 -07:00
Steven Schveighoffer
bc63d2b949 Merge pull request #4372 from andralex/allocator-change-expand
Change semantics of expand: the null array cannot be expanded 'in place'
2016-05-27 17:45:44 -04:00
Andrei Alexandrescu
8ecabe23f2 Change semantics of expand: the null array cannot be expanded 'in place' 2016-05-27 16:36:01 -04:00
Andrei Alexandrescu
b94026470d Merge pull request #4307 from JackStouffer/allocator
Move Ternary from std.experimental.allocator.common to std.typecons
2016-05-24 10:29:23 -04:00
Jack Stouffer
b7165c04bc Move Ternary from std.experimental.allocator.common to std.typecons 2016-05-24 10:27:10 -04:00
Jack Stouffer
c643eaa291 Remove commented out code and redundant comments from std.experimental.allocator 2016-05-12 08:25:42 -04:00
Andrei Alexandrescu
249f10a89e Allow affix access from qualified data 2016-04-23 15:11:35 -04:00
ZombineDev
ce938fe432 Add attributes to most functions in allocator.mallocator and allocator.common.
Also made the style more consistent.
2016-02-03 17:33:24 +02:00
Basile Burg
0c513b1c15 allowed Mallocator to be used in nogc functions 2015-12-05 23:41:26 +01:00
Dragos Carp
d698887729 Remove obsolete TypeTuple references
Replace following names:
std.typetuple      -> std.meta
TypeTuple          -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple     -> Fields

std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
Andrei Alexandrescu
ec8f916555 Change unittest for roundUpToAlignment 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
5cce2a1c30 Reduce unittests' pressure on resources 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
f38dab3d9e Fix roundUpToAlignment 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
cce6aafa1b Rebase and solve conflicts 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
499ecfedc5 Moved a bunch of building blocks into a new package building_blocks 2015-10-02 07:35:09 -04:00
Hackerpilot
d18098ff74 Add Ternary constructor 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
5d6f68297d Small adjustments post https://github.com/andralex/phobos/pull/11 2015-10-02 07:35:09 -04:00
Hackerpilot
710d85d622 Clean up various things discovered by D-Scanner 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
e613d2973c Fix documentation of truth table for Ternary 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
b7f4600a67 Replace HeapBlock with the more descriptive BitmappedBlock 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
20bfef3f3e Unify static and dynamic method signatures 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
13612a5355 Reorg of modules: typed, package, building_blocks 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
f2abd5b220 Fix flaky unittest 2015-10-02 07:35:08 -04:00
Andrei Alexandrescu
a13bdbb837 Add showcase.d; now Region supports allocation from the end or beginning 2015-10-02 07:35:08 -04:00
Andrei Alexandrescu
dafe9fa546 Remove uninteresting primitive zeroesAllocation 2015-10-02 07:35:08 -04:00
Andrei Alexandrescu
e87abcdc60 Add BookkeepingAllocator parameter to AllocatorList; add global expand() to common but commented out - causes trouble; small improvement in fallback_allocator; small improvements to free_list; fix in GCAllocator.expand 2015-10-02 07:35:08 -04:00
Andrei Alexandrescu
5adf023876 Better isPowerOf2, add package attrribute to a few items 2015-10-02 07:35:08 -04:00
Andrei Alexandrescu
0b15a81947 Branchless isPowerOf2 2015-10-02 07:35:08 -04:00
Andrei Alexandrescu
c00b5885c1 Improvements and fixes in affix_allocator; fix in isPowerOf2; fix alignment in scoped_allocator 2015-10-02 07:35:08 -04:00