android_system_core/libutils/binder
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
..
include/utils Fix libutils_binder_sdk build warnings 2024-05-28 09:51:20 -07:00
Android.bp Fix libutils_binder_sdk build warnings 2024-05-28 09:51:20 -07:00
Errors.cpp libutils: split out libutils_binder 2023-10-09 21:56:15 +00:00
Errors_test.cpp libutils: split out libutils_binder 2023-10-09 21:56:15 +00:00
FuzzFormatTypes.h libutils: split out libutils_binder 2023-10-09 21:56:15 +00:00
RefBase.cpp Allow disabling callstack 2023-10-27 10:48:43 -07:00
RefBase_fuzz.cpp libutils: split out libutils_binder 2023-10-09 21:56:15 +00:00
RefBase_test.cpp RefBase: update sp and wp to allow constinit 2024-02-21 21:34:22 -08:00
SharedBuffer.cpp Fix libutils_binder_sdk build warnings 2024-05-28 09:51:20 -07:00
SharedBuffer.h libutils: split out libutils_binder 2023-10-09 21:56:15 +00:00
SharedBuffer_test.cpp Remove obsolete __STDC_LIMIT_MACROS references. 2024-02-09 16:40:02 +00:00
String8.cpp Remove obsolete __STDC_LIMIT_MACROS references. 2024-02-09 16:40:02 +00:00
String8_fuzz.cpp libutils: split out libutils_binder 2023-10-09 21:56:15 +00:00
String8_test.cpp Define String8 and String16 operator<=> 2024-05-15 17:34:57 -07:00
String16.cpp Fix libutils_binder_sdk build warnings 2024-05-28 09:51:20 -07:00
String16_fuzz.cpp libutils: split out libutils_binder 2023-10-09 21:56:15 +00:00
String16_test.cpp Define String8 and String16 operator<=> 2024-05-15 17:34:57 -07:00
StrongPointer.cpp libutils: split out libutils_binder 2023-10-09 21:56:15 +00:00
StrongPointer_test.cpp Add StrongPointer::release() 2023-11-20 11:55:02 -05:00
Unicode.cpp libutils_binder: isolate headers 2023-10-24 23:45:01 +00:00
Unicode_test.cpp libutils: split out libutils_binder 2023-10-09 21:56:15 +00:00
Vector_benchmark.cpp libutils: split out libutils_binder 2023-10-09 21:56:15 +00:00
Vector_fuzz.cpp libutils: split out libutils_binder 2023-10-09 21:56:15 +00:00
Vector_test.cpp Remove obsolete __STDC_LIMIT_MACROS references. 2024-02-09 16:40:02 +00:00
VectorImpl.cpp Avoid unnecessary allocation in VectorImpl 2024-10-08 08:36:03 +00:00