Commit graph

160 commits

Author SHA1 Message Date
Joakim
10c01a0614 On Android, update std.datetime to extract timezone data and some other fixes. 2016-02-10 14:25:42 +05:30
ZombineDev
1c555f0d1f Handle all return codes of posix_memalign, such as EINVAL. 2016-02-03 17:33:24 +02: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
Steven Schveighoffer
245977e3e7 Add more unit tests for GCAllocator.goodAllocSize 2016-02-02 15:11:55 -05:00
Steven Schveighoffer
0c5e570360 Optimize use of bsr better. 2016-02-01 09:27:04 -05:00
Steven Schveighoffer
e9e52d9e05 Add goodAllocationSize to GCAllocator -- the GC has very well defined
behavior for this.
2016-01-31 14:50:53 -05:00
JakobOvrum
eec7609314 Merge pull request #3956 from ZombineDev/patch-3
Fix makeArray for types with disabled this(this)
2016-01-29 08:27:06 +09:00
Dariusz Antoniuk
e9ef91d5d4 Fix a typo in stack allocator usage example
Objs should be deallocated by the same allocator used to allocate them.
2016-01-28 15:16:48 +01:00
Petar Kirov
6615f6990e Fix makeArray for types with disabled this(this) 2016-01-27 17:39:59 +02:00
Andrei Alexandrescu
ac96a3d3c0 Merge pull request #3684 from 9il/shared_free_list
[allocators] add approxMaxNodes for shared free list
2016-01-14 02:48:51 -05:00
Andrei Alexandrescu
718208dfc5 Merge pull request #3846 from aG0aep6G/TypeInfo.initializer
TypeInfo.init -> TypeInfo.initializer
2016-01-12 11:40:47 -05:00
Martin Nowak
8aafde2505 disable GCAllocator.expand test 2016-01-03 16:58:45 +01:00
Martin Nowak
6d36fc10e4 add missing @nogc for Windows-only functions 2016-01-03 16:04:18 +01:00
Yazan Dabain
44d273c3bd Fixes #15433: std.experimental.allocator.building_blocks.free_tree only compiles with unittest 2015-12-11 10:44:06 +02:00
Basile Burg
0c513b1c15 allowed Mallocator to be used in nogc functions 2015-12-05 23:41:26 +01:00
anonymous
933aa8e30d TypeInfo.init -> TypeInfo.initializer 2015-11-30 21:20:46 +01:00
Walter Bright
cf22992cbb Merge pull request #3768 from CyberShadow/pull-20151024-051829
HTML fixes
2015-10-24 15:05:00 -07:00
Vladimir Panteleev
86cf380007 HTML fixes 2015-10-24 06:19:23 +00:00
Brian Schott
60e69567dc Merge pull request #3693 from andrewwvc/newmaster
Modified allocateEligible to prevent memory stomping
2015-10-19 02:20:31 -07:00
Brian Schott
67c95e6de2 Merge pull request #3715 from dcarp/AliasSeq
Rename obsolete TypeTuple to AliasSeq
2015-10-16 20:59:56 -07:00
Brian Schott
158de887d3 Merge pull request #3685 from economicmodeling/allocator_policy_fix
Allow TypedAllocator.Policies to actually be empty
2015-10-15 16:37:21 -07:00
Ilya Yaroshenko
f81799cd0f fix #15188 2015-10-16 01:05:05 +03:00
Martin Nowak
2408a31a3f Merge pull request #3689 from economicmodeling/allocator-list-without-expand
Issue 15197 - Allow allocator_list to work with allocators that don't have 'expand()'
2015-10-15 01:17:55 +02:00
Martin Nowak
e5f45f4bed Merge pull request #3688 from economicmodeling/free-memory-in-unittests
Issue 15196 - Fix memory leak in bitmapped-block unit tests
2015-10-15 01:10:33 +02: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
Ilya Yaroshenko
bf64ff48a1 [DMD 2.069][allocators] Fix issue 15187
https://issues.dlang.org/show_bug.cgi?id=15187

Update package.d
2015-10-11 23:23:03 +06:00
Andrew Van Caem
54e415c82f Modified allocateEligible so that parent.allocate will allocate max bytes when hasTolerance is true 2015-10-04 12:19:16 +11:00
Andrei Alexandrescu
71a00eee59 Simplify package documentation generation, fux errors in allocator's documentation 2015-10-03 19:51:08 -04:00
Hackerpilot
5cb1fc7888 Allow allocator_list to work with allocators that don't have 'expand()' 2015-10-02 17:38:21 -07:00
Hackerpilot
9c431374de Fix memory leak in bitmapped-block unit tests 2015-10-02 17:11:40 -07:00
Justin Whear
bef28f41f1 Allow TypedAllocator.Policies to actually be empty
Fixed compile-time error when Policies was empty. Repro with
----
import std.experimental.allocator.mallocator;
import std.experimental.allocator.typed;
alias A = TypedAllocator!(Mallocator);  // slice[1..0]
----
2015-10-02 09:18:08 -07:00
Ilya Yaroshenko
cc4cd7c1a9 add approxMaxNodes for shared free list 2015-10-02 17:41:33 +03:00
Ilya Yaroshenko
0b2ca72571 fix SharedFreeList.allocate 2015-10-02 07:35:09 -04:00
Basile Burg
18d9bc764e fix unittest style 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
dbad0e839d Reduce number of threads created in free_list unittest 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
ec8f916555 Change unittest for roundUpToAlignment 2015-10-02 07:35:09 -04:00
Basile Burg
b876a20832 rewritten _aligned_realloc + added unittests
- _aligned_realloc was using an unnecessary temp buffer
- _aligned_realloc is now conforms with MSVC specs. in case of realloc failure (keep original block)
2015-10-02 07:35:09 -04:00
Basile Burg
82349d5ea3 fix, temp file for test under win 2015-10-02 07:35:09 -04:00
Basile Burg
70c4ad4cbe fix, test cant pass under win32
due to max alloc size
2015-10-02 07:35:09 -04:00
Basile Burg
53ba5d3c74 fix, use 'CRuntime_DigitalMars' to detect the Digital Mars standard C lib 2015-10-02 07:35:09 -04:00
Basile Burg
257499176f set aligned_free private 2015-10-02 07:35:09 -04:00
Basile Burg
2e2e6d5563 Implementation of the_aligned_alloc functions for the DigitalMars version 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
3a40bed57e Reduce unittest allocations, otherwise there's failure on low-memory machines at least in 32-bit builds 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
f38dab3d9e Fix roundUpToAlignment 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
b0d99515c5 Relax more totalAllocation assertions for 32 bit 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
58a19a64d8 Relax totalAllocation assertion for 32 bit 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
5c4f4cf20b Where did the tabs come from? 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
cce6aafa1b Rebase and solve conflicts 2015-10-02 07:35:09 -04:00
Basile Burg
0ea3986ab6 removed useless import 2015-10-02 07:35:09 -04:00