Commit graph

50 commits

Author SHA1 Message Date
Nicholas Wilson
bbd0b3ebf7
Fix broken unittest 2019-05-17 14:08:36 +08:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Nathan Sashihara
a3dfcc1025 Implement allocateZeroed for building-block allocators
Followup to https://github.com/dlang/phobos/pull/6411
2018-09-08 10:56:34 -04:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
JinShil
aff18e8205 Remove deprecated std.c package 2018-05-31 10:00:09 +09:00
Nathan Sashihara
6848fa9646 make/makeArray: take advantage of allocators with smth. faster than allocate+memset zero 2018-04-15 17:48:29 -04: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
3812a67928 Make Mallocator use pureMalloc, pureFree and pureRealloc 2018-04-03 13:53:29 +00:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Johan Engelen
ccac0c6a21
whitespace fix: identical to LDC's patch now 2018-03-02 13:56:18 +01:00
Johan Engelen
9cb10bb1ea
[ASan] Handle the (invalid) return value of posix_memalign
See https://github.com/ldc-developers/phobos/pull/58

With ASan enabled, posix_memalign returns -1 upon invalid parameters or when not enough memory is available. This bug is reported with compiler-rt here: https://bugs.llvm.org/show_bug.cgi?id=36510
Still, if we deal with the invalid -1 return value in Phobos, we can continue testing with ASan enabled.
It looks like this workaround is only needed on OSX.
2018-03-02 13:54:18 +01:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -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
Joakim
7fde88d38c Use posix_memalign declaration from druntime instead 2017-12-22 18:42:35 +05:30
The Dlang Bot
da00e8f390
Merge pull request #5927 from wilzbach/udflags
Add a StdUnittest version
merged-on-behalf-of: David Nadlinger <code@klickverbot.at>
2017-12-21 13:10:52 +01:00
Sebastian Wilzbach
2678754347 Add StdUnittest to std.net.curl + stdx.allocator 2017-12-21 09:36:10 +01:00
Diederik de Groot
31ca73d58d
Port of phobos to DragonFlyBSD
Notes:
- FIXME message related to dragonfly malloc issue (issue reported on upstream dragonfly issue database)
2017-12-20 08:05:49 +01: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
Basile Burg
a196f171f6
fix issue 16398 - experimental allocators, add aligned reallocation for Posix 2017-11-13 13:20:52 +01:00
Eduard Staniloiu
da335ad328 Mark deallocate as nothrow @nogc 2017-11-06 10:09:29 +00:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +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
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
ec47ac4224 Remove the WEB macro in favor of HTTP
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02: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
Sebastian Wilzbach
2dfbc51f17 Standardize whitespace after imports
Unified with:

sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
Jack Stouffer
95e90ba788 Fixed long lines in std/experimental/allocator/mallocator.d 2016-05-10 20:51:39 -04:00
Sebastian Wilzbach
3d67cd228c style fix: space between operators 2016-04-26 22:26:20 +03:00
ZombineDev
1c555f0d1f Handle all return codes of posix_memalign, such as EINVAL. 2016-02-03 17:33:24 +02:00
ZombineDev
ce938fe432 Add attributes to most functions in allocator.mallocator and allocator.common.
Also made the style more consistent.
2016-02-03 17:33:24 +02:00
Martin Nowak
6d36fc10e4 add missing @nogc for Windows-only functions 2016-01-03 16:04:18 +01:00
Basile Burg
0c513b1c15 allowed Mallocator to be used in nogc functions 2015-12-05 23:41:26 +01:00
Basile Burg
18d9bc764e fix unittest style 2015-10-02 07:35:09 -04:00
Basile Burg
b876a20832 rewritten _aligned_realloc + added unittests
- _aligned_realloc was using an unnecessary temp buffer
- _aligned_realloc is now conforms with MSVC specs. in case of realloc failure (keep original block)
2015-10-02 07:35:09 -04:00
Basile Burg
53ba5d3c74 fix, use 'CRuntime_DigitalMars' to detect the Digital Mars standard C lib 2015-10-02 07:35:09 -04:00
Basile Burg
257499176f set aligned_free private 2015-10-02 07:35:09 -04:00
Basile Burg
2e2e6d5563 Implementation of the_aligned_alloc functions for the DigitalMars version 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
e0ad05d7b0 Name change: .it -> .instance for all allocators 2015-10-02 07:35:09 -04:00
Hackerpilot
5cedb3873e Fix tabs 2015-10-02 07:35:09 -04:00
Hackerpilot
710d85d622 Clean up various things discovered by D-Scanner 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
20bfef3f3e Unify static and dynamic method signatures 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
e3b6e3ee78 Fixes in affix_allocator, workaround in common and mallocator 2015-10-02 07:35:08 -04:00
Andrei Alexandrescu
ed5a6ca6db allocate(0) should return null 2015-10-02 07:35:08 -04:00
Andrei Alexandrescu
0d6ae0459d HeapBlock now takes an allocator as a parameter 2015-10-02 07:35:08 -04:00
Andrei Alexandrescu
892be24145 Separate mallocator from the rest 2015-10-02 07:35:07 -04:00