Skip to content

Commit

Permalink
Merge branch 'jv-code-path-strict-updated'
Browse files Browse the repository at this point in the history
* jv-code-path-strict-updated:
  Update preloaded modules
  Default -code_path_choice to strict

OTP-18894
  • Loading branch information
frazze-jobb committed Dec 5, 2023
2 parents ad49d5d + e6757d2 commit a5fc6b5
Show file tree
Hide file tree
Showing 24 changed files with 6 additions and 11 deletions.
12 changes: 3 additions & 9 deletions erts/doc/src/init.xml
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@
<p>The support for loading of code from archive files is
experimental. The only purpose of releasing it before it is ready
is to obtain early feedback. The file format, semantics,
interfaces, and so on, can be changed in a future release. The
<c>-code_path_choice</c> flag is also experimental.</p>
interfaces, and so on, can be changed in a future release.</p>
</warning>

<p>The <c>init</c> module interprets the following command-line flags:</p>
Expand All @@ -271,13 +270,8 @@
and an <c>ebin</c> directory in an archive file.</p>
</item>
</list>
<p>This flag is particular
useful when you want to elaborate with code loading from
archives without editing the <c>boot script</c>. For more
information about interpretation of boot scripts, see
<seefile marker="sasl:script"><c>script(4)</c></seefile>.
The flag has also a similar effect on how the code server works; see
<seeerl marker="kernel:code"><c>code(3)</c></seeerl>.</p>
<p>It defaults to <c>strict</c> from OTP 27 and this option
is scheduled for removal in OTP 28.</p>
</item>
<tag><c>-epmd_module Module</c></tag>
<item>
Expand Down
Binary file modified erts/preloaded/ebin/atomics.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/counters.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/erl_init.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/erl_prim_loader.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/erl_tracer.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/erlang.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/erts_code_purger.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/erts_dirty_process_signal_handler.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/erts_internal.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/erts_literal_area_collector.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/init.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/persistent_term.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/prim_buffer.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/prim_eval.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/prim_file.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/prim_inet.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/prim_net.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/prim_socket.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/prim_zip.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/socket_registry.beam
Binary file not shown.
Binary file modified erts/preloaded/ebin/zlib.beam
Binary file not shown.
2 changes: 1 addition & 1 deletion erts/preloaded/src/init.erl
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ code_path_choice() ->
{ok,[["relaxed"]]} ->
relaxed;
_Else ->
relaxed
strict
end.

boot(Start,Flags,Args) ->
Expand Down
3 changes: 2 additions & 1 deletion lib/kernel/doc/src/code.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ zip:create("mnesia-4.4.7.ez",
script</c> can be <c>strict</c> or <c>relaxed</c>. It is
particularly useful to set the flag to <c>relaxed</c> when
elaborating with code loading from archives without editing the
<c>boot script</c>. The default is <c>relaxed</c>. See <seeerl
<c>boot script</c>. The default has changed to <c>strict</c>
in OTP 27 and the option is scheduled for removal in OTP 28. See <seeerl
marker="erts:init"><c>erts:init(3)</c></seeerl>.</p></section>

<section>
Expand Down

0 comments on commit a5fc6b5

Please sign in to comment.