Commit graph

377 commits

Author SHA1 Message Date
Eduard Staniloiu
da335ad328 Mark deallocate as nothrow @nogc 2017-11-06 10:09:29 +00:00
Eduard Staniloiu
109bf46b4f Improve bucketizer reallocate unittest 2017-11-04 21:55:06 +00:00
Eduard Staniloiu
bf7cbb4149 Fix bucketizer realloc bug 2017-11-04 21:15:39 +00:00
Eduard Staniloiu
b7121e4f7d Fix Quantizer alignedAllocate 2017-11-02 23:10:02 +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
5c7b3904c7
Merge pull request #5828 from edi33416/fix_stats_collector
Fix StatsCollector typo
2017-10-31 17:33:02 -04:00
Andrei Alexandrescu
a49cce2dfb
hoist check for n == 0 to the top 2017-10-31 12:56:21 -04:00
Eduard Staniloiu
42ccb842ca Fix region allocate and expand 0 sz 2017-10-31 15:19:23 +00:00
Eduard Staniloiu
a2613b3d63 Fix StatsCollector typo 2017-10-31 14:21:54 +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
Andrei Alexandrescu
3cb1169d5f
Merge pull request #5802 from edi33416/segregator_fix
Fix segregator alignedReallocate and empty
2017-10-28 08:18:41 -04:00
Eduard Staniloiu
e42b06fc41 Fix FreeBSD SbrkRegion alignment issue 2017-10-27 17:12:52 +00:00
Eduard Staniloiu
59c25d8cc8 Fix segregator alignedReallocate and empty 2017-10-24 21:35:29 +00:00
The Dlang Bot
5a700c09d8 Merge pull request #5806 from edi33416/fix_sbrk_region_freebsd
Fix issue 17901 - FreeBSD SbrkRegion alignment
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-10-24 20:05:11 +02:00
Andrei Alexandrescu
df7f89dfdd Merge pull request #5787 from edi33416/safe_alloc_good_alloc_size
Make goodAllocSize @safe
2017-10-24 13:11:08 -04:00
Eduard Staniloiu
71ed13678d Fix issue 17901 - FreeBSD SbrkRegion alignment 2017-10-24 16:56:14 +00:00
Eduard Staniloiu
97ddc3d11d Improve unittests 2017-10-19 13:30:24 +00:00
Eduard Staniloiu
97e6d45688 Make goodAllocSize @safe 2017-10-19 09:35:58 +00:00
Eduard Staniloiu
1dbfb9d3d1 Make owns pure nothrow @safe @nogc 2017-10-19 09:31:50 +00:00
Eduard Staniloiu
035d7d651b Fix bucketizer aligned allocate 2017-10-16 08:56:28 +00:00
The Dlang Bot
2230d5556f Merge pull request #5764 from ibuclaw/mips32
Use MIPS32 version condition instead of MIPS.
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-10-08 01:18:37 +02:00
Iain Buclaw
061c2a7945 Use MIPS32 version condition instead of MIPS. 2017-10-07 23:33:35 +02:00
Sebastian Wilzbach
5a20f69160 Issue 16984 - Make stdx.allocator.building_blocks.free_list runnable 2017-10-05 21:55:33 +02:00
Sebastian Wilzbach
ff6c0f1dfc Issue 16984 - Make stdx.allocator.building_blocks.quantizer runnable 2017-10-05 21:55:17 +02: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
Nemanja Boric
b122848d33
Correct the documentation about the used allocator in Segregator
Documented Segregator uses GCAllocator for allocation of the blocks
greater than 4072kB, not Mallocator.
2017-08-09 18:50:41 +02:00
The Dlang Bot
a9169d6953 Merge pull request #5555 from chadjoan/shared_freelist_minimize
Add minimize() function to SharedFreeList.
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-07-26 21:24:32 +02:00
Sebastian Wilzbach
70f06b2357 Remove old, redundant private import access specifier
Very very old versions of D (well into 0.x) had imports public by default,
like C header files. This modernizes the codebase and removes the
redundant `private` access specifier.
This has been done with:

sed "s/private import/import/g" -i **/*.d
2017-07-11 12:28:39 +02:00
The Dlang Bot
0958adf3ff Merge pull request #5556 from chadjoan/shared_freelist_min_typo
Bugfix for "undefined identifier _min" in SharedFreeList.
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-07-10 07:18:41 +02:00
cjoan
0c41d96b13 Bugfix for "undefined identifier _min" in SharedFreeList.
When instantiating SharedFreeList with a 0 minSize and a
chooseAtRuntime maxSize, it will give an error like so:

  std/experimental/allocator/building_blocks/free_list.d(822): Error: undefined identifier _min, did you mean alias min?

This commit resolves the error message by using 'min' instead
of '_min', because '_min' is only available when
(minSize == chooseAtRuntime).
2017-07-10 06:43:11 +02:00
cjoan
c327a3c73c Add minimize() function to SharedFreeList. 2017-07-05 23:30:59 -04:00
Martin Nowak
24f44d083f Merge remote-tracking branch 'upstream/stable' into merge_stable 2017-07-05 18:37:32 +02:00
Sebastian Wilzbach
818deb3615 Fix DDoc macros 2017-06-30 01:39:24 +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
The Dlang Bot
857fdc1312 Merge pull request #5486 from wilzbach/fix-ddoc
Fix invalid undefined Ddoc macros
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2017-06-15 17:39:23 +02:00
Sebastian Wilzbach
e7111d4fd0 Fix invalid undefined Ddoc macros 2017-06-15 11:00:47 +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