<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/erts/emulator/beam/erl_alloc_util.c, branch OTP_17.0-rc1</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>Remove uninitialized use of new_crr in erl_alloc_util</title>
<updated>2013-12-02T14:20:49+00:00</updated>
<author>
<name>Anthony Ramine</name>
<email>n.oxyde@gmail.com</email>
</author>
<published>2013-10-14T21:26:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=ce785835f3fcbab8b6c07e2415b5f636d181c28d'/>
<id>ce785835f3fcbab8b6c07e2415b5f636d181c28d</id>
<content type='text'>
When the offending code is reached, new_crr is either uninitalized or
have been set to NULL. This patch removes the following warning:

beam/erl_alloc_util.c:3510:6: warning: variable 'new_crr' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        if (!(flags &amp; CFLG_FORCE_MSEG)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
beam/erl_alloc_util.c:3567:23: note: uninitialized use occurs here
        DEBUG_SAVE_ALIGNMENT(new_crr);
                             ^~~~~~~
beam/erl_alloc_util.c:674:51: note: expanded from macro 'DEBUG_SAVE_ALIGNMENT'
    UWord algnmnt__ = sizeof(Unit_t) - (((UWord) (C)) % sizeof(Unit_t));\
                                                  ^
beam/erl_alloc_util.c:3510:2: note: remove the 'if' if its condition is always true
        if (!(flags &amp; CFLG_FORCE_MSEG)) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
beam/erl_alloc_util.c:3438:23: note: initialize the variable 'new_crr' to silence this warning
    Carrier_t *new_crr, *old_crr;
                      ^
                       = NULL
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the offending code is reached, new_crr is either uninitalized or
have been set to NULL. This patch removes the following warning:

beam/erl_alloc_util.c:3510:6: warning: variable 'new_crr' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        if (!(flags &amp; CFLG_FORCE_MSEG)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
beam/erl_alloc_util.c:3567:23: note: uninitialized use occurs here
        DEBUG_SAVE_ALIGNMENT(new_crr);
                             ^~~~~~~
beam/erl_alloc_util.c:674:51: note: expanded from macro 'DEBUG_SAVE_ALIGNMENT'
    UWord algnmnt__ = sizeof(Unit_t) - (((UWord) (C)) % sizeof(Unit_t));\
                                                  ^
beam/erl_alloc_util.c:3510:2: note: remove the 'if' if its condition is always true
        if (!(flags &amp; CFLG_FORCE_MSEG)) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
beam/erl_alloc_util.c:3438:23: note: initialize the variable 'new_crr' to silence this warning
    Carrier_t *new_crr, *old_crr;
                      ^
                       = NULL
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'lukas/erts/supercarrier_fix/OTP-11149' into maint</title>
<updated>2013-11-28T13:53:23+00:00</updated>
<author>
<name>Lukas Larsson</name>
<email>lukas@erlang-solutions.com</email>
</author>
<published>2013-11-28T13:53:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=172ac461d7055b655a9b5c22c1d95a140624945f'/>
<id>172ac461d7055b655a9b5c22c1d95a140624945f</id>
<content type='text'>
* lukas/erts/supercarrier_fix/OTP-11149:
  Improve error info when main carrier creation fails

Conflicts:
	erts/emulator/test/alloc_SUITE.erl
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lukas/erts/supercarrier_fix/OTP-11149:
  Improve error info when main carrier creation fails

Conflicts:
	erts/emulator/test/alloc_SUITE.erl
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'sverk/allctr-4byte-align-bug' into maint</title>
<updated>2013-11-27T18:18:29+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2013-11-27T18:18:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=6603481b4612cdc83529cdecc86d5206b99674fd'/>
<id>6603481b4612cdc83529cdecc86d5206b99674fd</id>
<content type='text'>
* sverk/allctr-4byte-align-bug:
  erts: Fix alignment bug in allocator start code

OTP-11496
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* sverk/allctr-4byte-align-bug:
  erts: Fix alignment bug in allocator start code

OTP-11496
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve error info when main carrier creation fails</title>
<updated>2013-11-25T09:00:50+00:00</updated>
<author>
<name>Lukas Larsson</name>
<email>lukas@erlang-solutions.com</email>
</author>
<published>2013-11-20T13:34:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=e9c04e92199deb274e1bb74e4caecd296443ca5f'/>
<id>e9c04e92199deb274e1bb74e4caecd296443ca5f</id>
<content type='text'>
Also fix testcase that failed due to main carrier creation failure.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also fix testcase that failed due to main carrier creation failure.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'rickard/acul-bug/OTP-11456' into maint</title>
<updated>2013-11-25T08:11:25+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2013-11-25T08:11:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=c79eb97831b0f86f3c4237f51757a3aecce1c264'/>
<id>c79eb97831b0f86f3c4237f51757a3aecce1c264</id>
<content type='text'>
* rickard/acul-bug/OTP-11456:
  Ensure carrier pool only accessed by schedulers
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* rickard/acul-bug/OTP-11456:
  Ensure carrier pool only accessed by schedulers
</pre>
</div>
</content>
</entry>
<entry>
<title>erts: Fix alignment bug in allocator start code</title>
<updated>2013-11-20T20:33:20+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2013-11-20T20:33:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=5a00e724a58ee29d4012cca79c8aa33979e74eb6'/>
<id>5a00e724a58ee29d4012cca79c8aa33979e74eb6</id>
<content type='text'>
Bug never released.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug never released.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add switch for disabling sys_alloc carriers</title>
<updated>2013-11-05T22:07:26+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2013-11-05T14:37:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=bb59a8fcf1f6cf4162a2a97c13087843d1b9dac4'/>
<id>bb59a8fcf1f6cf4162a2a97c13087843d1b9dac4</id>
<content type='text'>
The switch "+Musac &lt;boolean&gt;" controls if sys_alloc carriers
are allowed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The switch "+Musac &lt;boolean&gt;" controls if sys_alloc carriers
are allowed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure carrier pool only accessed by schedulers</title>
<updated>2013-11-01T13:32:00+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2013-11-01T13:32:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=fb3aaa41a046e317609c39c9b8281263a250ef2f'/>
<id>fb3aaa41a046e317609c39c9b8281263a250ef2f</id>
<content type='text'>
Disable carrier pool for the thread safe allocator instance 0.
This since non-managed threads allocates and deallocates memory
in this instance, and only managed threads are allowed to
access the carrier pool.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Disable carrier pool for the thread safe allocator instance 0.
This since non-managed threads allocates and deallocates memory
in this instance, and only managed threads are allowed to
access the carrier pool.
</pre>
</div>
</content>
</entry>
<entry>
<title>erts: erts_mmap supercarrier management and erts_mseg usage</title>
<updated>2013-09-30T15:45:44+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2013-08-23T15:29:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=ef3da907bd566b43a4022f1cbb1ae3d103b9ec3e'/>
<id>ef3da907bd566b43a4022f1cbb1ae3d103b9ec3e</id>
<content type='text'>
* Coalescing and trimming of free segments in supercarrier
* Management of super aligned and super unaligned areas in
  supercarrier
* Management of reservation of physical memory
* erts_mseg usage of erts_mmap
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Coalescing and trimming of free segments in supercarrier
* Management of super aligned and super unaligned areas in
  supercarrier
* Management of reservation of physical memory
* erts_mseg usage of erts_mmap
</pre>
</div>
</content>
</entry>
<entry>
<title>erts: Refactor the ASSERT macro</title>
<updated>2013-09-30T15:34:10+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2013-08-27T15:23:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=156b011958a3b80e507039ddc916db039874ada1'/>
<id>156b011958a3b80e507039ddc916db039874ada1</id>
<content type='text'>
Introduce unconditional ERTS_ASSERT
and use that for both ASSERT and ASSERT_EXPR.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce unconditional ERTS_ASSERT
and use that for both ASSERT and ASSERT_EXPR.
</pre>
</div>
</content>
</entry>
</feed>
