X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fsgen%2Fsgen-protocol.c;h=b53965b4aebe1e503d32a8e3444a4f28a79f495b;hb=HEAD;hp=f86b05e51c963dd4de1f6c5dba3728732db8b97a;hpb=1b6292607cf62656e9e5d4f0f16cdbb57c08bc0b;p=mono.git diff --git a/mono/sgen/sgen-protocol.c b/mono/sgen/sgen-protocol.c index f86b05e51c9..b53965b4aeb 100644 --- a/mono/sgen/sgen-protocol.c +++ b/mono/sgen/sgen-protocol.c @@ -371,9 +371,7 @@ protocol_entry (unsigned char type, gpointer data, int size) * If the thread is not a worker thread we insert 0, which is interpreted * as gc thread. Worker indexes are 1 based. */ - worker_index = sgen_workers_is_worker_thread (tid); - if (!worker_index) - worker_index = sgen_thread_pool_is_thread_pool_thread (major_collector.get_sweep_pool (), tid); + worker_index = sgen_thread_pool_is_thread_pool_thread (tid); /* FIXME Consider using different index bases for different thread pools */ buffer->buffer [index++] = (unsigned char) worker_index; }