diff options
| author | Erlang/OTP <otp@erlang.org> | 2023-03-06 14:35:25 +0100 |
|---|---|---|
| committer | Erlang/OTP <otp@erlang.org> | 2023-03-06 14:35:25 +0100 |
| commit | 2970763168b9463eb30a7860d7dc3960136ba092 (patch) | |
| tree | e148e34089bc7421e194cb8acc2732900fa4ea73 /lib/megaco | |
| parent | 750a45ea07ebf0a4316fedba36b30b6adf6ab7d5 (diff) | |
| download | erlang-2970763168b9463eb30a7860d7dc3960136ba092.tar.gz | |
Prepare release
Diffstat (limited to 'lib/megaco')
| -rw-r--r-- | lib/megaco/doc/src/notes.xml | 36 | ||||
| -rw-r--r-- | lib/megaco/vsn.mk | 2 |
2 files changed, 36 insertions, 2 deletions
diff --git a/lib/megaco/doc/src/notes.xml b/lib/megaco/doc/src/notes.xml index f2f9bd4a92..9e181c589c 100644 --- a/lib/megaco/doc/src/notes.xml +++ b/lib/megaco/doc/src/notes.xml @@ -37,7 +37,41 @@ section is the version number of Megaco.</p> - <section><title>Megaco 4.4.2</title> + <section><title>Megaco 4.4.3</title> + + <section><title>Improvements and New Features</title> + <list> + <item> + <p> + Replace size/1 with either tuple_size/1 or byte_size/1</p> + <p> + The <c>size/1</c> BIF is not optimized by the JIT, and + its use can result in worse types for Dialyzer.</p> + <p> + When one knows that the value being tested must be a + tuple, <c>tuple_size/1</c> should always be preferred.</p> + <p> + When one knows that the value being tested must be a + binary, <c>byte_size/1</c> should be preferred. However, + <c>byte_size/1</c> also accepts a bitstring (rounding up + size to a whole number of bytes), so one must make sure + that the call to <c>byte_size/</c> is preceded by a call + to <c>is_binary/1</c> to ensure that bitstrings are + rejected. Note that the compiler removes redundant calls + to <c>is_binary/1</c>, so if one is not sure whether + previous code had made sure that the argument is a + binary, it does not harm to add an <c>is_binary/1</c> + test immediately before the call to <c>byte_size/1</c>.</p> + <p> + Own Id: OTP-18432 Aux Id: + GH-6672,PR-6793,PR-6784,PR-6787,PR-6785,PR-6682,PR-6800,PR-6797,PR-6798,PR-6799,PR-6796,PR-6813,PR-6671,PR-6673,PR-6684,PR-6694,GH-6677,PR-6696,PR-6670,PR-6674 </p> + </item> + </list> + </section> + +</section> + +<section><title>Megaco 4.4.2</title> <section><title>Improvements and New Features</title> <list> diff --git a/lib/megaco/vsn.mk b/lib/megaco/vsn.mk index b6090ebeef..dad5cd8bea 100644 --- a/lib/megaco/vsn.mk +++ b/lib/megaco/vsn.mk @@ -19,6 +19,6 @@ # %CopyrightEnd% APPLICATION = megaco -MEGACO_VSN = 4.4.2 +MEGACO_VSN = 4.4.3 PRE_VSN = APP_VSN = "$(APPLICATION)-$(MEGACO_VSN)$(PRE_VSN)" |
