Dennis
5cd77a6e32
User hyperlinks to refer to bugzilla issues ( #8766 )
2023-06-16 14:45:44 +03:00
Jan Jurzitza
f8c80db44e
Fix upcoming D-Scanner argument warnings ( #8753 )
...
* upgrade D-Scanner
* Fix upcoming D-Scanner argument checks
2023-05-30 09:42:02 +03:00
Denis Feklushkin
2bd1b833f8
Redundant stack grow direction checks removed
2023-04-28 17:36:40 +03:00
Nick Treleaven
14eb9f8432
Replace broken BitmappedBlock example with Region
2022-10-16 16:59:06 +01:00
Nick Treleaven
4a9668ea24
Tweak std.experimental.allocator docs
...
Add missing LREFs in top table.
Use RUNNABLE_EXAMPLE.
2022-10-16 14:26:19 +01:00
Per Nordlöw
28aec22c22
Add isAllocator ( #8598 )
2022-10-13 17:42:03 +08:00
Paul Backus
d31f81ee7c
Split SharedBorrowedRegion from BorrowedRegion
...
Since they do not present the same structural interface, they should be
separate types (i.e., hasMember cannot tell the difference between a
'shared' method and a thread-local method).
2022-09-19 16:31:20 -04:00
Paul Backus
63882e2e2d
SharedRegion: don't use NullAllocator as sentinel
...
SharedRegion will now always assume that its ParentAllocator is a real
allocator, and attempt to use its 'allocate' and 'deallocate' methods
accordingly.
The behavior previously provided by SharedRegion!(NullAllocator, ...)
remains available via shared(BorrowedRegion!(...)).
See issue 23090 for detailed rationale.
2022-09-19 16:31:20 -04:00
Paul Backus
70d41a122a
Use BorrowedRegion internally in SharedRegion
2022-09-19 16:31:20 -04:00
Paul Backus
e05ee968ac
Region: don't use NullAllocator as a sentinel
...
Region will now always assume that its ParentAllocator is a real
allocator, and attempt to use its 'allocate' and 'deallocate' methods
accordingly.
The behavior previously provided by Region!(NullAllocator, ...) remains
available via BorrowedRegion!(...).
See issue 23090 for detailed rationale.
2022-09-19 16:31:20 -04:00
Paul Backus
e04186b82f
Use BorrowedRegion internally in [InSitu]Region
2022-09-19 16:31:20 -04:00
Paul Backus
e6ebc2ad51
Add BorrowedRegion, a non-owning Region allocator
...
Previously, this behavior could only be obtained by instantiating Region
with NullAllocator as its ParentAllocator. Extracting it into a separate
allocator will allow Region itself to be simplified.
2022-09-19 16:31:20 -04:00
Dennis Korpel
7064f24c44
Remove std.experimental.typecons
2022-08-17 23:34:14 +02:00
Atila Neves
e113440df1
Move logger out of experimental
2022-07-29 12:15:34 +02:00
lindt
218512dc95
documentation / repair broken link for std.checkedint
2022-07-24 18:58:08 +00:00
Robert burner Schadek
1ebccd3717
move @trusted unittest to @system
2022-07-20 10:06:58 +02:00
Atila Neves
f098027bd4
Fix synchronization when forwarding to the shared logger
2022-07-20 10:06:58 +02:00
Atila Neves
d4972da3d8
Fix typo
2022-07-20 10:06:58 +02:00
Atila Neves
e0855e0f9f
stdSharedDefaultLogger is shared instead __gshared
2022-07-20 10:06:58 +02:00
Atila Neves
b624262394
Delete trustedLoad
2022-07-20 10:06:58 +02:00
Robert burner Schadek
63f49d6687
sharedLog returning shared(Logger)
...
Fixes #16232
changelog
-preview=nosharedaccess
code review
working on the tests
whitespace
spaces behind casts
2022-07-20 10:06:58 +02:00
Robert burner Schadek
1f0ec5405f
remove compile features from std.experimental.logger
...
Fix Iain comment
Razvan suggest changelog fix
2022-06-14 16:42:40 +00:00
Martin Kinkelin
b20444aca4
Use new __traits(classInstanceAlignment)
...
Tackling the Phobos part of issue 16508.
2022-05-13 18:38:09 +00:00
Martin Nowak
0e3efabacc
Merge remote-tracking branch 'upstream/stable' into merge_stable
2022-04-01 10:23:49 +02:00
Steven Schveighoffer
526beb3d84
Change default log level to info instead of warning.
2022-03-09 11:51:56 -05:00
Johan Engelen
ba473aebe8
Disable large allocation test that is not supported by AddressSanitizer
...
AddressSanitizer will report an error (rather than returning `null`) for such large allocations.
2022-03-03 02:02:31 +00:00
Atila Neves
8a2bd81b39
Move checkedint out of experimental ( #8100 )
...
Move checkedint out of experimental
Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2022-01-25 00:17:24 +00:00
Walter Bright
374eefefbf
Comment out randomly failing test in std.experimental.allocator
2022-01-08 21:14:11 -08:00
Atila Neves
522f953ae1
Add comment saying that the default log level is LogLevel.warning
2022-01-03 18:34:51 +01:00
Atila Neves
13eff04704
Address review comments
2022-01-03 15:14:33 +01:00
Atila Neves
38a8bcbc04
Fix issue 22532 - change default log level to LogLevel.warning
2022-01-03 15:14:33 +01:00
Paul Backus
be0b04521a
Fix Issue 22249 - std.experimental.checkedint: Warn.onLowerBound does not compile
2021-08-29 23:05:05 +00:00
nordlow
d30a978370
Qualify Mallocator members as const
2021-08-19 12:18:29 +02:00
nordlow
b4ce8436d7
Annotate bitmapped_block.d to please dlang/dmd#12520
2021-05-18 01:13:52 +02:00
nordlow
f8bc7a1181
Annotate allocator/common.d to please dlang/dmd#12520
2021-05-17 05:21:35 +02:00
Iain Buclaw
859a367ffa
Cleanup temp files in std.process and std.experimental.checkedint
...
Co-Authored-By: Bernd Edlinger <bernd.edlinger@hotmail.de>
2021-05-14 15:03:34 +02:00
Boris Carvajal
5dd42968e3
Rename the initial value of some enums from init to _init
2021-05-12 10:56:46 +08:00
Nathan Sashihara
6f430a7202
Fix Issue 21758 - std.experimental.checkedint opBinaryRight with integer left-hand side does not compile for any operators except + and -
2021-04-25 20:43:24 +08:00
berni44
b2019ebab0
Narrow imports of std.math in the rest of phobos.
2021-04-21 03:00:57 +02:00
Nathan Sashihara
86e3617665
Fix Issue 21761 - make std.experimental.checkedint.Checked!T.toHash callable when Checked!T is shared
2021-04-12 10:31:30 +02:00
Nathan Sashihara
c98180ccc6
Fix Issue 21759 - std.experimental.checkedint.Checked is not compatible with "%d" and "%x" integer format specifiers
2021-03-25 00:04:02 +01:00
Nathan Sashihara
3a314492c5
Fix Issue 18024 - checkedint.Abort and checkedint.Warn should be @safe
2021-03-24 23:12:06 +01:00
Nathan Sashihara
361b51cddf
Fix Issue 21760 - std.conv.to does not know how to convert a string to a std.experimental.checkedint.Checked!T
2021-03-24 23:11:36 +01:00
berni44
6f2a0934a7
Adapt imports of std.format to new structure of std.format.
2021-03-19 13:22:00 +01:00
MoonlightSentinel
d5412f71cc
Remove spurious __EOF__ hiding existing declarations/tests
2021-02-01 16:42:37 +01:00
Martin Kinkelin
7558583c44
Replace usages of std.functional.forward with core.lifetime.forward
...
Where it has been moved to. Also get rid of the corresponding tests
in Phobos, an exact copy is in druntime (+ more forward tests).
Also extend a `scoped` test to make sure it properly forwards
r/lvalue-ness of its arguments. This required dlang/druntime#3352
and thus wasn't added in dlang/phobos#7776 directly.
2021-01-31 12:20:09 +01:00
Martin Kinkelin
543994eec0
std.experimental.allocator: Adapt unittests to emplace() fix (proper rvalue forwarding)
2021-01-18 12:00:32 +01:00
Martin Kinkelin
1a459c5996
Get rid of std.conv.emplace[Ref](), use core[.internal].lifetime
...
The emplace() stuff was moved to druntime; for some reason, it's still
in Phobos.
I've diffed the two versions, and they are still almost identical (incl.
unittests); the druntime version appears to have seen some improvements
(e.g., forwarding r/lvalueness of the arguments) in the meantime.
2021-01-17 16:02:25 +01:00
Martin Nowak
ec45951efd
Merge remote-tracking branch 'upstream/stable' into merge_stable
2020-10-18 21:34:13 +02:00
Martin Kinkelin
87cf224311
allocator_list unittests: Use core.memory.pageSize instead of minimumPageSize
...
Nothing else in druntime/Phobos uses the problematic `minimumPageSize`
symbol. Problematic because the page size changes from 4 to 16 KB with
macOS 11.0.
2020-10-09 09:42:54 +02:00