Guang Zhu
6f08b8659a
am 2cf5a6f6
: Merge "Revert "Improve stack overflow diagnostics.""
...
* commit '2cf5a6f6627549842c0c840ff3615ae942a90ea3':
Revert "Improve stack overflow diagnostics."
2013-07-16 20:18:57 -07:00
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
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
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
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
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
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
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
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
Elliott Hughes
0dff43cab4
Add TCP_INFO state enum values.
...
Bug: https://code.google.com/p/android/issues/detail?id=38881
Change-Id: Ie22816c666474e6441e0ec3afd2a6eb04d64a673
2013-07-11 16:21:32 -07:00
Nick Kralevich
d30877ae28
Merge "syslog.h: add __printflike to syslog functions"
2013-07-11 15:32:49 +00:00
Nick Kralevich
6b1dd1797e
syslog.h: add __printflike to syslog functions
...
Allow the compiler to detect formating bugs.
Change-Id: I6a4af6cae59dc3adf14b075431a41885213a649a
2013-07-10 07:37:11 -07:00
Elliott Hughes
09f561b38b
am b7f49237
: Merge "Fix MIPS build."
...
* commit 'b7f492375291306065472b67011eebb324de1022':
Fix MIPS build.
2013-07-09 14:21:50 -07:00
Elliott Hughes
b7f4923752
Merge "Fix MIPS build."
2013-07-09 21:19:15 +00:00
Elliott Hughes
6184c1feaa
Fix MIPS build.
...
Change-Id: I583b1794dbc12fcded8c4f57f367593a742ab33f
2013-07-09 14:18:36 -07:00
Elliott Hughes
731f7c2d0e
am 9d476716
: Merge "Add <sys/statvfs.h>."
...
* commit '9d476716c2bd7bc5a018a71e121257c35e965058':
Add <sys/statvfs.h>.
2013-07-09 13:44:57 -07:00
Elliott Hughes
9d476716c2
Merge "Add <sys/statvfs.h>."
2013-07-09 20:43:13 +00:00
Elliott Hughes
06040fd75c
Add <sys/statvfs.h>.
...
Bug: 2512019
Change-Id: I6e7fd3fa281977cc4bc270481a95416b5b2dc351
2013-07-09 13:25:03 -07:00
Elliott Hughes
f3f72e7f27
am 4fc8a0c1
: Merge "Remove <netinet/icmp6.h> ni_* macros."
...
* commit '4fc8a0c1165537b693c900ac3e2c61470bd7e484':
Remove <netinet/icmp6.h> ni_* macros.
2013-07-08 15:09:07 -07:00
Elliott Hughes
4fc8a0c116
Merge "Remove <netinet/icmp6.h> ni_* macros."
2013-07-08 22:08:12 +00:00
Elliott Hughes
c2cd33efc4
Remove <netinet/icmp6.h> ni_* macros.
...
glibc doesn't have these, and they prevent ping from building out of
the box because it assumes it can define them.
Bug: 9671560
Change-Id: I815f2a9c4fd96a0ea2952eb5a71ddf51e0763660
2013-07-08 15:07:41 -07:00
Elliott Hughes
74b06f8ddc
am ff145277
: Merge "Upgrade to tzdata2013d."
...
* commit 'ff145277da9b7fe3d48a27839fc1d6f2ed11604b':
Upgrade to tzdata2013d.
2013-07-08 14:55:41 -07:00
Elliott Hughes
ff145277da
Merge "Upgrade to tzdata2013d."
2013-07-08 21:53:02 +00:00