From d1ac98149737299513da1357e36f68cbb6d74425 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Tue, 18 Jan 2011 18:12:26 -0800 Subject: 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 --- libs/rs/rsThreadIO.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/rs/rsThreadIO.cpp') 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(); -- cgit v1.1