mono.git
13 years ago[asp.net] Fix for bug #646505. BoundField must not assume the sender of the OnDataBin...
Marek Habersack [Fri, 29 Oct 2010 00:25:25 +0000 (02:25 +0200)]
[asp.net] Fix for bug #646505. BoundField must not assume the sender of the OnDataBindField is DataControlFieldCell.

13 years ago[asp.net] HttpRequest.MapPath changes to match .NET
Marek Habersack [Thu, 28 Oct 2010 22:03:54 +0000 (00:03 +0200)]
[asp.net] HttpRequest.MapPath changes to match .NET

When MapPath is passed a rooted, absolute path which is not in the current application's virtual
root, it should throw an exception. If the path is rooted and within the current application, it
will be mapped as if it was relative to the root.

13 years agoIntroduce new XamlObjectReader implementation.
Atsushi Eno [Thu, 28 Oct 2010 20:58:20 +0000 (05:58 +0900)]
Introduce new XamlObjectReader implementation.

Nodes are iterated in XamlNodeIterator which is used by XamlObjectReader.
It collects namespace declarations as it does in the reading the objects.
The new code is somewhat better, with less "special" hardcoded rules.

It can be even compiled with .NET (with TypeExtensionMethods).

13 years agoAdd GetItems tests for collection invoker.
Atsushi Eno [Thu, 28 Oct 2010 20:56:18 +0000 (05:56 +0900)]
Add GetItems tests for collection invoker.

13 years ago[OSX] Fix debug=casts on OSX (Bug: 639172)
Geoff Norton [Thu, 28 Oct 2010 20:07:08 +0000 (16:07 -0400)]
[OSX] Fix debug=casts on OSX (Bug: 639172)

mono --debug=casts requires fast tls access and the jit tls intrinsic.
We already had support for OP_TLS_GET on darwin/x86, but we did not
expose the "tls offset (pthread_key_t)" from mini to the intrinsic,
instead falling back on the io-layer keys.  We now store mono_lmf_addr
in a pthread_key for darwin/x86 so that we can do fast-tls in the jit
and fix this feature.  X86 only for now.

r: kumpera

13 years agoCollected tested types into a new file.
Atsushi Eno [Thu, 28 Oct 2010 18:24:13 +0000 (03:24 +0900)]
Collected tested types into a new file.

13 years agoAdd empty List<int> case.
Atsushi Eno [Thu, 28 Oct 2010 18:03:25 +0000 (03:03 +0900)]
Add empty List<int> case.

13 years agoMove version to 2.9 (next to be 2.10)
Andrew Jorgensen [Thu, 28 Oct 2010 17:49:41 +0000 (11:49 -0600)]
Move version to 2.9 (next to be 2.10)

13 years agoAdd more object reader tests with corner cases.
Atsushi Eno [Thu, 28 Oct 2010 16:40:10 +0000 (01:40 +0900)]
Add more object reader tests with corner cases.

13 years agoFix XamlType.Name to take TypeArguments into consideration.
Atsushi Eno [Thu, 28 Oct 2010 16:38:52 +0000 (01:38 +0900)]
Fix XamlType.Name to take TypeArguments into consideration.

13 years agoUse ArrayList like .NET (no practical changes).
Atsushi Eno [Thu, 28 Oct 2010 16:36:54 +0000 (01:36 +0900)]
Use ArrayList like .NET (no practical changes).

13 years agoFix emitted code for predefined or/and operation between bool? and bool
Marek Safar [Thu, 28 Oct 2010 15:40:53 +0000 (16:40 +0100)]
Fix emitted code for predefined or/and operation between bool? and bool

13 years agoBetter handle failure when loading types.
Rodrigo Kumpera [Thu, 28 Oct 2010 14:22:35 +0000 (12:22 -0200)]
Better handle failure when loading types.

* class.c (mono_class_create_from_typedef): If the type
fails due to a problem with the parent make sure we have
byval_arg and this_arg are setup properly as the whole
runtime requires those two to be setup even for broken
types.

13 years agoKill some loader leaks.
Rodrigo Kumpera [Wed, 27 Oct 2010 22:44:56 +0000 (20:44 -0200)]
Kill some loader leaks.

