Commit graph

40024 commits

Author SHA1 Message Date
Treehugger Robot
78731216bd Merge "Document how to use tzalloc()/tzfree() with std::unique_ptr." am: 8995672880 am: 5aeec3b87d am: d301fe1a1f am: 7ea8a9ea53
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2636324

Change-Id: Idfe21dc4ce0e4e233e56352d7503b7de1a6ffa74
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-23 22:33:11 +00:00
Treehugger Robot
7ea8a9ea53 Merge "Document how to use tzalloc()/tzfree() with std::unique_ptr." am: 8995672880 am: 5aeec3b87d am: d301fe1a1f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2636324

Change-Id: I45f25ed368998e0f8dba772f0d6c29fc167b07e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-23 21:40:11 +00:00
Treehugger Robot
d301fe1a1f Merge "Document how to use tzalloc()/tzfree() with std::unique_ptr." am: 8995672880 am: 5aeec3b87d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2636324

Change-Id: Ia51fcd84d82e05f87dd6675b5e3420a15a897e88
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-23 20:06:22 +00:00
Treehugger Robot
5aeec3b87d Merge "Document how to use tzalloc()/tzfree() with std::unique_ptr." am: 8995672880
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2636324

Change-Id: Ica3a2a60305fe148f2bc915d0dcaec18e757800f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-23 19:20:53 +00:00
Treehugger Robot
8995672880 Merge "Document how to use tzalloc()/tzfree() with std::unique_ptr." 2023-06-23 18:06:01 +00:00
Florian Mayer
3002d3f837 Merge "[HWASan] add comment to explain why we can use __has_feature" am: 26e0e00279 am: f04c163217 am: 8d60940a21 am: 28f93db5a7
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2636328

Change-Id: I7b4ef2fec7b4a16867214592bb5c1770205c2c66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-23 04:55:36 +00:00
Florian Mayer
28f93db5a7 Merge "[HWASan] add comment to explain why we can use __has_feature" am: 26e0e00279 am: f04c163217 am: 8d60940a21
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2636328

Change-Id: Iaf1938cc09d60b775134d703b7d9324fcd8aa07f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-23 03:50:10 +00:00
Florian Mayer
8d60940a21 Merge "[HWASan] add comment to explain why we can use __has_feature" am: 26e0e00279 am: f04c163217
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2636328

Change-Id: If0921232cb99740c9a293df75eadce4ef488f87b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-23 03:01:36 +00:00
Florian Mayer
f04c163217 Merge "[HWASan] add comment to explain why we can use __has_feature" am: 26e0e00279
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2636328

Change-Id: Ifb1c7c24bda7f133b2746da91e8609f5f60eb2f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-23 02:24:06 +00:00
Florian Mayer
26e0e00279 Merge "[HWASan] add comment to explain why we can use __has_feature" 2023-06-23 01:16:22 +00:00
Elliott Hughes
16ad0c41f2 Merge "Fix tzalloc(nullptr) and add a test." am: 0e437c00e0 am: 8e1ea43c79 am: 667d82ead1 am: 027f108b2e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2630990

Change-Id: I8503291d4903d12350895cbd46b13f61464bd73f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-23 00:55:45 +00:00
Elliott Hughes
027f108b2e Merge "Fix tzalloc(nullptr) and add a test." am: 0e437c00e0 am: 8e1ea43c79 am: 667d82ead1
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2630990

Change-Id: I2312d32633d3dbb6f2bc54d6b734c489a7ab5904
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-22 23:45:01 +00:00
Elliott Hughes
667d82ead1 Merge "Fix tzalloc(nullptr) and add a test." am: 0e437c00e0 am: 8e1ea43c79
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2630990

Change-Id: Ic4238117ec33b80531774799f822fc4f0c00f7b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-22 22:58:00 +00:00
Florian Mayer
02108ce6b1 [HWASan] add comment to explain why we can use __has_feature
Bug: 276930343
Change-Id: I0b3e152269a147f67cae3c534be92ee169fe393b
2023-06-22 14:56:18 -07:00
Elliott Hughes
8e1ea43c79 Merge "Fix tzalloc(nullptr) and add a test." am: 0e437c00e0
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2630990

Change-Id: Ia318bfe6774da8ecdb242ff50dcb271e6cfa3c5f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-22 21:54:58 +00:00
Elliott Hughes
5ea305b10e Document how to use tzalloc()/tzfree() with std::unique_ptr.
The hidden pointer makes this trickier than the usual incantation, so
leave some copy & paste lying around for anyone trying to work this out.

Test: treehugger
Change-Id: I26e94bf7a74ce3e43de587edc52ab63e36d1d86b
2023-06-22 20:54:12 +00:00
Elliott Hughes
0e437c00e0 Merge "Fix tzalloc(nullptr) and add a test." 2023-06-22 20:36:12 +00:00
Elliott Hughes
31fc69f67f Fix tzalloc(nullptr) and add a test.
This works (by reading /etc/localtime) on NetBSD, but not on Android
since we have no such file. Fix that by using our equivalent system
property instead.

