Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(617)

Unified Diff: src/native_client/src/trusted/service_runtime/nacl_syscall_common.c

Issue 2659002: Remove thread refcount and remove NaClAppDtor() (Closed)
Patch Set: Fix Gyp build Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/native_client/src/trusted/service_runtime/nacl_syscall_common.c
diff --git a/src/native_client/src/trusted/service_runtime/nacl_syscall_common.c b/src/native_client/src/trusted/service_runtime/nacl_syscall_common.c
index 3c8507ac33e3f7abf45cfe35f7a1d32932015c10..8e74a868f6f93fb261a45827765c37e363900b78 100644
--- a/src/native_client/src/trusted/service_runtime/nacl_syscall_common.c
+++ b/src/native_client/src/trusted/service_runtime/nacl_syscall_common.c
@@ -103,8 +103,8 @@ void NaClSysCommonThreadSuicide(struct NaClAppThread *natp) {
NaClXCondVarBroadcast(&nap->threads_cv);
NaClLog(3, " unlocking thread table\n");
NaClXMutexUnlock(&nap->threads_mu);
- NaClLog(3, " decref'ing thread object (from count %d)\n", natp->refcount);
- NaClAppThreadDecRef(natp);
+ NaClLog(3, " freeing thread object\n");
+ NaClAppThreadDtor(natp);
NaClLog(3, " NaClThreadExit\n");
NaClThreadExit(); /* should not return */
NaClLog(LOG_ERROR, "INCONCEIVABLE!\n");

Powered by Google App Engine
This is Rietveld 408576698