<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/reltool, branch HansN-patch-1</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>Implementation of true asynchronous signaling between processes</title>
<updated>2018-03-21T09:27:03+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2018-03-07T00:17:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=4bc282d812cc2c49aa3e2d073e96c720f16aa270'/>
<id>4bc282d812cc2c49aa3e2d073e96c720f16aa270</id>
<content type='text'>
Communication between Erlang processes has conceptually always been
performed through asynchronous signaling. The runtime system
implementation has however previously preformed most operation
synchronously. In a system with only one true thread of execution, this
is not problematic (often the opposite). In a system with multiple threads
of execution (as current runtime system implementation with SMP support)
it becomes problematic. This since it often involves locking of structures
when updating them which in turn cause resource contention. Utilizing
true asynchronous communication often avoids these resource contention
issues.

The case that triggered this change was contention on the link lock due
to frequent updates of the monitor trees during communication with a
frequently used server. The signal order delivery guarantees of the
language makes it hard to change the implementation of only some signals
to use true asynchronous signaling. Therefore the implementations
of (almost) all signals have been changed.

Currently the following signals have been implemented as true
asynchronous signals:
- Message signals
- Exit signals
- Monitor signals
- Demonitor signals
- Monitor triggered signals (DOWN, CHANGE, etc)
- Link signals
- Unlink signals
- Group leader signals

All of the above already defined as asynchronous signals in the
language. The implementation of messages signals was quite
asynchronous to begin with, but had quite strict delivery constraints
due to the ordering guarantees of signals between a pair of processes.

The previously used message queue partitioned into two halves has been
replaced by a more general signal queue partitioned into three parts
that service all kinds of signals. More details regarding the signal
queue can be found in comments in the erl_proc_sig_queue.h file.

The monitor and link implementations have also been completely replaced
in order to fit the new asynchronous signaling implementation as good
as possible. More details regarding the new monitor and link
implementations can be found in the erl_monitor_link.h file.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Communication between Erlang processes has conceptually always been
performed through asynchronous signaling. The runtime system
implementation has however previously preformed most operation
synchronously. In a system with only one true thread of execution, this
is not problematic (often the opposite). In a system with multiple threads
of execution (as current runtime system implementation with SMP support)
it becomes problematic. This since it often involves locking of structures
when updating them which in turn cause resource contention. Utilizing
true asynchronous communication often avoids these resource contention
issues.

The case that triggered this change was contention on the link lock due
to frequent updates of the monitor trees during communication with a
frequently used server. The signal order delivery guarantees of the
language makes it hard to change the implementation of only some signals
to use true asynchronous signaling. Therefore the implementations
of (almost) all signals have been changed.

Currently the following signals have been implemented as true
asynchronous signals:
- Message signals
- Exit signals
- Monitor signals
- Demonitor signals
- Monitor triggered signals (DOWN, CHANGE, etc)
- Link signals
- Unlink signals
- Group leader signals

All of the above already defined as asynchronous signals in the
language. The implementation of messages signals was quite
asynchronous to begin with, but had quite strict delivery constraints
due to the ordering guarantees of signals between a pair of processes.

The previously used message queue partitioned into two halves has been
replaced by a more general signal queue partitioned into three parts
that service all kinds of signals. More details regarding the signal
queue can be found in comments in the erl_proc_sig_queue.h file.

The monitor and link implementations have also been completely replaced
in order to fit the new asynchronous signaling implementation as good
as possible. More details regarding the new monitor and link
implementations can be found in the erl_monitor_link.h file.
</pre>
</div>
</content>
</entry>
<entry>
<title>reltool: Do not call erlang:get_stacktrace()</title>
<updated>2018-02-06T13:40:53+00:00</updated>
<author>
<name>Hans Bolinder</name>
<email>hasse@erlang.org</email>
</author>
<published>2018-02-05T11:35:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=8dbccbf57fd5aa3044f55164a67fe7534fa213fe'/>
<id>8dbccbf57fd5aa3044f55164a67fe7534fa213fe</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 'dgud/dot_erlang/OTP-14439'</title>
<updated>2017-10-17T06:12:41+00:00</updated>
<author>
<name>Dan Gudmundsson</name>
<email>dgud@erlang.org</email>
</author>
<published>2017-10-17T06:12:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=11fcc4b2b4581da4e24b94128a4f38ae98a2f466'/>
<id>11fcc4b2b4581da4e24b94128a4f38ae98a2f466</id>
<content type='text'>
* dgud/dot_erlang/OTP-14439:
  fixup! Do not load .erlang from current dir
  erlc: Do not load .erlang
  escript: Do not load .erlang
  dialyzer: Do not load .erlang
  reltool: Add no_dot_erlang bootfiles
  Enable usage of no_dot_erlang in bootstrap
  Do not load .erlang from current dir
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* dgud/dot_erlang/OTP-14439:
  fixup! Do not load .erlang from current dir
  erlc: Do not load .erlang
  escript: Do not load .erlang
  dialyzer: Do not load .erlang
  reltool: Add no_dot_erlang bootfiles
  Enable usage of no_dot_erlang in bootstrap
  Do not load .erlang from current dir