* class.c (mono_class_create_from_typedef): Avoid a loader leak
on parent load.

* class.c (mono_method_signature_checked): Avoid a loader leak
if type parsing fails.

13 years ago[asp.net] Fix for bug #646479. Do not call control's OnLoad twice when it is dynamica...
Marek Habersack [Thu, 28 Oct 2010 13:59:18 +0000 (15:59 +0200)]
[asp.net] Fix for bug #646479. Do not call control's OnLoad twice when it is dynamically added.

Control.AddedControl will call the new control's LoadRecursive which would trigger its OnLoad
handler. OnLoad must be called only if control hasn't already been loaded.

13 years ago[asp.net] Cosmetics + dead code removal
Marek Habersack [Thu, 28 Oct 2010 13:16:41 +0000 (15:16 +0200)]
[asp.net] Cosmetics + dead code removal

13 years ago[asp.net] Fix for bug #646810. Implemented FormsAuthentication.EnableFormsAUthenticat...
Marek Habersack [Thu, 28 Oct 2010 12:50:23 +0000 (14:50 +0200)]
[asp.net] Fix for bug #646810. Implemented FormsAuthentication.EnableFormsAUthentication + tests

13 years agoAdd more type parameter checks for inherited constraints.
Marek Safar [Thu, 28 Oct 2010 12:43:17 +0000 (13:43 +0100)]
Add more type parameter checks for inherited constraints.

13 years agoNew test.
Marek Safar [Wed, 27 Oct 2010 16:00:03 +0000 (17:00 +0100)]
New test.

13 years agoImplement type inference of dynamic arguments used as unknown types
Marek Safar [Wed, 27 Oct 2010 15:59:12 +0000 (16:59 +0100)]
Implement type inference of dynamic arguments used as unknown types

13 years agoUse correct location for unexpected type parameter
Marek Safar [Wed, 27 Oct 2010 14:20:51 +0000 (15:20 +0100)]
Use correct location for unexpected type parameter

13 years agoAdd another couple of MarkupExtension related tests.
Atsushi Eno [Thu, 28 Oct 2010 12:06:01 +0000 (21:06 +0900)]
Add another couple of MarkupExtension related tests.

13 years agoAdd more complicated PositionalParameters test (which actually does not use it).
Atsushi Eno [Thu, 28 Oct 2010 08:58:51 +0000 (17:58 +0900)]
Add more complicated PositionalParameters test (which actually does not use it).

13 years agoRemove extra DateTime handling and add some rules for PositionalParameters.
Atsushi Eno [Thu, 28 Oct 2010 08:57:38 +0000 (17:57 +0900)]
Remove extra DateTime handling and add some rules for PositionalParameters.

13 years agoFix the profiler thread start/end hooks for threadpool threads
Geoff Norton [Wed, 27 Oct 2010 20:46:27 +0000 (16:46 -0400)]
Fix the profiler thread start/end hooks for threadpool threads

13 years ago[Xml] Fix GetAttribute to handle null namespaces properly, add unit test.
Andreia Gaita [Wed, 27 Oct 2010 18:32:07 +0000 (19:32 +0100)]
[Xml] Fix GetAttribute to handle null namespaces properly, add unit test.

13 years agoOnly set lockTaken to TRUE if it did not timeout.
Rodrigo Kumpera [Wed, 27 Oct 2010 16:29:17 +0000 (14:29 -0200)]
Only set lockTaken to TRUE if it did not timeout.

13 years agoDon't crash with bad signatures.
Rodrigo Kumpera [Wed, 27 Oct 2010 16:28:17 +0000 (14:28 -0200)]
Don't crash with bad signatures.

* reflection.c (mono_param_get_objects_internal): Use checked
variant of mono_method_signature.

13 years agoSome internal refactoring for new XamlObjectReader implementation.
Atsushi Eno [Wed, 27 Oct 2010 13:58:29 +0000 (22:58 +0900)]
Some internal refactoring for new XamlObjectReader implementation.

13 years agoMake MonoType::GetField lazier.
Rodrigo Kumpera [Wed, 27 Oct 2010 13:00:25 +0000 (11:00 -0200)]
Make MonoType::GetField lazier.

