<feed xmlns='http://www.w3.org/2005/Atom'>
<title>replicant/core/base, branch master</title>
<subtitle>Patches not merged yet, used for building and testing them
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/'/>
<entry>
<title>Allow android::base::ScopeGuard in STL containers</title>
<updated>2018-03-27T00:38:06+00:00</updated>
<author>
<name>Luis Hector Chavez</name>
<email>lhchavez@google.com</email>
</author>
<published>2018-03-26T20:11:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=f6965c793aaf68a27dc6108fd74dc582c7d07407'/>
<id>f6965c793aaf68a27dc6108fd74dc582c7d07407</id>
<content type='text'>
This change lets android::base::ScopeGuard be useful in STL containers
(e.g. std::vector&lt;android::base::ScopeGuard&lt;std::function&lt;void()&gt;&gt;&gt;). It
also provides perfect forwarding for android::base::make_scope_guard.

Bug: 34764308
Test: libbase_test

Change-Id: I7d1e5494b0f0695763cff0700efdb9ec18ae85c8
Merged-In: I7d1e5494b0f0695763cff0700efdb9ec18ae85c8
(cherry picked from commit b77035b89a3e95358a1aac9e28cd61c8b256e7ae)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change lets android::base::ScopeGuard be useful in STL containers
(e.g. std::vector&lt;android::base::ScopeGuard&lt;std::function&lt;void()&gt;&gt;&gt;). It
also provides perfect forwarding for android::base::make_scope_guard.

Bug: 34764308
Test: libbase_test

Change-Id: I7d1e5494b0f0695763cff0700efdb9ec18ae85c8
Merged-In: I7d1e5494b0f0695763cff0700efdb9ec18ae85c8
(cherry picked from commit b77035b89a3e95358a1aac9e28cd61c8b256e7ae)
</pre>
</div>
</content>
</entry>
<entry>
<title>Base: Add default tag manipulation</title>
<updated>2018-03-09T21:20:05+00:00</updated>
<author>
<name>Andreas Gampe</name>
<email>agampe@google.com</email>
</author>
<published>2018-03-05T18:00:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=3aa893647cf6f3bc783f06d97ced06c05ed18dd6'/>
<id>3aa893647cf6f3bc783f06d97ced06c05ed18dd6</id>
<content type='text'>
Allow the default tag (the program name) to be overwritten.

(cherry picked from commit 1923e768efeaf637bd368f93faa41ea45f542685)

Bug: 34867873
Test: m
Test: logging_test
Test: manual
Merged-In: I4ef32bad413a7cc82e46ce16a2f26212925964b1
Change-Id: I4ef32bad413a7cc82e46ce16a2f26212925964b1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow the default tag (the program name) to be overwritten.

(cherry picked from commit 1923e768efeaf637bd368f93faa41ea45f542685)

Bug: 34867873
Test: m
Test: logging_test
Test: manual
Merged-In: I4ef32bad413a7cc82e46ce16a2f26212925964b1
Change-Id: I4ef32bad413a7cc82e46ce16a2f26212925964b1
</pre>
</div>
</content>
</entry>
<entry>
<title>EndsWith *suffix*</title>
<updated>2018-02-27T07:12:55+00:00</updated>
<author>
<name>Erik Kline</name>
<email>ek@google.com</email>
</author>
<published>2018-02-27T07:12:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=b154d18d110439b86dfbeb498318948cbebe42b1'/>
<id>b154d18d110439b86dfbeb498318948cbebe42b1</id>
<content type='text'>
Possibly an old copy and paste error.

Test: built
Change-Id: Ie86203d65b4021ed4b787d2330729ab0b1d73e9d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Possibly an old copy and paste error.

Test: built
Change-Id: Ie86203d65b4021ed4b787d2330729ab0b1d73e9d
</pre>
</div>
</content>
</entry>
<entry>
<title>Base: Add an NDK-compiled version of libbase</title>
<updated>2018-02-21T01:59:24+00:00</updated>
<author>
<name>Andreas Gampe</name>
<email>agampe@google.com</email>
</author>
<published>2018-02-15T19:40:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=af05f3b76162d264b997008b1e3747a7702f2ecd'/>
<id>af05f3b76162d264b997008b1e3747a7702f2ecd</id>
<content type='text'>
To support building libraries for CTS.

Bug: 73206894
Bug: 73659009
Test: mmma system/core/base
Change-Id: I630be88f44cf5cefcb13be7959fc1a710686e29b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To support building libraries for CTS.

Bug: 73206894
Bug: 73659009
Test: mmma system/core/base
Change-Id: I630be88f44cf5cefcb13be7959fc1a710686e29b
</pre>
</div>
</content>
</entry>
<entry>
<title>bpfmt.</title>
<updated>2018-02-17T01:58:14+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2018-02-17T01:58:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=dc699a269f6a22af6cbba0f6e1359fde103dc4d3'/>
<id>dc699a269f6a22af6cbba0f6e1359fde103dc4d3</id>
<content type='text'>
Bug: N/A
Test: builds
Change-Id: I89ad00e1c4c7e0767bc80a7ac7935a4d55e090ac
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: N/A
Test: builds
Change-Id: I89ad00e1c4c7e0767bc80a7ac7935a4d55e090ac
</pre>
</div>
</content>
</entry>
<entry>
<title>Prevent WaitForProperty() from using ~100% of CPU time on 32bit builds</title>
<updated>2018-02-14T18:07:54+00:00</updated>
<author>
<name>yusukes</name>
<email>yusukes@google.com</email>
</author>
<published>2018-02-14T02:28:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=d3b94042418ed7561efca31d2a460588ab1fc161'/>
<id>d3b94042418ed7561efca31d2a460588ab1fc161</id>
<content type='text'>
Since 'struct timespec' members (time_t and long) are both 32bit on
32bit systems, and std::chrono::{seconds,nanoseconds}::rep are both
&gt;32bit, timespec members assigned in DurationToTimeSpec() can have a
negative value, especially when WaitForProperty() is called with the
default timeout value which is std::chrono::milliseconds::max().

