nordlow
b4ce8436d7
Annotate bitmapped_block.d to please dlang/dmd#12520
2021-05-18 01:13:52 +02:00
berni44
b2019ebab0
Narrow imports of std.math in the rest of phobos.
2021-04-21 03:00:57 +02:00
Nathan Sashihara
e801d54faa
std.experimental.allocator: use core.bitop for trailingZeroes and leadingOnes
2020-05-15 10:34:20 -07:00
Hackerpilot
bbab95e337
Make sure that uses of testAllocator are inside of StdUnittest version blocks.
2020-03-10 12:24:10 -07:00
Alexandru Militaru
bb62aaca3d
Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest
2020-01-19 14:05:17 +02:00
Iain Buclaw
fd5facfe04
posix.mak: Enforce whitespace before opening parenthesis for version conditions
2018-09-22 16:57:24 +02:00
Martin Kinkelin
cce577165b
Fix std.experimental.allocator.common.effectiveAlignment()
...
It was unable to handle alignments > 2^31 bytes, e.g., returning 2 for
the 64-bit pointer 0x2FA_00000000. Return a size_t instead of a uint.
Note that it's only called in one place, an assertion in a ctor of the
BitmappedBlockImpl mixin, which handles size_t fine.
This fixes sporadic
std.experimental.allocator.building_blocks.bitmapped_block unittest
failures for LDC CI on Win64 (something like 1 out of 100 runs failing).
2018-06-29 19:23:37 +02:00
The Dlang Bot
f8a17a7898
Merge pull request #6508 from CyberShadow/pull-20180515-044632
...
Fix Issue 18847 - std.allocator: Region uses .parent before it can be set
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-06-07 23:01:39 +02:00
Sebastian Wilzbach
c324714fde
Remove a few cases of underscore escaping
2018-06-04 13:05:01 +02:00
Vladimir Panteleev
72b2128e6e
Fix Issue 18847 - std.allocator: Region uses .parent before it can be set
2018-05-15 04:47:07 +00:00
Alexandru Jercaianu
eb2b8e251a
Add multiblock support for shared and non-shared BitmappedBlock
2018-04-16 20:07:53 +03:00
Steven Schveighoffer
6b72ce316d
Trim as much version(unittest) as possible from allocator ( #6452 )
...
* Trim as much version(unittest) as possible from allocator
* improve internal test function addr to m_addr (and fix verbosity a bit)
* Remove shared from RCISharedAllocator, as it's already shared
* Fix issue with m_addr
2018-04-13 22:02:00 +03:00
Eduard Staniloiu
e100cde76f
Make bitmapped_block allocate @safe
2018-04-05 07:13:21 +02:00
Sebastian Wilzbach
42894784dd
Markdownify Phobos
...
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Jack Stouffer
663b5b9278
Revert addition of StdUnittest
2018-02-20 13:32:32 -05:00
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