Also s/time zone/timezone/ in documentation and comments. We've always
been inconsistent about this (as is upstream in code comments and
documentation) but it seems especially odd now we expose a _type_ that
spells it "timezone" to talk of "time zone" even as we're describing
that type and its associated functions.

Bug: https://github.com/chronotope/chrono/issues/499
Test: treehugger
Change-Id: I142995a3ab4deff1073a0aa9e63ce8eac850b93d
2023-06-22 09:51:01 -07:00
Treehugger Robot
5d49ebbf00 Merge "Remove __INTRODUCED_IN_NO_GUARD_FOR_NDK(21)." am: 833ad6ee51 am: a43db276fd am: 36b4ebdecf am: 75f70e7d15
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2631630

Change-Id: I98a5c8b7e92f99d50994445c2d35d3a1f373171c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-21 18:57:50 +00:00
Treehugger Robot
75f70e7d15 Merge "Remove __INTRODUCED_IN_NO_GUARD_FOR_NDK(21)." am: 833ad6ee51 am: a43db276fd am: 36b4ebdecf
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2631630

Change-Id: I89679e7152f197f9d0961eee352189bc7d1d1c50
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-21 18:13:04 +00:00
Treehugger Robot
36b4ebdecf Merge "Remove __INTRODUCED_IN_NO_GUARD_FOR_NDK(21)." am: 833ad6ee51 am: a43db276fd
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2631630

Change-Id: Idae9768625f9a28d59ac09dc6a142a9ab7a8e41d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-21 17:25:33 +00:00
Treehugger Robot
a43db276fd Merge "Remove __INTRODUCED_IN_NO_GUARD_FOR_NDK(21)." am: 833ad6ee51
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2631630

Change-Id: Iba731871b587a6d60c17413e548a7be6c29c4d48
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-21 16:48:18 +00:00
Treehugger Robot
833ad6ee51 Merge "Remove __INTRODUCED_IN_NO_GUARD_FOR_NDK(21)." 2023-06-21 16:14:59 +00:00
Elliott Hughes
0b0cca5946 Merge "Remove the always-true __INTRODUCED_IN() annotations." am: fee0b45480 am: 7fc60f8d93 am: 7b4b75bb9c am: 4c784ccfd6
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2627536

Change-Id: Ic39900ba907ea8de1919d1e30927b9c42fc19686
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 23:30:33 +00:00
Christopher Ferris
8d1a8a8f26 Merge "Add new mallopt M_LOG_STATS." am: 90e2827762 am: 29bedad140 am: 1e364e01b8 am: 0ceeea5a49
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2585453

Change-Id: I2630cc15234a495504fca63104ba598ccdc7e246
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 23:30:14 +00:00
Elliott Hughes
4c784ccfd6 Merge "Remove the always-true __INTRODUCED_IN() annotations." am: fee0b45480 am: 7fc60f8d93 am: 7b4b75bb9c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2627536

Change-Id: Ib664b506e7a747716e2682e630f0686bcfa197f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 22:43:19 +00:00
Christopher Ferris
0ceeea5a49 Merge "Add new mallopt M_LOG_STATS." am: 90e2827762 am: 29bedad140 am: 1e364e01b8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2585453

Change-Id: Ia79a45c3a23c008e0c22cfb7e2c5e4ee000aa6f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 22:42:53 +00:00
Elliott Hughes
7b4b75bb9c Merge "Remove the always-true __INTRODUCED_IN() annotations." am: fee0b45480 am: 7fc60f8d93
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2627536

Change-Id: I4c7fece88031fea3214f2786640922d59f29327c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 21:53:06 +00:00
Christopher Ferris
1e364e01b8 Merge "Add new mallopt M_LOG_STATS." am: 90e2827762 am: 29bedad140
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2585453

Change-Id: I9b89537c052534561879519db78032cd7cc4bacc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 21:52:45 +00:00
Elliott Hughes
2bdeff449b Remove __INTRODUCED_IN_NO_GUARD_FOR_NDK(21).
There are still some instances of
`__INTRODUCED_IN_NO_GUARD_FOR_NDK(26)` which we can get rid of after the
libc++ update, but we can get rid of the API level 21 instances right
now, since the NDK no longer supports older API levels anyway.

Test: treehugger
Change-Id: I243957f15b68d3d89ec8e15e2aefc45e8c294c31
2023-06-20 14:32:58 -07:00
Elliott Hughes
7fc60f8d93 Merge "Remove the always-true __INTRODUCED_IN() annotations." am: fee0b45480
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2627536

Change-Id: I68ab2f603c1d0a8fab9b145d8cdbc653eaed5f5e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 21:13:09 +00:00
Christopher Ferris
29bedad140 Merge "Add new mallopt M_LOG_STATS." am: 90e2827762
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2585453

