Elliott Hughes
5406127ca0
am 8c5d3170
: am e120cba3
: Merge "Cherrypick upstream OpenBSD\'s vfwprintf.c revision 1.11."
...
* commit '8c5d3170411e00c8f0cc126d84e4b08e6a1223d1':
Cherrypick upstream OpenBSD's vfwprintf.c revision 1.11.
2014-06-04 17:32:11 +00:00
Dan Albert
bb87e9a823
am 4855a97e
: am 452e0913
: Merge "Adds functionality specified by uchar.h"
...
* commit '4855a97ed06500de7515e2984d9f44cae7bf756a':
Adds functionality specified by uchar.h
2014-06-04 17:32:11 +00:00
Elliott Hughes
e120cba31d
Merge "Cherrypick upstream OpenBSD's vfwprintf.c revision 1.11."
2014-06-04 16:17:10 +00:00
Dan Albert
452e091300
Merge "Adds functionality specified by uchar.h"
2014-06-04 16:10:50 +00:00
Elliott Hughes
be8df2e744
Cherrypick upstream OpenBSD's vfwprintf.c revision 1.11.
...
revision 1.11
date: 2014/06/04 07:45:25; author: stsp; state: Exp; lines: +1 -7; commitid:
zJPRH5RUO224FmQu;
Remove assigned but unused local variables and macro from vfwprintf().
Found by Elliott @ google
ok mpi@
Change-Id: I716edc0c4d736a484a5317942de8e87bd8c6fd26
2014-06-04 09:00:25 -07:00
Dan Albert
7a7f9952c1
Adds functionality specified by uchar.h
...
mbrtoc32 and c32rtomb get their implementations from mbrtowc and wcrtomb. The
wc functions now simply call the c32 functions.
Bug: 14646575
Change-Id: I49d4b95fed0f9d790260c996c4d0f8bfd1686324
2014-06-04 08:39:24 -07:00
Elliott Hughes
27e3e3300c
am 9a2aba17
: am 38ed337c
: Merge "Hide dlmalloc symbols."
...
* commit '9a2aba176a8b315207c728132591eea57f6b4d53':
Hide dlmalloc symbols.
2014-06-04 03:51:18 +00:00
Elliott Hughes
38ed337c13
Merge "Hide dlmalloc symbols."
2014-06-04 03:30:37 +00:00
Elliott Hughes
9b5235d74e
Hide dlmalloc symbols.
...
We need to leave dlmalloc_trim and dlmalloc_inspect_all exposed for
the VM, but if we're seriously looking at other malloc implementations,
that's something we're going to have to fix.
Bug: 11156955
Change-Id: If85156c280044f1616c09a3c50ba674aaf0e8d3a
2014-06-03 18:47:17 -07:00
Dan Albert
651dde33e4
am d90ded5a
: am c3801894
: Merge "Removes bcopy and bzero from bionic."
...
* commit 'd90ded5a911d5c37da49fb6179cf4ff5b9d48cb3':
Removes bcopy and bzero from bionic.
2014-06-04 01:19:26 +00:00
Dan Albert
c380189410
Merge "Removes bcopy and bzero from bionic."
2014-06-04 01:00:40 +00:00
Dan Albert
ce9ce28e5d
Removes bcopy and bzero from bionic.
...
These symbols are still defined for LP32 for binary compatibility, but
the declarations have been replaced with the POSIX recommended #defines.
Bug: 13935372
Change-Id: Ief7e6ca012db374588ba5839f11e8f3a13a20467
2014-06-03 17:22:07 -07:00
Elliott Hughes
ad5342a0c0
am 5bf90caa
: am 3dbc2fe3
: Merge "Work around "error: variable \'uio\' set but not used"."
...
* commit '5bf90caa78425c0053d35186b91a1c4936ccb149':
Work around "error: variable 'uio' set but not used".
2014-06-04 00:12:10 +00:00
Elliott Hughes
b239d3fa27
am 85981760
: am be15d16b
: Merge "Turn on -Wunused and fix the mistakes it uncovers."
...
* commit '859817602d24d5c4868ed8b7d0cc69e5d3babfc6':
Turn on -Wunused and fix the mistakes it uncovers.
2014-06-04 00:12:06 +00:00
Elliott Hughes
b082645ccb
Work around "error: variable 'uio' set but not used".
...
I've sent the real fix upstream, and will merge that when they commit it.
Change-Id: I75e5cab87026f8990c585d364dd178753d727e2a
2014-06-03 16:39:58 -07:00
Elliott Hughes
d286796fce
Turn on -Wunused and fix the mistakes it uncovers.
...
Change-Id: I023d2d8b547fbc21d4124bb7510d42b06a0dc501
2014-06-03 15:22:34 -07:00
Paul Jensen
0d78bdaf65
Merge "Make host resolver call __connect() rather than connect() so mark isn't cleared."
2014-06-03 17:23:28 +00:00
Dan Albert
109c5a81d4
am 6e587086
: am 2f9400b6
: Merge "Use __libc_fatal() for failed malloc in new"
...
* commit '6e5870865e11f38ac9fcdf39c6097f1e39af9234':
Use __libc_fatal() for failed malloc in new
2014-06-03 17:15:22 +00:00
Dan Albert
2f9400b679
Merge "Use __libc_fatal() for failed malloc in new"
2014-06-03 16:53:47 +00:00
Dan Albert
989725940e
Use __libc_fatal() for failed malloc in new
...
This way we can print a useful message to the log isntead of just dying
mysteriously.
Change-Id: Ib660c2fd8ce8bb9aa0d0bb634ae08c645d3901e5
2014-06-02 18:48:53 -07:00
Elliott Hughes
87f0392320
am 016074f6
: am 987bd5c6
: am 2deef73f
: Merge "Avoid a system call in \'gettid\'."
...
* commit '016074f6beec46fa2140e2cabd11ade488776402':
Avoid a system call in 'gettid'.
2014-06-02 17:55:53 +00:00
Elliott Hughes
5d9a7ba0dc
Avoid a system call in 'gettid'.
...
System calls can be pretty slow. This is mako, which has one of our
lowest latencies:
iterations ns/op
BM_unistd_getpid 10000000 209
BM_unistd_gettid 200000000 8
Bug: 15297299 (kernel panic from too many gettid calls)
Bug: 15315766 (excessive gettid overhead in liblogd)
Change-Id: I49656c0fc5b5d092390264a59e4f2c0d8a8b1aeb
2014-06-02 10:32:55 -07:00
Elliott Hughes
468c292262
am df2e70f3
: am d3f2a204
: am 7a5732bd
: Merge "Add some missing __noreturn attributes."
...
* commit 'df2e70f39036cab8bcbf8c238f39b21f83b32d8d':
Add some missing __noreturn attributes.
2014-05-30 23:07:32 +00:00
Elliott Hughes
6203e7b853
Add some missing __noreturn attributes.
...
This is more honest, and lets us remove a hack.
Change-Id: I309f064743ded5248573ccafc379f78d417db08d
2014-05-30 15:56:25 -07:00
Elliott Hughes
4a7cae7a45
am 8db7b4b5
: am f306c414
: am 3a3b27e0
: Merge "x86: stop unwinding past __bionic_clone."
...
* commit '8db7b4b54ca28f6c80115c43a83323f562d275b7':
x86: stop unwinding past __bionic_clone.
2014-05-30 21:50:51 +00:00
Elliott Hughes
ee9d5bdd95
x86: stop unwinding past __bionic_clone.
...
The apparent "previous" frame is on another thread's stack.
Bug: 14270816
Bug: 15195760
Change-Id: I884f370e116203c5fa3b05a75fb8f356537261c4
2014-05-30 11:15:32 -07:00
Paul Jensen
31ad03761d
Make host resolver call __connect() rather than connect() so mark isn't cleared.
...
Calling connect() will erase the mark set by the host resolver code because the
explicitlySelected bit of the Fwmark isn't set. It's by design that the
explicitlySelected bit isn't set as this facilitates falling through to other
routing rules if the selected network doesn't provide a route to the DNS server
as may be the case with VPNs.
Change-Id: I60ba7c754194ead97df3ac6a6c5b3db1f446dac8
2014-05-30 08:02:52 -04:00
Christopher Ferris
2779dc7373
am 1a3a9d4d
: am e4068e33
: am 94170742
: Merge "Fix x86 cfi directives for syscalls."
...
* commit '1a3a9d4d99557021a77d2d903775adabb24560f4':
Fix x86 cfi directives for syscalls.
2014-05-30 02:29:08 +00:00
Christopher Ferris
15b91e92a0
Fix x86 cfi directives for syscalls.
...
The syscall generation always used 4 bytes for each push cfi directive.
However, the first push should always use an offset of 8 bytes, each
subsequent push after that is only 4 bytes though.
Change-Id: Ibaabd107f399ef67010b9a08213783957c2f74a9
2014-05-29 19:04:36 -07:00
Elliott Hughes
768fa1f636
am 2f97e423
: am e1df1eb2
: am 264d1b83
: Merge "Remove issetugid."
...
* commit '2f97e423274793c1b47a5be2479f767fd26bbc54':
Remove issetugid.
2014-05-30 00:17:37 +00:00
Elliott Hughes
b4e099c6f7
Remove issetugid.
...
Bug: 14569474
Change-Id: I752c77ed53c724f144f0b618443eb95e87f2929a
2014-05-29 16:43:01 -07:00
Christopher Ferris
a6ee6ac422
am 4704238d
: am 84d90bf5
: am aa5f32ea
: Merge "Add Aarch64 optimized bzero based on memset"
...
* commit '4704238dd27095886e273edc3902722e8f941310':
Add Aarch64 optimized bzero based on memset
2014-05-29 21:30:37 +00:00
Christopher Ferris
aa5f32ea1c
Merge "Add Aarch64 optimized bzero based on memset"
2014-05-29 21:19:44 +00:00
Elliott Hughes
0f20aafa25
am 8efc3054
: am dafa59b8
: am 4dd0b72d
: Merge "Return the actual success result from __futex."
...
* commit '8efc30544f5ef32395d97f41139d1906a21ca06f':
Return the actual success result from __futex.
2014-05-29 21:10:06 +00:00
Christopher Ferris
ea1004b6b3
am deb1ec4a
: am 47150dca
: am 1a57de71
: Merge "Fix overflow testing in sbrk."
...
* commit 'deb1ec4aaa0e7f74746c97ccbc22a367640c301f':
Fix overflow testing in sbrk.
2014-05-29 21:09:29 +00:00
Bernhard Rosenkraenzer
62d92e1610
Add Aarch64 optimized bzero based on memset
...
Change-Id: I62cf25bfe23b9d811e00af7307bbd19d89937792
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2014-05-29 13:28:55 -07:00
Elliott Hughes
4dd0b72dd3
Merge "Return the actual success result from __futex."
2014-05-29 20:12:06 +00:00
Christopher Ferris
1a57de713a
Merge "Fix overflow testing in sbrk."
2014-05-29 18:03:28 +00:00
Christopher Ferris
738b0cc5e9
Fix overflow testing in sbrk.
...
Modify the overflow testing for sbrk.
Bug: 15188366
Change-Id: Ia83f85f7c1789454d872279bd41f38f1ce6b8a34
2014-05-29 10:51:22 -07:00
Elliott Hughes
1ee46520ca
Return the actual success result from __futex.
...
futex(2) can return non-zero successes.
Bug: 15195455
Change-Id: I7818bc922a5a2df31228ff72c169320b5e69a544
2014-05-29 10:27:55 -07:00
Elliott Hughes
dd4489bfbe
am 4843fab2
: am ad73e2f5
: am ef023873
: Merge "Minor style cleanup of some code I had to look at."
...
* commit '4843fab2ee025fae5e04d84dd687e507fc4e99f0':
Minor style cleanup of some code I had to look at.
2014-05-29 16:23:08 +00:00
Elliott Hughes
864b926026
am 8a00b45d
: am c3930812
: am 0bdd668f
: Merge "Upgrade to tzdata2014d."
...
* commit '8a00b45d601d6e9a5a7ab63544f66267ed1a857b':
Upgrade to tzdata2014d.
2014-05-29 16:23:07 +00:00
Elliott Hughes
ef023873e2
Merge "Minor style cleanup of some code I had to look at."
2014-05-29 16:12:02 +00:00
Elliott Hughes
b7f136a01f
Upgrade to tzdata2014d.
...
There are no substantive changes to the data in this release. I'm applying
this just for completeness.
Change-Id: Ibe953969cb16db4d8d1ddb7dd3c943316e6e46b4
2014-05-28 20:33:33 -07:00
Elliott Hughes
624996026b
Minor style cleanup of some code I had to look at.
...
(It turns out that this is the only place we're saying __inline in C++.)
Change-Id: I8095e67a385087817c47caab9a621f82f8e0cfc8
2014-05-28 20:30:40 -07:00
Elliott Hughes
49d1ce63d9
am 275906e4
: am 3388c7be
: am fae42a83
: Merge "Revert "Revert "Lose the hand-written futex assembler."""
...
* commit '275906e4b08062e50dbd0b1938a9a1379f577649':
Revert "Revert "Lose the hand-written futex assembler.""
2014-05-29 03:22:03 +00:00
Elliott Hughes
fae42a837a
Merge "Revert "Revert "Lose the hand-written futex assembler."""
2014-05-29 03:13:23 +00:00
Elliott Hughes
b30aff405a
Revert "Revert "Lose the hand-written futex assembler.""
...
The problem with the original patch was that using syscall(3) means that
errno can be set, but pthread_create(3) was abusing the TLS errno slot as
a pthread_mutex_t for the thread startup handshake.
There was also a mistake in the check for syscall failures --- it should
have checked against -1 instead of 0 (not just because that's the default
idiom, but also here because futex(2) can legitimately return values > 0).
This patch stops abusing the TLS errno slot and adds a pthread_mutex_t to
pthread_internal_t instead. (Note that for LP64 sizeof(pthread_mutex_t) >
sizeof(uintptr_t), so we could potentially clobber other TLS slots too.)
I've also rewritten the LP32 compatibility stubs to directly reuse the
code from the .h file.
This reverts commit 75c55ff84e
.
Bug: 15195455
Change-Id: I6ffb13e5cf6a35d8f59f692d94192aae9ab4593d
2014-05-28 18:31:15 -07:00
Dan Albert
cd4e99048a
am e4f5ae5d
: am c51e9208
: am dc3fb119
: Merge "Updated ambiguous comment in pthread_mutex_lock."
...
* commit 'e4f5ae5d54865d6f61a32eeba6af846550d2a254':
Updated ambiguous comment in pthread_mutex_lock.
2014-05-28 22:18:10 +00:00
Christopher Ferris
48c544f1c2
am 02d1cfb3
: am fa204cf0
: am 8a405b02
: Merge "Add optimized AArch64 versions of bcopy and wmemmove based on memmove"
...
* commit '02d1cfb366b461d4c64cc87fc0f48bc3eae5fd92':
Add optimized AArch64 versions of bcopy and wmemmove based on memmove
2014-05-28 22:17:56 +00:00