Commit graph

490 commits

Author SHA1 Message Date
Martin Nowak
75feb5726a
Merge pull request #6537 from aG0aep6G/18937
fix issue 18937 - [REG 2.080.0] std.experimental.allocator: compiling…
2018-06-25 15:14:47 +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
Joakim
f916d73af7 Musl: last remaining tweaks 2018-06-07 11:58:44 +05:30
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
aG0aep6G
f6bd7ab436 style: make opEquals const 2018-06-04 01:17:59 +02:00
aG0aep6G
6eb189d95d handle funky opEquals
Also switch to CTFE `foreach`, because the template-level code has no speed
advantage anymore in the `T.init` case, and the CTFE loop is faster in the
other cases.
2018-06-04 01:02:34 +02:00
aG0aep6G
063a3a86ba style 2018-06-03 18:27:39 +02:00
aG0aep6G
86af9e6bce fix issue 18937 - [REG 2.080.0] std.experimental.allocator: compiling make needs an unreasonable amount of memory for structs that contain static arrays 2018-06-03 15:34:38 +02:00
The Dlang Bot
ad6be4e381
Merge pull request #6528 from n8sh/makeArray-mulu
Check for overflow in std.experimental.allocator.makeArray
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-06-02 06:01:54 +02:00
JinShil
aff18e8205 Remove deprecated std.c package 2018-05-31 10:00:09 +09:00
Nathan Sashihara
d7d6babd6e Check for overflow in std.experimental.allocator.makeArray 2018-05-29 20:49:13 -04: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
Nathan Sashihara
8d070a5c81
Merge branch 'master' into fix_i17806 2018-04-24 21:19:02 -04:00
Eduard Staniloiu
f239d2603a Make AffixAllocator parent pure 2018-04-24 16:23:40 +00:00
Eduard Staniloiu
9384f30faa Make RCIAllocators pure 2018-04-24 15:17:22 +00:00
jercaianu
559aa6d7c7 Allocator list does not return null if two empty nodes are found (#6462) 2018-04-19 15:07:30 +03:00
The Dlang Bot
777685ffb6
Merge pull request #6460 from jercaianu/region_nogc
Add deallocateAll for SharedRegion
merged-on-behalf-of: Eduard Staniloiu <edi33416@users.noreply.github.com>
2018-04-18 17:49:27 +02:00
Alexandru Jercaianu
60c0e6fb9e Add deallocateAll for SharedRegion 2018-04-18 15:49:37 +03:00
Andrei Alexandrescu
4126f92827
Merge pull request #6449 from edi33416/fix_thread_alloc
Fix Issue 18760 - theAllocator dangling reference bug
2018-04-17 16:13:10 -04:00
The Dlang Bot
e24db85c58
Merge pull request #6456 from jercaianu/allocator_list_alignedAllocate
Add alignedAllocate for AllocatorList
merged-on-behalf-of: Eduard Staniloiu <edi33416@users.noreply.github.com>
2018-04-17 14:26:50 +02:00
Alexandru Jercaianu
ab3a37a678 Add alignedAllocate for AllocatorList 2018-04-17 12:47:35 +03:00
The Dlang Bot
c5129bebd4
Merge pull request #6410 from jercaianu/alignedBlockList
Add AlignedBlockList
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-04-17 05:23:00 +02:00
Alexandru Jercaianu
eb2b8e251a Add multiblock support for shared and non-shared BitmappedBlock 2018-04-16 20:07:53 +03:00
Alexandru Jercaianu
0fb44b0d45 Add AlignedBlockList 2018-04-16 19:36:45 +03:00
Alexandru Jercaianu
507d82ce86 Add alignedAllocate for StatsCollector 2018-04-16 16:02:48 +03: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
50bf106d5b Fix theAllocator dangling reference bug 2018-04-13 11:45:27 +00:00
Per Nordlöw
d0adf134a5 Make GCAllocator callable in pure functions 2018-04-08 21:58:23 +02:00
The Dlang Bot
09fc836143
Merge pull request #6400 from nordlow/pure-region-allocate
Qualify Region, SharedRegion and SbrkRegion allocators
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-04-06 00:44:18 +02:00
The Dlang Bot
ca72c991cd
Merge pull request #6422 from wilzbach/duplicate-static-gshared
Remove redundant 'static' storage classes on __gshared variables
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-04-05 20:30:54 +02:00
Sebastian Wilzbach
6f766dce5d Remove redundant 'static' storage classes 2018-04-05 13:11:48 +02:00
Per Nordlöw
95b2f9f846 Merge remote-tracking branch 'upstream/master' into pure-region-allocate 2018-04-05 10:38:04 +02:00
Eduard Staniloiu
e100cde76f Make bitmapped_block allocate @safe 2018-04-05 07:13:21 +02:00
Eduard Staniloiu
4b0b02e9e1 Fix Issue 17806 - processAllocator getter will override set value if it was set before getter was called at least once 2018-04-04 12:41:20 +00:00
Per Nordlöw
b2564e4dc7 qualify Region allocator 2018-04-04 12:59:41 +02:00
Sebastian Wilzbach
307dd152e7
Merge pull request #6405 from edi33416/mmap_allocator_allocate
Make mmap_allocator allocate @safe
2018-04-04 05:27:21 +02:00
Sebastian Wilzbach
9e81b5ad7e
Merge pull request #6406 from edi33416/null_allocator_allocate
Make null_allocator allocate @safe
2018-04-04 05:20:55 +02:00
Andrei Alexandrescu
afdc0c08d1
Update mmap_allocator.d 2018-04-03 11:29:38 -04:00
Eduard Staniloiu
3812a67928 Make Mallocator use pureMalloc, pureFree and pureRealloc 2018-04-03 13:53:29 +00:00
Eduard Staniloiu
199bffbcf6 Make mmap_allocator allocate @safe 2018-04-03 11:29:22 +00:00
Eduard Staniloiu
3e91474f07 Make null_allocator allocate @safe 2018-04-03 11:23:06 +00:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
The Dlang Bot
6797b52c0d
Merge pull request #6024 from n8sh/uninitializedFillDefault-memset
Fix Issue 18223: use memset in uninitializedFillDefault(T[])
merged-on-behalf-of: unknown
2018-03-31 06:58:26 +02:00
RazvanN7
223ba57258 Delete test in free_tree 2018-03-29 23:03:17 +03:00
RazvanN7
298286732f Delete test in scoped_allocator 2018-03-29 21:21:24 +03:00
Nathan Sashihara
8777cbf355 Fix Issue 18223: use memset in uninitializedFillDefault(T[])
When we can statically determine that the representation of T.init
consists of nothing but zeroes or nothing but ones we use memset.
(The second case occurs for char and wchar.)
2018-03-28 13:59:19 -04:00
Eduard Staniloiu
b45f25b96b Update how AffixAllocator infers shared from parent 2018-03-28 13:25:56 +00:00
The Dlang Bot
99b7b5487b
Merge pull request #6306 from jercaianu/apa_race
Fixed AscendingPageAllocator race condition
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-27 16:15:45 +02:00
Sebastian Wilzbach
8f86a0d734 Fix if constraints indentation 2018-03-24 13:17:53 +01:00