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.
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.
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).
Atsushi Eno [Thu, 28 Oct 2010 20:56:18 +0000 (05:56 +0900)]
Add GetItems tests for collection invoker.
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
Atsushi Eno [Thu, 28 Oct 2010 18:24:13 +0000 (03:24 +0900)]
Collected tested types into a new file.
Atsushi Eno [Thu, 28 Oct 2010 18:03:25 +0000 (03:03 +0900)]
Add empty List<int> case.
Andrew Jorgensen [Thu, 28 Oct 2010 17:49:41 +0000 (11:49 -0600)]
Move version to 2.9 (next to be 2.10)
Atsushi Eno [Thu, 28 Oct 2010 16:40:10 +0000 (01:40 +0900)]
Add more object reader tests with corner cases.
Atsushi Eno [Thu, 28 Oct 2010 16:38:52 +0000 (01:38 +0900)]
Fix XamlType.Name to take TypeArguments into consideration.
Atsushi Eno [Thu, 28 Oct 2010 16:36:54 +0000 (01:36 +0900)]
Use ArrayList like .NET (no practical changes).
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
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.
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.
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.
Marek Habersack [Thu, 28 Oct 2010 13:16:41 +0000 (15:16 +0200)]
[asp.net] Cosmetics + dead code removal
Marek Habersack [Thu, 28 Oct 2010 12:50:23 +0000 (14:50 +0200)]
[asp.net] Fix for bug #646810. Implemented FormsAuthentication.EnableFormsAUthentication + tests
Marek Safar [Thu, 28 Oct 2010 12:43:17 +0000 (13:43 +0100)]
Add more type parameter checks for inherited constraints.
Marek Safar [Wed, 27 Oct 2010 16:00:03 +0000 (17:00 +0100)]
New test.
Marek Safar [Wed, 27 Oct 2010 15:59:12 +0000 (16:59 +0100)]
Implement type inference of dynamic arguments used as unknown types
Marek Safar [Wed, 27 Oct 2010 14:20:51 +0000 (15:20 +0100)]
Use correct location for unexpected type parameter
Atsushi Eno [Thu, 28 Oct 2010 12:06:01 +0000 (21:06 +0900)]
Add another couple of MarkupExtension related tests.
Atsushi Eno [Thu, 28 Oct 2010 08:58:51 +0000 (17:58 +0900)]
Add more complicated PositionalParameters test (which actually does not use it).
Atsushi Eno [Thu, 28 Oct 2010 08:57:38 +0000 (17:57 +0900)]
Remove extra DateTime handling and add some rules for PositionalParameters.
Geoff Norton [Wed, 27 Oct 2010 20:46:27 +0000 (16:46 -0400)]
Fix the profiler thread start/end hooks for threadpool threads
Andreia Gaita [Wed, 27 Oct 2010 18:32:07 +0000 (19:32 +0100)]
[Xml] Fix GetAttribute to handle null namespaces properly, add unit test.
Rodrigo Kumpera [Wed, 27 Oct 2010 16:29:17 +0000 (14:29 -0200)]
Only set lockTaken to TRUE if it did not timeout.
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.
Atsushi Eno [Wed, 27 Oct 2010 13:58:29 +0000 (22:58 +0900)]
Some internal refactoring for new XamlObjectReader implementation.
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
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.
Marek Safar [Wed, 27 Oct 2010 12:37:06 +0000 (13:37 +0100)]
Reorder MethodBase::Attributes usage
Marek Safar [Wed, 27 Oct 2010 12:36:36 +0000 (13:36 +0100)]
More tests
Marek Safar [Wed, 27 Oct 2010 12:35:17 +0000 (13:35 +0100)]
[649448] Compare original goto block for cloned blocks.
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
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.
Atsushi Eno [Wed, 27 Oct 2010 10:34:45 +0000 (19:34 +0900)]
Add a few more default value tests.
Atsushi Eno [Wed, 27 Oct 2010 10:33:53 +0000 (19:33 +0900)]
Move member ordering code to LookupAllMembers().
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.
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
Atsushi Eno [Wed, 27 Oct 2010 09:05:19 +0000 (18:05 +0900)]
Uncommend code that prohibits XamlMemberInvoker.GetValue() on XamlDirective.
Atsushi Eno [Wed, 27 Oct 2010 09:04:13 +0000 (18:04 +0900)]
Fix wrong lookup base call.
Marek Habersack [Wed, 27 Oct 2010 08:52:40 +0000 (10:52 +0200)]
[asp.net] Fix a build-breaking typo introduced in
ea730c5de2e555fb8ee5c5d906ad41a602f55848
Marek Safar [Wed, 27 Oct 2010 08:48:31 +0000 (09:48 +0100)]
Make the static field readonly
Marek Safar [Wed, 27 Oct 2010 08:50:24 +0000 (09:50 +0100)]
Make static fields readonly
Marek Safar [Wed, 27 Oct 2010 08:50:07 +0000 (09:50 +0100)]
crlf fix
Marek Safar [Tue, 26 Oct 2010 15:53:03 +0000 (16:53 +0100)]
Revert unwanted changes
Marek Safar [Tue, 26 Oct 2010 15:47:48 +0000 (16:47 +0100)]
Check nested declaring types when testing member overrides
Marek Safar [Tue, 26 Oct 2010 15:45:15 +0000 (16:45 +0100)]
Delay expensive inflator construction for type parameter constraints
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
Marek Habersack [Tue, 26 Oct 2010 23:09:13 +0000 (01:09 +0200)]
[asp.net] Added encryption notes to ObjectStateFormatter.{Serialize,Deserialize}
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.
Rodrigo Kumpera [Tue, 26 Oct 2010 20:52:53 +0000 (18:52 -0200)]
Fix some counters under 32bits.
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
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
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
Rodrigo Kumpera [Tue, 26 Oct 2010 16:20:10 +0000 (14:20 -0200)]
Fix exception message
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
Atsushi Eno [Tue, 26 Oct 2010 16:00:59 +0000 (01:00 +0900)]
XamlLanguage.Items is not correctly supported in XamlObjectReader.
Atsushi Eno [Tue, 26 Oct 2010 15:19:01 +0000 (00:19 +0900)]
Add Dictionary related tests.
Atsushi Eno [Tue, 26 Oct 2010 15:17:37 +0000 (00:17 +0900)]
ItemType returns Value item for Dictionary 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
Rodrigo Kumpera [Tue, 26 Oct 2010 14:58:26 +0000 (12:58 -0200)]
Add regression test for #649014
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
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
Marek Habersack [Tue, 26 Oct 2010 11:36:00 +0000 (13:36 +0200)]
[asp.net] Cosmetics to make code a bit more efficient
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 '?'
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!
Zoltan Varga [Tue, 26 Oct 2010 02:34:40 +0000 (04:34 +0200)]
Mark tls_get with clob:c on arm.
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.
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.
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.
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.
Gonzalo Paniagua Javier [Tue, 26 Oct 2010 00:19:20 +0000 (20:19 -0400)]
Implemente HttpListenerRequest.KeepAlive
Ditto.
Gonzalo Paniagua Javier [Mon, 25 Oct 2010 22:24:56 +0000 (18:24 -0400)]
Use SocketAsyncEventArgs
BeginAccept/EndAccept replaced by AcceptAsync.
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.
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.
Rodrigo Kumpera [Mon, 25 Oct 2010 21:47:07 +0000 (19:47 -0200)]
Add regression test for #649017.
Rodrigo Kumpera [Mon, 25 Oct 2010 21:40:54 +0000 (19:40 -0200)]
Rename create_methodspec to create_open_instance.
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
Marek Safar [Mon, 25 Oct 2010 17:45:26 +0000 (18:45 +0100)]
Keep only 1 Dispose implementation
Marek Safar [Mon, 25 Oct 2010 17:43:50 +0000 (18:43 +0100)]
Recover from invalid implicit lambda block
Marek Safar [Sun, 24 Oct 2010 16:14:30 +0000 (17:14 +0100)]
Add more details to timing debugging
Marek Safar [Sun, 24 Oct 2010 16:13:02 +0000 (17:13 +0100)]
Warnings cleanup.
Marek Safar [Sun, 24 Oct 2010 15:59:46 +0000 (16:59 +0100)]
Make setting a position out of the buffer size actually work
Latif Khalifa [Tue, 19 Oct 2010 16:37:04 +0000 (00:37 +0800)]
Avoid nullref when clearing TextBox that has not yet been displayed
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
Atsushi Eno [Mon, 25 Oct 2010 16:35:15 +0000 (01:35 +0900)]
Improve namespace collector implementation to prepare for positional parameters.
Zoltan Varga [Mon, 25 Oct 2010 16:08:51 +0000 (18:08 +0200)]
Add a test for #632224. Fix dtest-app.exe dependencies.
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.
Atsushi Eno [Mon, 25 Oct 2010 13:34:42 +0000 (22:34 +0900)]
checkin forgotten files.
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.
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)
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)
Atsushi Eno [Mon, 25 Oct 2010 11:19:24 +0000 (20:19 +0900)]
Refactoring namespace declaration output for getting .NET-like attribute output.
Atsushi Eno [Mon, 25 Oct 2010 08:57:58 +0000 (17:57 +0900)]
Write some special names back when writing xaml to XmlWriter.
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.
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.
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.
Zoltan Varga [Sun, 24 Oct 2010 17:29:44 +0000 (19:29 +0200)]
Add tests for the eglib remapper.