* icall.c (ves_icall_Type_GetField): Use
code path that lazy load the field type.

Fixes #649522

13 years agoChange a g_warning into a mono_trace call.
Rodrigo Kumpera [Wed, 27 Oct 2010 12:43:46 +0000 (10:43 -0200)]
Change a g_warning into a mono_trace call.

* loader.c (mono_loader_set_error_assembly_load): Don't
g_warning on failure. Use our tracing facility instead.

13 years agoReorder MethodBase::Attributes usage
Marek Safar [Wed, 27 Oct 2010 12:37:06 +0000 (13:37 +0100)]
Reorder MethodBase::Attributes usage

13 years agoMore tests
Marek Safar [Wed, 27 Oct 2010 12:36:36 +0000 (13:36 +0100)]
More tests

13 years ago[649448] Compare original goto block for cloned blocks.
Marek Safar [Wed, 27 Oct 2010 12:35:17 +0000 (13:35 +0100)]
[649448] Compare original goto block for cloned blocks.

13 years agoLoad less stuff when resolving MethodInfo::Attributes.
Rodrigo Kumpera [Wed, 27 Oct 2010 12:37:33 +0000 (10:37 -0200)]
Load less stuff when resolving MethodInfo::Attributes.

* MonoMethod.cs: Add new icall for ::Attributes.

* icall.c: New icall to resolve ::Attributes so it can
avoid loading the signature and work around methods with
broken signatures.

Fixes #649527

13 years ago[asp.net] Fix for bug #646984. Theme stylesheets must be output in correct order.
Marek Habersack [Wed, 27 Oct 2010 12:21:38 +0000 (14:21 +0200)]
[asp.net] Fix for bug #646984. Theme stylesheets must be output in correct order.

This patch changes the way we output theme stylesheets to match .NET behavior. Theme
.css files are sorted using an ordinal and case-insensitive comparer and are output
to the page at the top of the <head> element's contents instead of at the end.

13 years agoAdd a few more default value tests.
Atsushi Eno [Wed, 27 Oct 2010 10:34:45 +0000 (19:34 +0900)]
Add a few more default value tests.

13 years agoMove member ordering code to LookupAllMembers().
Atsushi Eno [Wed, 27 Oct 2010 10:33:53 +0000 (19:33 +0900)]
Move member ordering code to LookupAllMembers().

13 years ago[asp.net] Fix for bug #643847. Membership.CreateUser overloads must check username...
Marek Habersack [Wed, 27 Oct 2010 09:55:36 +0000 (11:55 +0200)]
[asp.net] Fix for bug #643847. Membership.CreateUser overloads must check username and password for correctness.

13 years ago[648360] When inflating nested generic type use same type arguments to not inflate...
Marek Safar [Wed, 27 Oct 2010 09:38:58 +0000 (10:38 +0100)]
[648360] When inflating nested generic type use same type arguments to not inflate already inflated type

13 years agoUncommend code that prohibits XamlMemberInvoker.GetValue() on XamlDirective.
Atsushi Eno [Wed, 27 Oct 2010 09:05:19 +0000 (18:05 +0900)]
Uncommend code that prohibits XamlMemberInvoker.GetValue() on XamlDirective.

13 years agoFix wrong lookup base call.
Atsushi Eno [Wed, 27 Oct 2010 09:04:13 +0000 (18:04 +0900)]
Fix wrong lookup base call.

13 years ago[asp.net] Fix a build-breaking typo introduced in ea730c5de2e555fb8ee5c5d906ad41a602f...
Marek Habersack [Wed, 27 Oct 2010 08:52:40 +0000 (10:52 +0200)]
[asp.net] Fix a build-breaking typo introduced in ea730c5de2e555fb8ee5c5d906ad41a602f55848

13 years agoMake the static field readonly
Marek Safar [Wed, 27 Oct 2010 08:48:31 +0000 (09:48 +0100)]
Make the static field readonly

13 years agoMake static fields readonly
Marek Safar [Wed, 27 Oct 2010 08:50:24 +0000 (09:50 +0100)]
Make static fields readonly

13 years agocrlf fix
Marek Safar [Wed, 27 Oct 2010 08:50:07 +0000 (09:50 +0100)]
crlf fix

