Commit graph

895 commits

Author SHA1 Message Date
Elias Batek
de2b97fd8d
Add SharedAllocatorList (#10594)
Co-authored-by: Alexandru Jercaianu <alex.jercaianu@gmail.com>
2024-12-27 11:40:08 +08:00
Per Nordlöw
5e311c304c
Add AllocatorState (#8596) 2024-10-27 19:52:29 +08:00
Luís Ferreira
fec5e7e4b9
chore(allocator): make AlignedMallocator pure (#8576)
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
Co-authored-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2024-10-27 01:10:33 -07:00
Nick Treleaven
33c643245a Expand goo.gl links that may break
Note: www.canonware.com/download/jemalloc/jemalloc-latest/doc/jemalloc.html jemalloc link isn't responding, and it now lives at jemalloc.net (see also https://github.com/jemalloc/jemalloc?tab=readme-ov-file#readme).

Fixes Bugzilla Issue 24667 - goo.gl is going away.
2024-07-19 12:19:43 +02:00
Jeremy Baxter
f31a7bc41d replace dead links
for link in $(grep -Eor 'https?://[^\\)", ]+' | grep -v dlang.org \
| grep -Eo 'https?://.+'); do (printf "%s: " "$link"; curl -Is "$link" \
| head -n1) | grep -E '4..$'; done

for link in $(grep -Eor '\\$\\(HTTP .+, ' | grep -v dlang.org \
| cut -d' ' -f2- | sed 's/, .*$//'); do out="$(curl -Is "$link")"; \
(! [ $? = 0 ] || printf '%s' "$out" | head -n1 | grep -Eq '4..') \
&& printf '%s\\n' "$link"; done
2024-07-14 15:16:11 +12:00
Martin Kinkelin
acd2013413 Get rid of obsolete CRuntime_DigitalMars support 2024-05-25 21:45:49 +02:00
Johan Engelen
9f735fd8bf Fix alignment of buffers in kernighan_ritchie unittests. 2024-04-01 20:15:04 +02:00
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