File 5341-runtime_tools-Schedule-erts_alloc_config-for-removal.patch of Package erlang
From bcd4399354b32880ed404a720d05c5f172d2b25f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org>
Date: Mon, 21 Feb 2022 23:02:50 +0100
Subject: [PATCH 1/2] runtime_tools: Schedule erts_alloc_config for removal
---
lib/runtime_tools/doc/src/erts_alloc_config.xml | 10 +++++-----
lib/runtime_tools/src/erts_alloc_config.erl | 3 +++
system/doc/general_info/DEPRECATIONS | 1 +
3 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/lib/runtime_tools/doc/src/erts_alloc_config.xml b/lib/runtime_tools/doc/src/erts_alloc_config.xml
index fb5d08be9d..7ba443dce3 100644
--- a/lib/runtime_tools/doc/src/erts_alloc_config.xml
+++ b/lib/runtime_tools/doc/src/erts_alloc_config.xml
@@ -32,11 +32,11 @@
<module since="">erts_alloc_config</module>
<modulesummary>Configuration tool for erts_alloc</modulesummary>
<description>
- <note>
- <p><c>erts_alloc_config</c> is currently an experimental
- tool and might be subject to backward incompatible
- changes.</p>
- </note>
+ <warning>
+ <p>This (experimental) tool no longer produces good configurations and
+ cannot be fixed in a reasonably backwards compatible manner. It has
+ therefore been scheduled for removal in <c>OTP 26.0</c>.</p>
+ </warning>
<p><seecref marker="erts:erts_alloc">erts_alloc(3)</seecref> is an
Erlang Run-Time System internal memory allocator library.
<c>erts_alloc_config</c> is intended to be used to aid creation
diff --git a/lib/runtime_tools/src/erts_alloc_config.erl b/lib/runtime_tools/src/erts_alloc_config.erl
index dcf2eb7d55..fed17bc3bb 100644
--- a/lib/runtime_tools/src/erts_alloc_config.erl
+++ b/lib/runtime_tools/src/erts_alloc_config.erl
@@ -31,6 +31,9 @@
-module(erts_alloc_config).
+-deprecated({'_','_', "this module will be removed in OTP 26.0. See the "
+ "documentation for details"}).
+
-record(state, {have_scenario = false,
alloc}).
diff --git a/system/doc/general_info/DEPRECATIONS b/system/doc/general_info/DEPRECATIONS
index a7e48f599a..d4b348e3a8 100644
--- a/system/doc/general_info/DEPRECATIONS
+++ b/system/doc/general_info/DEPRECATIONS
@@ -17,6 +17,11 @@ httpd_util:decode_hex/1 since=25 remove=26
# is scheduled to be removed in OTP 25.
#
+#
+# Added in OTP 25.
+#
+erts_alloc_config:_/_ since=25 remove=26
+
#
# Added in OTP 24.
#
--
2.34.1