diff options
author | eutarass | 2011-03-16 17:56:18 +0000 |
---|---|---|
committer | eutarass | 2011-03-16 17:56:18 +0000 |
commit | db93b7e13f5fa266be86e0e65a988441b1cbd4bf (patch) | |
tree | 71b898108bfce74af7571eca2d2abe5ff0a6f934 | |
parent | 9d4dd5905d208e8414345f246d184b3151264975 (diff) | |
download | org.eclipse.tcf.agent-db93b7e13f5fa266be86e0e65a988441b1cbd4bf.tar.gz org.eclipse.tcf.agent-db93b7e13f5fa266be86e0e65a988441b1cbd4bf.tar.xz org.eclipse.tcf.agent-db93b7e13f5fa266be86e0e65a988441b1cbd4bf.zip |
TCF Agent: fixed: cache_notify() can cause page fault if nobody is waiting for the cache item.
-rw-r--r-- | framework/cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/framework/cache.c b/framework/cache.c index e5c03c8e..a1cbfafc 100644 --- a/framework/cache.c +++ b/framework/cache.c @@ -127,6 +127,7 @@ void cache_notify(AbstractCache * cache) { unsigned cnt = cache->wait_list_cnt; assert(is_dispatch_thread()); + if (cnt == 0) return; list_remove(&cache->link); cache->wait_list_cnt = 0; if (wait_list_max < cnt) { |