diff options
author | Mathias Agopian <mathias@google.com> | 2011-03-16 23:18:07 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-03-17 00:04:42 -0700 |
commit | f40e638ec62cd9e1a1851809b7c8bf5e4187fad2 (patch) | |
tree | fce830323935d7c7171c501278fb6c7ea9fdf9c8 /include/utils | |
parent | 7af7e00b9112f15d1683ae93975a6fcd9dd34da8 (diff) | |
download | frameworks_base-f40e638ec62cd9e1a1851809b7c8bf5e4187fad2.zip frameworks_base-f40e638ec62cd9e1a1851809b7c8bf5e4187fad2.tar.gz frameworks_base-f40e638ec62cd9e1a1851809b7c8bf5e4187fad2.tar.bz2 |
fix [4093196] Device lock up - log spam with SharedBufferStack: waitForCondition(LockCondition) timed out
a memory corruption happned when the buffer pool was resized
(like when playing a video or using camera) and there was
no current active buffer. In this case, the faulty code
would index into an array at position -1 which corrupted
24 bytes of data.
also improved region validation code (ifdef'ed out by default)
Bug: 4093196
Change-Id: I915c581d131148959d720e00e3892e9186ab733d
Diffstat (limited to 'include/utils')
-rw-r--r-- | include/utils/Vector.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/utils/Vector.h b/include/utils/Vector.h index ec851bd..6fd307f 100644 --- a/include/utils/Vector.h +++ b/include/utils/Vector.h @@ -162,6 +162,9 @@ public: inline status_t sort(compar_t cmp); inline status_t sort(compar_r_t cmp, void* state); + // for debugging only + inline size_t getItemSize() const { return itemSize(); } + protected: virtual void do_construct(void* storage, size_t num) const; virtual void do_destroy(void* storage, size_t num) const; |