</pre>
</div>
</content>
</entry>
<entry>
<title>reltool: Add no_dot_erlang bootfiles</title>
<updated>2017-09-28T09:38:28+00:00</updated>
<author>
<name>Dan Gudmundsson</name>
<email>dgud@erlang.org</email>
</author>
<published>2017-09-27T14:00:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=52ca88f1c23657713946e22e0910f2cb7f2f601e'/>
<id>52ca88f1c23657713946e22e0910f2cb7f2f601e</id>
<content type='text'>
Needed by escript and tools
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Needed by escript and tools
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2017-09-26T10:33:40+00:00</updated>
<author>
<name>Henrik Nord</name>
<email>henrik@erlang.org</email>
</author>
<published>2017-09-26T10:33:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=25587f05f5d80f9cfa25df953b3ce7f53c70d31a'/>
<id>25587f05f5d80f9cfa25df953b3ce7f53c70d31a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update release notes</title>
<updated>2017-09-22T13:21:49+00:00</updated>
<author>
<name>Erlang/OTP</name>
<email>otp@erlang.org</email>
</author>
<published>2017-09-22T13:21:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=af2073640c4b7c67c9b978ebc203d57ac43e96dc'/>
<id>af2073640c4b7c67c9b978ebc203d57ac43e96dc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update version numbers</title>
<updated>2017-09-22T13:19:03+00:00</updated>
<author>
<name>Erlang/OTP</name>
<email>otp@erlang.org</email>
</author>
<published>2017-09-22T13:19:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=1bf0b21344d951c65e54c6abfe7907ef8b63d946'/>
<id>1bf0b21344d951c65e54c6abfe7907ef8b63d946</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>2017-09-20T07:23:09+00:00</updated>
<author>
<name>Dan Gudmundsson</name>
<email>dgud@erlang.org</email>
</author>
<published>2017-09-20T07:23:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=99876dd2dd9150ec4b15220c7fd46ed0b8200a19'/>
<id>99876dd2dd9150ec4b15220c7fd46ed0b8200a19</id>
<content type='text'>
* maint:
  erts, stdlib: Fix xmllint warning
  Update runtime deps to depend on new stdlib functionality
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* maint:
  erts, stdlib: Fix xmllint warning
  Update runtime deps to depend on new stdlib functionality
</pre>
</div>
</content>
</entry>
<entry>
<title>Update runtime deps to depend on new stdlib functionality</title>
<updated>2017-09-19T10:54:58+00:00</updated>
<author>
<name>Dan Gudmundsson</name>
<email>dgud@erlang.org</email>
</author>
<published>2017-09-19T10:54:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=5bc277e16e359072bba4c872de31ea486d77e042'/>
<id>5bc277e16e359072bba4c872de31ea486d77e042</id>
<content type='text'>
~tw and new string functions are new since OTP-20 (stdlib-3.4)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
~tw and new string functions are new since OTP-20 (stdlib-3.4)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2017-09-18T09:26:24+00:00</updated>
<author>
<name>Dan Gudmundsson</name>
<email>dgud@erlang.org</email>
</author>
<published>2017-09-18T09:26:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=83a66e961f043720c9d353923baaefb6f5e8ed96'/>
<id>83a66e961f043720c9d353923baaefb6f5e8ed96</id>
<content type='text'>
* maint:
  reltool: Remove export_all warning in tests
  et: Remove export_all warnings in test
  mnesia: Remove export_all in tests
  wx: Remove export_all in example code
  wx: test remove export_all
  wx: Update doc, OpenGL external links
  wx: Reduce Opengl docs
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* maint:
  reltool: Remove export_all warning in tests
  et: Remove export_all warnings in test
  mnesia: Remove export_all in tests
  wx: Remove export_all in example code
  wx: test remove export_all
  wx: Update doc, OpenGL external links
  wx: Reduce Opengl docs
</pre>
</div>
</content>
</entry>
</feed>