Regarding functionality, passing a negative value to
__system_property_wait() is okay because WaitForProperty() still
waits for the property value (so unit tests are passing), but while
WaitForProperty() does that, the function, to be more exact,
SystemProperties::Wait() in bionic/, consumes ~100% of CPU time. This
happens because SystemProperties::Wait() which implements
__system_property_wait() has a tight while-loop with a __futex_wait()
call, and the futex call immediately returns EINVAL when the timespec
passed in has a negative value.

With this CL, WaitForProperty() will never pass a negative timespec
to __system_property_wait(), and therefore the __futex_wait() call
in bionic works as expected without consuming too much CPU time even
on 32bit systems.

Bug: None
Test: libbase_test32 still passes
Test: strace no longer shows repeated EINVALs from __futex_wait
Change-Id: Id1834fac8cd2876b02dbe4479bf3d3eda2fa7da1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since 'struct timespec' members (time_t and long) are both 32bit on
32bit systems, and std::chrono::{seconds,nanoseconds}::rep are both
&gt;32bit, timespec members assigned in DurationToTimeSpec() can have a
negative value, especially when WaitForProperty() is called with the
default timeout value which is std::chrono::milliseconds::max().

Regarding functionality, passing a negative value to
__system_property_wait() is okay because WaitForProperty() still
waits for the property value (so unit tests are passing), but while
WaitForProperty() does that, the function, to be more exact,
SystemProperties::Wait() in bionic/, consumes ~100% of CPU time. This
happens because SystemProperties::Wait() which implements
__system_property_wait() has a tight while-loop with a __futex_wait()
call, and the futex call immediately returns EINVAL when the timespec
passed in has a negative value.

With this CL, WaitForProperty() will never pass a negative timespec
to __system_property_wait(), and therefore the __futex_wait() call
in bionic works as expected without consuming too much CPU time even
on 32bit systems.

Bug: None
Test: libbase_test32 still passes
Test: strace no longer shows repeated EINVALs from __futex_wait
Change-Id: Id1834fac8cd2876b02dbe4479bf3d3eda2fa7da1
</pre>
</div>
</content>
</entry>
<entry>
<title>base: adb.exe build error</title>
<updated>2018-02-05T17:33:10+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2018-02-05T15:41:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=0c071c9de7aa40301cfc945f08d1783f2831ee5c'/>
<id>0c071c9de7aa40301cfc945f08d1783f2831ee5c</id>
<content type='text'>
Windows build of adb is broken because of the lack of
std::chrono_literals and for an implementation of
android::boot_clock::now().

Test: make -j vts
Bug: 72941624
Change-Id: Ie65fed098633eb45a94ea553de6903f8d55fc5b2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Windows build of adb is broken because of the lack of
std::chrono_literals and for an implementation of
android::boot_clock::now().

Test: make -j vts
Bug: 72941624
Change-Id: Ie65fed098633eb45a94ea553de6903f8d55fc5b2
</pre>
</div>
</content>
</entry>
<entry>
<title>Adding per-method clang thread safety annotations</title>
<updated>2018-01-10T20:25:32+00:00</updated>
<author>
<name>Vasily Tarasov</name>
<email>vtarasov@google.com</email>
</author>
<published>2018-01-10T20:25:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=713f289dd0e3658819560aeca38483f62d404256'/>
<id>713f289dd0e3658819560aeca38483f62d404256</id>
<content type='text'>
Change-Id: Ic92702a06570f48bf3616e0ee959a49e1eec393c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Ic92702a06570f48bf3616e0ee959a49e1eec393c
</pre>
</div>
</content>
</entry>
<entry>
<title>Add __attribute__((__format__)) to fastboot's die().</title>
<updated>2018-01-09T19:18:10+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2018-01-09T19:16:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=3d7fa22164cdf63ca3f88b8ddd84242fb15c9ba0'/>
<id>3d7fa22164cdf63ca3f88b8ddd84242fb15c9ba0</id>
<content type='text'>
Also make the &lt;android-base/stringprintf.h&gt; macro less likely to collide.

Bug: N/A
Test: builds
Change-Id: I868a0a0002c9c53c1ec0670153df2af5f48fd969
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also make the &lt;android-base/stringprintf.h&gt; macro less likely to collide.

Bug: N/A
Test: builds
Change-Id: I868a0a0002c9c53c1ec0670153df2af5f48fd969
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Use LOG_TAG instead of binary name as a tag."</title>
<updated>2017-12-20T21:28:29+00:00</updated>
<author>
<name>Tomasz Wasilczyk</name>
<email>twasilczyk@google.com</email>
</author>
<published>2017-12-20T21:28:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=d535a9cab95c4830a5a1708e4576f627dc1e9ed7'/>
<id>d535a9cab95c4830a5a1708e4576f627dc1e9ed7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
