Commit graph

811 commits

Author SHA1 Message Date
Nicholas Wilson
a460470bb4
Merge pull request #7040 from dkgroot-dlang/region_brk_sbrk
(s)brk support has been removed from DragonFlyBSD
2019-05-26 08:10:59 +08:00
Diederik de Groot
859dc49859 brk support has been removed from DragonFlyBSD
sbrk has been declared deprecated
mmap() is suggested as a replacement for sbrk()
2019-05-26 00:05:32 +02:00
Walter Bright
cf2ca66841 fix rvalue test for Final 2019-05-20 15:49:40 -07:00
Nicholas Wilson
bbd0b3ebf7
Fix broken unittest 2019-05-17 14:08:36 +08:00
Iain Buclaw
9403aae9a9 std.experiment.allocator: SPARC64 stack grows downwards 2019-04-13 21:04:41 +02:00
Iain Buclaw
501080fa4f Add minimum RISCV support to phobos 2019-04-09 21:12:46 +02:00
Sebastian Wilzbach
351abd6604 Move all from experimental to std 2019-03-21 11:42:18 +01:00
Iain Buclaw
3abe79ed52 Add minimum HPPA support to phobos 2019-01-18 01:41:28 +01:00
Iain Buclaw
89b6056c59 std/experimental/typecons.d: Hide pragma(msg) in debug code 2019-01-04 21:20:24 +01:00
The Dlang Bot
f8e620b271
Merge pull request #6813 from carun/logger-patch-1
logger: print log level string.
merged-on-behalf-of: Robert Schadek <rburners@gmail.com>
2018-12-23 16:09:07 +01:00
Arun Chandrasekaran
09c20ecb76 logger: print log level string.
Log message currently doesn't have log level, thread ID, etc. Log messages
without this information is mostly useless.

However, printing the thread ID requires std.concurrency to be @safe
which is not possible at the moment. So I've added only the log level to
the message string.
2018-12-20 20:18:44 -08:00
Nathan Sashihara
6ffd4e7f28 Replace imports of core.sys.windows.windows to speed up compilation 2018-12-17 21:03:31 -05:00
Rainer Schuetze
1556befad7 gc_allocator.goodAllocSize: relax conditions for the actual GC to allow "good" sizes other than powers of 2 2018-12-03 23:17:52 +01:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
The Dlang Bot
0032c8d580
Merge pull request #6692 from n8sh/allocate-zeroed-pt2
Implement allocateZeroed for building-block allocators
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-09-20 21:46:07 +02:00
Nathan Sashihara
3255a2ebbb Replace isInitAllZeroBits with new __traits(isZeroInit)
Requires https://github.com/dlang/dmd/pull/8583.

Also remove isInitAllOneBits and replace with direct check for
char/wchar. isInitAllOneBits had the same problem with unreasonable
memory usage as the old isInitAllZeroBits
(https://issues.dlang.org/show_bug.cgi?id=18937).
2018-09-09 11:27:38 -04: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
Vlad Vitan
f21833ff15 Fix Issue 18675 - Missing toHash in std/experimental/checkedint.d 2018-09-08 07:40:02 -04:00
The Dlang Bot
ab169cefe5
Merge pull request #6670 from wilzbach/fix-19085
Fix Issue 19085 - std.experimental.allocator.makeArray should work with void
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-09-01 20:58:44 +02:00
Sebastian Wilzbach
6479a70a3b Fix Issue 19085 - std.experimental.allocator.makeArray should work with void 2018-09-01 13:50:31 -04:00
dhasenan
2ca2824f7e Fix issue 18142 - checkint opOpAssign doesn't accept checkedints 2018-08-29 13:09:44 -07:00
Basile Burg
db819575f1 Fix issue 11959 - Set private symbols declared in version(unittest) blocks 2018-08-26 10:22:11 +02:00
Martin Nowak
633e0635a1 Merge remote-tracking branch 'upstream/stable' into merge_stable 2018-07-04 00:15:32 +02:00
Sebastian Wilzbach
320d4f85a7
Merge pull request #6622 from kinke/fixEffectiveAlignment
[stable] Fix std.experimental.allocator.common.effectiveAlignment()
2018-07-03 08:08:42 +02:00
Sebastian Wilzbach
510a14c401
Merge pull request #6611 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-06-30 22:08:09 +02:00
Sebastian Wilzbach
c246113423 Fix auto function without return statement 2018-06-30 20:39:22 +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
Sebastian Wilzbach
8115d50f14 Fix auto function without return statement 2018-06-28 10:58:14 +02:00
Martin Nowak
13bfc065de Merge remote-tracking branch 'upstream/stable' into merge_stable 2018-06-25 19:20:29 +02:00
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
b1e3bdb90e
Merge pull request #6440 from nordlow/qualify-mmap-allocator
Qualify MmapAllocator
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-06-18 06:27:07 +02:00
The Dlang Bot
15b682af36
Merge pull request #6549 from wilzbach/checked-doc
Fix Issue 18952 - std.experimental.checkedint.Saturate prints integral promotion deprecation message
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-06-14 07:20:31 +02:00
Sebastian Wilzbach
7a8ff39cbb Fix Issue 18952 - std.experimental.checkedint.Saturate prints integral promotion deprecation message 2018-06-08 11:56:01 +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
3689a940cf Add a few public examples for common hooks 2018-06-06 19:12:39 +02:00
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
Nathan Sashihara
7312cc47cd Make mmap_allocator pure on Windows 2018-05-29 10:09:49 -04:00
Nathan Sashihara
265807a317 Remove unnecessary pureMmap and pureMunmap 2018-05-29 09:36:37 -04:00
Nathan Sashihara
1d0b6a85bf Use same fakePureErrnoImpl from core.memory to avoid linker error 2018-05-29 09:08: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