Commit Graph

7736 Commits

Author SHA1 Message Date
Elliott Hughes
31d0398de6 Hide _exit_with_stack_teardown.
Bug: 11156955
Change-Id: Ida3020343c9975177dc324918cd1f10c455eb173
2014-05-16 16:17:44 -07:00
Elliott Hughes
30f89b6f32 am aafa3d0e: Merge "Hide various debug malloc implementation details."
* commit 'aafa3d0e4623f3c57c7abe66f6afa726b9cde348':
  Hide various debug malloc implementation details.
2014-05-16 23:07:43 +00:00
Elliott Hughes
aafa3d0e46 Merge "Hide various debug malloc implementation details." 2014-05-16 23:04:02 +00:00
Elliott Hughes
48ecb3a64c am 58b52fb1: Merge "Remove dead code."
* commit '58b52fb133ee4f8a82d3da5c439ca7b9d2caa2bf':
  Remove dead code.
2014-05-16 22:54:31 +00:00
Elliott Hughes
67e34f3074 am e2d5746a: Merge "Hide __signalfd4, used to implement signalfd(3)."
* commit 'e2d5746a8ae9c7dd957b46286af42e7ff412a68b':
  Hide __signalfd4, used to implement signalfd(3).
2014-05-16 22:54:30 +00:00
Elliott Hughes
58b52fb133 Merge "Remove dead code." 2014-05-16 22:52:41 +00:00
Elliott Hughes
e2d5746a8a Merge "Hide __signalfd4, used to implement signalfd(3)." 2014-05-16 22:51:29 +00:00
Elliott Hughes
7222b1b594 Hide __signalfd4, used to implement signalfd(3).
Bug: 11156955
Change-Id: I50842279cb5b32ec8bd45193435574e415cd806e
2014-05-16 15:47:29 -07:00
Jingwei Zhang
568d64dc62 Accuracy tests for libm
This patch adds tests for 14 math functions to address coverage
issue of math functions discussed in:
https://android-review.googlesource.com/#/c/49653/

Change-Id: Ia7200b93d4f5c7928a3fb827ca6932226384a116
Signed-off-by: Jingwei Zhang <jingwei.zhang@intel.com>
Signed-off-by: Yong Yao <yong.yao@intel.com>
2014-05-16 15:31:55 -07:00
Elliott Hughes
6b7987cca3 Hide various debug malloc implementation details.
Bug: 11156955
Change-Id: Ib9d69d49ecec8eff4f12392bde94d843ae53d442
2014-05-16 15:23:54 -07:00
Elliott Hughes
bd27a8b4af Remove dead code.
This doesn't exist upstream.

Really we should upgrade to the current arc4random, but that's a bigger
job for another day.

Bug: 11156955
Change-Id: If6cd41b79139c64c17e81999e246cf4f00882ce8
2014-05-16 14:43:00 -07:00
Elliott Hughes
7177d1d6bb am d9b06298: Merge "Hide __futex_wake_ex and __futex_wait_ex."
* commit 'd9b0629868fe4a2ce2e144b826dd869b6d808834':
  Hide __futex_wake_ex and __futex_wait_ex.
2014-05-16 19:59:57 +00:00
Elliott Hughes
d9b0629868 Merge "Hide __futex_wake_ex and __futex_wait_ex." 2014-05-16 19:56:52 +00:00
Elliott Hughes
3973de9616 Hide __futex_wake_ex and __futex_wait_ex.
Also remove some cruft that isn't needed now we're using uapi headers.

Bug: 11156955
Change-Id: I936b9c5b01d8bd6bfb2e5bc0e3f86cd86739cc04
2014-05-16 12:53:31 -07:00
Elliott Hughes
9700b6ca97 am 22ade3c3: Merge "With libstdc++ in libc, __futex_wait and __futex_wake can be hidden."
* commit '22ade3c30d83407d19cd3a2b49ead66e6c5e3cf0':
  With libstdc++ in libc, __futex_wait and __futex_wake can be hidden.
2014-05-16 18:03:32 +00:00
Elliott Hughes
22ade3c30d Merge "With libstdc++ in libc, __futex_wait and __futex_wake can be hidden." 2014-05-16 18:00:51 +00:00
Elliott Hughes
879180c3ac With libstdc++ in libc, __futex_wait and __futex_wake can be hidden.
This patch is conservative and just touches LP64. (But not because we
know of anyone using this in LP32.)

