Skip to content

Commit 4ff5be8

Browse files
committedMar 19, 2025·
erts: Remove +R from documentation
The +R flag has not been used since 2012, so we remove it from the docs but keep it in the code in case we ever need to use it again in the future.
1 parent 2b8d9e9 commit 4ff5be8

File tree

5 files changed

+2
-35
lines changed

5 files changed

+2
-35
lines changed
 

‎erts/doc/guides/introduction.md

-9
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@ limitations under the License.
2424
The Erlang Runtime System Application, ERTS, contains functionality necessary to
2525
run the Erlang system.
2626

27-
> #### Note {: .info }
28-
>
29-
> By default, `ERTS` is only guaranteed to be compatible with other Erlang/OTP
30-
> components from the same release as `ERTS` itself.
31-
>
32-
> For information on how to communicate with Erlang/OTP components from earlier
33-
> releases, see the documentation of system flag [`+R`](erl_cmd.md#compat_rel)
34-
> in [erl](erl_cmd.md).
35-
3627
## Prerequisites
3728

3829
It is assumed that the reader is familiar with the Erlang programming language.

‎erts/doc/references/erl_cmd.md

+2-17
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ arguments_:
6565
_Examples:_
6666

6767
```erlang
68-
% erl +W w -sname arnie +R 9 -s my_init -extra +bertie
68+
% erl +W w -sname arnie +S 2 -s my_init -extra +bertie
6969
(arnie@host)1> init:get_argument(sname).
7070
{ok,[["arnie"]]}
7171
(arnie@host)2> init:get_plain_arguments().
7272
["+bertie"]
7373
```
7474

75-
Here `+W w` and `+R 9` are emulator flags. `-s my_init` is an init flag,
75+
Here `+W w` and `+S 2` are emulator flags. `-s my_init` is an init flag,
7676
interpreted by `init`. `-sname arnie` is a user flag, stored by `init`. It is
7777
read by Kernel and causes the Erlang runtime system to become distributed.
7878
Finally, everything after `-extra` (that is, `+bertie`) is considered as plain
@@ -856,21 +856,6 @@ behavior of earlier flags.
856856
On Windows the default value is set to `8196` because the normal OS
857857
limitations are set higher than most machines can handle.
858858

859-
- **`+R ReleaseNumber`{: #compat_rel }** - Sets the compatibility mode.
860-
861-
The distribution mechanism is not backward compatible by default. This flag
862-
sets the emulator in compatibility mode with an earlier Erlang/OTP release
863-
`ReleaseNumber`. The release number must be in the range
864-
`<current release>-2` through `<current release>`. This limits the emulator,
865-
making it possible for it to communicate with Erlang nodes (as well as C
866-
and Java nodes) running that earlier release.
867-
868-
> #### Note {: .info }
869-
>
870-
> Ensure that all nodes (Erlang-, C-, and Java nodes) of a distributed Erlang
871-
> system is of the same Erlang/OTP release, or from two different Erlang/OTP
872-
> releases X and Y, where _all_ Y nodes have compatibility mode X.
873-
874859
- **`+r`** - Forces ETS memory blocks to be moved on reallocation.
875860

876861
- **`+rg ReaderGroupsLimit`{: #+rg }** - Limits the number of reader groups used

‎erts/doc/src/erlang_system_info.md

-7
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ order to make it easier to navigate.
7070
- [`System Information`](`m:erlang#system_info/1-system-information`) -
7171
[`c_compiler_used`](`m:erlang#system_info_c_compiler_used`),
7272
[`check_io`](`m:erlang#system_info_check_io`),
73-
[`compat_rel`](`m:erlang#system_info_compat_rel`),
7473
[`debug_compiled`](`m:erlang#system_info_debug_compiled`),
7574
[`driver_version`](`m:erlang#system_info_driver_version`),
7675
[`dynamic_trace`](`m:erlang#system_info_dynamic_trace`),
@@ -786,12 +785,6 @@ Returns various information about the current system (emulator) as specified by
786785
that the content of the returned list can vary between platforms and over
787786
time. It is only guaranteed that a list is returned.
788787

789-
- `compat_rel`{: #system_info_compat_rel } - Returns the compatibility mode
790-
of the local node as an integer. The integer returned represents the
791-
Erlang/OTP release that the current emulator has been set to be backward
792-
compatible with. The compatibility mode can be configured at startup by using
793-
command-line flag [`+R`](erl_cmd.md#compat_rel) in `erl(1)`.
794-
795788
- `debug_compiled`{: #system_info_debug_compiled } - Returns `true` if the
796789
emulator has been debug-compiled, otherwise `false`.
797790

‎erts/etc/common/erlexec.c

-1
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,6 @@ usage_aux(void)
12791279
"[+C MODE] [+dcg DECENTRALIZED_COUNTER_GROUPS_LIMIT] [+h HEAP_SIZE_OPTION] "
12801280
"[+J[Pperf|Msingle] JIT_OPTION] "
12811281
"[+M<SUBSWITCH> <ARGUMENT>] [+P MAX_PROCS] [+Q MAX_PORTS] "
1282-
"[+R COMPAT_REL] "
12831282
"[+r] [+rg READER_GROUPS_LIMIT] [+s<SUBSWITCH> SCHEDULER_OPTION] "
12841283
"[+S NO_SCHEDULERS:NO_SCHEDULERS_ONLINE] "
12851284
"[+SP PERCENTAGE_SCHEDULERS:PERCENTAGE_SCHEDULERS_ONLINE] "

‎erts/preloaded/src/erlang.erl

-1
Original file line numberDiff line numberDiff line change
@@ -9908,7 +9908,6 @@ the `CpuTopology` type to change.
99089908
gcov | valgrind | gprof | lcnt | frmptr;
99099909
(c_compiler_used) -> {atom(), term()};
99109910
(check_io) -> [_];
9911-
(compat_rel) -> integer();
99129911
(cpu_topology) -> CpuTopology when
99139912
CpuTopology :: cpu_topology();
99149913
({cpu_topology, defined | detected | used}) -> CpuTopology when

0 commit comments

Comments
 (0)
Please sign in to comment.