<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/erlang.git/lib/megaco/src, branch master</title>
<subtitle>github.com: erlang/otp.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/erlang.git/'/>
<entry>
<title>Update copyright year</title>
<updated>2023-02-14T13:02:43+00:00</updated>
<author>
<name>Erlang/OTP</name>
<email>otp@erlang.org</email>
</author>
<published>2023-02-14T13:02:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/erlang.git/commit/?id=8da90c85f1ff756ddd62973381038c072b9213e3'/>
<id>8da90c85f1ff756ddd62973381038c072b9213e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>megaco: replace size/1 by xxx_size/1</title>
<updated>2023-02-02T08:05:16+00:00</updated>
<author>
<name>Kiko Fernandez-Reyes</name>
<email>kiko@erlang.org</email>
</author>
<published>2023-02-02T08:05:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/erlang.git/commit/?id=02cbc39cc98c212988aa9354180fe28ff1e47dac'/>
<id>02cbc39cc98c212988aa9354180fe28ff1e47dac</id>
<content type='text'>
The &lt;c&gt;size/1&lt;/c&gt; BIF is not optimized by the JIT, and its use can
result in worse types for Dialyzer.

When one knows that the value being tested must be a tuple,
&lt;c&gt;tuple_size/1&lt;/c&gt; should always be preferred.

When one knows that the value being tested must be a binary,
&lt;c&gt;byte_size/1&lt;/c&gt; should be preferred. However, &lt;c&gt;byte_size/1&lt;/c&gt; also
accepts a bitstring (rounding up size to a whole number of bytes), so
one must make sure that the call to &lt;c&gt;byte_size/&lt;/c&gt; is preceded by a
call to &lt;c&gt;is_binary/1&lt;/c&gt; to ensure that bitstrings are rejected. Note
that the compiler removes redundant calls to &lt;c&gt;is_binary/1&lt;/c&gt;, 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 &lt;c&gt;is_binary/1&lt;/c&gt; test immediately
before the call to &lt;c&gt;byte_size/1&lt;/c&gt;.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The &lt;c&gt;size/1&lt;/c&gt; BIF is not optimized by the JIT, and its use can
result in worse types for Dialyzer.

When one knows that the value being tested must be a tuple,
&lt;c&gt;tuple_size/1&lt;/c&gt; should always be preferred.

When one knows that the value being tested must be a binary,
&lt;c&gt;byte_size/1&lt;/c&gt; should be preferred. However, &lt;c&gt;byte_size/1&lt;/c&gt; also
accepts a bitstring (rounding up size to a whole number of bytes), so
one must make sure that the call to &lt;c&gt;byte_size/&lt;/c&gt; is preceded by a
call to &lt;c&gt;is_binary/1&lt;/c&gt; to ensure that bitstrings are rejected. Note
that the compiler removes redundant calls to &lt;c&gt;is_binary/1&lt;/c&gt;, 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 &lt;c&gt;is_binary/1&lt;/c&gt; test immediately
before the call to &lt;c&gt;byte_size/1&lt;/c&gt;.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright year</title>
<updated>2022-09-20T10:30:27+00:00</updated>
<author>
<name>Erlang/OTP</name>
<email>otp@erlang.org</email>
</author>
<published>2022-09-20T10:30:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/erlang.git/commit/?id=a258c987004d3cc6e1716c682c0d686e3b81d1c6'/>
<id>a258c987004d3cc6e1716c682c0d686e3b81d1c6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[megaco] Fixed various dialyzer related issues</title>
<updated>2022-07-13T15:37:23+00:00</updated>
<author>
<name>Micael Karlberg</name>
<email>bmk@erlang.org</email>
</author>
<published>2022-07-13T14:36:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/erlang.git/commit/?id=53c7de3ad0c8e2143ec2a6abdd4daa45e77ff61b'/>
<id>53c7de3ad0c8e2143ec2a6abdd4daa45e77ff61b</id>
<content type='text'>
OTP-18179
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
OTP-18179
</pre>
</div>
</content>
</entry>
<entry>
<title>make: Allow OTP to be built deterministically</title>
<updated>2022-06-25T02:10:47+00:00</updated>
<author>
<name>Tom Davies</name>
<email>todavies5@gmail.com</email>
</author>
<published>2022-04-28T13:31:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/erlang.git/commit/?id=da001d9d75f2cac4ebc577d362a21ebff58080c6'/>
<id>da001d9d75f2cac4ebc577d362a21ebff58080c6</id>
<content type='text'>
Add a --enable-deterministic-build to the configure script,
which sets ERL_DETERMINISTIC=yes throughout the relevant
Makefiles, which then invoke the relevant build stages with the
+deterministic option.