Bug: 13367666
Change-Id: Id45652debc4534584479b16b501401f6f23acea9
2014-05-16 10:58:59 -07:00
Elliott Hughes
80cff53e13 am 2a602272: Merge "Move libstdc++ into libc."
* commit '2a60227223da700e4ae1b5436f61aea99fc7a5aa':
  Move libstdc++ into libc.
2014-05-16 16:39:45 +00:00
Elliott Hughes
2a60227223 Merge "Move libstdc++ into libc." 2014-05-16 16:37:20 +00:00
Christopher Ferris
0d9c78afb3 am 5265ad62: Merge "Fix comment typo."
* commit '5265ad6273cd7c61d096ebe0e29e493915e7c63e':
  Fix comment typo.
2014-05-16 02:16:17 +00:00
Christopher Ferris
5265ad6273 Merge "Fix comment typo." 2014-05-16 02:14:07 +00:00
Christopher Ferris
9029d2f638 Fix comment typo.
Change-Id: I1909f724826b531daf14fec4853e40d578fc0f59
2014-05-15 19:11:58 -07:00
Dmitriy Ivanov
7f3d6b69ce am 0a5b0166: Merge "Register _cleanup function with atexit"
* commit '0a5b01662316a06be68f3250c1b678c5ef17cc40':
  Register _cleanup function with atexit
2014-05-16 00:40:18 +00:00
Dmitriy Ivanov
0a5b016623 Merge "Register _cleanup function with atexit" 2014-05-16 00:37:54 +00:00
Elliott Hughes
b9fdad7715 am ec81b4a3: Merge "Scrub uapi headers slightly harder."
* commit 'ec81b4a380e1bbbaf6e582cd28476a245694abe7':
  Scrub uapi headers slightly harder.
2014-05-15 23:05:33 +00:00
Elliott Hughes
ec81b4a380 Merge "Scrub uapi headers slightly harder." 2014-05-15 23:03:25 +00:00
Dmitriy Ivanov
b17cc8801a am 86bc436e: Merge "Improve detection of already loaded libraries"
* commit '86bc436e20621656cd76b653ae3396c6584259e5':
  Improve detection of already loaded libraries
2014-05-15 21:59:05 +00:00
Dmitriy Ivanov
86bc436e20 Merge "Improve detection of already loaded libraries" 2014-05-15 21:55:24 +00:00
Dmitriy Ivanov
623b0d05bd Register _cleanup function with atexit
* Register cleanup function with atexit
   instead of calling it explicitly on
   exit()
 * abort() no longer calls _cleanup:
   Flushing stdio buffers on abort is no
   longer required by POSIX.
 * dlmalloc no longer need to reset cleanup
   (see above)
 * Upstream findfp.c makebuf.c setvbuf.cexit.c
   to openbsd versions.

Bug: 14415367
Change-Id: I277058852485a9d3dbb13e5c232db5f9948d78ac
2014-05-15 13:05:21 -07:00
Elliott Hughes
8ed7a23309 Scrub uapi headers slightly harder.
There's no point having always-false tests. It just makes the headers
harder to read.

Bug: 11560081
Change-Id: I6187755e1514ca9ff5642b3c1b0489f22edddaf5
2014-05-15 12:01:11 -07:00
Calin Juravle
e5205d35ef am 089c7c92: Merge "Document a known test issue in stdio_test.cpp."
* commit '089c7c921786ff6255526feec96552fc16ada7f4':
  Document a known test issue in stdio_test.cpp.
2014-05-15 09:38:08 +00:00
Calin Juravle
83c94c6d60 am 98efae4c: Merge "Fill in missing bits in x86(_64) ucontext_t"
* commit '98efae4c09ba05c5b25c95ea4a39b0711e6f8b98':
  Fill in missing bits in x86(_64) ucontext_t
