Guang Zhu
849bfd5811
am 8c1b9668
: Merge "Revert "Clean up our alternate signal stacks.""
...
* commit '8c1b96681af91fda86a5493e7f7e4381ce489648':
Revert "Clean up our alternate signal stacks."
2013-07-16 20:18:57 -07:00
Guang Zhu
2cf5a6f662
Merge "Revert "Improve stack overflow diagnostics.""
2013-07-17 03:17:19 +00:00
Guang Zhu
d14dc3b87f
Revert "Improve stack overflow diagnostics."
...
This reverts commit aa754dca90
.
Change-Id: Ifa76eee31f7f44075eb3a48554315b2693062f44
2013-07-17 03:17:05 +00:00
Guang Zhu
8c1b96681a
Merge "Revert "Clean up our alternate signal stacks.""
2013-07-17 03:16:52 +00:00
Guang Zhu
eb1b07469f
Revert "Clean up our alternate signal stacks."
...
This reverts commit 5cf87951ab
.
Change-Id: Idd6ca7d80a018755da3bd315d91193723ce7f3bf
2013-07-17 03:16:04 +00:00
Christopher Ferris
66cb2edba5
am 7ff868a6
: am f63c28f0
: Merge "Fix assembler errors in generic arm strlen.c."
...
* commit '7ff868a6307f0d5e63555b5d320b8ad6e490e3c4':
Fix assembler errors in generic arm strlen.c.
2013-07-16 17:24:40 -07:00
Christopher Ferris
69205c5433
am b1d7fd49
: am 6f4fed74
: Merge "Add new optimized strlen for arm."
...
* commit 'b1d7fd4969fdd3d3402b500840561beb30962c1d':
Add new optimized strlen for arm.
2013-07-16 17:24:40 -07:00
Christopher Ferris
7ff868a630
am f63c28f0
: Merge "Fix assembler errors in generic arm strlen.c."
...
* commit 'f63c28f0338fd647e88f1f9300b2220093af1aae':
Fix assembler errors in generic arm strlen.c.
2013-07-16 17:22:05 -07:00
Christopher Ferris
b1d7fd4969
am 6f4fed74
: Merge "Add new optimized strlen for arm."
...
* commit '6f4fed74cb9405c0f5322307085d15afed6be764':
Add new optimized strlen for arm.
2013-07-16 17:21:55 -07:00
Christopher Ferris
f63c28f033
Merge "Fix assembler errors in generic arm strlen.c."
2013-07-17 00:19:42 +00:00
Christopher Ferris
6f4fed74cb
Merge "Add new optimized strlen for arm."
2013-07-17 00:19:30 +00:00
Christopher Ferris
9ad2a73ed6
Fix assembler errors in generic arm strlen.c.
...
Tested using a static version of the strlen libc_test program
on a nexus7 that uses the generic code.
Merge from internal master.
(cherry-picked from d8d10a8994
)
Change-Id: I88f7dc01dc5b5c3ac2d5580d92153bc1bc36c564
2013-07-16 16:47:54 -07:00
Christopher Ferris
0aa9b52efa
Add new optimized strlen for arm.
...
This optimized version is primarily targeted at cortex-a15.
Tested on all nexus devices using the system/extras/libc_test strlen test.
Tested alignments from 1 to 32 that are powers of 2.
Tested that strlen does not cross page boundaries at all alignments.
Speed improvements listed below:
cortex-a15
- Sizes >= 32 bytes, ~75% improvement.
- Sizes >= 1024 bytes, ~250% improvement.
cortex-a9
- Sizes >= 32 bytes, ~75% improvement.
- Sizes >= 1024 bytes, ~85% improvement.
krait
- Sizes >= 32 bytes, ~95% improvement.
- Sizes >= 1024 bytes, ~160% improvement.
Merge from internal master.
(cherry-picked from 2fc0717977
)
Change-Id: I1ceceb4e745fd68e9d946f96d1d42e0cdaff6ccf
2013-07-16 16:47:37 -07:00
Elliott Hughes
152dcf3b3f
am 79dfb1af
: am f35e0c14
: Merge "Clean up our alternate signal stacks."
...
* commit '79dfb1afda16565a0dd378eca7f72bfe81fae205':
Clean up our alternate signal stacks.
2013-07-16 15:56:16 -07:00
Elliott Hughes
79dfb1afda
am f35e0c14
: Merge "Clean up our alternate signal stacks."
...
* commit 'f35e0c149f1a6801a5af7c339f84d81ae05c3adf':
Clean up our alternate signal stacks.
2013-07-16 15:50:18 -07:00
Elliott Hughes
f35e0c149f
Merge "Clean up our alternate signal stacks."
2013-07-16 22:47:41 +00:00
Elliott Hughes
617a1e4977
am 10a954de
: am 026867c7
: Merge "Improve stack overflow diagnostics."
...
* commit '10a954dea6732232ed6cf56d3aa6ca38673dacbf':
Improve stack overflow diagnostics.
2013-07-16 15:36:12 -07:00
Elliott Hughes
f2f6b2bad3
am d2acf124
: am 9562d38d
: Merge "Clean up __builtin_expect usage."
...
* commit 'd2acf124ed7ad18f8adb5159544c92234cade90e':
Clean up __builtin_expect usage.
2013-07-16 15:36:12 -07:00
Elliott Hughes
62d6b7526a
am 2a18ea14
: am f152e386
: Merge "EABI syscall cleanup."
...
* commit '2a18ea1462cf65cc51bfcb1a1c46972ee5af1d01':
EABI syscall cleanup.
2013-07-16 15:36:11 -07:00
Elliott Hughes
10a954dea6
am 026867c7
: Merge "Improve stack overflow diagnostics."
...
* commit '026867c7dcce7828212dcd4a61806146908e9039':
Improve stack overflow diagnostics.
2013-07-16 15:31:40 -07:00
Elliott Hughes
d2acf124ed
am 9562d38d
: Merge "Clean up __builtin_expect usage."
...
* commit '9562d38df1e4aba941b3433cfd0922fee5ea258b':
Clean up __builtin_expect usage.
2013-07-16 15:31:39 -07:00
Elliott Hughes
2a18ea1462
am f152e386
: Merge "EABI syscall cleanup."
...
* commit 'f152e386fcf477f3f5de9dc020c3660d4f9c4b81':
EABI syscall cleanup.
2013-07-16 15:31:39 -07:00
Elliott Hughes
5cf87951ab
Clean up our alternate signal stacks.
...
Bug: 8557703
Change-Id: Ie93901dd1c29e9d3bf795b0f0400616d9ef08f75
2013-07-16 14:35:52 -07:00
Elliott Hughes
026867c7dc
Merge "Improve stack overflow diagnostics."
2013-07-16 20:38:55 +00:00
Elliott Hughes
aa754dca90
Improve stack overflow diagnostics.
...
We notify debuggerd of problems by installing signal handlers. That's
fine except for when the signal is caused by us running off the end of
a thread's stack and into the guard page.
Bug: 8557703
Change-Id: I1ef65b4bb3bbca7e9a9743056177094921e60ed3
2013-07-16 13:14:24 -07:00
Elliott Hughes
9562d38df1
Merge "Clean up __builtin_expect usage."
2013-07-16 19:52:30 +00:00
Elliott Hughes
d4e753fea9
Clean up __builtin_expect usage.
...
Also remove some dead code; our malloc debugging doesn't use this
any more.
Change-Id: Id69cf182371f5f37d40b5bbd08f2744ade286e66
2013-07-16 12:45:46 -07:00
Elliott Hughes
f152e386fc
Merge "EABI syscall cleanup."
2013-07-16 19:35:58 +00:00
Elliott Hughes
da4a3e6515
EABI syscall cleanup.
...
We cleaned up the auto-generated ones a while back to not touch
the stack unnecessarily if they have <= 4 arguments. This patch
cleans up some hand-crafted ones.
Also improve comments in clone.S.
Change-Id: I8850bf98f2b26829385315304472a760e6880ed8
2013-07-16 11:52:24 -07:00
Elliott Hughes
993ea1061b
am 5148661f
: am 67750c85
: Merge "Fix pthread_getattr_np, pthread_attr_setguardsize, and pthread_attr_setstacksize."
...
* commit '5148661f8d2be514d0e3c191bc1e489157ae1154':
Fix pthread_getattr_np, pthread_attr_setguardsize, and pthread_attr_setstacksize.
2013-07-15 16:45:54 -07:00
Elliott Hughes
5148661f8d
am 67750c85
: Merge "Fix pthread_getattr_np, pthread_attr_setguardsize, and pthread_attr_setstacksize."
...
* commit '67750c8515573cba294b2f3840249dd7f7d817d5':
Fix pthread_getattr_np, pthread_attr_setguardsize, and pthread_attr_setstacksize.
2013-07-15 16:42:34 -07:00
Elliott Hughes
67750c8515
Merge "Fix pthread_getattr_np, pthread_attr_setguardsize, and pthread_attr_setstacksize."
2013-07-15 23:39:39 +00:00
Elliott Hughes
b95cf0d23a
Fix pthread_getattr_np, pthread_attr_setguardsize, and pthread_attr_setstacksize.
...
pthread_getattr_np was reporting the values supplied to us, not the values we
actually used, which is kinda the whole point of pthread_getattr_np.
pthread_attr_setguardsize and pthread_attr_setstacksize were reporting EINVAL
for any size that wasn't a multiple of the system page size. This is
unnecessary. We can just round like POSIX suggests and glibc already does.
Also improve the error reporting for pthread_create failures.
Change-Id: I7ebc518628a8a1161ec72e111def911d500bba71
2013-07-15 14:51:07 -07:00
Christopher Ferris
d8d10a8994
Fix assembler errors in generic arm strlen.c.
...
Tested using a static version of the strlen libc_test program
on a nexus7 that uses the generic code.
Change-Id: If04d15dcb6c0b18f27f2fefadca5510ed49016c5
2013-07-15 13:56:45 -07:00
Szymon Starzycki
674be7e0fc
Kexec header generated from linux header 3.10
...
Change-Id: Iac26fcc6e0e25905ab52dba91bec16a4fb479d43
2013-07-15 13:51:56 -07:00
Christopher Ferris
67e9f47476
Merge "Add new optimized strlen for arm."
2013-07-15 19:44:26 +00:00
Christopher Ferris
2fc0717977
Add new optimized strlen for arm.
...
This optimized version is primarily targeted at cortex-a15.
Tested on all nexus devices using the system/extras/libc_test strlen test.
Tested alignments from 1 to 32 that are powers of 2.
Tested that strlen does not cross page boundaries at all alignments.
Speed improvements listed below:
cortex-a15
- Sizes >= 32 bytes, ~75% improvement.
- Sizes >= 1024 bytes, ~250% improvement.
cortex-a9
- Sizes >= 32 bytes, ~75% improvement.
- Sizes >= 1024 bytes, ~85% improvement.
krait
- Sizes >= 32 bytes, ~95% improvement.
- Sizes >= 1024 bytes, ~160% improvement.
Change-Id: I361b1a36ed89ab991f2a8f0abbf0d7416d39c8f5
2013-07-15 12:37:51 -07:00
Elliott Hughes
fc2ada9741
am f384be3b
: am 59ed029b
: Merge "Upgrade to tzcode2013d."
...
* commit 'f384be3b5c2062e7ef4e7449b466bf2f24f7bcc8':
Upgrade to tzcode2013d.
2013-07-15 10:15:45 -07:00
Elliott Hughes
f384be3b5c
am 59ed029b
: Merge "Upgrade to tzcode2013d."
...
* commit '59ed029b286a1564f635377296e4f088e0fd2afa':
Upgrade to tzcode2013d.
2013-07-15 10:11:04 -07:00
Elliott Hughes
59ed029b28
Merge "Upgrade to tzcode2013d."
2013-07-15 17:08:41 +00:00
Elliott Hughes
ce4783ce76
Upgrade to tzcode2013d.
...
Well, kinda... localtime.c still contains a bunch of Android-specific
hacks, as does strftime.c. But the other files are now exactly the same
as upstream.
This catches up with several years of bug fixes, and fixes most of the
compiler warnings that were in this code. (Just two remain.)
Bug: 1744909
Change-Id: I2ddfecb6fd408c847397c17afb0fff859e27feef
2013-07-12 17:52:44 -07:00
Elliott Hughes
d3522051ce
am 7e56f462
: am 3db1f359
: Merge "Add a trivial gmtime(3) test."
...
* commit '7e56f462ad19791d7b270e297fc994d18df43252':
Add a trivial gmtime(3) test.
2013-07-12 14:35:19 -07:00
Elliott Hughes
7e56f462ad
am 3db1f359
: Merge "Add a trivial gmtime(3) test."
...
* commit '3db1f359e9f218f5f73a7a9f4d80e4be362a526e':
Add a trivial gmtime(3) test.
2013-07-12 14:28:40 -07:00
Elliott Hughes
3db1f359e9
Merge "Add a trivial gmtime(3) test."
2013-07-12 21:23:48 +00:00
Elliott Hughes
ee178bfb79
Add a trivial gmtime(3) test.
...
Change-Id: I849f200a455cd6971646fa45766ab22ba19fb866
2013-07-12 11:25:20 -07:00
Elliott Hughes
47c7e33ccb
am ff20b911
: am 8a363692
: Merge "Add TCP_INFO state enum values."
...
* commit 'ff20b9110659e67433ce641a6224cdc9ccc01301':
Add TCP_INFO state enum values.
2013-07-11 18:57:42 -07:00
Nick Kralevich
4fa5d6a5db
am ef49e99d
: am d30877ae
: Merge "syslog.h: add __printflike to syslog functions"
...
* commit 'ef49e99d92597a4e9fddbba0e1e3feddc06fee53':
syslog.h: add __printflike to syslog functions
2013-07-11 18:57:41 -07:00
Elliott Hughes
ff20b91106
am 8a363692
: Merge "Add TCP_INFO state enum values."
...
* commit '8a363692be45ed1b36e1f1f21707b6f35f5519c8':
Add TCP_INFO state enum values.
2013-07-11 18:52:22 -07:00
Nick Kralevich
ef49e99d92
am d30877ae
: Merge "syslog.h: add __printflike to syslog functions"
...
* commit 'd30877ae28f3c308edf142c091b3a8acc4467c6d':
syslog.h: add __printflike to syslog functions
2013-07-11 18:52:01 -07:00
Elliott Hughes
8a363692be
Merge "Add TCP_INFO state enum values."
2013-07-11 23:58:48 +00:00