13 years agoRevert unwanted changes
Marek Safar [Tue, 26 Oct 2010 15:53:03 +0000 (16:53 +0100)]
Revert unwanted changes

13 years agoCheck nested declaring types when testing member overrides
Marek Safar [Tue, 26 Oct 2010 15:47:48 +0000 (16:47 +0100)]
Check nested declaring types when testing member overrides

13 years agoDelay expensive inflator construction for type parameter constraints
Marek Safar [Tue, 26 Oct 2010 15:45:15 +0000 (16:45 +0100)]
Delay expensive inflator construction for type parameter constraints

13 years ago[asp.net] Fix for bug #648407. HttpCachePolicy must use the value passed to AppendCac...
Marek Habersack [Tue, 26 Oct 2010 23:25:07 +0000 (01:25 +0200)]
[asp.net] Fix for bug #648407. HttpCachePolicy must use the value passed to AppendCacheExtension when generating the Cache-Control header

13 years ago[asp.net] Added encryption notes to ObjectStateFormatter.{Serialize,Deserialize}
Marek Habersack [Tue, 26 Oct 2010 23:09:13 +0000 (01:09 +0200)]
[asp.net] Added encryption notes to ObjectStateFormatter.{Serialize,Deserialize}

13 years ago[asp.net] Fix for bug #648432. HttpResponse.WriteFile maps file path if it isn't...
Marek Habersack [Tue, 26 Oct 2010 22:52:29 +0000 (00:52 +0200)]
[asp.net] Fix for bug #648432. HttpResponse.WriteFile maps file path if it isn't an absolute one.

Both on Linux and on Windows file paths starting with x:\\, x:// and //server don't have their
paths mapped. On Linux it may have weird (and unexpected for a Windows developer) effects since
we cannot treat those names in any special way - the are valid Unix file names. On Windows things
will work as expected.

13 years agoFix some counters under 32bits.
Rodrigo Kumpera [Tue, 26 Oct 2010 20:52:53 +0000 (18:52 -0200)]
Fix some counters under 32bits.

13 years agoImplemenent v4 Monitor::TryEnter overloads.
Rodrigo Kumpera [Tue, 26 Oct 2010 20:17:19 +0000 (18:17 -0200)]
Implemenent v4 Monitor::TryEnter overloads.

* Monitor.cs (TryEnter): Implement v4 overloads that take
a "ref book lookTaken" var. Setting this flag must be done
in the runtime to avoid async exceptions.

* Monitor.cs (Enter): Fix v4 overload to be async exception
safe.

* monitor.c: New icall for the above.

Fixes #649159

13 years agoAdd missing 'same-module' check for GetConstructorToken
Sebastien Pouliot [Tue, 26 Oct 2010 19:58:58 +0000 (15:58 -0400)]
Add missing 'same-module' check for GetConstructorToken

* ModuleBuilder.cs: Add missing 'same-module' check for GetConstructorToken
just like methods and fields already have

13 years agoProperly encode field signatures created using gtds.
Rodrigo Kumpera [Tue, 26 Oct 2010 18:07:18 +0000 (16:07 -0200)]
Properly encode field signatures created using gtds.

* reflection.c (field_encode_signature): If the field
was constructed with a GTD, encode it as an open instance.

Fixes #649233

13 years agoFix exception message
Rodrigo Kumpera [Tue, 26 Oct 2010 16:20:10 +0000 (14:20 -0200)]
Fix exception message

13 years agoCheck for declaring type.
Rodrigo Kumpera [Tue, 26 Oct 2010 16:16:14 +0000 (14:16 -0200)]
Check for declaring type.

* TypeBuilder.cs (GetField): Check if the declaring type
matches the supplied type gtd.

* TypeBuilderTest.cs: Add regression test.

Fixes #649237

13 years agoXamlLanguage.Items is not correctly supported in XamlObjectReader.
Atsushi Eno [Tue, 26 Oct 2010 16:00:59 +0000 (01:00 +0900)]
XamlLanguage.Items is not correctly supported in XamlObjectReader.

