From 9565103631eb4b1e3a7e29d76feb649dbd936bb1 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Fri, 19 Jul 2024 10:46:17 +0100 Subject: [PATCH] Expand 3 goo.gl links that may break Can't resolve remaining link in package.d. Part of Bugzilla Issue 24667 - goo.gl is going away. --- std/experimental/allocator/building_blocks/package.d | 2 +- std/experimental/allocator/building_blocks/stats_collector.d | 2 +- std/experimental/allocator/mallocator.d | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/std/experimental/allocator/building_blocks/package.d b/std/experimental/allocator/building_blocks/package.d index 6bc527d2374..70422e72b44 100644 --- a/std/experimental/allocator/building_blocks/package.d +++ b/std/experimental/allocator/building_blocks/package.d @@ -43,7 +43,7 @@ alignedReallocate) APIs.)) $(TR $(TDC size_t goodAllocSize(size_t n);, $(POST $(RES) >= n)) $(TD Allocators customarily allocate memory in discretely-sized chunks. Therefore, a request for `n` bytes may result in a larger allocation. The extra memory allocated goes -unused and adds to the so-called $(HTTP goo.gl/YoKffF,internal fragmentation). +unused and adds to the so-called $(HTTPS en.wikipedia.org/wiki/Fragmentation_(computing)#Internal_fragmentation,internal fragmentation). The function `goodAllocSize(n)` returns the actual number of bytes that would be allocated upon a request for `n` bytes. This module defines a default implementation that returns `n` rounded up to a multiple of the allocator's diff --git a/std/experimental/allocator/building_blocks/stats_collector.d b/std/experimental/allocator/building_blocks/stats_collector.d index 3770af10ceb..1d1e480ec56 100644 --- a/std/experimental/allocator/building_blocks/stats_collector.d +++ b/std/experimental/allocator/building_blocks/stats_collector.d @@ -134,7 +134,7 @@ enum Options : ulong bytesNotMoved = 1u << 17, /** Measures the sum of extra bytes allocated beyond the bytes requested, i.e. - the $(HTTP goo.gl/YoKffF, internal fragmentation). This is the current + the $(HTTPS en.wikipedia.org/wiki/Fragmentation_(computing)#Internal_fragmentation, internal fragmentation). This is the current effective number of slack bytes, and it goes up and down with time. */ bytesSlack = 1u << 18, diff --git a/std/experimental/allocator/mallocator.d b/std/experimental/allocator/mallocator.d index 3d4dc9a2c52..087dbec449a 100644 --- a/std/experimental/allocator/mallocator.d +++ b/std/experimental/allocator/mallocator.d @@ -52,7 +52,7 @@ struct Mallocator import core.memory : pureRealloc; if (!s) { - // fuzzy area in the C standard, see http://goo.gl/ZpWeSE + // fuzzy area in the C standard, see https://stackoverflow.com/questions/6502077/malloc-and-realloc-functions // so just deallocate and nullify the pointer deallocate(b); b = null;