File 2391-Document-the-on_load-result-from-erlang-load_module-.patch of Package erlang
From 47229b8555a66db2782573b5c1acd0492efb8b1f Mon Sep 17 00:00:00 2001
From: Richard Carlsson <carlsson.richard@gmail.com>
Date: Mon, 31 May 2021 11:37:23 +0200
Subject: [PATCH] Document the on_load result from erlang:load_module/2
---
erts/doc/src/erlang.xml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index 7e4e521f5b..7b614832b0 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -3476,6 +3476,13 @@ is_process_alive(P2Pid),
<p><c><anno>Binary</anno></c> contains a module that cannot be
loaded because old code for this module already exists.</p>
</item>
+ <tag><c>on_load</c></tag>
+ <item>The code in <c><anno>Binary</anno></c> contains an
+ <c>on_load</c> declaration that must be executed before
+ <c><anno>Binary</anno></c> can become the current code. Any
+ previous current code for <c><anno>Module</anno></c> will remain
+ until the <c>on_load</c> call has finished.
+ </item>
</taglist>
<warning>
<p>This BIF is intended for the code server (see
--
2.26.2