13 years agoAdd Dictionary related tests.
Atsushi Eno [Tue, 26 Oct 2010 15:19:01 +0000 (00:19 +0900)]
Add Dictionary related tests.

13 years agoItemType returns Value item for Dictionary type.
Atsushi Eno [Tue, 26 Oct 2010 15:17:37 +0000 (00:17 +0900)]
ItemType returns Value item for Dictionary type.

13 years agoAvoid initing the class for some array related methods in Type.
Rodrigo Kumpera [Tue, 26 Oct 2010 15:16:29 +0000 (13:16 -0200)]
Avoid initing the class for some  array related methods in Type.

* icall.c (ves_icall_MonoType_GetArrayRank): Don't
mono_class_init the class as it's not needed.

* icall.c (ves_icall_Type_make_array_type): Ditto.

Fixes #648833

13 years agoAdd regression test for #649014
Rodrigo Kumpera [Tue, 26 Oct 2010 14:58:26 +0000 (12:58 -0200)]
Add regression test for #649014

13 years agoCasts must be to realizable types.
Rodrigo Kumpera [Tue, 26 Oct 2010 14:38:10 +0000 (12:38 -0200)]
Casts must be to realizable types.

* verify.c (do_cast): The casted to type must be a boxable type.

Fixes #649014

13 years agoFix moonlight build since [s]mcs now depends on System.Diagnostics.Stopwatch
Sebastien Pouliot [Tue, 26 Oct 2010 13:28:16 +0000 (09:28 -0400)]
Fix moonlight build since [s]mcs now depends on System.Diagnostics.Stopwatch

* moonlight_shared_System.dll.sources: Add Stopwatch to fix the build

13 years ago[asp.net] Cosmetics to make code a bit more efficient
Marek Habersack [Tue, 26 Oct 2010 11:36:00 +0000 (13:36 +0200)]
[asp.net] Cosmetics to make code a bit more efficient

13 years ago[asp.net] Fix for bug #648439. Do not prefix HttpRequest.ServerVariables ["QUERY_STRI...
Marek Habersack [Tue, 26 Oct 2010 11:16:25 +0000 (13:16 +0200)]
[asp.net] Fix for bug #648439. Do not prefix HttpRequest.ServerVariables ["QUERY_STRING"] with a '?'

13 years ago[asp.net] Fix for bug #649198. Implement MasterPage.InstantiateInContentPlaceHolder
Marek Habersack [Tue, 26 Oct 2010 10:00:29 +0000 (12:00 +0200)]
[asp.net] Fix for bug #649198. Implement MasterPage.InstantiateInContentPlaceHolder

Code based on patch from Rikard Johansson <rajoo@mail.com>, thanks!

13 years agoMark tls_get with clob:c on arm.
Zoltan Varga [Tue, 26 Oct 2010 02:34:40 +0000 (04:34 +0200)]
Mark tls_get with clob:c on arm.

13 years ago[fix] #647689: Fire the Mouse* events on ComboBox when using the child TextBox.
Carlos Alberto Cortez [Mon, 25 Oct 2010 20:25:27 +0000 (22:25 +0200)]
[fix] #647689: Fire the Mouse* events on ComboBox when using the child TextBox.

* ComboBox.cs: Fire the Mouse* events when using the child
TextBox.
Fixes #647689.

13 years ago[fix] #648449: When updating Z-order for our controls add the scrollbars as well.
Carlos Alberto Cortez [Mon, 25 Oct 2010 09:23:30 +0000 (11:23 +0200)]
[fix] #648449: When updating Z-order for our controls add the scrollbars as well.

* ListView.cs:  When updating the Z-order for our controls don't
forget to add the implicit scrollbars we well.
Fixes #648449.

13 years agoSend Keep-Alive when reusing
Gonzalo Paniagua Javier [Tue, 26 Oct 2010 00:26:48 +0000 (20:26 -0400)]
Send Keep-Alive when reusing

Send Keep-Alive headers when reusing a connection and limit reuses to
100.

13 years agoAdd connection timers and reuses
Gonzalo Paniagua Javier [Tue, 26 Oct 2010 00:20:38 +0000 (20:20 -0400)]
Add connection timers and reuses

Use a timer to handle read timeouts and extend reuses to regular
connections, not just chunked. The timer is set to 90s for the first
request and 15s for subsequent requests.

