Commit graph

303 commits

Author SHA1 Message Date
Iain Buclaw
9d575282ed
[dmd-cxx] Backport platform fixes to phobos (#7784)
[dmd-cxx] Backport platform fixes to phobos
merged-on-behalf-of: Iain Buclaw <ibuclaw@users.noreply.github.com>
2021-02-03 18:01:57 +01:00
Joakim
0ebe8647dc Add needed changes to get all tests passing with Musl
This is a cherry-pick of 034988a0db
2019-07-13 22:57:33 +09:00
Iain Buclaw
aa19bd7570 std.experiment.allocator: SPARC64 stack grows downwards 2019-04-16 07:26:17 +02:00
Iain Buclaw
efc7a07bdf Add minimum RISCV support to phobos 2019-04-10 21:02:56 +02:00
Iain Buclaw
2fd957307d [dmd-cxx] Backport non-math related patches from #5358 2019-02-10 11:17:21 +01:00
Iain Buclaw
126bc59e98 [dmd-cxx] Add minimum HPPA support to phobos 2019-01-21 21:18:42 +01:00
Iain Buclaw
dd2edb247f Synchronize dmd-cxx with gdc-stable 2019-01-05 14:10:15 +01:00
Nemanja Boric
b122848d33
Correct the documentation about the used allocator in Segregator
Documented Segregator uses GCAllocator for allocation of the blocks
greater than 4072kB, not Mallocator.
2017-08-09 18:50:41 +02:00
The Dlang Bot
a9169d6953 Merge pull request #5555 from chadjoan/shared_freelist_minimize
Add minimize() function to SharedFreeList.
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-07-26 21:24:32 +02:00
Sebastian Wilzbach
70f06b2357 Remove old, redundant private import access specifier
Very very old versions of D (well into 0.x) had imports public by default,
like C header files. This modernizes the codebase and removes the
redundant `private` access specifier.
This has been done with:

sed "s/private import/import/g" -i **/*.d
2017-07-11 12:28:39 +02:00
The Dlang Bot
0958adf3ff Merge pull request #5556 from chadjoan/shared_freelist_min_typo
Bugfix for "undefined identifier _min" in SharedFreeList.
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-07-10 07:18:41 +02:00
cjoan
0c41d96b13 Bugfix for "undefined identifier _min" in SharedFreeList.
When instantiating SharedFreeList with a 0 minSize and a
chooseAtRuntime maxSize, it will give an error like so:

  std/experimental/allocator/building_blocks/free_list.d(822): Error: undefined identifier _min, did you mean alias min?

This commit resolves the error message by using 'min' instead
of '_min', because '_min' is only available when
(minSize == chooseAtRuntime).
2017-07-10 06:43:11 +02:00
cjoan
c327a3c73c Add minimize() function to SharedFreeList. 2017-07-05 23:30:59 -04:00
Martin Nowak
24f44d083f Merge remote-tracking branch 'upstream/stable' into merge_stable 2017-07-05 18:37:32 +02:00
Sebastian Wilzbach
818deb3615 Fix DDoc macros 2017-06-30 01:39:24 +02:00
Martin Nowak
b8b60fb347 avoid redundant TLS reads 2017-06-29 02:08:44 +02:00
Sönke Ludwig
67e33d7748 Make _threadAllocator private. 2017-06-29 01:45:01 +02:00
Sönke Ludwig
4a5d2b3b18 Fix issue 17564: Eliminate "static this" for theAllocator
This switches to lazy initialization of theAllocator, so that accessing it form within `shared static this` works as expected.
2017-06-29 01:45:01 +02:00
The Dlang Bot
857fdc1312 Merge pull request #5486 from wilzbach/fix-ddoc
Fix invalid undefined Ddoc macros
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2017-06-15 17:39:23 +02:00
Sebastian Wilzbach
e7111d4fd0 Fix invalid undefined Ddoc macros 2017-06-15 11:00:47 +02:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
The Dlang Bot
9b5a54189d Merge pull request #5463 from andralex/allocatorhassharedstaticzisnomore
Eliminate shared this for allocators
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-06-13 07:32:13 +02:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Andrei Alexandrescu
1cdd07b60d Eliminate shared this for allocators 2017-06-11 11:28:48 -04: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
dfe45f3d0e Remove free_list faulty dtor 2017-06-08 00:40:14 +03:00
Andrei Alexandrescu
5cc9d8b1a8 Eliminate failing assert on 32 bit platforms 2017-06-08 00:40:14 +03:00
Eduard Staniloiu
79cf4ab913 Use OpaquePointer as a safe support for region based allocators 2017-06-08 00:40:14 +03:00
Martin Nowak
b940d0c1c7 Merge remote-tracking branch 'upstream/stable' into merge_stable 2017-05-23 20:37:35 +02:00
Eduard Staniloiu
5bc80e6dd6 Add ISharedAllocator and have the _processAllocator use it 2017-05-01 02:52:50 +03:00
Eduard Staniloiu
ee6e55621e SharedFreeList.reallocate must be shared and take a ref void[] 2017-04-30 19:23:44 +03:00
Martin
68b51e7a81 Fix missing alignment for kernighan_ritchie allocator unittests 2017-04-23 04:51:50 +02:00
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