File 2381-Update-primary-bootstrap.patch of Package erlang
From f47ed43cd69ed2929bb957002a669db940d8f098 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Mon, 9 Aug 2021 13:27:29 +0200
Subject: [PATCH 1/2] Update primary bootstrap
---
bootstrap/bin/no_dot_erlang.boot | Bin 6897 -> 6933 bytes
bootstrap/bin/start.boot | Bin 6897 -> 6933 bytes
bootstrap/bin/start_clean.boot | Bin 6897 -> 6933 bytes
bootstrap/lib/compiler/ebin/beam_asm.beam | Bin 11056 -> 11056 bytes
.../lib/compiler/ebin/beam_kernel_to_ssa.beam | Bin 27596 -> 27676 bytes
bootstrap/lib/compiler/ebin/beam_listing.beam | Bin 1632 -> 2108 bytes
bootstrap/lib/compiler/ebin/beam_ssa_pp.beam | Bin 6040 -> 8308 bytes
.../lib/compiler/ebin/beam_ssa_throw.beam | Bin 7488 -> 7468 bytes
.../lib/compiler/ebin/beam_validator.beam | Bin 49824 -> 50264 bytes
bootstrap/lib/compiler/ebin/compile.beam | Bin 38324 -> 38448 bytes
bootstrap/lib/compiler/ebin/core_parse.beam | Bin 61084 -> 83228 bytes
.../lib/compiler/ebin/sys_core_fold.beam | Bin 42204 -> 42264 bytes
bootstrap/lib/compiler/ebin/v3_core.beam | Bin 58248 -> 58308 bytes
bootstrap/lib/kernel/ebin/application.beam | Bin 4260 -> 4328 bytes
.../kernel/ebin/application_controller.beam | Bin 34836 -> 35004 bytes
bootstrap/lib/kernel/ebin/dist_util.beam | Bin 16500 -> 16756 bytes
.../lib/kernel/ebin/erl_erts_errors.beam | Bin 19044 -> 19244 bytes
bootstrap/lib/kernel/ebin/gen_tcp_socket.beam | Bin 29916 -> 32192 bytes
bootstrap/lib/kernel/ebin/gen_udp.beam | Bin 1656 -> 2056 bytes
bootstrap/lib/kernel/ebin/gen_udp_socket.beam | Bin 0 -> 23564 bytes
bootstrap/lib/kernel/ebin/global.beam | Bin 28200 -> 28340 bytes
bootstrap/lib/kernel/ebin/inet.beam | Bin 26424 -> 26652 bytes
bootstrap/lib/kernel/ebin/inet6_sctp.beam | Bin 1428 -> 1436 bytes
bootstrap/lib/kernel/ebin/inet6_tcp.beam | Bin 3060 -> 3132 bytes
bootstrap/lib/kernel/ebin/inet6_udp.beam | Bin 2088 -> 2164 bytes
bootstrap/lib/kernel/ebin/inet_db.beam | Bin 26568 -> 26600 bytes
bootstrap/lib/kernel/ebin/inet_res.beam | Bin 13424 -> 13536 bytes
bootstrap/lib/kernel/ebin/inet_sctp.beam | Bin 2132 -> 2144 bytes
bootstrap/lib/kernel/ebin/inet_tcp.beam | Bin 2836 -> 2872 bytes
bootstrap/lib/kernel/ebin/inet_udp.beam | Bin 2168 -> 2216 bytes
bootstrap/lib/kernel/ebin/local_tcp.beam | Bin 2128 -> 2148 bytes
bootstrap/lib/kernel/ebin/local_udp.beam | Bin 1328 -> 1368 bytes
bootstrap/lib/kernel/ebin/net_kernel.beam | Bin 27724 -> 27776 bytes
bootstrap/lib/kernel/ebin/os.beam | Bin 5276 -> 5428 bytes
bootstrap/lib/kernel/ebin/socket.beam | Bin 20000 -> 24120 bytes
bootstrap/lib/kernel/include/dist.hrl | 106 +++++++++++++-----
bootstrap/lib/stdlib/ebin/c.beam | Bin 18204 -> 18280 bytes
bootstrap/lib/stdlib/ebin/epp.beam | Bin 28544 -> 28696 bytes
bootstrap/lib/stdlib/ebin/erl_error.beam | Bin 9876 -> 10444 bytes
bootstrap/lib/stdlib/ebin/erl_eval.beam | Bin 34952 -> 34952 bytes
bootstrap/lib/stdlib/ebin/erl_lint.beam | Bin 87504 -> 88904 bytes
bootstrap/lib/stdlib/ebin/erl_parse.beam | Bin 104688 -> 140740 bytes
bootstrap/lib/stdlib/ebin/erl_posix_msg.beam | Bin 5184 -> 5180 bytes
.../lib/stdlib/ebin/erl_stdlib_errors.beam | Bin 12960 -> 16000 bytes
bootstrap/lib/stdlib/ebin/ets.beam | Bin 20632 -> 20620 bytes
bootstrap/lib/stdlib/ebin/io.beam | Bin 5780 -> 7884 bytes
bootstrap/lib/stdlib/ebin/io_lib_pretty.beam | Bin 20416 -> 20516 bytes
bootstrap/lib/stdlib/ebin/lists.beam | Bin 28524 -> 28668 bytes
bootstrap/lib/stdlib/ebin/proc_lib.beam | Bin 14684 -> 14712 bytes
bootstrap/lib/stdlib/ebin/qlc.beam | Bin 63252 -> 63256 bytes
bootstrap/lib/stdlib/ebin/supervisor.beam | Bin 24848 -> 24860 bytes
bootstrap/lib/stdlib/ebin/timer.beam | Bin 5216 -> 5408 bytes
52 files changed, 77 insertions(+), 29 deletions(-)
create mode 100644 bootstrap/lib/kernel/ebin/gen_udp_socket.beam
diff --git a/bootstrap/lib/kernel/include/dist.hrl b/bootstrap/lib/kernel/include/dist.hrl
index 05beaf9a48..7080b60f2e 100644
--- a/bootstrap/lib/kernel/include/dist.hrl
+++ b/bootstrap/lib/kernel/include/dist.hrl
@@ -22,35 +22,54 @@
%% Distribution capabilities flags (corresponds with dist.h).
%%
--define(DFLAG_PUBLISHED,1).
--define(DFLAG_ATOM_CACHE,2).
--define(DFLAG_EXTENDED_REFERENCES,4).
--define(DFLAG_DIST_MONITOR,8).
--define(DFLAG_FUN_TAGS,16#10).
--define(DFLAG_DIST_MONITOR_NAME,16#20).
--define(DFLAG_HIDDEN_ATOM_CACHE,16#40).
--define(DFLAG_NEW_FUN_TAGS,16#80).
--define(DFLAG_EXTENDED_PIDS_PORTS,16#100).
--define(DFLAG_EXPORT_PTR_TAG,16#200).
--define(DFLAG_BIT_BINARIES,16#400).
--define(DFLAG_NEW_FLOATS,16#800).
--define(DFLAG_UNICODE_IO,16#1000).
--define(DFLAG_DIST_HDR_ATOM_CACHE,16#2000).
--define(DFLAG_SMALL_ATOM_TAGS, 16#4000).
--define(DFLAG_UTF8_ATOMS, 16#10000).
--define(DFLAG_MAP_TAG, 16#20000).
--define(DFLAG_BIG_CREATION, 16#40000).
--define(DFLAG_SEND_SENDER, 16#80000).
--define(DFLAG_BIG_SEQTRACE_LABELS, 16#100000).
-%% -define(DFLAG_NO_MAGIC, 16#200000). %% Used internally only
--define(DFLAG_EXIT_PAYLOAD, 16#400000).
--define(DFLAG_FRAGMENTS, 16#00800000).
--define(DFLAG_HANDSHAKE_23, 16#01000000).
--define(DFLAG_RESERVED, 16#fe000000).
--define(DFLAG_SPAWN, 16#100000000).
--define(DFLAG_NAME_ME, 16#200000000).
--define(DFLAG_V4_NC, 16#400000000).
--define(DFLAG_ALIAS, 16#800000000).
+-define(DFLAG_PUBLISHED, 16#01).
+-define(DFLAG_ATOM_CACHE, 16#02).
+-define(DFLAG_EXTENDED_REFERENCES, 16#04).
+-define(DFLAG_DIST_MONITOR, 16#08).
+-define(DFLAG_FUN_TAGS, 16#10).
+-define(DFLAG_DIST_MONITOR_NAME, 16#20).
+-define(DFLAG_HIDDEN_ATOM_CACHE, 16#40).
+-define(DFLAG_NEW_FUN_TAGS, 16#80).
+-define(DFLAG_EXTENDED_PIDS_PORTS, 16#100).
+-define(DFLAG_EXPORT_PTR_TAG, 16#200).
+-define(DFLAG_BIT_BINARIES, 16#400).
+-define(DFLAG_NEW_FLOATS, 16#800).
+-define(DFLAG_UNICODE_IO, 16#1000).
+-define(DFLAG_DIST_HDR_ATOM_CACHE, 16#2000).
+-define(DFLAG_SMALL_ATOM_TAGS, 16#4000).
+-define(DFLAG_UTF8_ATOMS, 16#10000).
+-define(DFLAG_MAP_TAG, 16#20000).
+-define(DFLAG_BIG_CREATION, 16#40000).
+-define(DFLAG_SEND_SENDER, 16#80000).
+-define(DFLAG_BIG_SEQTRACE_LABELS, 16#100000).
+%% -define(DFLAG_NO_MAGIC, 16#200000). %% Used internally only
+-define(DFLAG_EXIT_PAYLOAD, 16#400000).
+-define(DFLAG_FRAGMENTS, 16#00800000).
+-define(DFLAG_HANDSHAKE_23, 16#01000000).
+-define(DFLAG_UNLINK_ID, 16#02000000).
+-define(DFLAG_MANDATORY_25_DIGEST, 16#04000000).
+-define(DFLAG_RESERVED, 16#f8000000).
+
+%% Second 32-bit flag word.
+-define(DFLAG_SPAWN, (16#01 bsl 32)).
+-define(DFLAG_NAME_ME, (16#02 bsl 32)).
+-define(DFLAG_V4_NC, (16#04 bsl 32)).
+-define(DFLAG_ALIAS, (16#08 bsl 32)).
+
+%% The following flags are mandatory in OTP 25. OTP 25 and higher
+%% will accept ?DFLAG_MANDATORY_25_DIGEST as a shorthand for all those
+%% flags.
+-define(MANDATORY_DFLAGS_25,
+ (?DFLAG_EXTENDED_REFERENCES bor
+ ?DFLAG_FUN_TAGS bor
+ ?DFLAG_EXTENDED_PIDS_PORTS bor
+ ?DFLAG_NEW_FUN_TAGS bor
+ ?DFLAG_EXPORT_PTR_TAG bor
+ ?DFLAG_BIT_BINARIES bor
+ ?DFLAG_NEW_FLOATS bor
+ ?DFLAG_UTF8_ATOMS bor
+ ?DFLAG_MAP_TAG bor
+ ?DFLAG_BIG_CREATION)).
%% Also update dflag2str() in ../src/dist_util.erl
%% when adding flags...
@@ -62,3 +81,32 @@
-define(ERL_DIST_VER_LOW, ?ERL_DIST_VER_5).
-define(ERL_DIST_VER_HIGH, ?ERL_DIST_VER_6).
+%%%
+%%% To avoid having to extend the number of distribution flags from 64
+%%% to 128, a scheme for garbage collection of the flags was
+%%% introduced in OTP 25.
+%%%
+%%% In OTP 25, ?DFLAG_MANDATORY_25_DIGEST was introduced as a synonym
+%%% for the flags defined by ?MANDATORY_DFLAGS_25. OTP 25/26 will
+%%% accept the old flags to support communication with 24 and earlier,
+%%% as well as ?DFLAG_MANDATORY_25_DIGEST.
+%%%
+%%% OTP 27 will make ?DFLAG_MANDATORY_25_DIGEST mandatory, meaning that an
+%%% OTP 27 node can only communicate with OTP 25 and higher.
+%%%
+%%% An OTP 27 node will also introduce the new flag
+%%% ?DFLAG_MANDATORY_27_DIGEST:
+%%%
+%%% * If ?DFLAG_MANDATORY_27_DIGEST is set, it means that all bit
+%%% numbers defined by ?MANDATORY_DFLAGS_25, as well as the bit
+%%% number defined by ?DFLAG_MANDATORY_25_DIGEST and any other bits
+%%% made mandatory in OTP 26/27, lose their previous meanings. New
+%%% meanings can then be assigned to those bit numbers as
+%%% needed. (This is for communication between nodes from OTP 27 and
+%%% up.)
+%%%
+%%% * If ?DFLAG_MANDATORY_27_DIGEST is not set, then
+%%% ?DFLAG_MANDATORY_25_DIGEST must be set and all bit numbers
+%%% defined by ?MANDATORY_DFLAGS_25 are ignored. (This is for
+%%% communication between an OTP 27 node and an OTP 25/26 node.)
+%%%
--
2.31.1