13 years agoImplemente HttpListenerRequest.KeepAlive
Gonzalo Paniagua Javier [Tue, 26 Oct 2010 00:19:20 +0000 (20:19 -0400)]
Implemente HttpListenerRequest.KeepAlive

Ditto.

13 years agoUse SocketAsyncEventArgs
Gonzalo Paniagua Javier [Mon, 25 Oct 2010 22:24:56 +0000 (18:24 -0400)]
Use SocketAsyncEventArgs

BeginAccept/EndAccept replaced by AcceptAsync.

13 years ago[asp.net,routing] Fix for bug #648901. Matching engine must ignore trailing slash...
Marek Habersack [Mon, 25 Oct 2010 23:58:35 +0000 (01:58 +0200)]
[asp.net,routing] Fix for bug #648901. Matching engine must ignore trailing slash in the URLs.

13 years ago[asp.net] HttpRuntime.AppDomainAppPath may be null during tests, check it before...
Marek Habersack [Mon, 25 Oct 2010 23:56:48 +0000 (01:56 +0200)]
[asp.net] HttpRuntime.AppDomainAppPath may be null during tests, check it before using.

13 years agoAdd regression test for #649017.
Rodrigo Kumpera [Mon, 25 Oct 2010 21:47:07 +0000 (19:47 -0200)]
Add regression test for #649017.

13 years agoRename create_methodspec to create_open_instance.
Rodrigo Kumpera [Mon, 25 Oct 2010 21:40:54 +0000 (19:40 -0200)]
Rename create_methodspec to create_open_instance.

13 years agoEncode all gtd as open instantiations by default.
Rodrigo Kumpera [Mon, 25 Oct 2010 21:33:19 +0000 (19:33 -0200)]
Encode all gtd as open instantiations by default.

* ILGenerator.cs (TokenGenerator): GetToken now taken an extra
argument create_open_instance if it should encode a gtd as
a generic instance.

* ILGenerator.cs (ILGenerator): Ask TokenGenerator to create
an open instance under all cases but if the opcode is ldtoken.

* ModuleBuilder.cs: Adjust to signature change.

* DynamicMethod.cs: Ditto.

* Environment.cs: Since an icall signature has changed, we
must bump corlib version.

* appdomain.c: Ditto.

* icall.c: Pass the new value forward to
mono_image_create_token.

* reflection.c (mono_image_create_token): Handle create_methodspec
for TypeBuilder and MonoType.

Fixes #649017

13 years agoKeep only 1 Dispose implementation
Marek Safar [Mon, 25 Oct 2010 17:45:26 +0000 (18:45 +0100)]
Keep only 1 Dispose implementation

13 years agoRecover from invalid implicit lambda block
Marek Safar [Mon, 25 Oct 2010 17:43:50 +0000 (18:43 +0100)]
Recover from invalid implicit lambda block

13 years agoAdd more details to timing debugging
Marek Safar [Sun, 24 Oct 2010 16:14:30 +0000 (17:14 +0100)]
Add more details to timing debugging

13 years agoWarnings cleanup.
Marek Safar [Sun, 24 Oct 2010 16:13:02 +0000 (17:13 +0100)]
Warnings cleanup.

13 years agoMake setting a position out of the buffer size actually work
Marek Safar [Sun, 24 Oct 2010 15:59:46 +0000 (16:59 +0100)]
Make setting a position out of the buffer size actually work

13 years agoAvoid nullref when clearing TextBox that has not yet been displayed
Latif Khalifa [Tue, 19 Oct 2010 16:37:04 +0000 (00:37 +0800)]
Avoid nullref when clearing TextBox that has not yet been displayed

13 years ago[API] Fix for bug: https://bugzilla.novell.com/show_bug.cgi?id=648888
Pablo Ruiz Garcia [Mon, 25 Oct 2010 00:10:37 +0000 (08:10 +0800)]
[API] Fix for bug: https://bugzilla.novell.com/show_bug.cgi?id=648888

13 years agoImprove namespace collector implementation to prepare for positional parameters.
Atsushi Eno [Mon, 25 Oct 2010 16:35:15 +0000 (01:35 +0900)]
Improve namespace collector implementation to prepare for positional parameters.

