diff options
| author | 2011-01-18 18:18:06 -0800 | |
|---|---|---|
| committer | 2011-01-18 18:18:06 -0800 | |
| commit | e6a97e27bcc1b8320fbe09d7827aec8050ebef01 (patch) | |
| tree | d62020077b7f297ebce4cf27ffa8ae5e5fc3868a /libs/rs/rsLocklessFifo.cpp | |
| parent | 148594a0151ddf4978a9d796b5541cca3407fb89 (diff) | |
| parent | d1ac98149737299513da1357e36f68cbb6d74425 (diff) | |
Merge "Fix race condition between GC thread and the teardown of RS. The RS context was going away while the objects were being deleted within the finializer." into honeycomb
Diffstat (limited to 'libs/rs/rsLocklessFifo.cpp')
| -rw-r--r-- | libs/rs/rsLocklessFifo.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/rs/rsLocklessFifo.cpp b/libs/rs/rsLocklessFifo.cpp index 804c76726743..eb2af1cda757 100644 --- a/libs/rs/rsLocklessFifo.cpp +++ b/libs/rs/rsLocklessFifo.cpp @@ -210,3 +210,19 @@ void LocklessCommandFifo::makeSpace(uint32_t bytes) { void LocklessCommandFifo::dumpState(const char *s) const { LOGV("%s %p put %p, get %p, buf %p, end %p", s, this, mPut, mGet, mBuffer, mEnd); } + +void LocklessCommandFifo::printDebugData() const { + dumpState("printing fifo debug"); + const uint32_t *pptr = (const uint32_t *)mGet; + pptr -= 8 * 4; + if (mGet < mBuffer) { + pptr = (const uint32_t *)mBuffer; + } + + + for (int ct=0; ct < 16; ct++) { + LOGV("fifo %p = 0x%08x 0x%08x 0x%08x 0x%08x", pptr, pptr[0], pptr[1], pptr[2], pptr[3]); + pptr += 4; + } + +} |