2014-05-15 09:38:08 +00:00
Calin Juravle
089c7c9217 Merge "Document a known test issue in stdio_test.cpp." 2014-05-15 09:36:22 +00:00
Calin Juravle
98efae4c09 Merge "Fill in missing bits in x86(_64) ucontext_t" 2014-05-15 09:36:01 +00:00
Calin Juravle
9b95ea936a Document a known test issue in stdio_test.cpp.
Bug: 13077905
Change-Id: Iab7fc7be0737c732e26cc07ecd7884b3087b51bb
2014-05-15 10:34:06 +01:00
Calin Juravle
a6ab968ca0 Fill in missing bits in x86(_64) ucontext_t
Bug: 12828904
Bug: 12875898
Change-Id: I0ec0dfe16af80bfb3153f3c3b1b3d180eff30f39
2014-05-15 10:34:06 +01:00
Andrew Hsieh
c67e917abc am d0a89921: Merge "Rename user_i387_struct -> user_fpregs_struct in sys/ucontext.h"
* commit 'd0a899215b27254661ef9af90aea31343ffc4367':
  Rename  user_i387_struct -> user_fpregs_struct in sys/ucontext.h
2014-05-15 01:54:28 +00:00
Andrew Hsieh
d0a899215b Merge "Rename user_i387_struct -> user_fpregs_struct in sys/ucontext.h" 2014-05-15 01:52:22 +00:00
Elliott Hughes
15b641a267 Move libstdc++ into libc.
The Android build system always links against libstdc++.so anyway. Having
operator new and operator delete in a separate library means we can't use
constructors and destructors on heap-allocated objects inside the C library,
which is quite an unfortunate limitation.

This will be cheaper too; on LP64 we can stop linking against the [now empty]
libstdc++.so giving the dynamic linker one less library to worry about for
every process.

There's precedent too --- we already have no libpthread or librt.

For now I'm leaving the include files where they are, and I'm generating a
dummy libstdc++.so and libstdc++.a. We can come back and clean that up later
if all goes well.

Bug: 13367666
Change-Id: I6f3e27ea7c30d03d6394965d0400c9dc87fa83db
2014-05-14 18:18:55 -07:00
Andrew Hsieh
9b5b40b4df Rename user_i387_struct -> user_fpregs_struct in sys/ucontext.h
See 93e1907ae1

Change-Id: Icb207f4e17cfffdd6d37500656434adf1cc34427
2014-05-15 09:11:11 +08:00
Christopher Ferris
493cfc338b am 1596b884: Merge "Increase minimum thread size for 64 bit."
* commit '1596b884648642ad09f87d2a0dc4db47f037b6d7':
  Increase minimum thread size for 64 bit.
2014-05-15 01:09:29 +00:00
Christopher Ferris
1596b88464 Merge "Increase minimum thread size for 64 bit." 2014-05-15 01:06:25 +00:00
Christopher Ferris
ea5248ee1b Increase minimum thread size for 64 bit.
Bug: 14468519
Change-Id: I642a5515acf5fbed46e77e176f6b5dd3b7c7bd45
2014-05-14 18:02:11 -07:00
Elliott Hughes
4cbb778beb am f280130f: Merge "Remove the unused __system_property_wait."
* commit 'f280130f3fd6719cee3a4cb42155dcef44665ea0':
  Remove the unused __system_property_wait.
2014-05-15 00:22:12 +00:00
Elliott Hughes
f280130f3f Merge "Remove the unused __system_property_wait." 2014-05-15 00:20:00 +00:00
Christopher Ferris
cd5b792039 am bc7f8a79: Merge "Do not keep struct state on the stack."
* commit 'bc7f8a791b4a510914fd5cac713415acb80fb806':
  Do not keep struct state on the stack.
2014-05-15 00:05:17 +00:00
Elliott Hughes
3e786987b5 Remove the unused __system_property_wait.
This isn't declared in any header file.

Bug: 14970171
Change-Id: Ib9fce61343dfb6b6ccd7e1430e1a6e34e4e869df
2014-05-14 17:02:09 -07:00
Christopher Ferris
bc7f8a791b Merge "Do not keep struct state on the stack." 2014-05-15 00:00:50 +00:00
Elliott Hughes
f015757fc6 am 1e07463f: Merge "Add tests for fprintf behavior when the underlying fd is bad."
* commit '1e07463fcc92e515f7f57e9faa94f31e02cd07cb':
  Add tests for fprintf behavior when the underlying fd is bad.
2014-05-14 23:51:56 +00:00
Christopher Ferris
8a8b0c9bfc Do not keep struct state on the stack.
This structure is huge (~18000 bytes on arm64) and can blow out
the stack very easily.
Modify the code to allocate these structures instead of leaving them
on the stack.

Bug: 14468519
Change-Id: I774f71235d896d32a14ab1af06f95ca9ef819f52
2014-05-14 16:50:41 -07:00