* Jumbo patch to drop support for pre-NET_2_0 code:
Remove ONLY_1_1 code
Remove NET_1_0 only code
Remove NET_2_0 defines assuming the value is true.
svn path=/trunk/mcs/; revision=145230
* Thread.cs (set_CurrentUICulture): Delay setting in_currentculture
to true until after the null check and the return statement.
svn path=/trunk/mcs/; revision=145214
* Thread.cs: change type of the current_appcontext field to object
to avoid triggering static constructors unless explicitely required.
svn path=/trunk/mcs/; revision=144431
* Thread.cs: Remove serialized culture icall stuff from
InternalThread. Implement it by using the cross-domain byte array
transfer icalls.
* Environment.cs: Corlib version bump.
svn path=/trunk/mcs/; revision=143040
* Thread.cs: Serialize the principal so as not to make it cross
appdomains. Two new internal calls for copying byte arrays
between domains.
2009-09-26 Mark Probst <[email protected]>
* Environment.cs: Corlib version bump.
svn path=/trunk/mcs/; revision=142671
* Thread.cs: 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.
* Environment.cs: Corlib version bump.
svn path=/trunk/mcs/; revision=142661
* ExecutionContext.cs: Don't use SecurityContext and don't expose
AsyncFlowControl for NET_2_1
* ThreadAbortException.cs: Remove ExceptionState from NET_2_1
* Thread.cs: Don't expose ApartmentState and remove Suspend and
Resume methods for NET_2_1
* ThreadPool.cs: Remove GetAvailableThreads and Unsafe* methods
for NET_2_1
svn path=/trunk/mcs/; revision=142481
2009-09-21 Sebastien Pouliot <[email protected]>
* Thread.cs: Remove CurrentPrincipal property for NET_2_1
* ExecutionContext.cs: Remove Run method for NET_2_1
In System.Security:
2009-09-21 Sebastien Pouliot <[email protected]>
* SecurityContext.cs: Don't use WindowsIdentity under NET_2_1
In System:
2009-09-21 Sebastien Pouliot <[email protected]>
* AppDomain.cs: Remove use of IPrincipal, Evidence and
PermissionSet types for NET_2_1
In .:
2009-09-21 Sebastien Pouliot <[email protected]>
* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
Remove most of System.Security.Policy and System.Security.Principal
and more of System.Security.Permissions from NET_2_1 build
In System.Security.Policy:
2009-09-21 Sebastien Pouliot <[email protected]>
* PolicyLevel_2_1.cs: Remove use of PolicyStatement
svn path=/trunk/mcs/; revision=142324
* Thread.cs: Always call Thread_free_internal from the finalizer, since
it frees other things besides the handle. Fixes#527576.
svn path=/trunk/mcs/; revision=139281
* object-internals.h : Adding interrupt_on_stop field.
* threads.c (mono_thread_request_interruption) : On Windows exit the
thread if interrupt_on_stop is set.
* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
Removing old interrupt logic and setting the interrupt_on_stop for the
thread when calling accept.
* socket-io.c (ves_icall_System_Net_Sockets_Socket_Receive_internal) :
setting the interrupt_on_stop for the thread when calling accept.
* Thread.cs : Adding interrupt_on_stop field.
Contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=136628
* Thread.cs: Refactor calling Moonlight's OnUnhandledException to
make sur the delegate it not called from a [SecuritySafeCritical]
caller.
* ThreadPool.cs: Reuse the above code for QueueUserWorkItem.
Original patch from Alan McGovern
svn path=/trunk/mcs/; revision=135866
* Thread.cs: Don't set the execution context when creating a
thread because the _ec member is thread static and we set the
wrong one. It's now set by the runtime. We just provide the
correct one.
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=134773
* Thread.cs: Make the execution context field thread-static to
avoid it being shared between app domains.
2009-04-21 Mark Probst <[email protected]>
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=132308
* Thread.cs: For 2.1 ensure exceptions in threads are handled using the
UnhandledException event mechanism in System.Windows.Application instead
of crashing the application.
svn path=/trunk/mcs/; revision=132166
* NumberFormatter.cs: Keep the current thread's number formatter
as a ThreadStatic member.
2009-04-18 Mark Probst <[email protected]>
* Thread.cs: Don't keep the current number formatter here
because it's shared between app domains.
svn path=/trunk/mcs/; revision=132067
2009-04-18 Mark Probst <[email protected]>
* Thread.cs: Make the abort exception state a GC handle, to
properly separate AppDomains. Add internal method for getting the
state object.
* ThreadAbortException.cs: Get the abort exception state via the
method in Thread.
2009-04-18 Mark Probst <[email protected]>
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=132063
* Thread.cs (set_CurrentCulture): If the culture is read-only, cache the result
of serializing it.
(set_CurrentUICulture): Ditto.
svn path=/trunk/mcs/; revision=92335
* Thread.cs: Assign the ManagedThreadId when it is asked for,
rather than in the constructor, so ThreadPool threads also work.
Fixes bug 335579 (and doesn't break 325367 or 325566)
svn path=/trunk/mcs/; revision=88077
* Thread.cs: Keep ManagedThreadId constant over the lifetime of a
Thread. Patch from [email protected] fixing bugs 325367 and
325566.
svn path=/trunk/mcs/; revision=86337
* Thread.cs: Throw ThreadStateException when retrieving ApartmentState
or IsBackground if thread is stopped. Fixes bug #81658.
2007-08-10 Gert Driesen <[email protected]>
* ThreadTest.cs: Enabled test for bug #81658.
svn path=/trunk/mcs/; revision=83806