Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2014-03-21 14:01:01 -0400
committerEugene Tarassov2014-03-21 14:01:01 -0400
commit5dcde3031363829e6b6171dc6548dd4ef3e3da8c (patch)
treedecf61b344ae601e82ef7c1bd16ed50ba414ca26
parent162d083c1f9d1d7d32aa745733831e70ebe7721e (diff)
downloadorg.eclipse.tcf.agent-5dcde3031363829e6b6171dc6548dd4ef3e3da8c.tar.gz
org.eclipse.tcf.agent-5dcde3031363829e6b6171dc6548dd4ef3e3da8c.tar.xz
org.eclipse.tcf.agent-5dcde3031363829e6b6171dc6548dd4ef3e3da8c.zip
TCF Agent: removed unwanted asserts to allow to call cache_enter() after the channel is closed.
This make it easier to handle unexpected termination of communication channel.
-rw-r--r--agent/tcf/framework/cache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/agent/tcf/framework/cache.c b/agent/tcf/framework/cache.c
index c9c30b2f..e0b4ea55 100644
--- a/agent/tcf/framework/cache.c
+++ b/agent/tcf/framework/cache.c
@@ -108,7 +108,6 @@ static void run_cache_client(void) {
void cache_enter(CacheClient * client, Channel * channel, void * args, size_t args_size) {
assert(is_dispatch_thread());
assert(client != NULL);
- assert(channel == NULL || !is_channel_closed(channel));
assert(current_client.client == NULL);
current_client.id = id_cnt++;
current_client.client = client;
@@ -135,7 +134,6 @@ void cache_wait_dbg(const char * file, int line, AbstractCache * cache) {
assert(is_dispatch_thread());
assert(client_exited == 0);
if (current_client.client != NULL && cache_miss_cnt == 0) {
- assert(current_client.channel == NULL || !is_channel_closed(current_client.channel));
if (cache->wait_list_cnt >= cache->wait_list_max) {
cache->wait_list_max += 8;
cache->wait_list_buf = (WaitingCacheClient *)loc_realloc(cache->wait_list_buf, cache->wait_list_max * sizeof(WaitingCacheClient));

Back to the top