android_system_core/libutils
Shai Barack e0ec952bae Avoid unnecessary allocation in VectorImpl
When shrinking a vector, we might reallocate the buffer
if the current capacity is too large, or we might reuse
the existing buffer.
Never reallocate the buffer if the current capacity is
already at the minimum (i.e. we won't actually shrink by
reallocating).

Bug: 370649413
Change-Id: I665037ed2a8621a82f2b58bcc834934de0761f34
Flag: EXEMPT bugfix
Tested: see b/370649413#comment6
2024-10-08 08:36:03 +00:00
..
abi-dumps Add getFdStateDebug to access Looper's callbacks 2024-09-17 17:40:11 +00:00
binder Avoid unnecessary allocation in VectorImpl 2024-10-08 08:36:03 +00:00
include/utils Add getFdStateDebug to access Looper's callbacks 2024-09-17 17:40:11 +00:00
Android.bp libutils: Remove unused dependency on libprocessgroup_headers 2024-06-24 20:18:55 +00:00
BitSet_fuzz.cpp Add fuzzers for libutils classes 2020-05-15 10:30:16 -07:00
BitSet_test.cpp
CallStack.cpp Enable weak functions properly. 2024-03-27 17:49:51 -07:00
CallStack_fuzz.cpp Add second batch of fuzzers for libutils 2020-08-07 15:36:39 -07:00
CallStack_test.cpp Insulate against log spam. 2024-07-01 13:21:36 +00:00
CleanSpec.mk
FileMap.cpp libutils: use log/log.h internally 2023-10-07 00:29:44 +00:00
FileMap_fuzz.cpp Add fuzzers for libutils classes 2020-05-15 10:30:16 -07:00
FileMap_test.cpp Fail explicitly on length overflow. 2020-05-28 18:38:18 -07:00
JenkinsHash.cpp
LightRefBase.cpp libutils: LightRefBase: incStrongRequireStrong 2021-05-04 21:42:26 +00:00
Looper.cpp Add getFdStateDebug to access Looper's callbacks 2024-09-17 17:40:11 +00:00
Looper_fuzz.cpp Add second batch of fuzzers for libutils 2020-08-07 15:36:39 -07:00
Looper_test.cpp Add getFdStateDebug to access Looper's callbacks 2024-09-17 17:40:11 +00:00
Looper_test_pipe.h Add second batch of fuzzers for libutils 2020-08-07 15:36:39 -07:00
LruCache_fuzz.cpp Add second batch of fuzzers for libutils 2020-08-07 15:36:39 -07:00
LruCache_test.cpp Fix LruCache, allow std:string caching 2023-06-15 00:37:52 +00:00
misc.cpp libutils: use log/log.h internally 2023-10-07 00:29:44 +00:00
MODULE_LICENSE_APACHE2
Mutex_test.cpp libutils: Fix thread safety annotations in Mutex 2019-03-29 12:21:57 -07:00
NativeHandle.cpp Reland^2 "libutils: disable implicit ref base construction" 2021-04-27 00:09:23 +00:00
NOTICE
OWNERS
Printer.cpp libutils: use log/log.h internally 2023-10-07 00:29:44 +00:00
Printer_fuzz.cpp Add second batch of fuzzers for libutils 2020-08-07 15:36:39 -07:00
ProcessCallStack.cpp Migrate String8/16 from .string() to c_str() 2023-08-11 19:53:20 +00:00
ProcessCallStack_fuzz.cpp Fix the missing std 2023-03-01 23:30:29 +00:00
Singleton_test.cpp
Singleton_test.h
Singleton_test1.cpp
Singleton_test2.cpp
StopWatch.cpp We don't need __STDC_FORMAT_MACROS any more. 2024-02-07 18:27:47 +00:00
SystemClock.cpp libutils: use log/log.h internally 2023-10-07 00:29:44 +00:00
SystemClock_test.cpp Add uptimeNanos to SystemClock 2020-08-07 14:36:07 -07:00
TEST_MAPPING libutils: split out libutils_binder 2023-10-09 21:56:15 +00:00
Threads.cpp Remove unnecessary getpriority() system call 2024-09-26 12:59:37 -07:00
Timers.cpp libutils: use log/log.h internally 2023-10-07 00:29:44 +00:00
Timers_test.cpp Increase coverage of Timers to 100%. 2021-05-18 13:10:50 -07:00
Tokenizer.cpp libutils: use log/log.h internally 2023-10-07 00:29:44 +00:00
Trace.cpp