- 15 10月, 2010 1 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
Clear the thread state after finishing a work item. We were only resetting the background state.
-
- 25 8月, 2010 1 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
-
- 20 8月, 2010 1 次提交
-
-
由 Zoltan Varga 提交于
-
- 18 8月, 2010 1 次提交
-
-
由 Zoltan Varga 提交于
Bump the size of the epoll threads to 256k on 64 bit systems to avoid problems on ppc64 with 64k page sizes.
-
- 11 8月, 2010 1 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
AppDomainUnloadedException is also ignored when thrown in a threadpool thread.
-
- 06 8月, 2010 2 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: ignore ThreadAbortException when it is unhandled in a threadpool thread.
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: the calls to wsq_create, wsq_destroy and wsq_cleanup are inside a lock now to avoid race conditions upon shut down. Fixes bug #625359.
-
- 30 7月, 2010 3 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
* mono/tests/threadpool-exceptions[1-4].cs: new tests * mono/tests/threadpool.cs: fix typo. * mono/metadata/threadpool.c: starting in .NET 2.0, unhandled exceptions in the threadpool can cause a crash in a running program. From now on, we are compatible.
-
由 Gonzalo Paniagua Javier 提交于
These exception were being thrown, sometimes, in a threadpool thread and then ignored.
-
由 Gonzalo Paniagua Javier 提交于
Until now exceptions thrown from a threadpool work item were ignored. From now on they will propagate to the domain's UnhandledException event and then to the root AppDomain. If they are not handled, they will cause the program to abort.
-
- 16 7月, 2010 1 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: use a monitor thread to start up new ones when needed. Fixes bug #622398. svn path=/trunk/mono/; revision=160461
-
- 22 5月, 2010 1 次提交
-
-
由 Zoltan Varga 提交于
* threadpool.c: Fix the DISABLE_SOCKETS build. svn path=/trunk/mono/; revision=157708
-
- 24 4月, 2010 1 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: patch from Robert Nagy that fixes a nullref and uses mono_sem_wait instead of mono_sem_timedwait for openbsd. svn path=/trunk/mono/; revision=156012
-
- 20 4月, 2010 1 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
* domain-internals.h: made threadpool_jobs volatile. * mono-wsq.c: add an assert to verify that the threadpool cleaned up all local jobs. * threadpool.c: -When two threads try to initialize the socket IO pool, the second one waits until the intialization is finished instead of continuing right away. -Add checks for domain unload: no items added in this case. -Only measure the time every 10 elements added to the queue. This is an experiment since linux x86 gettimeofday() sucks. -Create new thread if there are none waiting for work items. -There was a missing decrement of the busy threads. -Make sure the local queue is cleaned up before exiting the thread when the program ends. svn path=/trunk/mono/; revision=155767
-
- 06 4月, 2010 3 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: don't attempt to close the pipe when it has not been created. svn path=/trunk/mono/; revision=154820
-
由 Gonzalo Paniagua Javier 提交于
svn path=/trunk/mono/; revision=154812
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: if there are no waiting threads, try to start a new one. This fixes the not-so-random hangs in System.ServiceModel tests. No need to use InterlockedCompareExchange to read volatile variables. svn path=/trunk/mono/; revision=154811
-
- 01 4月, 2010 1 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: threadpool threads wait is alertable. Fixes bug #592264. Reduced the stack size of the *poll_wait thread. svn path=/trunk/mono/; revision=154645
-
- 27 3月, 2010 3 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: don't try executing items from domains being unloaded. Fixes appdomain-async-invoke test. svn path=/trunk/mono/; revision=154324
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: spin while the threadpool initializes. * mono-wsq.c: if the WSQ has not been initialized or has been shut down, don't do anything. svn path=/trunk/mono/; revision=154321
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: reset 'state' to avoid returning non-null when the event type is not found. svn path=/trunk/mono/; revision=154307
-
- 26 3月, 2010 1 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
svn path=/trunk/mono/; revision=154243
-
- 07 3月, 2010 1 次提交
-
-
由 Paolo Molaro 提交于
Sat Mar 6 18:16:35 CET 2010 Paolo Molaro <lupus@ximian.com> * mempool.c, class-internals.h, class.c, icall.c, metadata.c, object-internals.h, object.c, reflection.c, threadpool.c: reduce resource usage when the small config is selected. In particular, up to 64K of methods/fields/properties/events are allowed and "other" methods in events are ignored. svn path=/trunk/mono/; revision=153185
-
- 03 3月, 2010 1 次提交
-
-
由 Paolo Molaro 提交于
Wed Mar 3 11:46:06 CET 2010 Paolo Molaro <lupus@ximian.com> * appdomain.c, domain.c, icall.c, image.c, marshal.c, object.c, reflection.c, socket-io.c, threadpool.c, threads.c: removed 1.1/1.0 support. svn path=/trunk/mono/; revision=152914
-
- 10 2月, 2010 1 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: Fixes for SetMinThreads and SetMaxThreads. Closes bug #566057. * exception.c: fix typo in comment. svn path=/trunk/mono/; revision=151152
-
- 21 11月, 2009 1 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
So long PLATFORM_WIN32. Welcome HOST_WIN32 and TARGET_WIN32. * runtime/Makefile.am: * scripts/Makefile.am: * mono/dis/Makefile.am: * mono/metadata/domain.c: * mono/metadata/security.c: * mono/metadata/assembly.c: * mono/metadata/coree.c: * mono/metadata/coree.h: * mono/metadata/threadpool.c: * mono/metadata/class-internals.h: * mono/metadata/Makefile.am: * mono/metadata/gc.c: * mono/metadata/class.c: * mono/metadata/appdomain.c: * mono/metadata/image.c: * mono/metadata/threads.c: * mono/metadata/metadata-internals.h: * mono/metadata/monitor.c: * mono/metadata/attach.c: * mono/metadata/marshal.c: * mono/metadata/threads-types.h: * mono/metadata/mono-config.c: * mono/metadata/boehm-gc.c: * mono/metadata/rand.c: * mono/metadata/icall.c: * mono/metadata/reflection.c: * mono/metadata/socket-io.c: * mono/io-layer/socket-wrappers.h: * mono/io-layer/io-layer.h: * mono/io-layer/Makefile.am: * mono/monograph/Makefile.am: * mono/mini/method-to-ir.c: * mono/mini/debugger-agent.c: * mono/mini/mini-exceptions.c: * mono/mini/Makefile.am: * mono/mini/aot-runtime.c: * mono/mini/image-writer.c: * mono/mini/mini-windows.c: * mono/mini/aot-compiler.c: * mono/mini/dwarfwriter.c: * mono/mini/mini-ppc.c: * mono/mini/mini-ppc.h: * mono/utils/mono-time.c: * mono/utils/mono-membar.h: * mono/utils/mono-poll.h: * mono/tests/Makefile.am: * mono/interpreter/Makefile.am: * configure.in: * support/Makefile.am: svn path=/trunk/mono/; revision=146644
-
- 25 10月, 2009 1 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.[ch]: added hooks for thread start/finish and item processing begin/end. For monotouch use only. svn path=/trunk/mono/; revision=144807
-
- 20 10月, 2009 1 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
svn path=/trunk/mono/; revision=144416
-
- 02 10月, 2009 2 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: one more... svn path=/trunk/mono/; revision=143285
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: forgot a LeaveCriticalSection when telling the idle threads to die because we're shutting down. delgate5.exe works again. svn path=/trunk/mono/; revision=143284
-
- 30 9月, 2009 2 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
svn path=/trunk/mono/; revision=142928
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: fixed the order in which 'completed' and the wait handle, if any, are set. Fixes bug #542933 and delegate2.exe No need to use the wait_handle field of ASyncCall. Make sure the threadpool is active when adding a job or queueing an idle thread. svn path=/trunk/mono/; revision=142927
-
- 26 9月, 2009 3 次提交
-
-
由 Mark Probst 提交于
* sgen-gc.c: New debug option "xdomain-checks", which scans the whole heap for cross-domain references before each collection. * sgen-scan-object.h: The scan action can now use SCAN to scan the object. * threadpool-internals.h, threadpool.c: New function mono_thread_pool_is_queue_array() for checking whether a given array is used as a (cross-domain) queue by the thread pool code. svn path=/trunk/mono/; revision=142674
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: * class-internals.h: * mono-perfcounters-def.h: * mono-perfcounters.c: -There is a list of idle threads -Each of those idle threads wait on their own WaitHandle instead of all of them using the same semaphore. When a new work item is added, the job is assigned directly to an idle thread or a newly created one if possible and then the handle for that thread is signaled. Compare that to the current approach where all the threads in the pool compete to dequeue a job from the same queue. -New struct ThreadPool that brings together the bunch of static variable for each threadpool (IO and regular). -New performance counters: # of items added and its rate per threadpool. The rate will be used later, perhaps together with other perf. counters, to decide when idle threads should exit. svn path=/trunk/mono/; revision=142667
-
由 Mark Probst 提交于
* object-internals.h: The Thread class is split up into Thread and InternalThread now. We have exactly one InternalThread per thread, and at most one Thread per appdomain per thread. Most data is stored in InternalThread. All InternalThread objects live in the root domain. * class-internals.h: Add internal_thread_class to MonoDefaults. * appdomain.c (mono_domain_unload), attach.c (receiver_thread), domain.c, gc.c, icall-def.h, monitor.c, object.c, sgen-gc.c, socket-io.c, threadpool.c, thread-types.h, threads.c: Changes resulting from the split of the Thread class. * gc-internal.h: Prototype for new function for checking whether a thread is the finalizer thread. * appdomain.c: Corlib version bump. 2009-09-25 Mark Probst <mark.probst@gmail.com> * method-to-ir.c, mini.h, mini-alpha.c, mini-amd64.c, mini-arm.c, mini-hppa.c, mini-ia64.c, mini-mips.c, mini-ppc.c, mini-s390.c, mini-s390x.c, mini-sparc.c, mini-x86.c: Thread.get_CurrentThread works differently now and we don't handle it in the JIT anymore. * mini.c, mini-exceptions.c, mini-posix.c, debug-debugger.c, debug-mini.c, tramp-amd64.c, tramp-x86.c: Changes resulting from the Thread class split. 2009-09-25 Mark Probst <mark.probst@gmail.com> * xdomain-threads.c: Test for checking whether Thread is correctly separated between appdomains. * Makefile.am: Test added. svn path=/trunk/mono/; revision=142662
-
- 22 9月, 2009 3 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: actually use the minimum number of 'completion ports' (for us is just a potential worker thread). svn path=/trunk/mono/; revision=142379
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: remove ares_htable. It does not make sense any more since the same objects are now stored in GC-tracked arrays while they are in the queue. svn path=/trunk/mono/; revision=142378
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: increase the minimum length of the queues to 128. Remove warning. svn path=/trunk/mono/; revision=142377
-
- 05 9月, 2009 1 次提交
-
-
由 Gonzalo Paniagua Javier 提交于
* threadpool.c: make the Sleep() alertable to prevent delays exiting applications that take less than 2s to execute. Bug #524984 fixed. svn path=/trunk/mono/; revision=141363
-
- 22 8月, 2009 1 次提交
-
-
由 Mark Probst 提交于
* mono-hash.c: When creating a hash table, if the keys are managed objects, assert that we have a hash function. Remove the rehashing after GC marking. 2009-08-21 Mark Probst <mark.probst@gmail.com> * threadpool.c (mono_thread_pool_init): Use mono_object_hash() as the hash function for the ares_htable. svn path=/trunk/mono/; revision=140423
-