Jack Stouffer
b19f46a7d1
Fix style problems in std.experimental.allocator.gc_allocator
2017-04-05 10:55:22 -04:00
Eduard Staniloiu
04e844da77
Allocators should take a ubyte[] memory block instead of a void[] one
...
Allocators that rely on taking a block of unused memory to manage and allocate
from it should take a ubyte[] instead of a void[] in order to prevent users
from accidentally passing valid data and cause memory corruption/leaks.
2017-04-04 16:46:38 +03:00
Eduard Staniloiu
7c0ebad377
Make allocators' resolveInternalPointer take a const pointer as source
2017-04-03 20:35:01 +03:00
The Dlang Bot
ccf4ad1fca
Merge pull request #5237 from wilzbach/booktable-stdx-allocator
...
[BOOKTABLES]: Add BOOKTABLE to stdx.allocator
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-03-30 18:18:08 +02: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
1dfbb9ad16
[BOOKTABLES]: Add BOOKTABLE to stdx.allocator
2017-03-04 05:07:14 +01:00
Sebastian Wilzbach
d548e8830a
Replace LUCKY links with actual links
2017-02-28 23:46:54 +01:00
Sebastian Wilzbach
b8a88558a9
Fix Ddoc warnings
2017-02-26 09:33:14 +01:00
Sebastian Wilzbach
64a0814ae4
Issue 16824: fix experimental makeMultidimensionalArray API
2017-02-22 23:32:04 +01:00
Andrei Alexandrescu
30724e67d9
Merge pull request #5166 from wilzbach/dscanner-unittest-safe-or-system
...
Dscanner: let unittest be @safe or @system
2017-02-22 14:44:08 -05:00
Sebastian Wilzbach
6c9b626e6f
[opSlice stye fixup] fix false-positives from the automatic conversion
2017-02-22 06:33:37 +01:00
Sebastian Wilzbach
a36cec8686
DScanner: automatially set all unattributed unittests to @safe or @system
2017-02-22 05:42:04 +01:00
Sebastian Wilzbach
425ab667a3
Automatically set the range style from a..b -> a .. b
...
Commands:
sed -E "s/([[:alnum:]])[.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]])[.][.] ([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) [.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
2017-02-22 05:37:31 +01:00
Sebastian Wilzbach
805c720595
Unify Phobos by ensuring there's always a space after cast(...)
...
Command:
sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
5521541032
Unify assert style to have no spaces between the first brace
...
Application of:
sed -E "s/assert +\(/assert(/" -i **/*.d
2017-02-21 15:27:15 +01:00
Sebastian Wilzbach
87dec58a41
DStyle: Constraints on declarations should have the same indentation level
2017-02-17 07:36:23 +01:00
Jack Stouffer
bb27aa7bd2
Merge pull request #5029 from somzzz/issue_16564
...
fix issue 16564 - KRRegion.empty sometimes returns Ternary.no
2017-01-19 08:50:26 -05:00
Jack Stouffer
9dd0f579be
Merge pull request #4982 from RazvanN7/Issue_16824
...
Fix Issue 16824 - std.experimental.allocator.dispose leaks memory
2017-01-17 15:29:04 -05:00
somzzz
8a69b10451
fix issue 16564
2017-01-16 03:40:57 -08:00
RazvanN7
23fcc1cc25
Style changes
2017-01-15 12:11:06 +02:00
RazvanN7
098e52ba21
Created the make/disposeMultidimensionalArray functions + unittest
2017-01-12 19:47:37 +02:00
Sebastian Wilzbach
18ecb6b72c
Make more modules publicly runnable on dlang.org
2017-01-06 23:29:55 +01:00
WalterW
f7e14e905b
Fix issue 16352 - dead-lock in std.allocator.free_list unittest
...
This fixes the actual unittest.
2016-12-24 01:40:47 -05:00
WalterW
776202b4e4
SharedFreeList - Fix nodes count desync and use after free on deallocateAll
2016-12-23 12:55:32 -05:00
WalterW
5caa66ef31
Fix issue 16352 - dead-lock in std.allocator.free_list unittest
2016-12-23 12:55:32 -05:00
RazvanN7
936a802b50
Issue 16824 - std.experimental.allocator.dispose leaks memory for arrays of more than 1 dimension
2016-12-21 16:38:59 +02:00
RazvanN7
935d4ada9a
Issue 16824 - std.experimental.allocator.dispose leaks memory for arrays of more than 1 dimension
2016-12-21 16:31:44 +02:00
Sebastian Wilzbach
b82ae35fd7
Use void for auto function without return statement
2016-12-08 12:32:14 +01:00
Sebastian Wilzbach
c5ba7c7d0b
Style fix: Add whitespace between import colon
2016-12-08 01:46:46 +01:00
anonymous
4afa2045c5
cover "desperation mode"
2016-09-19 12:25:45 +02:00
anonymous
46599a63ed
fix issue 16507 - std.experimental.allocator: FreeTree clears too eagerly
...
Try parent allocator without clearing first. Documentation says so.
2016-09-19 00:15:31 +02:00
anonymous
2a2e04b9c7
fix issue 16506 - segfaults in std.experimental.allocator: FreeTree with GCAllocator or Mallocator
2016-09-18 23:49:29 +02:00
Nick Treleaven
46d281bd07
expandArray: Move ForcedInputRange example into undocumented test
...
ForcedInputRange is private.
2016-09-05 12:17:06 +01:00
Andrei Alexandrescu
2854ae011f
Merge pull request #4680 from wilzbach/allocator_safe_2
...
Propagate attributes in std.experimental.allocator.make
2016-08-30 07:53:38 -04:00
Jack Applegame
e56ac3620a
modify unittest to increase test coverage
2016-08-29 22:50:07 +04:00
Jack Applegame
d07cb58d3e
add unittest
2016-08-29 22:14:53 +04:00
Jack Applegame
f02c9a3688
fix AllocatorList.allocate weird behavior
...
Wrong `return` position. That says it all. Creating unnecessary allocators, memory leaks and so on.
2016-08-29 19:52:16 +04:00
Andrei Alexandrescu
54a5e49b2a
Fix issue 16046 - ScopedAllocator does not set prev, causing segfaults
2016-08-22 12:23:28 -04:00
Lodovico Giaretta
b96a330b77
fix issue 16319
2016-08-15 21:02:30 +02:00
Sebastian Wilzbach
ed4404399f
Propagate attributes in std.experimental.allocator.make
2016-08-15 12:09:23 +02:00
Sebastian Wilzbach
9c7bd0e24e
std.experimental.allocator: Add attributes to makeArray - part 3
2016-08-15 10:17:40 +02:00
Andrei Alexandrescu
a5c8440bc6
Merge pull request #4681 from wilzbach/allocator_safe_4
...
Add attributes to makeArray - part 1 (length)
2016-08-15 01:56:42 -04:00
Andrei Alexandrescu
c8e0c6ea08
Merge pull request #4679 from wilzbach/allocator_safe_1
...
Add attributes to GCAllocator and theAllocator
2016-08-15 01:26:11 -04:00
Andrei Alexandrescu
098e52ec1b
Merge pull request #4682 from wilzbach/allocator_safe_5
...
Add attributes to makeArray - part 2 (length + init)
2016-08-15 00:24:14 -04:00
Andrei Alexandrescu
accf8d540e
Merge pull request #4705 from wilzbach/test_alloc
...
[trivial] Extend reallocate test for all Allocators
2016-08-14 23:44:16 -04:00
Sebastian Wilzbach
b0e5a1b7da
std.experimental.allocator: Add attributes to makeArray - part 2
2016-08-03 03:39:34 +02:00
Sebastian Wilzbach
6d9918e183
std.experimental.allocator: Add attributes to makeArray - part 1
2016-08-03 03:35:44 +02:00
Sebastian Wilzbach
a5b0016ebb
Add attributes to GCAllocator and theAllocator
2016-08-03 03:16:31 +02:00
Sebastian Wilzbach
d331a5d176
Extend reallocate test for all Allocators
2016-08-03 03:10:41 +02:00