Commit graph

386 commits

Author SHA1 Message Date
Sebastian Wilzbach
233e90bdc1 Add PHOBOSSRC urls to std.experimental 2018-01-08 02:52:50 +01:00
The Dlang Bot
d76946669c
Merge pull request #5912 from jercaianu/allocatefresh
Added allocateFresh for BitmappedBlock
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-12-08 21:10:34 +01:00
Alexandru Jercaianu
2485fef855 Added allocateFresh for BitmappedBlock
removed const

bla bla

bla
2017-12-08 21:18:10 +02:00
The Dlang Bot
64e4158ac7
Merge pull request #5908 from jercaianu/page_alloc_aligned
Added alignedAllocate for AscendingPageAllocator
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-12-08 05:08:17 +01:00
Alexandru Jercaianu
a20495e6cb Fixed various bugs in Bitmapped Block
removed unused dbg variable

removed blank line

added space in while
2017-12-08 00:42:26 +02:00
Alexandru Jercaianu
352e0cab97 Added alignedAllocate for AscendingPageAllocator 2017-12-07 19:22:42 +02:00
Eduard Staniloiu
863421e114 Make alignedReallocate nothrow nogc 2017-12-06 18:38:11 +01:00
The Dlang Bot
0d7ecb1a2f
Merge pull request #5886 from edi33416/nogc_alloc_reallocate
[WIP] Make reallocate nothrow nogc
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-12-05 18:43:35 +01:00
Alexandru Jercaianu
09a3d25ccf replace deallocate with deallocateAll
test
2017-11-29 16:23:11 +02:00
Alexandru Jercaianu
e969c734cd Integrate AscendingPageAllocator with AllocatorList
test

removed unused functions from AscendingPageAllocator

test
2017-11-29 14:11:15 +02:00
Eduard Staniloiu
2a02f6feb9 Make reallocate nothrow nogc 2017-11-28 14:50:26 +00:00
The Dlang Bot
e40f180649
Merge pull request #5876 from jercaianu/ascendingalloc
AscendingPageAllocator
merged-on-behalf-of: unknown
2017-11-28 05:42:39 +01:00
Andrei Alexandrescu
df03bc9ee7
allman 2017-11-27 22:59:39 -05:00
Andrei Alexandrescu
cca6a5b552
use specific import std.algorithm.comparison 2017-11-27 22:42:06 -05:00
Andrei Alexandrescu
e23e48419e
more import fixes 2017-11-27 22:23:36 -05:00
Andrei Alexandrescu
bcfacfc629
import style 2017-11-27 22:16:06 -05:00
Andrei Alexandrescu
0a23aece1c
trailing ws 2017-11-27 21:51:44 -05:00
Andrei Alexandrescu
daf82864ed
style fixes 2017-11-27 21:20:29 -05:00
Andrei Alexandrescu
cea464b82c
more ws removal... 2017-11-27 20:30:06 -05:00
Andrei Alexandrescu
a28b7161ab
fix trailing ws 2017-11-27 20:26:59 -05:00
Andrei Alexandrescu
461eb01f89
delete trailing ws 2017-11-27 20:14:32 -05:00
Andrei Alexandrescu
0ab275f7e3
A few doc edits, will make one pass later. 2017-11-27 19:03:13 -05:00
Alexandru Jercaianu
5cc83ef806 Assert(0) on failure; Documentation updates; Windows uses VirtualFree with MEM_DECOMMIT in deallocate
Added deallocateAll test

updated docs
2017-11-28 00:38:16 +02:00
Alexandru Jercaianu
e3ca269226 windows wrong assert 2017-11-27 17:57:18 +02:00
Alexandru Jercaianu
22edd684ba Use mmap(MAP_FIXED) on deallocation to keep virtual address range, but uncommit memory 2017-11-27 17:25:56 +02:00
Eduard Staniloiu
8a4a03550a Fix SBrkRegion expand bug 2017-11-27 00:28:52 +02:00
Alexandru Jercaianu
ee00ee33cc Do less VirtualAlloc/mprotect calls
compile error
2017-11-24 23:57:20 +02:00
Eduard Staniloiu
df72d45c7c Make allocators expand safe 2017-11-22 19:51:12 +02:00
Alexandru Jercaianu
d7479b7964 Added AscendingPageAllocator
remove trailing whitespace
2017-11-21 01:01:04 +02:00
The Dlang Bot
1649edd483
Merge pull request #5862 from jercaianu/krr
Fix Issue 16564 - KRRegion.empty sometimes returns Ternary.no
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-19 03:40:51 +01:00
Alexandru Jercaianu
f130ff0628 minor refactor for regionMode 2017-11-18 21:11:00 +02:00
Andrei Alexandrescu
e02fb7e60a
Avoid subtraction of pointers to different types
See also https://github.com/dlang/dmd/pull/7332
2017-11-18 11:49:53 -05: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
02074889d5 Fix Issue 16564 - KRRegion.empty sometimes returns Ternary.no 2017-11-16 16:19:59 +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
Andrei Alexandrescu
0308bd6b9a
Merge pull request #5857 from BBasile/issue-16398
fix issue 16398 - experimental allocators, add aligned reallocation for Posix
2017-11-13 16:22:33 -05:00
Andrei Alexandrescu
fbe4f4e361
whitespace 2017-11-13 14:48:52 -05:00
Andrei Alexandrescu
58d7efe1ae
Fix a few issues 2017-11-13 14:40:46 -05:00
The Dlang Bot
53e5cf67df
Merge pull request #5852 from jercaianu/region
Fix Issue 15637 - Region allocator assert failure when expanding the last allocation
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-13 19:22:51 +01:00
The Dlang Bot
20413aed16
Merge pull request #5854 from jercaianu/bitmap_chooseAtRuntime
Fixed Issue 16253 - BitmappedBlock allocator not working with chooseAtRuntime
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-13 18:39:21 +01:00
Andrei Alexandrescu
0b006c6f8c
Merge pull request #5856 from jercaianu/freeList
Fix Issue 15140 - std.experimental.allocator.building_blocks.free_list.FreeList leaks memory
2017-11-13 11:30:12 -05:00
Basile Burg
a196f171f6
fix issue 16398 - experimental allocators, add aligned reallocation for Posix 2017-11-13 13:20:52 +01:00
Alexandru Jercaianu
762375058f Added test for FreeList destructor 2017-11-11 23:13:06 +02:00
Alexandru Jercaianu
b8d70b32fd Fix Issue 15140 - std.experimental.allocator.building_blocks.free_list.FreeList leaks memory 2017-11-11 21:43:28 +02:00
Alexandru Jercaianu
f8a8589036 Added test for stateful allocator with FallbackAllocator 2017-11-11 19:59:58 +02:00
Alexandru Jercaianu
1f63f2d039 Added constraint for Allocator to have alignedAllocate 2017-11-10 15:31:00 +02:00
Alexandru Jercaianu
01295695c5 Minor refactor in test 2017-11-10 01:27:13 +02:00
Alexandru Jercaianu
f730d230f5 Fixed Issue 16253 - BitmappedBlock allocator not working with chooseAtRuntime 2017-11-10 00:25:00 +02:00
Alexandru Jercaianu
c2609a8c25 added testcase 2017-11-09 15:20:51 +02:00