diff options
author | Jason Sams <rjsams@android.com> | 2011-01-18 18:12:26 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2011-01-18 18:12:26 -0800 |
commit | d1ac98149737299513da1357e36f68cbb6d74425 (patch) | |
tree | d59875cb9ab74b735cd2d417d42020d1a5b5158e /libs/rs/rsThreadIO.cpp | |
parent | 991040c8261237997915f8a4c899a6ea5012fb42 (diff) | |
download | frameworks_base-d1ac98149737299513da1357e36f68cbb6d74425.zip frameworks_base-d1ac98149737299513da1357e36f68cbb6d74425.tar.gz frameworks_base-d1ac98149737299513da1357e36f68cbb6d74425.tar.bz2 |
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.
Add more debugging for playCoreCommands.
Change-Id: I391f0b4db948f43f54017b47b062ab47d6a1ef64
Diffstat (limited to 'libs/rs/rsThreadIO.cpp')
-rw-r--r-- | libs/rs/rsThreadIO.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/rs/rsThreadIO.cpp b/libs/rs/rsThreadIO.cpp index 001ac55..6cf07de 100644 --- a/libs/rs/rsThreadIO.cpp +++ b/libs/rs/rsThreadIO.cpp @@ -56,6 +56,7 @@ bool ThreadIO::playCoreCommands(Context *con, bool waitForCommand) { if (cmdID >= (sizeof(gPlaybackFuncs) / sizeof(void *))) { rsAssert(cmdID < (sizeof(gPlaybackFuncs) / sizeof(void *))); LOGE("playCoreCommands error con %p, cmd %i", con, cmdID); + mToCore.printDebugData(); } gPlaybackFuncs[cmdID](con, data); mToCore.next(); |