android_system_core/include/utils
Mathias Agopian 6cd548c715 Fix a crasher with RefBase debugging and vectors of wp<>
background:
we have some code to fix-up the IDs of references when
using RefBase's DEBUG_REFS when those refs are managed by
arrays wp<> or sp<> (this is because wp<> / sp<> don't have
a trivial ctor when DEBUG_REFS is enabled, and Vector
treats them as trivial for obvious performance reasons)

this is complicated by the fact that we don't want to have
to recompile everything when enabling DEBUG_REFs (i.e.: the
Vector code cannot know wheter it's enabled or not for its
template stuff).

problem:
there was a bug in the fix-up code for wp<> which was trying
to access the weakref_impl from the RefBase* however, this was
moronic since RefBase could have been destroyed if there wasn't
any more strong refs -- and this happned. Instead we need to get
the weakref_impl directly from the wp<>

Change-Id: Ie16e334204205fdbff142acb9faff8479a78450b
2013-07-30 13:57:01 -07:00
..
AndroidThreads.h rename binder services main thread to Binder_* 2013-07-30 13:57:01 -07:00
ashmem.h auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
Atomic.h auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
BasicHashtable.h Add an LRU cache plus hashing primitives 2013-07-30 13:57:00 -07:00
BitSet.h Add traits to common utils data structures. 2013-07-30 13:56:59 -07:00
BlobCache.h BlobCache: implement cache serialization 2013-07-30 13:56:58 -07:00
BufferedTextOutput.h auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
ByteOrder.h Implement the C++ class to write the backed up file data. 2013-07-30 13:56:50 -07:00
CallStack.h Use libcorkscrew for stack unwinding. 2013-07-30 13:56:58 -07:00
Compat.h Add TEMP_FAILURE_RETRY to ZipUtils 2013-07-30 13:57:00 -07:00
Condition.h Add Thread::isRunning and Condition::signal(WakeUpType) 2013-07-30 13:57:01 -07:00
Debug.h Support for marshalling pointers / intptr_t in Parcel. 2013-07-30 13:56:52 -07:00
Endian.h auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
Errors.h Add mechanism for Parcel to not allow FDs to be written to it. 2013-07-30 13:56:58 -07:00
FileMap.h Change assets to use 64-bit API 2013-07-30 13:56:55 -07:00
Flattenable.h improve [un]marshalling of non-binder objects 2013-07-30 13:57:00 -07:00
Functor.h Modify the GL renderer's functor to pass the clip to WebView 2013-07-30 13:56:56 -07:00
GenerationCache.h Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2013-07-30 13:56:58 -07:00
JenkinsHash.h Add another ifndef and a couple of methods to LruCache 2013-07-30 13:57:00 -07:00
KeyedVector.h improve Vector<> safety checks 2013-07-30 13:56:59 -07:00
LinearAllocator.h Add LinearAllocator 2013-07-30 13:57:00 -07:00
LinearTransform.h Add a linear transform library to libutils 2013-07-30 13:56:57 -07:00
List.h Fix sim build. 2013-07-30 13:56:51 -07:00
Log.h utils: Allow non android namespaces to use ALOGD_IF_SLOW 2013-07-30 13:57:00 -07:00
Looper.h Support looper callbacks based on smart pointers. 2013-07-30 13:56:59 -07:00
LruCache.h Add LruCache::Iterator 2013-07-30 13:57:00 -07:00
misc.h libutils cleanup: remove unused or seldom used code from misc.{cpp|h} 2013-07-30 13:56:59 -07:00
Mutex.h utils: fix warnings for unused parameters 2013-07-30 13:57:00 -07:00
PropertyMap.h Add initial support for cursor-based pointing devices. 2013-07-30 13:56:55 -07:00
RefBase.h Fix a crasher with RefBase debugging and vectors of wp<> 2013-07-30 13:57:01 -07:00
RWLock.h utils: fix warnings for unused parameters 2013-07-30 13:57:00 -07:00
SharedBuffer.h minor SharedBuffer clean-up 2013-07-30 13:57:00 -07:00
Singleton.h Fixed clang build error for libgui 2013-07-30 13:57:00 -07:00
SortedVector.h get rid of mirrorItemAt() which isn't used anywhere 2013-07-30 13:57:00 -07:00
StopWatch.h Native input dispatch rewrite work in progress. 2013-07-30 13:56:53 -07:00
String8.h Add traits to common utils data structures. 2013-07-30 13:56:59 -07:00
String16.h Add traits to common utils data structures. 2013-07-30 13:56:59 -07:00
StringArray.h rename string_array.h to StringArray.h and move the implementation from the header file to a new cpp file. 2013-07-30 13:56:50 -07:00
StrongPointer.h Fix sp<> conversion operator / constructor 2013-07-30 13:56:56 -07:00
SystemClock.h Add elapsedRealtimeNano(), and use CLOCK_BOOTTIME where possible. 2013-07-30 13:56:59 -07:00
TextOutput.h some work to try to reduce the code size of some native libraries 2013-07-30 13:56:50 -07:00
Thread.h Add Thread::isRunning and Condition::signal(WakeUpType) 2013-07-30 13:57:01 -07:00
ThreadDefs.h Scheduling group cleanup 2013-07-30 13:56:59 -07:00
threads.h split utils/threads.h into multiple headers 2013-07-30 13:56:59 -07:00
Timers.h Add elapsedRealtimeNano(), and use CLOCK_BOOTTIME where possible. 2013-07-30 13:56:59 -07:00
Tokenizer.h Support tokenizing arbitrary content. 2013-07-30 13:56:59 -07:00
Trace.h utils: clarify scoped tracing functionality 2013-07-30 13:57:00 -07:00
TypeHelpers.h Add an LRU cache plus hashing primitives 2013-07-30 13:57:00 -07:00
Unicode.h Fix regression in CursorWindow.copyStingToBuffer. 2013-07-30 13:56:58 -07:00
UniquePtr.h Add UniquePtr.h to frameworks/native 2013-07-30 13:56:59 -07:00
Vector.h Add Vector::resize() 2013-07-30 13:57:01 -07:00
VectorImpl.h Add Vector::resize() 2013-07-30 13:57:01 -07:00
WorkQueue.h Add a simple work queue abstraction. 2013-07-30 13:56:59 -07:00
ZipFileCRO.h frameworks/native: move Zip* from libandroidfw to libutils 2013-07-30 13:56:59 -07:00
ZipFileRO.h frameworks/native: move Zip* from libandroidfw to libutils 2013-07-30 13:56:59 -07:00
ZipUtils.h frameworks/native: move Zip* from libandroidfw to libutils 2013-07-30 13:56:59 -07:00