Commit graph

41 commits

Author SHA1 Message Date
Sebastian Wilzbach
c94d93e121 Merge remote-tracking branch 'upstream/stable' into merge_stable 2018-01-09 02:19:50 +01:00
Sebastian Wilzbach
233e90bdc1 Add PHOBOSSRC urls to std.experimental 2018-01-08 02:52:50 +01:00
Sebastian Wilzbach
2678754347 Add StdUnittest to std.net.curl + stdx.allocator 2017-12-21 09:36:10 +01:00
Alexandru Jercaianu
2485fef855 Added allocateFresh for BitmappedBlock
removed const

bla bla

bla
2017-12-08 21:18:10 +02: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
Eduard Staniloiu
df72d45c7c Make allocators expand safe 2017-11-22 19:51:12 +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
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
Eduard Staniloiu
a498d87222 Make empty @safe 2017-11-07 18:00:52 +00:00
Eduard Staniloiu
ee9fc06656 Mark deallocateAll as @nogc 2017-11-06 21:57:59 +00:00
Eduard Staniloiu
da335ad328 Mark deallocate as nothrow @nogc 2017-11-06 10:09:29 +00:00
Eduard Staniloiu
c1efb05ebf Improve unittests 2017-10-28 22:31:36 +00: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
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
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
Eduard Staniloiu
79cf4ab913 Use OpaquePointer as a safe support for region based allocators 2017-06-08 00:40:14 +03: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
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
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
Jack Stouffer
c183c2e5c2 Fixed std.algorithm imports in std.experimental.allocator to not be package wide 2016-07-03 01:34:31 -04:00
Jack Stouffer
3011d06039 Fixed local imports in std.experimental.allocator.building_blocks.bitmapped_block 2016-06-30 18:07:00 -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
Sönke Ludwig
f07dfe6df0 Add empty doc comments to all public Phobos modules to fix /library/.
The DDOX based documentation is configured to only show entities with doc comments and thus hides modules without one. This adds an empty comment to all public Phobos modules that have stayed undocumented so far.

They should probably get a proper documentation with description/license/copyright/.... This just fixes the documentation until then.
2016-06-06 10:53:11 +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
Rainer Schuetze
d979bb8165 test std.experimental.allocator for Win64/Win32mscoff
fix assert in std.experimental.allocator.building_blocks.bitmapped_block for 32-bit build
2016-03-01 13:08:08 +01:00
Hackerpilot
9c431374de Fix memory leak in bitmapped-block unit tests 2015-10-02 17:11:40 -07: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
f86669b2be Fix documentation of methods returning Ternary 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
Renamed from std/experimental/allocator/bitmapped_block.d (Browse further)