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
Errors_test.cpp
FuzzFormatTypes.h
RefBase.cpp Allow disabling callstack 2023-10-27 10:48:43 -07:00
RefBase_fuzz.cpp
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
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
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
String16_test.cpp Define String8 and String16 operator<=> 2024-05-15 17:34:57 -07:00
StrongPointer.cpp
StrongPointer_test.cpp Add StrongPointer::release() 2023-11-20 11:55:02 -05:00
Unicode.cpp
Unicode_test.cpp
Vector_benchmark.cpp
Vector_fuzz.cpp
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