13 years agoAdd a test for #632224. Fix dtest-app.exe dependencies.
Zoltan Varga [Mon, 25 Oct 2010 16:08:51 +0000 (18:08 +0200)]
Add a test for #632224. Fix dtest-app.exe dependencies.

13 years agoDisable catchpoints when the DISABLE_BREAKPOINTS flag is used during an invoke. Fixes...
Zoltan Varga [Mon, 25 Oct 2010 16:08:10 +0000 (18:08 +0200)]
Disable catchpoints when the DISABLE_BREAKPOINTS flag is used during an invoke. Fixes #632224.

13 years agocheckin forgotten files.
Atsushi Eno [Mon, 25 Oct 2010 13:34:42 +0000 (22:34 +0900)]
checkin forgotten files.

13 years agoAdd PositionalParameters tests (NotWorking).
Atsushi Eno [Mon, 25 Oct 2010 13:33:01 +0000 (22:33 +0900)]
Add PositionalParameters tests (NotWorking).

Before hacking StaticExtension support, we need it working.

13 years ago[corlib] added a few missing Environment.SpecialFolder definitions to InternalGetFold...
Marek Habersack [Sun, 24 Oct 2010 09:00:30 +0000 (11:00 +0200)]
[corlib] added a few missing Environment.SpecialFolder definitions to InternalGetFolderPath (4.0)

13 years ago[asp.net] Better handling of application's AppDomain restart
Marek Habersack [Sat, 23 Oct 2010 22:47:01 +0000 (00:47 +0200)]
[asp.net] Better handling of application's AppDomain restart

* HttpRuntime.cs: disable filesystem watchers on appdomain shutdown and refuse to process
  requests while the current AppDomain is unloading
* HttpApplicationFactory.cs: if the current AppDomain is unloading, ignore FileSystemWatcher
  notifications
* WebConfigurationManager.cs: work around a deadlock issue when entering a ReaderWriterLockSlim
  upgradeable read lock very early during ASP.NET runtime/AppDomain initialization. Every few runs
  the attempt would lock up and since adding a section to cache is not a critical operation we can
  afford timing the lock out in this case. The lockup is probably due to the fact that RWLS is using
  thread local storage to store the current thread's lock status and it may happen that the TLS is
  not cleared during thread object finalization (see metadata/threads.c, the start_wrapper function)

13 years agoRefactoring namespace declaration output for getting .NET-like attribute output.
Atsushi Eno [Mon, 25 Oct 2010 11:19:24 +0000 (20:19 +0900)]
Refactoring namespace declaration output for getting .NET-like attribute output.

13 years agoWrite some special names back when writing xaml to XmlWriter.
Atsushi Eno [Mon, 25 Oct 2010 08:57:58 +0000 (17:57 +0900)]
Write some special names back when writing xaml to XmlWriter.

13 years agoAdd a couple of writer tests (NotWorking) and fixed XamlServices to not omit xmldecl.
Atsushi Eno [Mon, 25 Oct 2010 07:17:53 +0000 (16:17 +0900)]
Add a couple of writer tests (NotWorking) and fixed XamlServices to not omit xmldecl.

13 years agoThrow exceptions here instead of in DeflateStream
Gonzalo Paniagua Javier [Sun, 24 Oct 2010 22:44:33 +0000 (18:44 -0400)]
Throw exceptions here instead of in DeflateStream

To get the same stack trace as in bug #647948, we need to set the
underlying DeflateStream to null and throw the ObjectDisposedException
from this class. Same applies to the NotSupportedException.

13 years agoBinaryWriter.BaseStream calls Flush()
Gonzalo Paniagua Javier [Sun, 24 Oct 2010 22:43:18 +0000 (18:43 -0400)]
BinaryWriter.BaseStream calls Flush()

Before returning the base stream, BinaryWriter.BaseStream calls Flush
on it. Added test for this.

Fixes bug #647948.

13 years agoAdd tests for the eglib remapper.
Zoltan Varga [Sun, 24 Oct 2010 17:29:44 +0000 (19:29 +0200)]
Add tests for the eglib remapper.