This addresses absolute paths being included in generated .erl files
and compiled .beam files that resulted in builds from different source
directories generating different artefacts (which is a component of the
issue in erlang#4482).

I think it would make sense to make this the default at some stage, but
I've put the change behind a flag for now to decouple
making deterministic OTP builds possible from making them the default.

Having +deterministic set results in compiler options being
removed from the module info for modules where this options was used.
This may have other implications for users of OTP.

For tests themselves, +determinism is not set, since many test cases
depend on accessing the test module's compilation options, or other
features not available in deterministic mode, in order to configure
themselves. For tests of the determinism feature specifically,
+deterministic must be explicitly passed to the compiler within the
relevant test cases.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a --enable-deterministic-build to the configure script,
which sets ERL_DETERMINISTIC=yes throughout the relevant
Makefiles, which then invoke the relevant build stages with the
+deterministic option.

This addresses absolute paths being included in generated .erl files
and compiled .beam files that resulted in builds from different source
directories generating different artefacts (which is a component of the
issue in erlang#4482).

I think it would make sense to make this the default at some stage, but
I've put the change behind a flag for now to decouple
making deterministic OTP builds possible from making them the default.

Having +deterministic set results in compiler options being
removed from the module info for modules where this options was used.
This may have other implications for users of OTP.

For tests themselves, +determinism is not set, since many test cases
depend on accessing the test module's compilation options, or other
features not available in deterministic mode, in order to configure
themselves. For tests of the determinism feature specifically,
+deterministic must be explicitly passed to the compiler within the
relevant test cases.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright year</title>
<updated>2022-02-15T18:44:09+00:00</updated>
<author>
<name>Erlang/OTP</name>
<email>otp@erlang.org</email>
</author>
<published>2022-02-15T18:44:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/erlang.git/commit/?id=7e702ac4b321c4870bdbbfc4c24ac3a5d5d572b5'/>
<id>7e702ac4b321c4870bdbbfc4c24ac3a5d5d572b5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2022-02-11T13:54:20+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2022-02-11T13:54:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/erlang.git/commit/?id=34398ec5e390f293251e45a5f491e99fc976cc7f'/>
<id>34398ec5e390f293251e45a5f491e99fc976cc7f</id>
<content type='text'>
* maint:
  Compile time no longer available
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* maint:
  Compile time no longer available
</pre>
</div>
</content>
</entry>
<entry>
<title>otp: Fix `make TYPE=$TYPE` to work for all types</title>
<updated>2022-01-21T09:30:25+00:00</updated>
<author>
<name>Lukas Larsson</name>
<email>lukas@erlang.org</email>
</author>
<published>2022-01-04T16:44:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/erlang.git/commit/?id=dda051ea1d6f24ae47da4f5fdcd581c4c505b262'/>
<id>dda051ea1d6f24ae47da4f5fdcd581c4c505b262</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Compile time no longer available</title>
<updated>2022-01-19T22:01:28+00:00</updated>
<author>
<name>Jérôme de Bretagne</name>
<email>jerome.debretagne@gmail.com</email>
</author>
<published>2022-01-08T23:38:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/erlang.git/commit/?id=45c4aeb09cde4026a0234642809d24477ce0b58d'/>
<id>45c4aeb09cde4026a0234642809d24477ce0b58d</id>
<content type='text'>
A few functions still attempted to extract the "compile time"
of each module. This info used to be available when calling
Module:module_info but was removed "a long time ago". A first
removal was done in OTP-15330 and this removes some remaining
leftover cases.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A few functions still attempted to extract the "compile time"
of each module. This info used to be available when calling
Module:module_info but was removed "a long time ago". A first
removal was done in OTP-15330 and this removes some remaining
leftover cases.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright year</title>
<updated>2021-12-13T10:29:44+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2021-12-13T10:29:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/erlang.git/commit/?id=4f1d13ee87759e9eab6bbe4efb0047b372e367cc'/>
<id>4f1d13ee87759e9eab6bbe4efb0047b372e367cc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