Change-Id: I86bd0363a9cc43bb6b0de32b95e1b68945c1d212
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 21:12:47 +00:00
Elliott Hughes
fee0b45480 Merge "Remove the always-true __INTRODUCED_IN() annotations." 2023-06-20 20:47:49 +00:00
Christopher Ferris
90e2827762 Merge "Add new mallopt M_LOG_STATS." 2023-06-20 20:35:53 +00:00
Elliott Hughes
91c9d89c81 Merge "<arpa/nameser.h>: rationalize __INTRODUCED_IN." am: e405c90f19 am: fbca3365f9 am: 50fa6162f2 am: 5c5e6d1ba1
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2626138

Change-Id: Ic2b58d24b8de422ae937115a67d8368df4dd9042
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 20:02:20 +00:00
Elliott Hughes
547f202cf5 Merge "_FILE_OFFSET_BITS is spelled with one underscore." am: 0749b7bcbf am: 1e0a7c3690 am: d570e3f8be am: 34e8dfd85a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2627534

Change-Id: Ib2ca16c98aacc4bcc1be4a5b6786475de087d919
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 20:02:09 +00:00
Colin Cross
87745b6be2 Merge "Remove symbols that don't exist in musl from linker benchmark" am: 0ba161b6af am: 2c071df366 am: 9da60c4bce am: 7b6548785c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2626244

Change-Id: I74c09a72731ca8f1809bd12051e423ed29ad4105
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 20:00:48 +00:00
Elliott Hughes
5c5e6d1ba1 Merge "<arpa/nameser.h>: rationalize __INTRODUCED_IN." am: e405c90f19 am: fbca3365f9 am: 50fa6162f2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2626138

Change-Id: I06f7688262f18e5c52385349dd0cd4053f31359a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 18:36:12 +00:00
Elliott Hughes
34e8dfd85a Merge "_FILE_OFFSET_BITS is spelled with one underscore." am: 0749b7bcbf am: 1e0a7c3690 am: d570e3f8be
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2627534

Change-Id: Ibc1d2a65b0f889fcb7d62c7f65fd64a451bf3a3f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 18:35:48 +00:00
Colin Cross
7b6548785c Merge "Remove symbols that don't exist in musl from linker benchmark" am: 0ba161b6af am: 2c071df366 am: 9da60c4bce
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2626244

Change-Id: Id99682172cbe66f7cc54de48c415d907d74bdf0b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 18:35:16 +00:00
Elliott Hughes
50fa6162f2 Merge "<arpa/nameser.h>: rationalize __INTRODUCED_IN." am: e405c90f19 am: fbca3365f9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2626138

Change-Id: I89a3407a3f58c4b5af6913f7b39cd832776dd45c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 17:52:48 +00:00
Elliott Hughes
d570e3f8be Merge "_FILE_OFFSET_BITS is spelled with one underscore." am: 0749b7bcbf am: 1e0a7c3690
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2627534

Change-Id: Ieb38cb181ab712a2d985fe04c5abbaee083ac0ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 17:52:37 +00:00
Colin Cross
9da60c4bce Merge "Remove symbols that don't exist in musl from linker benchmark" am: 0ba161b6af am: 2c071df366
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2626244

Change-Id: Idd6a098733e0ec8bdc357d141f534b91ba1dcdba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 17:52:10 +00:00
Elliott Hughes
fbca3365f9 Merge "<arpa/nameser.h>: rationalize __INTRODUCED_IN." am: e405c90f19
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2626138

Change-Id: Iabe705fb4061ab87b0b461d8741d32bc668a5c4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 17:10:08 +00:00
Elliott Hughes
1e0a7c3690 Merge "_FILE_OFFSET_BITS is spelled with one underscore." am: 0749b7bcbf
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2627534

Change-Id: I40bd2bffa6d919eb19662af9c5cb3701d8b27c0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 17:09:54 +00:00
Colin Cross
2c071df366 Merge "Remove symbols that don't exist in musl from linker benchmark" am: 0ba161b6af
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2626244

Change-Id: I053db17121ae35c64694abab7b95b4837442ae7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 17:09:23 +00:00
Elliott Hughes
e405c90f19 Merge "<arpa/nameser.h>: rationalize __INTRODUCED_IN." 2023-06-20 16:56:13 +00:00
Elliott Hughes
0749b7bcbf Merge "_FILE_OFFSET_BITS is spelled with one underscore." 2023-06-20 16:55:24 +00:00
Colin Cross
0ba161b6af Merge "Remove symbols that don't exist in musl from linker benchmark" 2023-06-20 16:28:05 +00:00
Christopher Ferris
e9a7b81d4a Add new mallopt M_LOG_STATS.
This new mallopt cause statistics of the allocator to be printed in
the log.

Add a stats print for jemalloc.

This is designed to be used as part of a dumpsys meminfo --XXXX
option so that it's easier to get information about apps that
have an unusual memory footprint.

Test: Unit tests pass.
Test: Ran on a device using jemalloc and verified log data.
Test: Ran on a device using scudo and verified log data.
Change-Id: I6fa44ce619c064b2596fbbb478c231994af94f4c
2023-06-17 00:00:02 +00:00