Alex Corrado
350fcbd003
2.10.5
2011-08-22 19:58:07 -04:00
Jérémie Laval
c6799b1f41
Throw when a non-finished task is started
2011-08-20 15:00:24 +02:00
Jérémie Laval
f260ff4299
Make TaskCompletionSource methods thread-safe
...
Conflicts:
mcs/class/corlib/System.Threading.Tasks/TaskCompletionSource.cs
2011-08-20 14:54:28 +02:00
Rodrigo Kumpera
7122b78d60
Fix sgen-arm-mach. It requires some #define juggling.
...
.
2011-08-19 20:36:39 -03:00
Rodrigo Kumpera
52971cce4c
Fix variance test involving nullable types.
...
* class.c (mono_class_is_variant_compatible): Reject valuetypes
if not the same straight away. This fixes testing IEnumerable<int?>
with IEnumerable<int>.
Fixes bxc #185
2011-08-19 19:32:48 -03:00
Rodrigo Kumpera
5dc77749e7
Correctly calculate the size of the freed array buffer.
...
* sgen-bridge.c (dyn_array_ensure_capacity): We must correctly
calculate the size as our allocator asserts when we do it with
very large allocs.
2011-08-19 02:06:24 -03:00
Rodrigo Kumpera
472b3e6fca
Fix android's broken pthread_kill under sgen.
2011-08-18 14:02:26 -03:00
Alan McGovern
59b4c5bc3d
[LinkedList] Optimise Clear slightly.
2011-08-18 16:06:27 +01:00
Alan McGovern
f105c6d4e7
Merge pull request #161 from LogosBible/master
...
Fix bug #311 : On LinkedList.Clear, detach each node instead of dropping them en masse.
2011-08-18 16:06:10 +01:00
Zoltan Varga
2e637c4cba
Disable some failing LLVM passes. Should fix bxc #280 .
2011-08-18 17:00:34 +02:00
Jérémie Laval
8d44e61042
Fix coding style
2011-08-17 20:02:02 +02:00
Sebastien Pouliot
eac9866b2c
Provide an error message if an instance method is decorated with [MonoPInvokeCallback]. Ease finding issues like bug #296
2011-08-17 10:49:30 -04:00
Alan McGovern
7ada4aec7b
[System.IO.Packaging] Fix calling convention related issues
...
The P/Invokes should be Cdecl as the library is compiled with that
calling convention. The delegates passed to native code must also
be marshalled as Cdecl. Fixes BXC #223 .
2011-08-17 12:50:23 +01:00
Miguel de Icaza
dacb11a24c
updated copyrights
2011-08-17 01:26:05 -04:00
Miguel de Icaza
5c44041365
More updates
2011-08-17 01:21:40 -04:00
Rodrigo Kumpera
56b901df8f
Fix g_log redirection under android.
2011-08-16 16:30:06 -03:00
Jérémie Laval
582bd35450
Backport TaskCreationOptions check from master
2011-08-16 19:06:45 +02:00
Jeffrey Stedfast
6057352d91
Merge pull request #158 from nickers/mono-2-10
...
remove debug CWL's
2011-08-16 04:35:11 -07:00
Tomasz Wsuł
3b450189bb
Remove writing statement on standard output
2011-08-16 12:56:08 +02:00
Jeffrey Stedfast
7878c22bbf
Fixed a typo in zoltan's last commit
2011-08-15 18:05:13 -04:00
Jeffrey Stedfast
674372dd15
Fix for bug #445855
...
In this day and age of mobile personal computing devices,
we need to periodically check the underlying system
timezone because the device may have crossed a timezone
boundary.
2011-08-15 15:19:20 -04:00
Zoltan Varga
af804a9305
Escape characters in LLVM symbol names
2011-08-15 17:47:56 +01:00
Zoltan Varga
7e2eff0be7
Don't pass MONO_UNWIND_ACTUAL_METHOD to the stack walker in a signal handler, its not signal safe. Fixes bxc #263 .
2011-08-14 22:35:55 +02:00
Gonzalo Paniagua Javier
7de999655d
[threadpool] Exit on unhandled exceptions only
...
Unhandled exceptions will only set the exitcode if there is no
AppDomain unhandled exception handler. When the exitcode is set,
the TP will exit for unhandled exceptions.
Fixes bug #227 .
2011-08-13 00:34:13 -04:00
Gonzalo Paniagua Javier
1b84abfcab
[threadpool] Work around for a race-condition
...
Under some circumstances new_job was not signaled and the threadpool
threads didn't realized there was a workitem in the queue.
Fixes Xamarin bug #12 and Novell bug #690357 .
2011-08-12 23:17:05 -04:00
Sebastien Pouliot
8286cbf198
Use 'as' for casting certificate extensions since we already deal with null and malformed extensions will throw, hard to debug, ICE when we just want to ignore them
2011-08-12 14:59:12 -04:00
Gonzalo Paniagua Javier
db7d7c47cb
Fix the range for rnd.Next()
2011-08-11 14:17:23 -04:00
Rodrigo Kumpera
9445d6e22c
Add IObserver/IObservable to MOBILE profile.
2011-08-11 13:19:47 -03:00
Marek Habersack
209c253e3f
Compilation fix for e449d41158
2011-08-11 02:29:07 +02:00
Marek Habersack
e449d41158
[runtime] Fix for Xamarin bug #99 . Don't fail to parse assembly names with spaces surrounding = in key=value pairs
2011-08-11 02:20:11 +02:00
Zoltan Varga
9b4a07a69e
Fix the newly added test_0_llvm_regress_171 ().
2011-08-10 18:10:58 +02:00
Jérémie Laval
28766cfe96
Avoid creating a delegate instance in general case when setting up continuations
...
Conflicts:
mcs/class/corlib/System.Threading.Tasks/Task.cs
2011-08-10 17:16:23 +02:00
Jonathan Pryor
a95adaf53d
[System,MOBILE] Add System.Text.RegularExpressions.RegexOptions.Compiled.
...
Add the RegexOptions.Compiled enumeration value to the MOBILE profile.
Fixes: http://bugzilla.xamarin.com/show_bug.cgi?id=149
MonoTouch and Mono for Android still use `PatternCompiler`, which is
interpreted. Thus RegexOptions.Compiled is ignored, and is present only for
compatibility with Windows Phone 7, which states [0]:
Present only in Silverlight for Windows Phone, but not supported.
[0] http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regexoptions(VS.96).aspx
2011-08-09 21:33:56 -04:00
Zoltan Varga
7ae2112edc
LLVM requires two PHI entries if a previous bblock branches to the current bblock using a conditional branch whose two targets are the same. Fixes #171 .
2011-08-09 21:41:54 +02:00
Zoltan Varga
79b99d358b
Add support for reference instances of Interlocked.Exchange<T> to full-aot, similarly to Interlocked.CompareExchange<T>.
2011-08-09 19:16:15 +02:00
Zoltan Varga
12fedc8ee6
Merge pull request #154 from mdsol/fix-mono-tarball-tests
...
Fix mono tarball tests
2011-08-09 10:03:00 -07:00
Jeffrey Stedfast
27589a4031
If #CONFIGURATION_DEP isn't defined, we still want to get a default proxy
2011-08-09 12:30:32 -04:00
Alex Corrado
f12adef20c
2.10.4
2011-08-08 21:00:25 -04:00
Harry Wilkinson
049efb2da8
Include mono/tests/delegate2.exe.config to the source tarball so that the tests pass
2011-08-08 18:16:03 +01:00
Gonzalo Paniagua Javier
d41b9d61c2
Merge pull request #150 from bassamtabbara/mono-2-10
...
Some fixes to mono-2-10
2011-08-08 06:26:42 -07:00
Bassam Tabbara
71b1f58d41
Fixed regression in System.Web.Routing caused by 62b047ae5b. Value and constraint where switched when evaluating regex route constraints.
2011-08-07 23:09:08 -07:00
Bassam Tabbara
f983186526
Remove Console.WriteLine from DriveInfo.GetDrives()
2011-08-07 11:51:08 -07:00
Bassam Tabbara
c726c88f32
Networkstream now throws IOException('connection closed') if the socket was closed/disposed
2011-08-07 11:17:27 -07:00
Jérémie Laval
3cb9ce92bc
Fix for #162
2011-08-05 22:35:13 +02:00
Miguel de Icaza
2504797e50
Merge pull request #129 from grumpydev/CryptoFixo
...
Fix for out of bounds exception in Rfc2898DeriveBytes
2011-08-05 10:05:56 -04:00
Mark Probst
67ebb6a498
[sgen] Enqueue finalizers after update the pointer.
...
If the object was forwarded we read a bogus vtable and hence a bogus
klass.
2011-08-04 12:04:50 +02:00
Atsushi Eno
d9e839c91b
Merge pull request #146 from flutos/207ce0bccceec3ff7860ea986086fedb5a92d822
...
fix for bug 708178 that would fail if the type wasnt IEnumerable, should check if it implement IEnumerable rather than is IEnumerable
2011-08-04 09:08:12 +09:00
Rodrigo Kumpera
fd65ec9388
Fix padding of call instructions.
2011-08-03 19:47:34 -03:00
Chris Toshok
7a0052ae2f
don't redefine ABS
2011-08-03 10:42:01 -07:00
Marek Habersack
ec0e9d7771
[runtime, globalization] Fix for Xamarin bug #161 . Fix culture info data for certain locale short date formats
...
Modified locales which don't use '/' as the short date separator.
2011-08-03 16:00:46 +02:00
Rolf Bjarne Kvinge
4325b8151a
[aot-compiler] Replace assert with descriptive error message.
2011-08-03 15:07:41 +02:00
Atsushi Eno
482e406319
Fix NET_2_1 builds (regression from the previous SecurityBindingElement fixes).
2011-08-03 13:54:08 +09:00
Rodrigo Kumpera
e421b10a3d
Implement fail tramp support on arm for full-aot imt thunks.
...
* aot-compiler.c (arch_emit_imt_thunk): Implement fail tramp
support on arm. This enables variance to work under full-aot.
The code blowout is not really significant as even on non linked
apps the imt thunk overhead is 0.5%.
2011-08-03 00:47:20 -03:00
Geoff Norton
55c4b01d95
[gc] Darwin/AMD64 can have 64-bit thread id's, so we need to ensure
...
we cast properly to make sure the modulus has a valid result.
Additionally add support for x86_THREAD_STATE64.
2011-08-02 23:36:05 -04:00
Atsushi Eno
a5610cbed1
Merge pull request #145 from ngraziano/99b87f07af0beed3a887
...
Fix Service Model Xml Serialization and XMLAttributes
2011-08-02 13:51:35 -07:00
Atsushi Eno
fc9e1be0b3
Fix build, merge some missing changes to MessagePartDescription.
2011-08-03 05:46:53 +09:00
Atsushi Eno
9b9fef57d9
Fix bug #707434 , check order only when applicable.
...
Based on the input by Scott Fluto.
2011-08-03 05:36:30 +09:00
Nicolas GRAZIANO
99b87f07af
TypedMessageConverter do not take into account the xml attribute which modify the serialization.
...
Correction and Unit Test.
2011-08-02 22:15:58 +02:00
Atsushi Eno
9a69207087
Merge pull request #143 from mistoll/master
...
Fixes for WCF BasicHttpBinding with message security
2011-08-02 22:53:01 +09:00
Alex
4cfb3889f8
Define MONO_ARCH_NOMAP32BIT for DragonFly BSD.
2011-08-02 00:07:59 +02:00
Atsushi Eno
0a7f80fb0a
Fill/reflect ReturnValue to and from corresponding message part.
...
This may have fixed bug #41 .
2011-08-02 10:00:49 -07:00
Atsushi Eno
df66c40aaa
part of fix bug #41 . MessageParameterAttribute is considered for return value.
...
Conflicts:
mcs/class/System.ServiceModel/System.ServiceModel.Description/MessagePartDescription.cs
2011-08-02 07:52:03 -07:00
Jeffrey Stedfast
9b3e4f9034
Oops, fixed a typo
2011-08-01 16:59:52 -04:00
Alex
89dad63b0f
Add support for DragonFly and NetBSD to sigcontext.
2011-08-01 10:29:43 +02:00
Jeffrey Stedfast
9636231dda
Fix a mkbundle compiler warning by #including mono-config.h
2011-07-29 16:59:27 -04:00
Miguel de Icaza
a2d896ec4e
Update copyrights
2011-07-29 15:22:11 -04:00
Rodrigo Kumpera
66187b25b6
Use wrappers for accessing socket errors. Cygwin does not have some errors in errno.h. Fixes Windows build.
2011-07-29 13:42:25 -03:00
Rodrigo Kumpera
f3deab1057
OSX won't expose IPV6_PKTINFO unless __APPLE_USE_RFC_3542 is defined.
2011-07-28 15:23:36 -03:00
Rodrigo Kumpera
5a9f5defc3
Handle a race on thread cleanup.
...
* mini.c (mini_thread_cleanup): Under some rare cases it's
possible to have a NULL lmf.
2011-07-28 15:23:33 -03:00
Alex Corrado
e43a74ae3f
2.10.3
2011-07-27 19:07:46 -04:00
Jérémie Laval
06cd95ea65
Same test for TaskCompletionSource
2011-07-27 19:52:01 -04:00
Jérémie Laval
7d088a3f17
Ensure that Task is in a correct initial state before starting it for real
2011-07-27 19:36:40 -04:00
Jérémie Laval
0ddabfc4ab
Test that futures throw Exception through Result property when they are Faulted
2011-07-27 19:35:50 -04:00
Jérémie Laval
8078626d49
Add test for various AggregateException ctor exception situations
2011-07-27 18:32:05 -04:00
Jérémie Laval
ffad7f7365
Move innerExceptions internal null check at the right place.
2011-07-27 18:21:36 -04:00
Jérémie Laval
da2f5156b2
Add testcase to ensure unobserved exception on Task are correctly propagated
2011-07-27 18:12:23 -04:00
Jérémie Laval
e3578fe451
Makes AggregateException ToString output closer to .NET one
2011-07-27 18:03:28 -04:00
Jérémie Laval
036c395d3c
Fix AggregateException behavior
2011-07-27 18:03:24 -04:00
Jérémie Laval
474417efb7
Allow using a worker number that is greater than Environment.ProcessorCount for parallel loops.
2011-07-27 16:24:08 -04:00
Atsushi Eno
23263e537f
Fix wsdl import wrt element qname (!= type name).
2011-07-27 21:05:56 -07:00
Jeffrey Stedfast
c98cedfc91
Don't invoke libc uname() on non-Unix systems
2011-07-26 18:41:49 -04:00
Mark Probst
2228af8148
[sgen] Use the proper object size when scanning arrays from a card table.
...
Using the block object size is incorrect since we might scan beyond
the end of the array.
2011-07-26 18:28:23 +02:00
Mark Probst
c6bbff5b5e
[sgen] Make the card table on AMD64 correct for 64 bit nursery addresses.
2011-07-26 18:25:46 +02:00
Mark Probst
1b58ec73aa
[sgen] Make mono_sgen_safe_object_get_size() handle forwarded objects.
...
This is sometimes called on forwarded objects from the major collector
during finalization. Now it doesn't crash anymore.
2011-07-26 18:24:09 +02:00
Miguel de Icaza
f49164bf76
Fix invocation to syslog
2011-07-25 19:10:07 -04:00
Atsushi Eno
1ae6c346f6
Fix bug #16 : use Owner node instead of Parent. Patch by Martin Potter.
2011-07-26 04:25:00 +09:00
Sebastien Pouliot
45064beb94
Fixed decoding of PKCS/CMS message with detached ContentInfo. Pull request from Pablo Ruiz Garcia <[email protected] >
2011-07-25 10:32:46 -04:00
Duane Wandless
8bd7d107a8
Fix crash on Lion when exiting
2011-07-24 15:59:41 -03:00
Geoff Norton
d465c35811
Fix configure check for darwin to support all variants
2011-07-24 15:59:40 -03:00
Zoltan Varga
fcff387c6a
Fix a crash in the soft-float decompose code when a branch following an fcompare is optimized away. Fixes #705186 .
2011-07-24 20:45:24 +02:00
Atsushi Eno
513122c74e
Avoid possible duplicate xmlns output. Fixes xsp-based hosting somehow.
2011-07-22 14:04:08 +09:00
Atsushi Eno
d68521e673
Fix bug #703910 - implement Order support in XmlSerializer.
2011-07-21 04:58:51 +09:00
Marek Safar
c5302ba6b6
Merge pull request #135 from eue/mono-2-10
...
-checked command-line option
2011-07-20 01:10:43 -07:00
Martinho Fernandes
70352e16a9
Test for bug #706877
2011-07-20 09:02:23 +01:00
Martinho Fernandes
150ea5489d
[Fix] Command-line option -checked now works (bug #706877 )
...
The -checked option was not being considered in the BuilderContext.
Now it is set on construction of BuilderContext to the value from RootContext.
2011-07-20 09:01:24 +01:00
Atsushi Eno
dd4afcfa02
fix build regarding ContentType.
2011-07-19 10:03:37 +09:00
Atsushi Eno
a15e2d0bec
support action parameter in SOAP 1.2 content type. Close pull request #133 .
2011-07-19 02:30:11 +09:00
Rodrigo Kumpera
1e7567b332
Merge pull request #132 from ngraziano/fb497cbb6503c2a0913fddba700079608bcd8892
...
"make dist" do not work in branch mono-2-10
2011-07-18 07:19:38 -07:00
Atsushi Eno
1dba37de1c
Fix bug 704813: just ignore members of type IEnumerable`1 without Add().
2011-07-16 06:51:45 -07:00
Rodrigo Kumpera
bfdd13a52c
If a thread abort is fatal, print the exception before dying.
2011-07-15 18:16:36 -03:00
Rodrigo Kumpera
a26b65f6b3
Improve stacktraces when facing a runtime invoke wrapper.
...
* mini-exceptions.c (mono_handle_exception_internal_first_pass):
Don't trim the trace list if we find a filter clause from a wrapper.
This makes stacktraces across MRI's work.
Extract trace trimming into a macro to reduce code duplication.
2011-07-15 18:10:40 -03:00
Rodrigo Kumpera
36f12fc250
Avoid a .cctor on the initialization path.
2011-07-12 19:50:46 -03:00
Rodrigo Kumpera
8c253ee6c3
Add shared_perfcounters option to enable minimal.
2011-07-12 19:50:44 -03:00
Nicolas Graziano
fb497cbb65
Correct the include files Platform is not in test.
2011-07-12 16:01:05 +02:00
Rodrigo Kumpera
11bacf8e1b
Do DISABLE_PORTABILITY more agressively.
2011-07-12 01:35:35 -03:00
Zoltan Varga
2599353bc0
Add a test for 7cb704d9a9.
2011-07-12 03:19:10 +02:00
Zoltan Varga
9f92b788d8
Avoid register allocation problems when a try clause is nested inside a handler block.
2011-07-12 02:09:27 +02:00
Zoltan Varga
c584c82e0d
Fix the length of r4const on arm.
2011-07-11 17:11:00 +02:00
Zoltan Varga
aa4803c5a4
Fix caching in mono_marshal_get_array_address ().
2011-07-11 00:25:52 +02:00
Zoltan Varga
816556dbb8
Use TARGET_ANDROID instead of PLATFORM_ANDROID in one place.
2011-07-11 00:25:50 +02:00
Zoltan Varga
d9ecc66fb6
Really fix the -Wno-unused-but-set-variable check.
2011-07-11 00:25:49 +02:00
Zoltan Varga
f333e91d0a
Clean up the cross-compile configure.in code. Add a TARGET_ANDROID define.
2011-07-11 00:25:49 +02:00
Rodrigo Kumpera
f87620d145
Fix signal chaining to handle a stupid previous handler.
2011-07-09 13:40:43 -03:00
Rodrigo Kumpera
8bd567de14
Arm has MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX. This gives us nice stacktraces on unhandles exceptions.
2011-07-09 13:40:36 -03:00
Rodrigo Kumpera
28a61a5d55
Disable the exception thread under iOS since it's neither needed nor working.
2011-07-09 13:40:29 -03:00
Atsushi Eno
d25c23dc46
Full equivalence comparison is unnecessary for MessageEncoder ContentType.
...
based on https://github.com/mono/mono/pull/130
2011-07-09 06:52:43 +09:00
Jeffrey Stedfast
481881bdf7
Reverted previous commit, struct sizes vary way too much between platforms
2011-07-06 18:20:20 -04:00
Jeffrey Stedfast
44ab43948a
Use a struct utsname when calling uname() instead of an 8K buffer
2011-07-06 18:07:34 -04:00
Jeffrey Stedfast
643c0f0cba
Add System/Platform.cs to *System*.dll.sources
2011-07-06 13:30:06 -04:00
Jeffrey Stedfast
da0d698fce
Make internal Platform class static
2011-07-06 12:43:49 -04:00
Jeffrey Stedfast
6f1458dea4
Load the correct type on MacOSX (as opposed to iOS)
2011-07-06 12:04:34 -04:00
Jeffrey Stedfast
72e554c612
Implemented a shared way to detect MacOSX for System.dll
2011-07-05 17:50:21 -04:00
Jeffrey Stedfast
e54a124e71
Doh, do proper OSX detection
2011-07-05 17:00:16 -04:00
Jeffrey Stedfast
62e6bd03f6
Use runtime checks to decide to use CoreFoundation.CFNetwork.GetDefaultProxy()
2011-07-05 16:30:50 -04:00
Jeffrey Stedfast
be2e765af8
On MonoTouch, call CoreFoundation.CFNetwork.GetDefaultProxy() to get the default proxy
2011-07-05 13:56:51 -04:00
Marek Habersack
c5b95f4bbb
[asp.net] Added FormsAuthentication.Timeout 4.0 property
2011-07-01 00:01:19 +02:00
Jb Evain
b8e85ce171
Fix handling of null in the non generic implementation of EqualityComparer. Fixes 703027.
2011-06-30 01:25:34 +02:00
Jackson Harper
a2b093a9a1
We can accidently swallow out of FD errors here since this function is called from a threadpool thread.
2011-06-28 23:25:15 -04:00
Atsushi Eno
8481eefe9f
Implement support for Stream param with WebHttpBinding raw content format.
2011-06-28 20:45:37 +09:00
Atsushi Eno
9f612740f7
Implement support for generic data contract type name with "{x}".
2011-06-28 18:03:49 +09:00
Jb Evain
cb4b62c04b
Fix queryable enumerable expression transformation
2011-06-23 00:33:09 +02:00
Jb Evain
c51e257674
Don't emit null queryable constants when rewriting linq queries, fix #701187
2011-06-23 00:20:13 +02:00
Sebastien Pouliot
40ca71a120
Merge pull request #119 from konrad-kruczynski/SslStreamNoTimeout
...
Removed hard coded timeout for SslStreamBase.
2011-06-22 06:25:06 -04:00
Michael Hutchinson
cc81b58a0e
Fix the cairo dllmap on OS X
2011-06-20 14:48:19 +01:00
XTZGZoReX
70640f232b
Socket: Fixed a security issue when default-initialized ArraySegment structs are passed in.
...
This is the same security issue that was recently addressed in MS.NET.
2011-06-19 19:02:34 -04:00
Gonzalo Paniagua Javier
949e910102
Fix crash when there's a \' in the arguments.
...
Fixes crash when calling Process.Start on a file with a ' in the path
when UseShellExecute is set to false.
Patch by Tom Philpot.
2011-06-15 15:36:23 -04:00
Sebastien Pouliot
395aae632d
Fix remaining moon-unit failures wrt Sockets changes
...
* System.Net.Sockets/Socket_2_1.cs: Ensure RemoteEndPoint is always
available after ConnectAsync (connected or not, allowed or not).
Ensure the Connect event is fired even if denied by policy.
2011-06-15 15:36:09 -04:00
Sebastien Pouliot
ce9ff91f78
Fix copy-paste error in git 17085447
...
* System.Net.Sockets/Socket_2_1.cs: Fix some moved code (from
SocketAsyncEventArgs.cs) so should the references to RemoteEndPoint
still point to the SocketAsyncEventArgs instance. Fix some moon-unit
test failures
2011-06-15 15:36:09 -04:00
Zoltan Varga
f1861e5cbe
Apply a workaround for a gcc 4.6 problem on arm.
2011-06-15 17:31:35 +02:00
Atsushi Eno
79bca55588
Set "Encoder" property when Message was read from MessageEncoder.
2011-06-14 19:19:06 +09:00
Atsushi Eno
3e48da364b
finally implement Message.ToString() as in expected form.
...
Regressions on this method has caused several unpredictable errors,
so I avoided this for somewhat long time...
2011-06-14 18:46:12 +09:00
Atsushi Eno
8b88042311
Flush some ongoing changes for XmlSerializer support in svcutil.
2011-06-14 18:01:07 +09:00
Rodrigo Kumpera
352e7d076d
Allow AssemblyRef flags to have at least ECMA's values. Fixes #684613 .
2011-06-13 16:38:59 -03:00
Atsushi Eno
d4a6887c31
Fix 2.0 build.
2011-06-13 21:36:47 +09:00
Atsushi Eno
6813d3f09b
Implement OnWriteBodyContents() and add message buffer support for RawMessage.
2011-06-13 20:07:53 +09:00
Marek Habersack
81d20479d4
[asp.net] Construct properly rooted paths when assigning values from resources
2011-06-13 12:39:23 +02:00
Zoltan Varga
1ff53bb1ba
Add an assert to detect TLS mismatches between the aot compilation and runtime environment.
2011-06-12 18:47:17 +02:00
Sebastien Pouliot
927a76eb30
Fix namespace and avoid looping once ctor is found
2011-06-12 12:25:23 -04:00
Sebastien Pouliot
050abd469f
Refactor MonoMac's MarkNSObjects substep so it can be reused in other products
2011-06-12 12:25:04 -04:00
Jb Evain
127c3bf6e0
update tuner
2011-06-12 12:24:41 -04:00
Jb Evain
cbd9da1acf
update tuner
2011-06-12 12:24:14 -04:00
Zoltan Varga
71b1425fd5
Fix the check for the -Wno-unused-but-set-variable gcc option.
2011-06-11 15:35:06 +02:00
Zoltan Varga
89424f5b25
Disable the -Wunused-by-set-variable warning supported by newer gcc versions.
2011-06-11 15:35:06 +02:00
Rodrigo Kumpera
86d31a6e3f
Fix darwin-arm build.
2011-06-09 13:55:23 -03:00
Zoltan Varga
84265522ed
Fix a corner case where an inlined bblock which had its next_bb set was the last bblock in a method. Fixes #693905 .
2011-06-04 15:24:38 +02:00
Jonathan Pryor
662a9ac8f7
Allow Android'd support_boehm=no to work.
...
The AC_ARG_ENABLE(boehm, ..., ..., support_boehm=yes) resulted in
support_boehm always being 'yes', even for `--host=arm-linux-androidabi`,
which was not the intention. Using `support_boehm=${support_boehm:-yes}`
generates correct behavior.
2011-06-03 17:19:43 -04:00
Jonathan Pryor
33068b3d07
Simplify building with the Android NDK.
...
Check --host against *-*-linux-android* for Android-specific configure fixes,
and improve **/Makefile.am to simplify Android support:
./configure \
--build=`./config.guess` \
--host=armv5-linux-androideabi \
--target=armv5-linux-androideabi \
--enable-nls=no --with-mcs-docs=no --enable-mcs-build=no \
CC="/path/to/ndk/arm-linux-androideabi-gcc --sysroot=/path/to/sysroot" \
AR="..." AS="..." CPP="..." CXX="..." LD="..." RANLIB="..." STRIP="..."
CFLAGS="-DARM_FPU_NONE=1" CXXFLAGS="-DARM_FPU_NONE=1"
See also Android NDK docs/STANDALONE-TOOLCHAIN.html.
The Android NDK/bionic is "interesting", in that it's lacking header files and
macros normally present on Linux which otherwise break the build (e.g. no
<link.h> which breaks Boehm support). Using --host with an android target
works around the known issues, simplifying the building of libmonosgen-2.0.so
with the Android NDK toolchain.
2011-06-03 16:58:08 -04:00
Atsushi Eno
db9f31cbd1
Support RemoteEndpointMessageProperty.
2011-06-03 19:47:40 +09:00
Zoltan Varga
5b3336a997
Fix the previous change.
2011-06-03 12:29:17 +02:00
Zoltan Varga
6920d7ce86
Fix NOMAP32BIT support in specific trampolines.
2011-06-02 23:42:46 +02:00
Rodrigo Kumpera
1da10df16c
Handle a vtable layout corner case.
...
class.c (mono_class_inflate_generic_method_full_checked): Don't
inflate a method if the provided context won't change it.
This change, in particular, avoid inflating a generic method
of a non-generic class if the context has class only vars.
This fixes #696593 as the above was causing the vtable of
Class3 ending up with an inflated Class1::Method<> that
comes from inflated Class2<object> parent.
Then the parent override pass would collect a non-inflated
Class1::Method<> overide that would then not match the one
on the vtable causing Class3 to have an abstract method on
its vtable and thus failing to load.
Big explanation means tricky change, might break tons of stuff.
2011-06-01 15:04:34 -03:00
Atsushi Eno
7f2cf89aeb
Support WebHttpBinding configuration.
2011-05-31 20:58:05 +09:00
Atsushi Eno
3e629f2ac7
Ref parameter was not covered by ParameterInfo.IsOut. Fixed bug #696784 .
2011-05-31 18:55:09 +09:00
Rodrigo Kumpera
3c5a13fa39
Properly handle field RVA under moving collector.
...
* reflection.c (typebuilder_setup_fields): Alloc RVA data
on the image mempool so it works with a moving collector.
Fixes #696817
2011-05-30 18:34:03 -03:00
Rodrigo Kumpera
46c26749eb
Fix sgen under xen
2011-05-30 12:23:35 -03:00
Atsushi Eno
a2d8112081
Add test for XmlMembersMapping.TypeName and .Namespace (not very useful yet...)
2011-05-27 17:30:12 +09:00
Atsushi Eno
bb331ddde1
Fill type info in MessagePartDescription from XmlSerializer-based wsdl importer.
...
It still needs some fixes to import message elements.
2011-05-27 17:27:01 +09:00
Rodrigo Kumpera
300bc2d4b0
Fix mul_imm under amd64
2011-05-25 15:09:28 -03:00
Marek Habersack
f88fba3cbd
[asp.net] Don't throw an exception if a session item being released does not have a lock.
...
It can happen when the item is being released after its associated session has ended.
2011-05-24 11:14:33 +02:00
Atsushi Eno
7b58e280a5
Support named wildcard in UriTemplate matching. Fixed bug #693996 .
2011-05-23 20:32:11 +09:00
Atsushi Eno
8dd637646f
Look for KnownTypeAttributes on known types (recursively). Fixed bug #695203 .
2011-05-23 19:29:28 +09:00
Atsushi Eno
77625cbc89
Allow DocumentType in ImportNode().
...
http://lists.ximian.com/pipermail/mono-devel-list/2011-May/037575.html
2011-05-19 13:18:20 +09:00
Marek Habersack
b122da385a
[asp.net] Ignore JavaScript blocks enclosed in HTML comments
2011-05-19 03:37:44 +02:00
Marek Habersack
eac15568e2
[runtime] When shadow-copying assemblies, use the io portability function to find the file.
...
This is necessary in situations when managed code pases case-insenstive file name and the
file on disk uses different case. stat(2) would return an error in such situation and, in effect,
the stat structure would get invalid/random values in its fields.
2011-05-18 22:05:40 +02:00
Atsushi Eno
fb67d391a3
Check invalid recursion of xs:group use. Fixed bug #650117 .
2011-05-18 01:11:34 +09:00
Marek Habersack
7129d57c22
[asp.net] Fix for bug #650847 . Output both tagged and untagged UpdatePanel names in AJAX responses.
...
Also, update panels which rendered empty string are included in the output.
2011-05-16 16:15:03 +02:00
Atsushi Eno
9e88fe782a
Do not import xs:any member as XmlElement[]. Create a wrapper class instead.
...
Part of bugfix #670945 .
2011-05-16 18:47:11 +09:00
Atsushi Eno
91de42214b
(manually) Merge pull request #101 from occ/master
...
Decimal support to XmlBinaryDictionaryReader
2011-05-16 16:41:27 +09:00
Zoltan Varga
02b82fb567
Avoid a crash in Field:GetRawConstantValue () if the field type couldn't be loaded. Fixes #693894 .
2011-05-15 13:05:14 +02:00
Atsushi Eno
9fc2d82c3b
Implement XmlSerializerMessageContractImporter, round 2.
...
This time it is XmlSerializer-based, got it somewhat working.
2011-05-14 01:30:21 +09:00
Atsushi Eno
1aebe941ef
Do not take host part into consideration on comparing URLs.
...
It blocks access by different host name (e.g. localhost vs. IP).
This was part of bugfix #687580 (forgot to commit).
2011-05-13 21:55:30 +09:00
Atsushi Eno
9c1b923e99
Implement WsdlContractConversionContext, and ignore message importer for now.
2011-05-13 21:48:41 +09:00
Atsushi Eno
6adda4d4c0
Revert previous XmlSerializerMessageContractImporter implementation.
...
XsdDataContractImporter is not XmlSerializer-based, while this class is.
2011-05-11 18:42:45 +09:00
Atsushi Eno
5a8f29cbcc
Add PipeException. fixed bug #692987 by Eberhard Beilharz.
2011-05-11 16:56:58 +09:00
Atsushi Eno
aa2208afee
Fixed orders in XmlSchemaObjectTable and got some S.R.Serialization tests working.
2011-05-11 16:37:04 +09:00
Atsushi Eno
a1e3732cef
CanImport() just returns false, without throwing error.
2011-05-10 22:04:10 +09:00
Atsushi Eno
8bb3b4db45
support import of xs:anyType, as well as make couple of minor fixes.
2011-05-10 21:47:58 +09:00
Atsushi Eno
240c0124a6
Fix common issue in MetadataSet - call MoveToContent() while iterating nodes.
2011-05-10 20:00:38 +09:00
Atsushi Eno
52965a2b9d
Add new MetadataSetTest and fix couple of minor issues.
2011-05-10 19:36:26 +09:00
Atsushi Eno
bed33dd66b
Revive this test by implementing mock web server.
2011-05-10 19:36:16 +09:00
Atsushi Eno
c0f3997eaf
Add (not-working) callback instance context mode test and FIXME comment.
2011-05-10 19:36:05 +09:00
Atsushi Eno
29adf41cc2
Update XsdDataContractImporter.CanImport and implement ImportXmlType.
2011-05-10 17:42:03 +09:00
Atsushi Eno
0f6b274a8e
ongoing XmlSerializerMessageContractImporter work.
...
It is part of bugfix #670945 .
2011-05-09 23:00:39 +09:00
Atsushi Eno
34b7d3a84d
Multiple schemas in wsdl could share same SourceUri, so check more identity.
...
Part of bugfix #670945 .
2011-05-09 19:12:09 +09:00
Atsushi Eno
3afbf58c92
Allow xsi:nil for void. Fixed client side of bug #687580 .
2011-05-09 13:52:09 +09:00
Atsushi Eno
9193bf8f3f
Now our HttpListener can listen to wildcard prefix safely.
...
Fixed server part of bug #687580 .
2011-05-09 13:43:12 +09:00
Rodrigo Kumpera
2b487789c8
Workaround io-layer crashing when the runtime exit without cleaning up everything.
...
* handles.c (handle_cleanup): When the runtime exit(), not
everything is shutdown and the main thread might be waiting
on other threads to finish. On this case, io-layer cleanup
with assert as a mutex will be in use.
The work-around is to be lenient to busy resources during
shutdown.
2011-05-07 00:13:11 +02:00
Lluis Sanchez
6b6ce9bd43
[Web Services] Fix regression caused by previous commit
...
Fixes a regression caused by the implementation of support
for optional parameters. GlobalIndex was not being set
when using SOAP RPC protocol.
2011-05-06 18:45:30 +02:00
Veerapuram Varadhan
fbe4e20182
[ado.net]bugfix:688773 - Assign default value to columns that does not
...
exist in the row that is being imported.
2011-05-06 00:06:23 +05:30
Veerapuram Varadhan
d753eb1861
[ado.net]bugfix:681916 - Based on patch by Scott <[email protected] >
...
- Handle null values for parameter types varbinary(max) and/or image
2011-05-06 00:05:31 +05:30
Veerapuram Varadhan
aac2016aa9
[mono]bugfix:663287 - Validate the type of value against underlyingtype
...
instead of nullableType.
2011-05-06 00:03:42 +05:30
Veerapuram Varadhan
2ec26f2e77
[ado.net][OracleClient] - Fixes calling size_t native parameters by
...
passing UIntPtr reference types and hence, solves 32/64 bit and
little/big-endian issues.
2011-05-05 23:51:14 +05:30
Veerapuram Varadhan
9e48c8a2b0
[bugfix][ado.net]Fixes 663914 - Restore original column data for
...
unchanged columns during deserialization.
2011-05-05 23:41:39 +05:30
Marek Habersack
f1ab82a7e8
[corlib] Do not cache disposed resource sets.
2011-05-04 23:33:11 +02:00
Marek Habersack
c4a3ecad74
[asp.net] Do not retrieve script's URL in RegisterScriptReference if script.Path is set.
2011-05-04 23:33:04 +02:00
Martin Baulig
844d678cba
Add socket timeouts to the soft debugger.
...
SDB now support setting a send/receive timeout on the client's side
of the communication socket. To make this work, the server sends
a special 'keepalive' event when using receive timeouts.
There's a new method VirtualMachine.SetSocketTimeouts() to enable
this feature.
2011-05-03 13:53:37 +02:00
Rodrigo Kumpera
d3c5cc1fe5
Add regression test for #691057
2011-05-03 02:58:48 -03:00
Rodrigo Kumpera
01cf5ded25
Fix a couple of issues on Mono.Simd.
...
* local-propagation.c (mono_local_deadce): Don't perform
reverse copyprop on simd insert ops. The backend requires
dreg and sreg1 to match.
* mini-x86.c (mono_arch_output_basic_block): Fix insert_r8_slow
for the X element.
Fixes a few bugs due to #691057
2011-05-03 01:23:20 -03:00
Zoltan Varga
399a6c779e
Implement BSTR icalls even when COM is disabled. Fixes #690255 .
2011-05-03 01:03:43 +02:00
Gonzalo Paniagua Javier
516cbf29c4
Don't set NoDelay twice.
2011-05-02 12:12:09 +02:00
Jb Evain
63fc3530b9
Fix non net_4_0 profiles build
2011-05-02 11:58:52 +02:00
Jb Evain
0ae09ac40d
Properly check the maxstacksize asked for the Thread
2011-05-02 11:46:09 +02:00
Zoltan Varga
c9cb0a918b
Fix support for parameters with generic constraints in Type.IsAssignableFrom (). Fixes #691119 .
2011-05-02 09:41:18 +02:00
Geoff Norton
c538edd457
Avoid doubly declaring some types in the 2.1 profile for mobile
2011-04-30 11:48:59 -04:00
Gonzalo Paniagua Javier
718f02e0d3
Fix prefix selection
...
We were picking the wrong prefix when the URL matched the path.
Fixes bug #688860 .
2011-04-30 11:34:54 +02:00
Gonzalo Paniagua Javier
f3560b3f22
Support FTP + RETR + proxy
...
Fixes bug #690887 .
2011-04-30 11:08:55 +02:00
Gonzalo Paniagua Javier
8b18364cfb
Missed this in the backport
2011-04-30 06:59:20 +02:00
Geoff Norton
e7ff9bcf14
Remove debug spew
2011-04-29 17:52:33 -04:00
Geoff Norton
546a888f91
[boehm] Avoid a ENOMEM when allocating across an unallocated page
...
A very rare allocation pattern could cause the boehm free list to call
the GC_unmap_gap function, which actually calls down into munmap().
Darwins virtual memory manager will return a KERN_INVALID_ADDRESS
which is translated into a ENOMEM, if mprotect attempts to change
the protection of a range which includes an unallocated page.
We address this by just mmap() back to ANON, instead of actually
unallocating the page.
2011-04-29 16:23:15 -04:00
Gonzalo Paniagua Javier
b0c3795ac4
[webclient] Process uri.UserInfo when present
...
If there are no crendetials, the Uri might have them.
Based on a patch by QuickJack.
Fixes bug #688007 .
2011-04-29 11:55:17 +02:00
Geoff Norton
19f4433ef2
Avoid a needless buffer copy that is susceptible to overflow
2011-04-28 23:05:15 -04:00
Zoltan Varga
b09e63d792
Fix loading from volatile base addresses in the LLVM backend. Fixes #690020 .
2011-04-28 23:46:42 +02:00
Zoltan Varga
5e04bc52bb
Revert "Modify fixup_cattrs () to handle a corner case where a cattr is created using a MonoCMethod instead of a ConstructorBuilder. Fixes #689533."
...
This reverts commit 046ff98055 .
This seems to break smcs.exe.
2011-04-28 22:28:00 +02:00
Lluis Sanchez
2773f9f10a
[Web.Services] Add support for optional parameters
...
Non-nullable web service parameters can be made optional by
adding an additional parameter with the same name and a
'Specified' suffix. This was supported when serializing
classes, but not when serializing web service parameters.
This might fix bug 688496.
2011-04-28 18:34:16 +02:00
Atsushi Eno
cf183438ee
Looks like xs:any is allowed under certain condition in XsdDataContractImporter.
...
But I don't understand why :(
2011-04-28 23:41:43 +09:00
Atsushi Eno
c18ad33d44
moonlight does not like XmlSchemaType but nasty code in KnownTypeCollection :(
2011-04-28 22:10:06 +09:00
Atsushi Eno
9956130fa2
...and do return Type for all known xs:* types in XsdDataContractImporter.
2011-04-28 20:33:47 +09:00
Atsushi Eno
50ad936a80
Do not reject xsd:* types that are not listed in KnownTypeCollection.
...
e.g. xs:token.
2011-04-28 20:09:05 +09:00
Atsushi Eno
acb4203da5
support <service>-less wsdls in svcutil. Look for portTypes instead.
2011-04-28 19:54:48 +09:00
Atsushi Eno
a6e6fbbeb3
Extend supported XmlDateTimeSerialization formats. Fixed bug #690475 .
2011-04-28 17:37:33 +09:00
Atsushi Eno
02e0ab3df8
XmlSerializer code generator was generating wrong char literal.
...
Fixed bug #673019 .
2011-04-28 15:44:18 +09:00
Gonzalo Paniagua Javier
a66df5bf91
[socket] More BeginConnect (IPAddress []) work
...
When trying multiple addresses, the second and sucessive calls to
BeginConnect(IPAddress) will cause an error which we would have to
ignore and then retry. Since this behavior is not documented, we just
close the socket and open a new one for retries is there is already a
pending connect attempt.
2011-04-28 00:18:35 -04:00
Gonzalo Paniagua Javier
ef49022f97
[Socket] Improved ConnectAsync
...
ConnectAsync() now uses the improved BeginConnect.
2011-04-28 00:18:35 -04:00
Atsushi Eno
4d2ff35b88
Remove non-existent test source (it is only in master).
2011-04-28 12:45:13 +09:00
Atsushi Eno
1e08457302
Handle fault messages in duplex callback channel.
2011-04-27 20:59:18 +09:00
Atsushi Eno
59dd3fcfe8
Use FindCritera/ResolveCriteria Duration properties for DiscoveryEndpoint timeout.
2011-04-27 15:43:46 +09:00
Atsushi Eno
35a659b435
Log UDP messages (using System.ServiceModel internals via IVT).
2011-04-27 15:43:39 +09:00
Gonzalo Paniagua Javier
01fff28591
If there's a delayed exception, clear 'ares'
2011-04-26 23:44:12 -04:00
Gonzalo Paniagua Javier
acad9c91d0
Worked on linux, failed on OSX
2011-04-26 22:05:49 -04:00
Marek Habersack
ea73a5a1e4
[asp.net] CreateChildControls is internal only when compiling system.web tests
2011-04-26 21:14:35 +02:00
Jérémie Laval
6c5f273c3f
Fail gracefully when CancellationToken has been created uninitialized by user.
...
Also add corresponding unit test.
2011-04-26 17:03:26 +02:00
Jérémie Laval
512ca45eb9
Add CancellationToken unit tests
2011-04-26 17:03:26 +02:00
Jérémie Laval
67c3b641c2
Honors correctly canceled ctor parameter of CancellationToken
2011-04-26 17:03:26 +02:00
Gonzalo Paniagua Javier
bb61f41996
Reset the blocking flag as soon as possible.
2011-04-26 11:03:00 -04:00
Gonzalo Paniagua Javier
8dfa7d2c7e
[socket] Fixed other BeginConnect overloads
...
The BeginConnect overload taking an IPAddress[] was not really
asynchronous.
2011-04-26 11:03:00 -04:00
Zoltan Varga
046ff98055
Modify fixup_cattrs () to handle a corner case where a cattr is created using a MonoCMethod instead of a ConstructorBuilder. Fixes #689533 .
2011-04-26 13:26:54 +02:00
Atsushi Eno
cde89bb093
Fix monodroid/monotouch build.
2011-04-26 19:39:10 +09:00
Gonzalo Paniagua Javier
9eb77b093b
[Socket] Fix BeginConnect
...
Windows/Linux flagged the socket as writable even when connect() has
not been called. On *BSD and OSX, this was not the case and we waited
forever.
Now, for blocking sockets, we make them blocking and call connect()
before adding the socket to the wait pool.
2011-04-26 00:05:26 -04:00
Gonzalo Paniagua Javier
5e40958c3b
In *AllLines use WriteLine instead of Write.
...
This fixes bug #689670 .
2011-04-25 16:23:17 -04:00
Atsushi Eno
82b1e211f8
Log net.tcp transport messages too.
2011-04-25 18:31:01 +09:00
Atsushi Eno
3fd521bd7d
Make our own simple log format actually diagnostics-compatible.
...
So MS ServiceTraceViewer.exe can open our log now.
2011-04-25 18:30:50 +09:00
Atsushi Eno
cdc0fc4d45
Document MONO_WCF_TRACE environment variable.
2011-04-25 16:25:39 +09:00
Atsushi Eno
43c40b6f3d
minor diagnostic log format brush up.
2011-04-25 16:15:08 +09:00
Atsushi Eno
2e5417f5bd
Actual source directory changes after changing namespaces.
2011-04-25 15:57:59 +09:00
Atsushi Eno
247cef557f
More nettcp namespace changes.
2011-04-25 15:57:49 +09:00
Atsushi Eno
0f328b26c0
Move NetTcp namespace to internal one.
2011-04-25 15:57:38 +09:00
Atsushi Eno
415027eedd
Enable environment-controled output on non-moon profile too. Add error logging.
2011-04-25 15:38:39 +09:00
Miguel de Icaza
1223efd9ce
Do not go beyond our string boundaries
2011-04-23 12:54:57 -04:00
Atsushi Eno
27e1844bb9
Log HTTP reply Message too. Make logging customizible on under the moon.
...
Logging is done only when requested by MOON_WCF_TRACE=[stdout|stderr]
environment variable.
2011-04-23 02:09:11 +09:00
Marek Habersack
054738b20f
Fix compilation
2011-04-22 14:02:39 +02:00
Marek Habersack
58a60f9e5e
[asp.net] Do nothing if null SessionStateStoreData is passed to SessionStateServerHandler.SetAndReleaseItemExclusive
2011-04-22 12:36:11 +02:00
Marek Habersack
df413084ff
[asp.net] Inform user about all exceptions thrown during HttpRuntime static initialization
2011-04-22 11:55:35 +02:00
Marek Habersack
b029f4e97e
[asp.net] Implemented composite scripts support in System.Web.Extensions
2011-04-22 11:55:15 +02:00
Zoltan Varga
4b98bcb536
Fix AOT support for isinst_with_cache wrappers. Fixes #687865 .
2011-04-22 03:40:58 +02:00
Geoff Norton
c597bb43ac
We support hard breakpoints on arm, not sure why this is here at all
2011-04-21 15:00:42 -04:00
Atsushi Eno
f66017dd16
Use XPathNavigator output in WCF diagnostics. Got sorta-valid message trace.
2011-04-21 21:12:48 +09:00
Atsushi Eno
0990c54b02
Fix wrapper elements. It should be <TraceData><DataItem>...
2011-04-21 21:09:48 +09:00
Atsushi Eno
1cf432ed50
XmlWriterTraceListener supports XPathNavigator as non-escaped xml output.
2011-04-21 20:56:09 +09:00
Marek Safar
eb9c5951e6
[688891] Keep same TypeParameter ctor syntax
2011-04-21 10:11:11 +01:00
Marek Safar
6a1de942e0
[688891] Copy type parameters for base proxy method
2011-04-21 10:08:42 +01:00
Atsushi Eno
b62fb2816f
Use xmlns-ignoring XmlDocument derivation for config files. Fixed bug #641935 .
2011-04-21 17:47:49 +09:00
Atsushi Eno
d3a50832b1
RooArray types were rejected as unknown when it is at root. Fixed bug #688414 .
2011-04-21 16:22:09 +09:00
Atsushi Eno
d911500226
Get real fix for bug #687902 . Revert request processor IDisposable.
...
and handle session shutdown when creating InstanceContext.
Also add note on DisposeInstance(), which got me stuck.
2011-04-20 19:15:15 +09:00
Atsushi Eno
657c31a31b
Ongoing service channel closing fix and session management in ChannelDispatcher.
...
It is part of bugfix 687902.
To get the bug fixed, the new "using" sections in ChannelDispatcher.cs to
explicitly dispose channels. But this causes regression in PerSession-based
tests. So some new session management code is (likely) required as well.
It will also alter "mixed" MaxConcurrentCalls and MaxConcurrentSessions with
correct management code.
2011-04-20 16:57:58 +09:00
Miguel de Icaza
851c79f6e6
Prevent crash on scripts that do not contain the #! line
2011-04-19 22:52:39 -04:00
Zoltan Varga
3fedcf496b
Allow storing managed pointers into 'native int' in the JIT, fsharp generates code without a conv.i. Fixes #688008 .
2011-04-19 22:45:29 +02:00
Gonzalo Paniagua Javier
1562106ccd
[HttpListener] Fix matching directories
...
/foo was not properly matched.
Fixes bug #688353 .
2011-04-19 13:56:39 -04:00
Marek Safar
90922a746d
[687282] Fixes cross references of nested anonymous methods which don't start at parameters level block
2011-04-19 13:06:12 +01:00
Lluis Sanchez
e54906aaf2
Fix ICollection.CopyTo in the Stack class
2011-04-19 13:51:55 +02:00
Gonzalo Paniagua Javier
6f9f05df58
[HttpWebRequest] Fix half-baked commit
...
Fixes bug #688100 .
2011-04-18 10:57:21 -04:00
Marek Habersack
ce3b0b7564
[asp.net] ScriptResourceHandler must correctly encode script literals.
2011-04-18 13:23:28 +02:00
Atsushi Eno
a9777b31fc
Empty XmlReader message caused failure on buffereed copy.
2011-04-18 17:22:21 +09:00
Zoltan Varga
7dcacbb5bf
Fix Object.MemberwiseClone () on arrays. Fixes #688033 .
2011-04-17 23:49:33 +02:00
Gonzalo Paniagua Javier
5f8f48145d
[webclient] Only set the credentials when they are not null.
...
Setting the credentials to null makes FtpWebRequest throw.
Fixes bug #688007 .
2011-04-17 13:58:59 -04:00
Sebastien Pouliot
b8052728ea
backport pull request for 2.10.2
2011-04-17 10:07:12 -04:00
Marek Habersack
3f823404fc
[asp.net] MinimizableAttributeTypeConverter only converts from strings.
...
It returns a boolean 'false' when the passed string matches (case-insensitively) 'false' or
is empty, returns 'true' otherwise.
All the other types (and a null value) cause it to throw the NotSupportedException.
2011-04-16 02:12:48 +02:00
Rolf Bjarne Kvinge
e3658fe73e
[corlib] Ensure Thread.ManagedThreadId is unique per thread.
...
This fixes bug #667329 .
The problem was that ManagedThreadId was created from a per-appdomain
counter, but stored in a per-thread storage, so if two threads could
end up with the same ManagedThreadId if a second appdomain executed
on the second thread first.
2011-04-15 22:11:09 +02:00
Marek Habersack
3f43883b30
[asp.net] Fix for bug #685116 . AJAX post-back which redirects the browser does not need a Page or ScriptManager instance
2011-04-15 21:57:20 +02:00
Atsushi Eno
c9f2555f4a
Prepare for HostNameComparisonMode support (i.e. incomplete).
...
This is for bugfix #687580 .
2011-04-16 01:07:19 +09:00
Atsushi Eno
8fa55bb406
Return null for empty message in WebMessageFormatter. Useful eror messages.
2011-04-15 23:52:15 +09:00
Atsushi Eno
ea78b00406
Some argument check in TextMessageEncoder.
2011-04-15 23:52:04 +09:00
Atsushi Eno
fb2c69e852
Use correct MessageVersion instead of Default for empty response.
...
Part of bugfix #687580 .
2011-04-15 21:32:05 +09:00
Atsushi Eno
26536ad29f
Prefer immutable string return for ease of debugging in UriTemplate.
2011-04-15 20:04:30 +09:00
Atsushi Eno
24702d5e64
Fix regression for counter case to 6005f0a7.
...
http://localhost/x + X should not result in http://localhost/xX .
2011-04-15 16:45:34 +09:00
Atsushi Eno
79bf69008d
Implement support for KnownTypeAttribute.MethodName.
2011-04-15 15:42:52 +09:00
Atsushi Eno
0d20226656
Flush XmlWriter and TextWriter so that incomplete changes are not lost.
2011-04-15 14:57:56 +09:00
Atsushi Eno
e4f59e1fa0
One more step to enable WCF diagnostics in Logger, and add HttpReplyChannel log.
2011-04-15 14:48:11 +09:00
Gonzalo Paniagua Javier
bf77046abc
Clearing the queue messed up with the per-domain job count
...
Fixes bug #687399 .
2011-04-14 15:25:59 -07:00
Marek Habersack
985f57d2b4
[asp.net] Fix for bug #685267 . ClientScriptManager generates correct post-back event reference for cross-page post-backs.
2011-04-14 22:42:09 +02:00
Marek Habersack
aca8c70648
[asp.net] Shorten code in WebConfigurationHost
2011-04-14 20:51:07 +02:00
Marek Habersack
be8a6afd4a
[asp.net] Fixed a thinko in one of the previous commits
2011-04-14 20:50:59 +02:00
Atsushi Eno
b313b63718
Add ServiceKnownTypeAttributeTest.
2011-04-14 15:23:09 +09:00
Atsushi Eno
80238cef2f
ServiceKnownTypeAttribute.MethodName was used way different to lookup method.
2011-04-14 14:58:03 +09:00
Martin Baulig
776a4cb2b5
Oooops, it's supposed to be 'if (!strcmp (...))' !
2011-04-13 20:18:43 +02:00
Marek Habersack
a96c5dd131
[asp.net] Make web.config path check test case-insensitive
2011-04-13 16:57:53 +02:00
Marek Habersack
c79e051d35
[asp.net] A more effective way of looking for web.config
2011-04-13 16:57:46 +02:00
Marek Habersack
0adb5a6dbf
[runtime,IO] Filesystem entries can only be sought for in directories, not files.
2011-04-13 16:57:40 +02:00
Atsushi Eno
64ba822460
Fix wrong TraceEventType values passed.
2011-04-13 02:23:18 +09:00
Martin Baulig
db59c744af
Ooops, also enable explicit nulls.
2011-04-12 07:02:07 +02:00
Zoltan Varga
d0ecf17cec
Avoid putting a seq point at the beginning of finally clauses, they already have one. Fixes #686269 .
2011-04-11 23:18:31 +02:00
Zoltan Varga
86b0b2afed
Revert "Add checks to ParameterBuilder.SetConstant () to avoid an assert in the runtime. Fixes #684438."
...
This reverts commit c5c488ec9d .
This seems to break IronRuby.
2011-04-11 19:38:52 +02:00
Martin Baulig
db9d1fffba
Add "soft breakpoint" support for ARM.
...
There is some broken hardware like the HTC Desire HD where we can't
use any signals for single-stepping and breakpoints.
See http://baulig.blogspot.com/2011/04/limiting-page-faults-on-htc-desire-hd.html
for details.
To work around this, we read from a variable instead us using trigger
pages.
2011-04-11 17:48:47 +02:00
Zoltan Varga
c5c488ec9d
Add checks to ParameterBuilder.SetConstant () to avoid an assert in the runtime. Fixes #684438 .
2011-04-10 20:46:23 +02:00
Gonzalo Paniagua Javier
11cee69b5f
[HttpWebRequest] Ignore Transfer-Encoding when there's no content.
...
If the transfer encoding was set to chunked, we tried to read even when
the response might known to have no content. This led to timeouts.
Fixes bug #686371 .
2011-04-09 15:18:18 -04:00
Atsushi Eno
0dd62ba176
Implement 4.0 WebOperationContext.Create[Atom10|Json]Response() methods.
2011-04-08 21:40:01 +09:00
Atsushi Eno
40f9aba00f
Add XmlSerializerFormatAttribute support in mobile profiles.
...
Unlike moonlight, XmlSerializer is in the framework lib (sys.xml), so we don't
have to split them out to Sys.Xml.Serialization.dll.
2011-04-08 16:01:11 +09:00
Atsushi Eno
643148f131
Temporarily disable InternalsVisibleTo(Sys.Xml.Serialization).
2011-04-08 13:46:47 +09:00
Gonzalo Paniagua Javier
099d0f0e34
Remove printf
2011-04-07 21:32:44 -04:00
Miguel de Icaza
9187dbc0d9
Revert broken patch 34f18b68 that caused random bugs in assembly loading, but could crash the runtime as well
2011-04-07 21:15:53 -04:00
Miguel de Icaza
a9c68584df
Add test to prevent future problems, this fixes the random MacOSX crashes with assembly loading, but likely everywhere else as well
2011-04-07 21:15:53 -04:00
Zoltan Varga
50dadb263b
Revert "Disable SMP on arm until #683409 is fixed."
...
This reverts commit 29550902ee .
This is now longer needed as #683409 is fixed.
2011-04-07 22:20:24 +02:00
Zoltan Varga
1106b9be5f
Pass HAVE_ARMV6 to libgc on darwin too.
2011-04-07 22:19:32 +02:00
Zoltan Varga
ec6e3150f8
Add a membar to libgc's UNLOCK () on arm. Fixes #683409 .
2011-04-07 22:16:29 +02:00
Atsushi Eno
824336a958
Split XmlMessagesFormatter out. It is for use in Sys.Xml.Serialization.dll.
...
XmlMessagesFormatter will be used in Sys.Xml.Serialization.dll and this
type should not be excluded by !NET_2_1 or !MOONLIGHT. It is not doable
if this class is in BaseMessagesFormatter.cs.
2011-04-08 00:22:38 +09:00
Atsushi Eno
5a414980ea
Add InternalsVisibleTo(Sys.Xml.Serialization.dll) to Sys.ServiceModel in 2.1.
2011-04-08 00:13:03 +09:00
Atsushi Eno
7215e2b879
Fix moonlight_raw build in Sys.Xml.Serialization.dll (NIE!)
2011-04-07 23:29:28 +09:00
Atsushi Eno
12d359a6c4
DataContractSerializerOperationBehavior is done too. Fix moonlight_raw build.
2011-04-07 22:02:42 +09:00
Atsushi Eno
182883c4ba
Some XmlSerializerFormatAttribute and XmlSerializerOperationBehavior refactoring.
2011-04-07 19:20:59 +09:00
Atsushi Eno
1ed5a802a9
HttpRequestChannel should also return CookieContainer in NET_2_1 profile.
...
Fixed bug #683642 .
2011-04-07 12:34:54 +09:00
Gonzalo Paniagua Javier
b0a314db2c
[HttpWebResponse] Close and Dispose are different beasts.
...
After calling Close () on response you are still allowed to access its
properties. Calling Dispose() causes the usual exception to be thrown
when accessing the properties.
Fixes bug #685368 .
2011-04-06 23:02:03 -04:00
Zoltan Varga
4234f30930
Disable SMP on arm until #683409 is fixed.
2011-04-07 01:30:37 +02:00
MrUnleaded
12de169c29
Fix that corrects a mishandling of UInt64's.
2011-04-06 18:45:36 -04:00
Atsushi Eno
cafcafe8d7
Looks like .NET accepts non-integer numbers as int. Smells bogus though.
2011-04-06 22:03:58 +09:00
Atsushi Eno
9dd0c9aaa0
auto-detect UTF16-LE too.
2011-04-06 20:22:11 +09:00
Marek Habersack
8e5e7a293e
[DynamicData] Use different web.config for 2.0 and 4.0 tests
2011-04-06 11:07:17 +02:00
Gonzalo Paniagua Javier
e430abe428
[eglib] The last argument can be empty and quoted.
...
Fixes bug #669303 .
2011-04-06 02:04:59 -04:00
Atsushi Eno
8ed33a951d
Fix build, looks like ArrayList is internally available in moon.
2011-04-05 23:07:34 +09:00
Jérémie Laval
ef74fcb6bb
Protect entering ReaderWriterLockSlim upgradable mode against async exceptions.
2011-04-05 15:25:34 +02:00
Marek Habersack
98cf1c90d4
[asp.net] Fix for bug #684803 . XmlSiteMapProvider must take its root node into account when matching an URL.
2011-04-05 14:36:46 +02:00
Atsushi Eno
aacbe2f237
Collection support in JSON serializer was actually for any IEnumerable.
2011-04-05 20:57:06 +09:00
Atsushi Eno
7ac57f726f
Revert PushbackReader changes (was unnecessary and actually bogus).
2011-04-05 20:27:28 +09:00
Atsushi Eno
89fee7d373
null value also outputs "type='null' in WCF JSON writer.
2011-04-05 19:49:18 +09:00
Atsushi Eno
3d56703e92
Auto-detect text encoding from input stream for JsonReader. Fix DBCS pushback.
2011-04-05 18:24:02 +09:00
Atsushi Eno
53523879e8
IDictionary`2 serialization support was missing in DataContractJsonSerializer.
...
Fixed bug #685042 .
2011-04-05 13:21:44 +09:00
Marek Safar
7290370f37
[666033] Fixes Mono.WebBrowser versioning
...
[backported by shana]
2011-04-04 18:46:08 +01:00
Jb Evain
5923bba0bf
Fix net_2_0 build
2011-04-04 16:02:27 +02:00
Atsushi Eno
c8a824af78
unlike told by docs.mono-android.net Trace does not exist in mobile profile.
2011-04-04 22:56:47 +09:00
Atsushi Eno
bb3e8d2323
Add WCF diagnostics implementation (not working yet).
2011-04-04 20:58:44 +09:00
Kenneth Skovhede
2c74b21642
Fix the handling of the '%f' descriptor in DataConverter.Unpack (). Fixes #683712 .
2011-04-03 06:33:52 +02:00
Marek Habersack
3e7bd993d8
[asp.net] 2.0 standalone tests must have the MONO_TESTS_IN_PROGRESS variable exported in the environment
2011-04-03 00:04:33 +02:00
Tomasz Kubacki
ffbdeac062
[asp.net] HttpApplication.InitOnce must ensure that HttpApplication.Context does not return null.
...
HttpApplication.Context != null is assumed by System.Web.WebPages.WebPagesHttpModule Init method
2011-04-03 00:04:27 +02:00
Atsushi Eno
e72666919a
fix wrong attempt to add restricted headers in HttpRequestChannel.
2011-04-02 11:30:09 +09:00
Marek Habersack
e57e16fee4
[asp.net] Store new heap size when shrinking it. Thanks to Rodrigo Kumpera for noticing it!
...
This should fix the IndexOutOfRangeError which occur after heap exceeds 8192 elements and is then
shrunk below that value.
2011-04-02 02:38:36 +02:00
Rodrigo Kumpera
af23f3ee26
Fix thread restart under mach.
...
* sgen-gc.c (restart_threads_until_none_in_managed_allocator):
On mach we used to simply call thread_suspend/thread_resume
without updating the thread context, which would result in
sgen getting hang.
2011-04-01 19:10:08 -03:00
Rodrigo Kumpera
1e137b7fcb
Extract suspend code from mono_sgen_thread_handshake.
...
sgen-os-mach.c (mono_sgen_thread_handshake): Extract
suspend code into new function mono_sgen_suspend_thread.
2011-04-01 19:01:58 -03:00
Rodrigo Kumpera
5340b41cd1
Use constant stack space for STW under darwin.
...
* sgen-gc.h: Since darwin doesn't use signals to
stop the target threads, we must reserve space for
register in SgenThreadInfo.
* sgen-os-mach.c (mono_sgen_thread_handshake): Don't
alloca inside the loop. Make sure each thread registers
are copied to the right place.
2011-04-01 18:38:17 -03:00
Rodrigo Kumpera
11c5664fb4
Leverage SgenThreadInfo::mach_port.
...
* mach-support-*.c (mono_mach_arch_get_tls_value_from_thread):
This function now receives pthread_t instead of mach_port
as argument, so avoiding an expensive call to
pthread_from_mach_thread_np.
* sgen-os-mach.c (mono_sgen_thread_handshake): Loop over
the registered threads insted of asking the kernel to enumerate
them. Avoid calling pthread_from_mach_thread_np which takes
a lock and is O(n) on the number of threads.
2011-04-01 18:18:02 -03:00
Rodrigo Kumpera
59d034e8a7
Store the mach port on SgenThreadInfo
2011-04-01 17:24:09 -03:00
Rodrigo Kumpera
b178109c1e
Fix win32 file name canonicalization.
...
* mono-path.c (mono_path_canonicalize): Properly canonicalize
non UNC paths with an extra backslash. Eg:
c:\foo\\bar was been canonicalized to c:\\foo\bar.
This was breaking assembly loading in some rare cases.
2011-04-01 17:00:05 -03:00
Atsushi Eno
a2a78ecc5d
A bit less !NET_2_1 and !MOONLIGHT in Sys.ServiceModel.Web.
2011-04-02 04:11:09 +09:00
Atsushi Eno
c540e335c3
Less !NET_2_1/!MOONLIGHT to improve SL4 WCF compatibility.
2011-04-01 20:45:47 +09:00
Marek Habersack
b7aaf47762
[asp.net,routing] Fix for bug #682869 . RouteCollection.MapPageRoute is a 4.0 thing
2011-04-01 13:41:04 +02:00
Marek Habersack
b80dca6c9b
[wcf] Unbreak the build (Assembly.IsDynamic is a 4.0 thing)
2011-04-01 13:34:51 +02:00
Marek Habersack
3dd79d0752
[mvc3] Part of fix for bug #683339 . Override more NameValueCollection methods.
...
Without those overrides, merging collections in System.Web.HttpParamsCollection fails.
2011-04-01 11:55:34 +02:00
Marek Habersack
a8cb34edbf
[system] Part of fix for bug #683339 . NameValueCollection.Add (NameValueCollection) must call the Get* overloads instead of BaseGet*
...
Otherwise classes wrapping NameValueCollection will not be able to intercept the Add call which leads to errors in MVC3's
FormCollection.
2011-04-01 11:55:28 +02:00
Alan McGovern
812ee3308e
[log profiler] Keep correct stats about gchandles
...
We were not keeping track of allocated/destroyed/alive gchandles in the
log profiler. It only ever reported the number of handles alive at the
end of the profiling run and that was misreported as the output claimed
this was the number of gchandles created.
2011-04-01 10:34:12 +01:00
Atsushi Eno
53c2bea069
Implement ConfigurationName support for ChannelFactory.
...
It is required for MoonlightDrtViewer bugfixing.
2011-04-01 18:25:10 +09:00
Peter Gerbrandt
e56d2c760b
Fix contract description for contracts with deep inheritance hierarchy.
2011-04-01 14:21:00 +09:00
Louis Salin
3e9df709c8
TraceData and TraceEvent methods must pass a new instance of TraceEventCache
2011-03-31 09:09:41 -04:00
Louis Salin
1bd073b713
implement getter and setter for HostContext property
2011-03-31 09:09:40 -04:00
Gonzalo Paniagua Javier
e60acb3ab0
Remove printf's
2011-03-30 22:27:25 -04:00
Gonzalo Paniagua Javier
6c94fea797
Revert "Fix a typo in Directory.GetFiles ()"
...
This reverts commit 5bbd6c23f8 .
2011-03-30 21:04:35 -04:00
Zoltan Varga
a4ae5ad77a
Add some checks to the ActivationServices:AllocateUninitializedClassInstance () icall to avoid instantiating interfaces/abstract types.
2011-03-30 16:05:32 +02:00
Martin
a8ef691b71
[asp.net] Fix for bug #658184 . AuthorizationRule restores its Action when unmerging.
2011-03-30 12:21:54 +02:00
Marek Habersack
047b8446d4
[DataAnnotations] Implemented the Validator and CustomValidationAttribute 4.0 classes
2011-03-30 10:19:44 +02:00
Rodrigo Kumpera
66b152ffe0
Cast p to char* since the offset is in byte units.
2011-03-30 00:44:32 -03:00
Zoltan Varga
7f3f7f3d28
Fix the previous change.
2011-03-30 05:26:42 +02:00
Zoltan Varga
fcd76072e0
Call SleepEx in a loop in the Thread.Sleep () icall, to avoid a race when the sleep is interrupted. Fixes #683519 .
2011-03-30 05:07:47 +02:00
Vincent Povirk
b4e8b39a6e
System.Windows.Forms.Mime: Use freedesktop.org only on Unix platforms.
2011-03-29 21:10:51 -04:00
Gonzalo Paniagua Javier
e22f04bbdc
Reset BytesTransferred on every reuse.
2011-03-29 13:46:38 -04:00
Ankit Jain
ebab6e9fad
[xbuild] Allow skipping target framework moniker lookup.
...
* tools/xbuild/xbuild/4.0/Microsoft.Common.targets
(GetReferenceAssemblyPaths): Don't look up framework directories
for $(TargetFrameworkMoniker) is $(_TargetFrameworkDirectories) is
already defined. This can be used to override moniker lookups.
2011-03-29 18:48:35 +05:30
Gonzalo Paniagua Javier
fe220bb14f
Fix vasprintf() for empty strings.
...
James Bellinger entered bug #682963 and he ended up debugging it and
providing the solution.
2011-03-28 23:25:18 -04:00
Andrew Jorgensen
2af17e6d19
mono-sgen-gdb.py should be installed conditionally
2011-03-28 16:37:38 -06:00
Gonzalo Paniagua Javier
5bbd6c23f8
Fix a typo in Directory.GetFiles ()
...
The mask never matched the attributes and all files were discarded.
This fixes bug #683203 .
2011-03-28 17:48:41 -04:00
Andrew Jorgensen
320abe5356
Bump to 2.10.2
2011-03-28 12:27:26 -06:00
Zoltan Varga
cee9574eec
Remove some unused fields from MonoDynamicGenericClass.
2011-03-28 15:01:24 +02:00
Atsushi Eno
6cc6d1f172
Cosmetic corcompare-based updates in Sys.SM.Web.
2011-03-28 21:18:17 +09:00
Atsushi Eno
fd0bfb7e2e
Looks like WCF serializer supports XmlNode, so we do as well.
...
for details: http://msdn.microsoft.com/en-us/library/aa347876.aspx
Fixed bug #682957 .
2011-03-28 17:11:30 +09:00
Zoltan Varga
8f8e0a9b6e
Fix a case where class->instance_size was not set for dynamic classes.
2011-03-28 08:25:01 +02:00
Atsushi Eno
71f131be40
null JSON type must be handled in JsonWriter.
2011-03-26 21:28:06 +09:00
Atsushi Eno
c96c5db231
Do not always assume ascii == 1 byte in JsonWriter. Fix utf-16 usage.
2011-03-26 21:01:37 +09:00
Atsushi Eno
4e0819daab
XStreamingElement should be covered in WriteTo(). It's not derived from XNode.
2011-03-26 19:27:14 +09:00
Atsushi Eno
07ddd5f698
Nowadays, XmlDeclaratoin.WriteTo() writes PI instead of raw.
...
This resulted in invalid output to JsonWriter (via JsonReaderWriterFactory).
2011-03-26 19:15:42 +09:00
Marek Habersack
9ec474d427
[asp.net] HtmlForum.Name rendering updates + test updates
2011-03-25 22:49:51 +01:00
Marek Habersack
0810ccda41
[asp.net] Fix for bug #681553 . Look for direct child controls before calling up on the NamingContainer
2011-03-25 14:22:52 +01:00
Rodrigo Kumpera
f7a4dbc112
Avoid an infinite loop on broken utf16.
...
* gutf8.c (g_utf16_to_utf8): Increase the input counter
when encountering broken surrogates head or tails to
make sure we don't end in an infinite loop.
2011-03-24 23:21:46 -04:00
Gonzalo Paniagua Javier
a247e53faa
Avoid 'comparison always true...'
2011-03-24 23:21:10 -04:00
Gonzalo Paniagua Javier
c86ebb4da5
Merge branch 'threadpool-2-10' into mono-2-10
2011-03-24 23:00:15 -04:00
Marek Habersack
b225c4736c
[asp.net] Fix for bug #681164 . Page.InitOutputCache ignores calls with duration <= 0
...
It is ok to ignore such calls for two reasons - the cache with duration <= 0 will not
be effective anyway and the @OutputCache directive throws an exception for duration <= 0
2011-03-24 23:35:18 +01:00
Atsushi Eno
992872bb5d
Fix serialization test build that depended on compiler contravariance bug.
2011-03-24 18:05:16 +09:00
Gonzalo Paniagua Javier
a4d5c71207
.gitignore
2011-03-23 17:09:08 -04:00
Gonzalo Paniagua Javier
958ce2ba14
[windows] Avoid creating a thread in init
2011-03-23 17:08:52 -04:00
Gonzalo Paniagua Javier
82e0de5779
[windows] Make the connect hack work again.
2011-03-23 17:08:43 -04:00
Gonzalo Paniagua Javier
6e20527322
Revert "Replace old connect hack with _pipe on windows."
...
This reverts commit 1691837400 .
2011-03-23 17:08:36 -04:00
Gonzalo Paniagua Javier
9c4c7d85e0
Revert "Remove unneeded function and use same code for win/lin"
...
This reverts commit 59c30ca79c .
2011-03-23 17:08:27 -04:00
Gonzalo Paniagua Javier
c52ce4b572
Remove unneeded function and use same code for win/lin
2011-03-23 17:08:04 -04:00
Gonzalo Paniagua Javier
5b9892f071
Replace old connect hack with _pipe on windows.
2011-03-23 17:05:38 -04:00
Gonzalo Paniagua Javier
60f34bbaed
--version shows kqueue now.
2011-03-23 16:57:15 -04:00
Gonzalo Paniagua Javier
ff39c58bac
[threadpool] Don't start all the IO threads on first request.
...
The IO threadpool behaves as the regular one now: threads are created
on demand up to the default and then they are throttled based on load
unless Set(Min|Max)Threads is used.
Fix the stack size for threadpool threads when Set(Min|Max)threads is
used.
2011-03-23 16:57:15 -04:00
Gonzalo Paniagua Javier
249e6665eb
Some changes to the threadpool
...
-Reduce stack size for IO threads.
-Create threads on demand up to min_threads, then throttle.
2011-03-23 16:57:15 -04:00
Gonzalo Paniagua Javier
3cd7aaf9c8
[threadpool] Add support for kqueue asynch. IO.
2011-03-23 16:57:15 -04:00
Gonzalo Paniagua Javier
40d02e9a1d
[threadpool] Split the socket code in separate files.
2011-03-23 16:57:14 -04:00
Miguel de Icaza
725ac8d811
Make this OSX specific instead
2011-03-23 10:12:20 -04:00
Marek Habersack
b34102015d
[runtime] Fix compilation
2011-03-23 10:12:16 -04:00
Miguel de Icaza
b311360048
OSX, Win32: Implements support for DriveInfo
...
This implements support for DriveInfo for OSX and Windows.
On OSX we use statfs system call that provides the filesystem
type information that we need. On Linux, we continue to fallback
to mtab parsing
2011-03-23 01:56:58 -04:00
Miguel de Icaza
20808baa2c
Add OSX support to the io-layer: supports getting a list of mounted file systems, and OSX-specific file system types
2011-03-23 01:56:47 -04:00
Miguel de Icaza
b78ad6ad48
Add Environment.IsMacOS for handling OSX specific bits in corlib
2011-03-23 01:56:39 -04:00
Marek Habersack
b93091c617
[asp.net] Fix for bug #681421 . Use VirtualPathProvider.CombineVirtualPaths
...
The method is used by the parsers to look up dependencies, sources, controls
and master pages.
2011-03-22 21:29:17 +01:00
Marek Habersack
d6b8fed5be
[asp.net] Use List <string> instead of ArrayList to keep assembly locations in TemplateParser
2011-03-22 21:29:11 +01:00
Marek Habersack
f12d23c5cc
[asp.net] Use List <string> instead of ArrayList to keep file dependencies
2011-03-22 21:29:04 +01:00
Jb Evain
f7bbde7bb5
Fix output of local variable names in debugging symbols
2011-03-22 16:00:29 -04:00
Geoff Norton
0e15d77a17
Set SO_REUSEADDR on listening sockets
2011-03-22 15:52:08 -04:00
Gonzalo Paniagua Javier
4e01dad1f8
[HttpListener] request.Url.Original string matches MS now.
...
Fixes bug #681548 .
2011-03-22 12:57:12 -04:00
Gonzalo Paniagua Javier
406d680f31
[HttpListener] Match exceptions from MS on cleanup.
...
When the listener is aborted or closed, we get different exceptions
depending on whether there's a GetContext() call in progress or not.
2011-03-22 12:56:51 -04:00
Zoltan Varga
7bde20118b
Implement OperatingSystem.ServicePack. Fixes #681552 .
2011-03-22 17:16:28 +01:00
Gonzalo Paniagua Javier
3a7370aefc
[threadpool] Avoid the infame assert in mono-wsq.
...
Fixes bug #677746 .
2011-03-22 11:52:18 -04:00
Gonzalo Paniagua Javier
2087d7c1a1
[msvc] New mono.def
2011-03-22 11:22:21 -04:00
Gonzalo Paniagua Javier
ed57d90570
[HttpListener] Fix keep-alive connections
...
We were removing the connection in the wrong place.
Also unbind the context in other error situations like a read failure
after the headers are in.
2011-03-22 11:22:21 -04:00
Gonzalo Paniagua Javier
fc3f496d1b
[windows] Update create-defs.pl
...
Library is now mono-2.0, exclude mono_gc_pthread_* from the output.
2011-03-22 11:22:21 -04:00
Atsushi Eno
39ece5f8c7
Remove unexpected CWL.
2011-03-22 15:35:36 +09:00
Gonzalo Paniagua Javier
b5b8d4a42e
[windows] Wrong LoadLibrary being called.
...
We were calling LoadLibraryA instead of the W version.
2011-03-21 23:27:48 -04:00
Gonzalo Paniagua Javier
792bd0b4e3
[windows] Get rid of a lot of warnings
2011-03-21 23:27:47 -04:00
Gonzalo Paniagua Javier
e8e244f839
[windows] Avoid creating a thread in init.
2011-03-21 18:16:59 -04:00
Veerapuram Varadhan
bb58f668b3
[bugfix][ado.net odbc]Fixes #676368 - make it thread safe to release
...
underlying statement handles and check for the validity of the same
before attempting to release them. Fixes random crashes.
2011-03-22 01:08:22 +05:30
Zoltan Varga
ecdf344983
Fix the length of 'break' on ppc.
2011-03-21 20:07:57 +01:00
Jérémie Laval
6623fc543d
Revert fcbb5717c1 and implement it differently.
...
The commit had the good idea but since some values of the enumeration overlap it broke the correct behavior. Instead we now turn off the extra options and use the previous way to check.
2011-03-21 13:30:52 +01:00
Geoff Norton
1e38c9d065
Add some missing types to the mobile profile
2011-03-20 21:53:26 -04:00
Jb Evain
30719eac23
[linker] always preserve System.MonoCQItem
2011-03-20 20:27:29 +01:00
Miguel de Icaza
be791133e9
Merged compile fix from master
2011-03-18 22:22:14 -04:00
Rafael Munitic
ba41a4afc3
Must pass null to overloaded constructor instead of wrapper lambda (TaskCompletionSource can use overloaded constructors and it will pass null in function argument)
2011-03-18 18:22:24 -04:00
Rafael Munitic
7001015c8a
Continuation options should be checked as flags
2011-03-18 18:20:12 -04:00
Rafael Munitic
cb86a2cae2
If the function is null Wait will not get called and will not check if Future is in faulted state/raise the exception
2011-03-18 18:19:42 -04:00
Koushik Dutta
2023fd51cf
Fix bug where if a task is Start-ed with a specific scheduler,
...
that scheduler is ignored if it is in a thread owned by another
scheduler. Tasks should not be locked to the scheduler that
owns the calling thread.
Fix bug where TryExecuteTask does not actually try to execute
the task. Instead, TryExecuteTaskInline is called, which is
abstract. The TpScheduler implementation, the default, then
calls the internal method Task.Execute which then actually
executes the task. The problem with this is that only 3rd
party schedulers, can't actually execute a task, thus making
extending TaskScheduler impossible. (Unless they use some
serious Mono specific reflection hacks as I am now.)
2011-03-18 17:59:52 -04:00
Mark Sciabica
ee0c82f938
Fix exception handling on windows x64.
2011-03-18 18:00:34 +01:00
Atsushi Eno
f66c15fa4c
XamlType lookup from xml name failed when [XmlnsDefinition] is involved.
2011-03-18 15:59:30 +09:00
Gonzalo Paniagua Javier
870a168078
Fix the host name returned in GetHostEntry.
...
GetHostEntry() was setting the HostName to the last IP address returned
for the requested host name.
2011-03-18 01:27:12 -04:00
Zoltan Varga
f1e5ff5830
Switch to the domain of the assembly in question while executing CMD_ASSEMBLY_GET_TYPE, so referenced assemblies are found. Fixes #679586 .
2011-03-17 20:08:04 +01:00
Rodrigo Kumpera
ec56b2399e
Revert "[io-layer] Handle process waits when SHM is disabled."
...
This reverts commit 2bb69090d7 .
2011-03-17 18:05:30 +01:00
Rodrigo Kumpera
98567347b0
Revert "[io-layer] Make my previous patch signal safe."
...
This reverts commit c183437b77 .
2011-03-17 18:05:16 +01:00
Gonzalo Paniagua Javier
d1ef9e9bc0
[asp.net] Return the correct Mime type for 304.
2011-03-17 12:50:08 -04:00
Marek Habersack
1d15cb6eab
[asp.net] Test for bug #655474
2011-03-17 16:37:49 +01:00
Marek Habersack
2f6c884c39
[asp.net] Fix for bug #655474 . Don't assume an Uri being serialized is an absolute one
2011-03-17 16:20:23 +01:00
Marek Habersack
3007742461
[asp.net] Test compilation fix for System.Web.Extensions
2011-03-17 16:20:06 +01:00
Marek Habersack
dd02160e29
Removed debug noise
2011-03-17 15:41:33 +01:00
Marek Habersack
04ceb5cec2
[asp.net] Fix for bug #678473 . Do not map paths of absolute file paths when passed to HttpRequest.WriteFile
2011-03-17 15:36:46 +01:00
Marek Habersack
4c251cb528
[asp.net] Fix for bug #670714 . Menu is rendered correctly in 4.0 now (highlighting works)
2011-03-17 15:12:46 +01:00
Atsushi Eno
f29c6b4014
Fix build; remove extra !NET_2_1.
2011-03-17 21:15:50 +09:00
Atsushi Eno
5d3bd4296d
net.tcp Sized message with non-binarysession encoding should work now.
...
(Untested checkin.)
2011-03-17 20:05:43 +09:00
Atsushi Eno
7b4e9fe3b3
Support encoding record other than binary session in TCP channel frame reader.
2011-03-17 19:29:56 +09:00
Gonzalo Paniagua Javier
e127fbdbc8
[Threadpool] Handle multiple calls to cleanup
...
Don't fail if mono_thread_pool_cleanup() is called more than once.
Fixes bug #678662 .
2011-03-17 02:00:10 -04:00
Marek Habersack
da38ea1a3c
[asp.net] Fix for bug #670874 . Match request URLs against precompiled dictionary using absolute paths.
2011-03-17 01:53:37 +01:00
Zoltan Varga
80b18e5e78
Fix the title of the Mono.Debugger.Soft assembly monodoc.
2011-03-17 01:28:04 +01:00
Marek Habersack
b08fcbf349
[asp.net] Fixes bug #676008 . HtmlForm 'name' attribute rendering fixes.
...
The 'name' attribute is rendered using the static ID of 'aspnetForm' if
the form is in a naming container other than the Page control. Inside Page,
the form's ID is rendered. The attribute is output in .NET 4.0 only if control
rendering compatibility is less than 4.0
2011-03-17 00:56:34 +01:00
Gonzalo Paniagua Javier
4448207b46
[io-layer] Don't use Get/SetLastError after wapi shutdown.
...
handle_cleanup() is called at exit and might try to clean things up
twice, causes a WSANOTUNITIALISED and then a segmentation fault trying
to use a pthread key that has already been freed.
2011-03-16 16:12:01 -04:00
Gonzalo Paniagua Javier
c183437b77
[io-layer] Make my previous patch signal safe.
2011-03-16 13:45:16 -04:00
Marek Habersack
0bc62c64f2
[asp.net] Fix for bug #668696 . Handle recursive locks gracefully.
2011-03-16 16:19:05 +01:00
Zoltan Varga
f9f20656d9
Fix support for generic virtual thunks in full-aot.
2011-03-16 14:44:38 +01:00
Zoltan Varga
1cf96c874c
Add a cache for virtual generic thunks to avoid freeing those created by AOT.
2011-03-16 14:40:41 +01:00
Atsushi Eno
2e938cedc3
Enable behaviors in mobile profiles for WebHttpBinding.
2011-03-16 20:54:57 +09:00
Atsushi Eno
8aae8a860c
Enable more behavior interface member in NET_2_1.
2011-03-16 20:52:50 +09:00
Atsushi Eno
72c9964603
Enable more behaviors use in NET_2_1 land, toward WebHttpBinding.
2011-03-16 20:43:24 +09:00
Atsushi Eno
045c255762
Implement more encodings than binary frame with dictionary, in TCP manager.
...
(not known to not regress in nunit tests..)
2011-03-16 20:34:05 +09:00
Atsushi Eno
441e34087e
Fix MessageID element name in discovery contracts.
2011-03-16 20:31:37 +09:00
Jérémie Laval
b754115f2b
Don't throw an exception when task array is empty in WaitAll and throw in case a null element is encountered in it.
...
Fix for #679183
2011-03-16 09:34:38 +01:00
Jérémie Laval
94398a1154
Correctly implement enumerating CyclicDequeue.
...
Fix #679174
2011-03-16 09:33:29 +01:00
Atsushi Eno
cf3968f176
Add endpoint behavior support in NET_2_1, which involved not a few additions.
2011-03-16 17:22:25 +09:00
Gonzalo Paniagua Javier
6101dfa1e7
Fix g_get_charset for windows.
...
Patch by Horst Kakuschke that fixes bug #660412 .
2011-03-16 02:00:39 -04:00
Gonzalo Paniagua Javier
2bb69090d7
[io-layer] Handle process waits when SHM is disabled.
...
When SHM is disabled, handle SIGCHLD and either fill the info for the
process handle or just wait for the process to avoid zombies.
Fixes bug #668867 .
2011-03-16 01:51:55 -04:00
Jason Cohen
32c89f8e51
[asp.net] Fix for bug #678705 . Menu list rendered properly closes the list now.
2011-03-16 02:31:34 +01:00
Bassam Tabbara
733baa249e
[asp.net] Fix for bug #667513 . Implement support for PathInfo in Route.GetRouteData
2011-03-16 01:11:58 +01:00
Jb Evain
1fc9d8bd0b
Handle conversion to System.Enum
2011-03-15 22:20:00 +01:00
Gonzalo Paniagua Javier
c596b87264
[Semaphore] Remove warnings
2011-03-15 16:29:02 -04:00
Veerapuram Varadhan
51ede8ef25
[bugfix]672113 - Make a copy of constraint columns array
2011-03-15 20:24:10 +05:30
Atsushi Eno
92d8d69c21
avoid NRE on non-binary encoding use in TcpTransport.
2011-03-15 21:07:25 +09:00
Gonzalo Paniagua Javier
7ccc860767
Appdomain refs can be NULL in pop_refs
...
This fixes a bunch of test I broke with my previoius commit.
2011-03-14 22:51:21 -04:00
Kornél Pál
a19eee8543
[asp.net] Fix for bug #650695 . Implements the System.Web.{HttpNotFoundHandler,HttpNotImplementedHandler} classes.
2011-03-14 23:47:18 +01:00
Zoltan Varga
f00f059724
Avoid calling class cctors during JITting when the same class needs initialization more than once during a method. Fixes #679467 .
2011-03-14 23:09:33 +01:00
Gonzalo Paniagua Javier
db74186f65
[HttpListener] Avoid contention
...
-Lock-free reads from registered listeners.
-Don't register the context until *all* the setup steps are done.
2011-03-14 18:00:11 -04:00
Lucas Meijer
d6b8f09a9b
Implmement a private BinaryFormatter.DefaultSurrogateSelector, which enables embedders who want to make a sandbox, to specify a default surrogate selector, which is required to get System.Serialization be able to operate within a CoreCLR environment.
2011-03-14 17:34:20 -04:00
Geoff Norton
be077e583a
Fix the mobile build
2011-03-14 16:11:24 -04:00
Geoff Norton
0a8951258f
Fix the mobile build
2011-03-14 15:43:29 -04:00
Mark Probst
adaeb6075b
Merge branch 'sgen-disable-gc' into mono-2-10
2011-03-14 19:25:31 +01:00
Gonzalo Paniagua Javier
6c25b86257
Add new ignore file.
2011-03-14 14:09:17 -04:00
Gonzalo Paniagua Javier
1d602e9364
[threads] appdomain_refs push/pop speedup
...
Replace the GSList with an array to avoid malloc/free on every push/pop
call.
2011-03-14 14:03:22 -04:00
Gonzalo Paniagua Javier
a8985dc3ec
Cache NewLine per AppDomain.
2011-03-14 14:02:00 -04:00
Gonzalo Paniagua Javier
1756d9ea31
[threadpool] Added dynamic concurrent queue implementation
...
Replace the big lock around the list+array used to queue work items
with a dynamic concurrent queue to reduce contention.
2011-03-14 14:02:00 -04:00
Atsushi Eno
63e2c4a403
Enable DTD attdecl processing in mobile profile.
2011-03-15 00:46:23 +09:00
Peter Gerbrandt
35c7e0b062
Apply DataContractSerializerOperationBehavior.
2011-03-14 12:18:46 +09:00
Ankit Jain
e49c454e06
[xbuild] Microsoft.Common.targets - import Before/After targets files.
...
With this, Microsoft.Common.targets will import
$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportBefore\*
at the beginning of the file and
$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportAfter\*
at the end of the file.
So, this would import all files from (eg.):
$prefix/lib/mono/xbuild/4.0/Microsoft.Common.targets/ImportBefore/
This can be disabled by setting the bool properties -
$(ImportByWildcardBeforeMicrosoftCommonTargets) and
$(ImportByWildcardAfterMicrosoftCommonTargets).
2011-03-12 02:14:20 +05:30
Ankit Jain
1b676d2766
[xbuild] Throw ArgumentNullException if target name is null
2011-03-12 02:14:18 +05:30
Ankit Jain
a0e8d07f2b
[xbuild] Emit list of projects in the .sln.proj
...
Emit list of projects in the solution as @(ProjectReference) items
in the generated .sln.proj file. This would be useful for extending
solution builds.
2011-03-12 02:14:17 +05:30
Ankit Jain
9aee6ad25d
[xbuild] Don't report Imports ignored because of false conditions.
2011-03-12 02:14:15 +05:30
Ankit Jain
f00c5a545b
[xbuild] xbuild/Main.cs - remove unnecessary catch/throw.
2011-03-12 02:14:13 +05:30
Ankit Jain
7d67acee8b
[xbuild] Set ProjectFile and TargetName metadata on target outputs.
...
Set "MSBuildProjectFile" and "MSBuildTargetName" metadata on target outputs.
2011-03-12 02:14:12 +05:30
Ankit Jain
30cf8768c4
[xbuild] Handle unknown exceptions.
...
Re-throw any unknown exceptions.
* Project.cs: Log the exception, doing it here also, so that direct
project.Build(..) call failures also get logged.
* Engine.cs: Log the unknown exception only if the build is running.
This allows for the case when Project.Build caught it and ended the
build.
2011-03-12 02:14:10 +05:30
Ankit Jain
64c827f318
[xbuild] Function names are case insensitive.
2011-03-12 02:14:08 +05:30
Ankit Jain
f13dcb35bf
[xbuild] Evaluate Import with MSBuildThisFile* properties set.
2011-03-12 02:14:07 +05:30
Ankit Jain
85f294ee2f
[xbuild] Fix test on windows.
...
AssignTargetPathTest.TestLink : Fix test on windows
2011-03-12 02:14:05 +05:30
Ankit Jain
0e091a62fa
[xbuild] Clean up test logs.
...
Remove unnecessary debug spew for tests that pass.
2011-03-12 02:14:03 +05:30
Gonzalo Paniagua Javier
42e4086945
Add to .gitignore
2011-03-11 02:03:46 -05:00
Gonzalo Paniagua Javier
7590b8bb30
[HttpListener] Paranoid cleanup
2011-03-11 02:00:33 -05:00
Gonzalo Paniagua Javier
455746a0ce
Test for both Set-Cookie and Set-Cookie2
2011-03-11 01:59:28 -05:00
Gonzalo Paniagua Javier
371bc51b1c
[HttpWebRequest] Only uppercase known methods
2011-03-11 01:59:20 -05:00
Gonzalo Paniagua Javier
badc22bbae
[Socket] Remove more auto-delegates
2011-03-11 01:59:11 -05:00
Gonzalo Paniagua Javier
2d7a5669d2
[Timer] Use static CB for invoking timer callbacks.
2011-03-11 01:59:05 -05:00
Gonzalo Paniagua Javier
89209acd58
[Socket] Minimize allocations of delegates
2011-03-11 01:58:55 -05:00
Gonzalo Paniagua Javier
9a4bd9308e
[HttpListener] Avoid blocking in FlushInput
2011-03-11 01:58:40 -05:00
Gonzalo Paniagua Javier
3527ec8621
[HttpListener] Plug leak.
2011-03-11 01:47:00 -05:00
Gonzalo Paniagua Javier
e812234121
Support NLS when opening assemblies on windows.
...
Patch by Horst Kakuschke that fixes bug #673793 .
2011-03-10 22:16:25 -05:00
Geoff Norton
b8397a6eeb
Fix ARCH_STORE_REGS on arm
2011-03-10 16:28:22 -05:00
Gonzalo Paniagua Javier
be0b6c8933
[HttpListener] Close idle connections on Stop()
...
Idle connections that never received any data or had ever been
associated to a listener are properly closed now when the endpoint is
closed or the last listener they used is closed.
Fixes a bunch of tests in System.ServiceModel.
2011-03-10 13:02:58 -05:00
Duane Wandless
cbd4fef05a
GetApplicableRule returns NULL in TimeZoneInfo.cs yet the code does not always handle a NULL return value.
...
This change fixes this issue and allows timezones like China Standard Time to work.
2011-03-10 22:12:39 +08:00
Rodrigo Kumpera
4f2774fa80
mono_gc_alloc_mature must check if the object needs to be registered for finalization
2011-03-10 13:13:14 +01:00
Lucas Meijer
cf967de406
backport of ee5a8cf9d09d525741e94b380bba411c6915026a, still under the mit x11 license.
2011-03-10 12:15:24 +01:00
Gonzalo Paniagua Javier
5167cc3dae
[HttpListener] Memory use reductions
2011-03-10 00:45:22 -05:00
Atsushi Eno
12ce3d1370
In some collection case, xsi:type is explicitly written. Try to copy that behavior.
2011-03-10 14:35:23 +09:00
Gonzalo Paniagua Javier
fa5e96cdf7
[HttpWebRequest] Support 4.0 Host property.
2011-03-09 22:34:23 -05:00
Zoltan Varga
18eb35983b
Use mono_field_get_type () in one place to fix a crash. Fixes #678269 .
2011-03-10 01:11:10 +01:00
Zoltan Varga
b80343fd5b
Mark threads created when calling from native code into the runtime as background threads. Fixes #678164 .
2011-03-10 01:02:10 +01:00
Levi Bard
34f18b6876
[Fix] Make path building on windows behave the same as stock mono+glib.
...
* src/gpath.c: Make path building on windows behave the same as stock mono+glib.
License: MIT/X11
2011-03-09 16:38:34 -05:00
Gonzalo Paniagua Javier
c690aa95bc
IO threads have their own name
2011-03-09 16:11:54 -05:00
Gonzalo Paniagua Javier
9f33f58799
Some changes to the threadpool
...
-Reduce stack size for IO threads.
-Create threads on demand up to min_threads, then throttle.
2011-03-09 16:08:46 -05:00
Andrew Jorgensen
e30eeacd70
Fix up devel packages in spec file
2011-03-09 11:19:55 -07:00
Atsushi Eno
3e9fccb813
Some attempts to make KnownTypeCollection parallel access safe.
2011-03-09 22:51:18 +09:00
Atsushi Eno
e25503422b
Remove old windows threading workaround.
2011-03-09 21:20:38 +09:00
Marek Safar
69e64f8d72
[677550] Fixes fixed buffer regressions
2011-03-09 08:30:21 +00:00
Atsushi Eno
1585b98d92
Auto detect BOM-less utf-16 and utf-32. Fixed bug #674580 .
2011-03-09 15:57:21 +09:00
Peter Gerbrandt
c60c84c55d
Implement support for QNameIndex (0xBC) in attribute nodes.
2011-03-09 14:00:22 +09:00
Atsushi Eno
1eae886946
Temporarily disable InternalsVisibleTo(System.ServiceModel).
...
until mcs (in 2-10 or later release) fixes the issue.
2011-03-09 10:21:39 +09:00
Gonzalo Paniagua Javier
4b7ca990ad
Avoid null refs when capacity set to 0
...
This fixes bug #676060 .
2011-03-08 18:06:11 -05:00
Miguel de Icaza
aabd50d5ad
[System.Json] Fix loader.
...
The current loader failed with some Json strings due to the implementation
of the BufferedStreamReader. Removed that implementation completely,
and instead depend on the StreamReader to do the actual BOM detection.
This removes the JavaScriptObjectDeserializer.cs file
2011-03-08 18:00:27 -05:00
Miguel de Icaza
f56f2a679c
Make print take an object
2011-03-08 18:00:20 -05:00
Gonzalo Paniagua Javier
e3ec5dcffb
Turn the method to upper case.
...
Fixes bug #675731 .
2011-03-08 17:35:52 -05:00
Gonzalo Paniagua Javier
b428261ea6
No need to create an extra instance of Worker.
2011-03-08 12:35:05 -05:00
Atsushi Eno
7711cbf01a
In XNodeWriter, extra xmlns was written and often rejected for duplicate decls.
...
Fixed bug #675620 .
2011-03-08 23:54:23 +09:00
Atsushi Eno
ce550ab14b
Merge branch 'mono-2-10' of github.com:mono/mono into mono-2-10
2011-03-08 22:08:59 +09:00
Atsushi Eno
6d67acf0d0
More xml output fixes in XmlSyndicationContent and SydicationElementExtension.
...
They have couple of complicated xml outputs in both GetReader(AtContent)
and Write(Contents)To methods... check new tests for details.
2011-03-08 22:06:49 +09:00
Ankit Jain
82f415e01a
[xbuild] Implement FileLogger . Fix #676650 .
...
* FileLogger.cs: Implement
Add corresponding command line args for file loggers.
Update man page.
2011-03-08 18:29:34 +05:30
Ankit Jain
4b9f33b4d5
[xbuild] ConsoleLogger - parse params only on Initialize.
2011-03-08 18:29:34 +05:30
Ankit Jain
bf997c57b6
[xbuild] LogExtensions.LogError - disambiguate.
...
* LogExtensions.cs(LogError): Rename the 'filename' overload to ..
(LogErrorWithFilename): .. this.
* Engine.cs: Track api changes.
2011-03-08 18:29:33 +05:30
Ankit Jain
4395aab675
[xbuild] Set @(CollectedBuildOutput) for projects build from .sln .
2011-03-08 18:29:33 +05:30
Ankit Jain
aad5ac41fa
[xbuild] Add missing api for Target.
...
* Target.cs (Outputs): Add new public property by this name. And rename
old one to ..
(OutputsAsITaskItems): .. this.
2011-03-08 18:29:32 +05:30
Ankit Jain
9a743feb99
[xbuild] Fix bug #676671 . Raise AnyEvent .
2011-03-08 18:29:32 +05:30
Ankit Jain
353b636e4a
[xbuild] Add hooks for extending .sln builds.
...
Add hooks in the .sln.proj generated from .sln files.
1. It imports
"$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportBefore\*"
and
"$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportAfter\*"
This is done only in case of 4.0 projects, as imports with wildcard
is a 4.0 feature.
2. And it imports before.Foo.sln.targets and after.Foo.sln.targets from
the same dir as the .sln file.
2011-03-08 18:29:31 +05:30
Ankit Jain
50f46f1fac
[xbuild] Update man page with info about FrameworkList.xml
2011-03-08 18:29:31 +05:30
Ankit Jain
6e597dfd63
[xbuild] Add support for wildcards in Import.
...
With 4.0 profile, <Import ..> can have wildcards. This works correctly
with our multiple MSBuildExtensionsPath also.
If the import references $(MSBuildExtensionsPath) property, then the
each extension path is used to resolve the import, and the search
stop as soon as an import is found.
If such an import uses wildcard, then the search stops at the
extension path in which *atleast one* file got imported.
And the import fails if any invalid project file is encountered.
This commit also heavily refactors the Import code to simplify
in the face of the new features, and improves error detection
and reporting.
ImportTest.cs: Add test for wildcards.
2011-03-08 18:29:30 +05:30
Ankit Jain
1a357d9f4e
[xbuild] ImportedProject - remove unnecessary catch/throw
...
Remove the catch { throw; }, this truncated the stack also.
2011-03-08 18:29:30 +05:30
Ankit Jain
12692327a1
[xbuild] ImportCollections.TryGetImport and other fixes
2011-03-08 18:29:29 +05:30
Ankit Jain
e166179eb8
[xbuild] Expression.ParseAs<T> - new method
2011-03-08 18:29:29 +05:30
Ankit Jain
294900133a
[xbuild] DirectoryScanner.HasWildcard - new method
2011-03-08 18:29:28 +05:30
Ankit Jain
df939989d8
[xbuild] Log build errors and raise events even if a build fails.
2011-03-08 18:29:28 +05:30
Ankit Jain
a1c49cd4e9
[xbuild] Add support for Before/AfterTargets.
...
A target 'foo' can have BeforeTargets or AfterTargets attributes,
which list the targets before or after, 'foo' should be run.
This is a 4.0 feature.
* Project.cs (ProcessBeforeAndAfterTargets): New.
* Target.cs: Run the before/after targets in the correct order.
* TargetTest.cs (TestBeforeAndAfterTargets): New.
2011-03-08 18:29:27 +05:30
Ankit Jain
b374152512
[xbuild] Fix warnings.
2011-03-08 18:29:27 +05:30
Ankit Jain
bbc79f7b41
[xbuild] Fix assembly name comparison when resolving references.
...
AssemblyResolver.cs (AssemblyNamesCompatible): If either of the
references don't have a public key token, then ignore that.
2011-03-08 18:29:26 +05:30
Ankit Jain
841b593bd9
[xbuild] Vbc task - make error column check a little non-specific.
2011-03-08 18:29:26 +05:30
Ankit Jain
49805cb00d
[xbuild] Exec task - add support for custom error/warning regex.
...
Add 4.0 api, CustomErrorRegularExpression and
CustomWarningRegularExpression.
2011-03-08 18:29:25 +05:30
Atsushi Eno
0256398770
Couple of fixes around XmlSyndicationContent.GetReaderAtContent().
...
- The returned XmlReader is positioned at the beginning of the element.
- XmlSyndicationContent.GetReaderAtContent() returns XmlReader that begins
with the "wrapper" which is dummy Atom 1.0 content element.
2011-03-08 18:58:40 +09:00
Atsushi Eno
38855bc712
Remove wrong buffer size check in XmlTextReader.ReadChrs().
2011-03-08 15:28:08 +09:00
Atsushi Eno
017b4ed819
Make sure to call MoveToContent() to correctly determine node type.
...
Fix "Dictionary deserialization from xml with indent" issue.
2011-03-08 14:54:11 +09:00
Geoff Norton
d47c02350c
Add 2 missing 4.0 APIs to the MOBILE profile
2011-03-07 21:27:51 -05:00
Atsushi Eno
4b4f74955d
DateTimeOffset child elements have fixed namespace.
2011-03-08 11:03:47 +09:00
Gonzalo Paniagua Javier
211be59492
Host name is the same when querying localhost
...
The host name is set to the queried host name when it is the local
machine name. Fixes bug #676260 .
2011-03-07 18:51:30 -05:00
Zoltan Varga
55a91737da
Fix the previous change.
2011-03-07 18:04:02 +01:00
Zoltan Varga
568b8cf74d
Fix out-of-tree builds.
2011-03-07 18:01:15 +01:00
Atsushi Eno
bee257b69b
Empty element is valid here in silverlight secrity element.
2011-03-08 01:51:39 +09:00
Atsushi Eno
36353034c9
XmlReader.ReadToNextSibling() saved wrong Depth and failed to proceed.
...
Fixed bug #676020 .
2011-03-08 00:49:27 +09:00
Atsushi Eno
b4b3b7b978
Forgot to add the actual new client proxy.
2011-03-08 00:43:23 +09:00
Zoltan Varga
550ca25837
Avoid an assert when returning nullable null's from sdb invokes. Fixes #676587 .
2011-03-07 12:02:16 +01:00
Atsushi Eno
5cb757c95b
Set ProhibitDtd = false on uri-based Load(). Fixed bug #676009 .
2011-03-07 17:09:44 +09:00
Atsushi Eno
c6fb9f9494
Couple of fixed to support new DateTimeOffset serialization in .NET WCF.
2011-03-07 16:46:56 +09:00
Atsushi Eno
1c664cbb1e
Forgot to add test xml files.
2011-03-07 14:00:52 +09:00
Atsushi Eno
dcc8112e68
Fixed xsd derived simpleType cast failures on uint. Fixed bug #676993 .
2011-03-07 13:58:15 +09:00
Peter Gerbrandt
7f8aafbe7d
Support for the same interface as service contract and as callback contract.
2011-03-07 12:53:19 +09:00
Atsushi Eno
837bf42ce7
Replace SRE-based client proxy generator with RealProxy.
...
Now PE verified workaround should be unnecessary.
2011-03-07 12:32:21 +09:00
Zoltan Varga
084a76ecea
Install a mono-sgen-gdb.py as well.
2011-03-04 17:33:45 +01:00
Zoltan Varga
3da978e41b
Log all sdb log messages to the log file instead of stdout.
2011-03-04 13:30:04 +01:00
Geoff Norton
e8c3443bd3
When running in a linked environment, this file might not exist
2011-03-03 17:54:47 -05:00
Zoltan Varga
14b494ed61
Disable testbundle for powerpc too.
2011-03-03 16:35:53 +01:00
Zoltan Varga
ef214d3a25
Resurrect THREAD_DEBUG.
2011-03-03 11:30:14 +01:00
Zoltan Varga
5038f10bb6
Change an #ifdef DEBUG to THREAD_DEBUG(). Fixes #676615 .
2011-03-03 11:25:48 +01:00
Rodrigo Kumpera
fd2b90b73b
Reset iid of unloaded generic interfaces correctly.
...
* class.c (mono_get_unique_iid): Don't store
the iid of generic instances on their GTD image
since they can be unloaded before.
* metadata.c (free_generic_class): Reset the iid
used by interfaces.
2011-03-02 15:14:40 +01:00
Atsushi Eno
7225ae8eed
Remove wrong overrides in RequestChannelBase in discovery.
2011-03-02 20:29:29 +09:00
Andrew Jorgensen
4f8349919a
add xbuild-frameworks to rpm
2011-03-01 09:57:01 -07:00
Zoltan Varga
0214f7431a
Use stdint.h for VS 2010 and later.
2011-03-01 16:34:40 +01:00
Marek Safar
dbdcec54b4
[675777] Remove invalid zero based optimization
2011-03-01 08:59:02 +00:00
Geoff Norton
87cc02a04a
Fix the build when using DESTDIR
2011-02-28 19:26:26 -05:00
Rodrigo Kumpera
f5bba434cd
Handle demormalized object and string types.
...
* metadata.c (do_mono_metadata_parse_type): NET 1.1
assemblies can have string and object encoded in a denormalized
way.
Fixes #675464 .
2011-02-28 22:02:05 +01:00
Rodrigo Kumpera
7048e3f49e
Handle CompareTo(long) and huge numbers.
...
* BigInteger.cs (CompareTo): Handle numbers
larger than 64bits.
Fixes #674120
2011-02-28 14:57:35 +01:00
Ankit Jain
ac1ad54ded
[xbuild] ToolTask - make error column check a little non-specific.
2011-02-28 17:01:38 +05:30
Ankit Jain
a1953b3f77
[xbuild] Make Engine.DefaultToolsVersion 2.0 .
...
Engine.DefaultToolsVersion is used when a project is unable
to determine a suitable ToolsVersion to use. Change this fallback
version to 2.0 . This allows vs2005 (.net 2.0) projects which
don't have ToolsVersion explicitly set, to build. Newer projects
set ToolsVersion by default.
2011-02-28 17:01:37 +05:30
Ankit Jain
b100e0eed6
[xbuild] ResolveAssemblyReference - log task parameters
2011-02-28 17:01:35 +05:30
Ankit Jain
24e787e9ff
[xbuild] ResolveAssemblyReference - add missing api.
2011-02-28 17:01:33 +05:30
Ankit Jain
916943ce1a
[xbuild] GetReferenceAssemblyPaths - add missing license header.
2011-02-28 17:01:31 +05:30
Ankit Jain
93a4e248be
[xbuild] Add support for multi-targeting arbitrary frameworks.
...
ToolsVersion 4.0 supports targeting arbitrary frameworks defined
by FrameworkList.xml files and referenced by $(TargetFrameworkMoniker),
which is of the format:
Identifier,Version=<version>[,Profile=<profile>]
built as:
$(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion)[,Profile=$(TargetFrameworkProfile)]
eg. '.NETFramework,Version=v4.0' .
Frameworks are searched for in (order):
1. Paths specified in the environment variable $XBUILD_FRAMEWORK_FOLDERS_PATH
2. /Library/Frameworks/Mono.framework/External/xbuild-frameworks on Mac OSX.
3. MSBuild property $(TargetFrameworkRoot)
4. $prefix/lib/mono/xbuild-frameworks (default location)
.NET frameworks 2.0/3.0/3.5/4.0 have corresponding FrameworkList.xml
files now, which allows projects to target them. Custom frameworks like
MonoDroid can install suitable FrameworkList.xml files, and projects
can target them using the correct $(TargetFrameworkIdentifier) and
$(TargetFrameworkVersion).
Update man page.
2011-02-28 17:01:30 +05:30
Ankit Jain
8494641805
[xbuild] ToolTask - add missing api
...
* Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
(GetProcessStartInfo): Add missing api. This allows more control
over the execution of the tool.
2011-02-28 17:01:28 +05:30
Ankit Jain
82b37d914c
[xbuild] Add missing property to Error/Warning tasks.
2011-02-28 17:01:26 +05:30
Ankit Jain
8c579dfce2
[xbuild] Add $(MSBuildToolsRoot) reserved property.
2011-02-28 17:01:24 +05:30
Ankit Jain
95af93f266
[xbuild] Remove property if Output TaskParameter is null.
...
If the TaskParameter for Output of a task is null, then remove
the corresponding property.
Add relevant test.
2011-02-28 17:01:22 +05:30
Geoff Norton
41b1fe814e
Cache the result of the pthread_specific disassembly when checking for fast tls on darwin
2011-02-25 16:42:20 -05:00
Geoff Norton
ac1e8e16a2
Fix the mobile build
2011-02-25 11:41:10 -05:00
Marek Habersack
e8a578407b
[asp.net] Fix for bug #671753 . Route.GetVirtualPath must take ambient values into account.
2011-02-25 13:18:10 +01:00
Steve Bjorg
450b0f1c4a
added units tests for TextReader ReadLine() and ReadToEnd()
2011-02-25 01:52:29 -05:00
Steve Bjorg
d2b840c9fc
TextReader.Null should return "" on ReadToEnd()
2011-02-25 01:51:39 -05:00
Miguel de Icaza
ad9ddef21a
Fix build
2011-02-25 01:49:02 -05:00
Miguel de Icaza
5c1fe2fedb
[TerminfoDriver] be more tolerant to failures, and fallback gracefully, instead of aborting
2011-02-24 23:59:53 -05:00
Miguel de Icaza
268adea870
Do not throw exceptions, instead return a sensible value, fixes 656468
2011-02-24 23:36:33 -05:00
Atsushi Eno
70910f3f04
Fix 2.0 test build (disable it).
2011-02-25 12:38:51 +09:00
Zoltan Varga
02f2d4dbf7
Fix previous arm patch.
2011-02-25 03:20:32 +01:00
Miguel de Icaza
dcec5908af
Add default implementations to ReadLine() and ReadToEnd() to TextReader, fixes 655934
2011-02-24 16:52:00 -05:00
Zoltan Varga
85e594b968
Fix stop_debugger_thread () on windows. Shutdown both ends of the connection socket since shutting down only the receive part doesn't seem to work on windows. Wait for the debugger thread to exit in a loop, since we don't use condvars on windows.
2011-02-24 19:15:14 +01:00
Geoff Norton
c08e02bc59
Enable ARMv6 for arm*-darwin
2011-02-24 12:22:34 -05:00
Martin Baulig
a92669fc05
Fix bug #669836 :
...
Treat exceptions that are caught by mono_runtime_invoke()
as unhandled in SDB.
2011-02-24 17:43:34 +01:00
Ankit Jain
0cce6b2bf5
[xbuild] Rename method to make it more consistent.
...
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssemblyResolver.cs
(GetAssemblyNameFromFile): Rename to ..
(TryGetAssemblyNameFromFile): .. this, to make it consistent with
the similar method TryGetAssemblyNameFromFullName .
Track api changes.
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/ResolveAssemblyReference.cs:
Track api changes.
2011-02-24 18:31:49 +05:30
Ankit Jain
9f29e21ade
[xbuild] Fix bug #674630 .
...
Handle errors in trying to create AssemblyName from invalid
full names.
2011-02-24 18:31:45 +05:30
Zoltan Varga
93dd831a8b
Only use memory barriers on arm when running on armv6 or later.
2011-02-24 13:56:15 +01:00
Marek Safar
b860a9145c
[674224] Type parameter constraint can resolve to nested type before it has been imported
2011-02-24 08:14:57 +00:00
Atsushi Eno
c69896b97b
Simple InstanceContext.Extensions implementation by David Schmitt.
...
Fixed bug #674057 .
2011-02-24 14:40:52 +09:00
Atsushi Eno
094614ba92
Do not write empty items in Probe message.
2011-02-24 14:36:36 +09:00
Atsushi Eno
2bbbccf106
To header rewrite only happens in Adhoc mode.
...
Update contracts to comply with that and make it consistent between versions.
2011-02-24 14:36:24 +09:00
Atsushi Eno
37589e862a
Pass Actor. use IsNullOrEmpty() instead of "!= String.Empty".
2011-02-24 14:29:45 +09:00
Atsushi Eno
80890aa751
Another fix to not write null header. Add UniqueId deserialization workaround.
2011-02-24 14:29:34 +09:00
Jonathan Pryor
05745bacdf
Enable UDP Sockets on MOBILE platforms.
...
Fixes runtime part of #666736 .
2011-02-23 23:03:13 -05:00
Zoltan Varga
26bbac8c8a
Disallow EventType.Step in EnableEvents (). Fixes #674490 .
2011-02-24 01:07:51 +01:00
Miguel de Icaza
b60927f21f
Fix win32 build
2011-02-23 14:21:01 -05:00
Ankit Jain
a77fdbe8b5
[xbuild] Fix bug #674337 .
...
Use appropriate path separator for handling environment variable
MSBuildExtensionsPath.
2011-02-23 21:29:37 +05:30
Jérémie Laval
81f2bb71ed
Allow people to optionally fallback to the old scheduler with an environment variable
2011-02-23 14:44:59 +00:00
Jérémie Laval
3d1b4715eb
Remove ctors in TpScheduler
...
This also remove the capping of the ThreadPool, problem needs to be fixed in the pool itself.
2011-02-23 14:44:58 +00:00
Jérémie Laval
df12cf48c6
Make TryExecuteTaskInline a bit smarter
2011-02-23 14:44:57 +00:00
Jérémie Laval
4e37530b60
Refactor common code block of TpScheduler and SyncContextScheduler in SchedulerProxy
2011-02-23 14:44:57 +00:00
Jérémie Laval
95513a6be4
Kill old IScheduler interface.
...
We still use the ParticipateUntil facility of IScheduler internally and provide a default implementation for pure TaskScheduler
2011-02-23 14:44:56 +00:00
Jérémie Laval
8415e77fbe
When finding best worker number in Parallel loops use current TaskScheduler instead of default TaskScheduler
2011-02-23 14:44:56 +00:00
Jérémie Laval
3e593ba735
Adapt TpScheduler to the new API in TaskScheduler
2011-02-23 14:44:55 +00:00
Jérémie Laval
ddd9443f26
Cache callback delegate in TpScheduler when passing Task to QueueUserWorkItem
2011-02-23 14:44:55 +00:00
Jérémie Laval
d0c67f7e87
Don't create a new lambda everytime when queuing Task via ThreadPool QueueUserWorkItem
2011-02-23 14:44:54 +00:00
Jérémie Laval
b2e391a309
Try to execute task inline when they are ready to run and we wait on them with no timeout
2011-02-23 14:44:53 +00:00
Jérémie Laval
3d4f602354
Threadpool Task scheduler
2011-02-23 14:44:53 +00:00
Jérémie Laval
2b62b097df
Create PLinq query tasks attached to their eventual task parent by default
2011-02-23 14:44:52 +00:00
Jérémie Laval
b816837188
When choosing the number of Task to create for a PLinq query, check if we are already in a running Task
2011-02-23 14:44:52 +00:00
Jérémie Laval
c084efc79e
Implement properly TaskScheduler's FromCurrentSynchronizationContext
2011-02-23 14:44:51 +00:00
Jérémie Laval
07791b1406
Adapt Parallel.For stealing to all processor flavors
2011-02-23 14:44:51 +00:00
Jérémie Laval
9ba41cadd2
Allow multiple invocation of Task Execute method to allow short-circuiting without breaking deque ordering
2011-02-23 14:28:43 +00:00
Miguel de Icaza
ca02c72ecb
Avoid warnings, should fix OpenSUSE builds
2011-02-22 19:30:48 -05:00
Andrew Jorgensen
f5b2849d72
Version 2.10.1
2011-02-22 14:16:00 -07:00
Ankit Jain
8c4808fc36
[xbuild] Add new reserved properties $(MSBuildThisFile*).
...
Also, fixes bug #668955 .
Add new reserved properties $(MSBuildThisFile*).
Unlike the $(MSBuildProjectFile), the *This* properties are evaluated
in the context where they were used. Eg. if such a property was
referenced in a PropertyGroup, then it would refer to the file
containing the that definition, and *not* the main project file.
It applies to items and tasks/targets also.
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildChoose.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildItemGroup.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildPropertyGroup.cs:
Add DefinedInFileName property.
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs:
Add a stack to keep track the "current" file, which is used to set
the $(MSBuildThisFile*) properties. Update the properties on
Push/Pop.
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/GroupingCollection.cs:
Push/Pop the "current" file, when evaluating a property/item/etc.
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Target.cs:
Push/Pop the "current" file, when building. This ensures that the
references in the target definition get evaluated correctly.
* Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine/ProjectTest.cs:
Add corresponding test.
2011-02-23 01:38:40 +05:30
Rodrigo Kumpera
ed23f897c4
Properly check arguments in List<T> ICollection.CopyTo.
...
* List.cs (ICollection.CopyTo): Properly check
the array argument to match MS semantics.
Fixes #672907
2011-02-22 18:51:20 +01:00
Ankit Jain
b636b093d2
[xbuild] Use the env var $MSBuildExtensionsPath before trying other paths.
...
Change the order of the "search paths", so that the environment
variable can always override it.
Update the man page to reflect the change.
2011-02-22 21:39:00 +05:30
Zoltan Varga
e433c33f9f
Fix the passing of the mrgctx argument in case of a virtual->nonvirtual optimization. Fixes #672446 .
2011-02-22 15:30:33 +01:00
Hib Eris
21528f97be
Fix gsize for 64-bit Windows
2011-02-22 14:41:14 +01:00
Zoltan Varga
a7c3c38901
Avoid returning TRUE from mono_domain_finalize () if it is interrupted by sdb. Fixes #673592 .
2011-02-22 05:36:34 +01:00
Zoltan Varga
5766da53da
Fix arm thunk creation in dynamic methods. Fixes #673828 .
2011-02-22 00:51:50 +01:00
Marek Habersack
3e6f82d10c
[transactions] When cloning a transaction make sure to copy all the stuff that matters.
...
The volatiles and durables lists must be copied even if they are empty. The calling code
might still be accessing them via the original transaction (as is the case with Orchard+NHibernate)
2011-02-21 23:38:23 +01:00
Marek Habersack
01e4a9bb55
[asp.net] Fix for bug #669807 . Cache session item locks as the item might be cleared before the lock needs to be released.
2011-02-21 19:50:33 +01:00
Geoff Norton
e09f898428
Implement proper TSD lookup for arm-darwin
2011-02-21 13:37:06 -05:00
Geoff Norton
1d3ed22ab2
OSX 10.6 properly respected signal handlers before invoking the crash reporter
2011-02-20 23:01:50 -05:00
Zoltan Varga
abdc66ca35
Implement mono_memory_barrier () and OP_MEMORY_BARRIER for ARM.
2011-02-20 03:23:33 +01:00
Zoltan Varga
affd549250
Make the var/mvar caches per-image, since the generic params they refer to can be freed on domain unload. Fixes part of #672939 .
2011-02-20 01:54:34 +01:00
Zoltan Varga
a98ce10d71
Revert "[Win64] Compilation fix for eglib in win64"
...
This reverts commit 97bc578e86 .
2011-02-19 23:27:25 +01:00
Zoltan Varga
432ed84634
Reorganize the way jump_target_hash is stored in the JIT. Free entries in jump_target_hash which point inside a dynamic method when it is freed. Fixes #669815 .
2011-02-19 22:24:06 +01:00
Geoff Norton
b2eaffda65
Avoid leaking a mach_port every time we query the counters
2011-02-19 12:22:19 -05:00
Miguel de Icaza
78a1ca7417
Backport support for add support for new PerformanceCounter("Process", "% Processor Time", "<process id as string>" on OS X
2011-02-19 12:03:32 -05:00
Gonzalo Paniagua Javier
7372ca74ef
[eglib] Move definition of GPid to eglib-config.h
...
This new patch moves the definition of GPid from glib.h to eglib-config.h and
determines the the type of pid_t in configure.
Pach from Hib Eris that fixes bug #670076 .
2011-02-19 11:50:46 -05:00
Gonzalo Paniagua Javier
97bc578e86
[Win64] Compilation fix for eglib in win64
...
Compiling for 64 bit windows breaks on incorrect gsize.
Patch by Hib Eris that fixes bug #673581 .
2011-02-19 11:43:54 -05:00
Miguel de Icaza
adc1bd510c
[594642] System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces fix for MacOS X
2011-02-19 11:06:00 -05:00
Gonzalo Paniagua Javier
5ef11410bd
Fix the check for version and PublicKeyToken
...
When loading an assembly we were comparing Version(0,0,0,0) with null
and a 0 length PKT with an actual one when those two cases are the
default.
Fixes bug #661461 .
2011-02-19 10:14:12 -05:00
Rodrigo Kumpera
843a59e2ab
Handle overrides on events when retrieving cattrs.
...
* MonoCustomAttrs.cs (GetBase): Special case events
when retrieving the base event to lookup cattrs.
* AttributeTest.cs: Add regression test.
Fixes #662867
2011-02-18 23:38:28 +01:00
Mark Probst
9bd2159a5f
[sgen] Fix some debug functions.
2011-02-18 23:18:09 +01:00
Zoltan Varga
0b63e96ade
Set cfg->uses_rgctx_reg in another code path too on arm, to fix --regression generics.exe.
2011-02-18 23:09:51 +01:00
Zoltan Varga
17a13200f8
Work around a gcc bug on arm.
2011-02-18 23:06:32 +01:00
Rodrigo Kumpera
b48e7b5988
Handle gsharing and marshal by ref.
...
* method-to-ir.c (mono_emit_method_call_full): Non virtual
marshal by ref methods with gsharing context must always
be called using indirect calls.
Fixes #665893
2011-02-18 17:14:27 +01:00
Atsushi Eno
ba4c090467
Fix infinite loop in DiscoveryMessageSequence equality comparison.
2011-02-18 16:32:57 +09:00
Atsushi Eno
b9b1ae5876
Do not try to serialize null header item.
2011-02-18 16:23:58 +09:00
Atsushi Eno
223d09ec41
Fix wrong element name (AppSequenceType->AppSequence).
2011-02-18 16:14:08 +09:00
Atsushi Eno
e72dcebf98
Almost eliminate wrong use of Constants.WsaNamespace.
...
They should be addressing-version-aware.
2011-02-18 16:11:16 +09:00
Atsushi Eno
980810dc82
EndpointAddressAugust2004 was not serialized correctly.
...
Well, Actually unified the implementation with 10.
2011-02-18 15:54:52 +09:00
Rodrigo Kumpera
6d7b16c0d2
Make sure we keep a root for the delegates when calling them.
...
* method-to-ir.c (mono_emit_method_call_full): Make sure
we keep a root for delegates when calling them using the
fast delegate dispatch.
Fixes #667921
2011-02-17 21:59:44 +01:00
Marek Habersack
d8d5da5c30
[asp.net,mvc3] Fix for bug #668655 . Implemented a few more NameValueCollection method overloads.
2011-02-17 19:37:05 +01:00
Atsushi Eno
931c55c115
get out from NET_4_0.
2011-02-17 22:20:56 +09:00
Atsushi Eno
dcd3787a52
Couple of corcompare fixes.
2011-02-17 21:09:50 +09:00
Atsushi Eno
995d298d00
Only use non-null values in ServiceAuthorizationBehavior.
2011-02-17 21:09:40 +09:00
Atsushi Eno
582c628f21
Fill a couple of missing ServiceAuthorizationElement implementation.
2011-02-17 21:09:29 +09:00
Atsushi Eno
10e94f0efa
HTTP authentication in HttpListener had dropped during refactoring. Now it's back.
2011-02-17 21:09:19 +09:00
Geoff Norton
f45ca2b65e
Fix ARCH_STORE_REGS on arm to save r0->r12 properly
2011-02-16 16:10:31 -05:00
Geoff Norton
c9231c0248
Remove dead code
2011-02-16 15:04:47 -05:00
Atsushi Eno
b5491e25d9
MakXsdDataContractExporter refactoring to generally use SerializationMap.XmlName.
...
Fixed bug #670539 .
2011-02-17 00:56:59 +09:00
Hib Eris
ea0673de2b
Decorate _image_base__ with __MINGW_LSYMBOL
...
This fix is needed in compiling for x86_x64.
2011-02-16 15:22:26 +01:00
Atsushi Eno
f8d7872cc4
Don't reject serialization map for existing different (but same-purpose) type.
2011-02-16 18:50:02 +09:00
Atsushi Eno
ead615dca5
To header seems mandatory in April2005, so fill it.
2011-02-16 18:19:14 +09:00
Atsushi Eno
4ed4702907
April2005 AppSequence needs default constructor for deserialization.
2011-02-16 18:19:03 +09:00
Atsushi Eno
be750c099d
xsi:type parsing is wrong in default namespace resolution.
...
Fixed case #3 in bug #652331 .
2011-02-16 18:04:18 +09:00
Atsushi Eno
4b82e7b3b2
Operation interface methods also have ServiceKnownType attributes.
2011-02-16 17:07:10 +09:00
Atsushi Eno
1e17218a2d
KnownTypeCollection; recursively registered type was not added to the collection while it is "registered" state.
2011-02-16 16:06:15 +09:00
Jérémie Laval
423f895412
Implement TaskFactory.FromAsync
2011-02-15 18:38:29 +00:00
Ankit Jain
d6070f1383
[xbuild] Fix bug #671700 , resource naming in presence of "Link".
...
AssignTargetPath.cs: If 'Link' metadata is present, then use that
as the target path.
Add relevant test.
2011-02-15 20:18:36 +05:30
Marek Safar
f1e818a76f
[671878] Fixes IKVM ordering of catch clauses
2011-02-15 14:33:14 +00:00
Atsushi Eno
a28a9520b5
Async MessageContract pattern needs more sophisticated contract validity check.
...
It totally killed discovery.
2011-02-15 23:25:31 +09:00
Atsushi Eno
6907827b05
Message headers are now serialized and deserialized for MessageHeaderDescription.
2011-02-15 23:15:32 +09:00
Atsushi Eno
6ea68b9128
ServiceDescription.cs does not exist in moonlight, so move TypeExtension.
2011-02-15 22:38:20 +09:00
Atsushi Eno
7c37c423e1
MessageHeaderDescription were not filled in message contract. Reject wrong contracts.
2011-02-15 22:13:25 +09:00
Atsushi Eno
8854623440
implement some ServiceHostBase public methods that already existed internally.
2011-02-15 22:13:18 +09:00
Atsushi Eno
7b088dc2a4
When the callback contract type is the same as the contract, do not block replies.
2011-02-15 15:51:44 +09:00
Atsushi Eno
e19f4be52c
EndpointAddress could be empty on opening the factory.
2011-02-15 15:51:38 +09:00
Atsushi Eno
20b58344cc
PeeDuplex ChannelFactory must be opened in prior to create channels.
2011-02-15 15:51:32 +09:00
Atsushi Eno
c310cd6556
add private setter for message serialization.
...
Not sure if it is hack or required-to-do though.
2011-02-15 15:51:26 +09:00
Veerapuram Varadhan
fc074bb4fa
[bugfix]667855 - Fix handling of oracle raw data type appropriately.
2011-02-15 01:25:00 +05:30
Gonzalo Paniagua Javier
a7bfba4549
[HttpListener] UserHostName includes the port.
2011-02-14 14:38:26 -05:00
Gonzalo Paniagua Javier
a65b6c7523
[HttpWebRequest] EndGetResponse already does this.
2011-02-14 14:38:26 -05:00
Gonzalo Paniagua Javier
7730c00a02
[HttpWebRequest] Use the timeout in GetResponse()
...
The timeout was not being used in GetResponse.
Fixes bug #603794 .
2011-02-14 14:38:26 -05:00
Atsushi Eno
675dc5b693
support UdpTranspoerSettings.MulticastInterfaceId. This should fix bug #669328 .
2011-02-15 01:57:02 +09:00
Veerapuram Varadhan
881d960b29
backport of r1012ab0b
...
Fixes 667236 - Handle numeric types appropriately
2011-02-14 21:18:04 +05:30
Miguel de Icaza
6c161687ea
[670974] Use the underlying BaseStream to read bytes instead of trying to peek a character.
...
Peeking a character as it turns out is a really bad idea as it involves the encoder
to pull characters. If the PeekChar happens to read a byte that is part of a
UTF8 string that needs more characters to process we would end up with the reported
crash.
Atsushi Enomoto tracked this down, and the fix is to use the binaryreader.BaseStream
to directly call into ReadByte and Read without ever probing with PeekChar (). It
is not really possible to use BinaryReader.ReadByte since this one can throw on
end-of-buffer conditions instead of returning -1
2011-02-14 09:41:31 -05:00
Marek Safar
7acea3000f
[671552] Use correct emit method for stobj type
2011-02-14 13:21:44 +00:00
Gonzalo Paniagua Javier
a615812280
[HttpWebRequest] Avoid nullref on empty cookie header.
...
If the Set-Cookie header is empty, the cookie instance is not created.
Fixes bug #670189 .
2011-02-13 14:54:27 -05:00
Alexandre Mutel
7ec51b02e9
Fix sizeof(T) in non-gshared code. Fixes #580189 .
2011-02-13 16:17:12 +01:00
Mark Probst
9b5ca2f366
Merge branch 'bugfix-main-thread-root' into mono-2-10
2011-02-13 16:10:37 +01:00
Zoltan Varga
f4edc478f0
Add an assembly version to Mono.Debugger.Soft. Fixes #671536 .
2011-02-13 16:06:57 +01:00
Mark Probst
586f777ec2
[sgen] Register the main_thread as a GC root. Fixes shutdown crashes.
2011-02-13 15:50:13 +01:00
Gonzalo Paniagua Javier
ba0fbbe133
[HttpListenre] Avoid multiple calls to Close()
...
HttpListenerResponse could be calling HttpConnection.Close() more than
once.
2011-02-13 07:08:34 -05:00
Zoltan Varga
86fdd99f9e
Fix reading of cattr arguments of type Type[]. Fixes #670331 .
2011-02-13 04:24:58 +01:00
Gonzalo Paniagua Javier
6390cf3b64
[gzip] Allow partial flush
...
When Flush() is called explicitly, do a Z_PARTIAL_FLUSH to force gzip
into giving us whatever is available. Less efficient, but compatible
with MS.
2011-02-12 00:05:35 -05:00
Gonzalo Paniagua Javier
fcdb18822c
[Socket] Fix invalid cast
...
Fix invalid cast when canceling pending operations due to socket.Close.
2011-02-11 18:36:54 -05:00
Zoltan Varga
79fddfa11d
Fix token generation for TypeBuilder's in another assembly. Fixes #671245 .
2011-02-12 00:15:59 +01:00
Miguel de Icaza
32f616acfb
[fix] changing Form.Enabled sometimes can change the list of OpenForms, fixes 671098
2011-02-11 17:34:23 -05:00
Zoltan Varga
52e0febfe6
Add Mono.XBuild.Utilities/MSBuildUtils.cs to the build.
2011-02-11 21:58:02 +01:00
Zoltan Varga
4246c386a0
Pretty print MonoString* too in xdb.
2011-02-11 21:54:44 +01:00
Sebastien Pouliot
d4ed08b5b4
Continue X509Chain processing even if the local machine directory does not exists
...
* corlib/Mono.Security.X509/X509Store.cs:
* Mono.Security/Mono.Security.X509/X509Store.cs:
Fix key pair persistence to load key pairs from the same location
(machine or user) as the requested certificate. This avoids an
internal exception (on missing local machine directory) that stop
the evaluation of the certificate validity (i.e. no user store
check)
* System/System.Security.Cryptography.X509Certificates/X509Chain.cs:
Ensure that a missing local machine directory does not result in a NRE
while loading CRL (which would fail the certificate being validated)
2011-02-11 13:41:33 -05:00
Hib Eris
e43d097f7c
Earlier undefine HAVE_GETPROCESSID when cross compiling
2011-02-11 15:42:29 +01:00
Rodrigo Kumpera
1066c2c1b5
Make maxStackSize behavior compatible with MS.
...
* Thread.cs (.ctor): Check if maxStackSize is negative
and raise and AOORE. Silently use a saner minimum size
of 128k as mono can't really run with much less than that.
2011-02-11 14:58:12 +01:00
Zoltan Varga
efa462d684
Make the wait in the finalizer thread alertable to fix sdb on windows. Fixes #670619 .
2011-02-11 05:55:06 +01:00
Zoltan Varga
6a77ef2687
Change some Sleep(0)'s to Sleep(1) in the soft-debugger code to avoid 100% cpu utilization on windows.
2011-02-11 01:34:43 +01:00
Gonzalo Paniagua Javier
1829c15ee9
[HttpWebRequest] Can't ignore erros here
2011-02-10 17:26:09 -05:00
Gonzalo Paniagua Javier
c214cd9488
[HttpWebRequest] Error handling for POST/PUT
...
When we get an error from the server before writing an entire
unbuffered response, the server might close the connection leading to
write errors. Ignore those and return the actual HTTP status code from
the original server error.
2011-02-10 17:26:09 -05:00
Ankit Jain
d08d05e197
[xbuild] Update Utilities.FromMSBuildPath from monodevelop.
...
Updating FromMSBuildPath also fixes a bug on windows.
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Utilities.cs:
Move to..
* Microsoft.Build.Utilities/Mono.XBuild.Utilities/MSBuildUtils.cs:
.. this. Also, update FromMSBuildPath from monodevelop.
* Update Engine/* and Tasks/* to track the new api.
2011-02-11 02:57:58 +05:30
Andrew Jorgensen
0793c8ecae
Mono.Debugger.Soft.dll is installed for 4.0 also.
2011-02-10 07:36:52 -07:00
Atsushi Eno
2031d77d6b
Fix a couple of addressing namespace fixes (found in April2005 version).
2011-02-10 22:07:16 +09:00
Atsushi Eno
916479ff8a
Fix wrong async completion handling in UDP channel receive.
...
After AsyncWaitHandle.Set(), order of filling results and WaitOne() are
undefined.
2011-02-10 21:19:02 +09:00
Marek Habersack
1630b8ecb9
[asp.net] Fix for bug #669048 . Fix up virtual precompiled app virtual paths with the virtual root of the current app
2011-02-09 22:02:36 +01:00
Rodrigo Kumpera
1316be56bb
Handle assignment check of variant type and its gtd.
...
* clas.c (mono_class_is_variant_compatible): Return
FALSE if checking a variant type and its gtd instead
of crashing.
Fixes #668506
2011-02-09 16:42:17 +01:00
Zoltan Varga
e61f3b7278
Install Mono.Debugger.Soft in the 4.0 profile as well.
2011-02-09 16:25:02 +01:00
Atsushi Eno
b6b34d1051
Recent ContractDescription fix uncovered wrong contracts in discovery.
2011-02-09 20:06:07 +09:00
Rodrigo Kumpera
c5cbc7e8e2
Cleanup the reference queue on domain unload.
...
* gc.c (finalize_domain_objects): Clear reference
queues on domain unload after running all finalizers.
2011-02-09 11:22:23 +01:00
Atsushi Eno
3aad1fb2cf
Support ServiceKnownTypes. Fixed another case on bug #652331 .
2011-02-09 15:44:19 +09:00
Zoltan Varga
c3cd3eb877
Disable OP_INEG cfolding on 32 bit arches, as it breaks the LNEG decomposition. The previous special casing didn't work as the spill pass could insert a store between the ineg and the adc_imm. Fixes #670479 .
2011-02-09 05:11:43 +01:00
Gonzalo Paniagua Javier
610f8d77c9
[SmtpClient] Don't send empty display name.
...
If there's no display name, don't send '""'.
Fixes bug #670475 .
2011-02-08 21:02:33 -05:00
Miguel de Icaza
18efb9a9e2
Update docs
2011-02-08 20:19:02 -05:00
Miguel de Icaza
11b3ead24e
Add prototype to .h file
2011-02-08 20:18:55 -05:00
Lucas Meijer
dfcd93df2a
implement mono_set_assemblies_path for platforms that cannot set MONO_PATH environment variable.
2011-02-08 20:18:39 -05:00
Atsushi Eno
ee701df195
Fix bug #661400 - fix complicated namespace resolution issue.
...
Namespaces in nested external schemas have to be validated against
immediately-containing schema. If there is a schema A with urn:x
targetNamespace imports a schema B with urn:y targetNamespace which
in turn includes another schema C, then C must be validated its namespace
against B, not A.
2011-02-08 20:18:32 -05:00
Marek Habersack
142676a516
[asp.net] Be more careful with errors collection when compilation fails.
2011-02-09 01:26:17 +01:00
Marek Habersack
02f2fe8204
[asp.net] Implemented CustomErrorsRedirectMode
2011-02-09 01:26:10 +01:00
Miguel de Icaza
be6ba4038a
Fix Enum.HasValue, previous version crashed with negative values
2011-02-08 15:52:38 -05:00
Marek Habersack
9d4e229c2e
[cross-compilation] Added some flexibility regarding the location of development packages
...
The script now supports an extra cross-compilation directory in which you can unpack the
library and development packages necessary for the build to succeed (glib, zlib etc). Also
supported now is specifying the location at which Mono will be installed on Windows.
Replaced SVN and GIT-SVN version checks with git checks.
2011-02-08 20:47:15 +01:00
Rodrigo Kumpera
9177ddc384
Fix reference queue under boehm.
...
* gc.c (finalizer_thread): Clean reference queues
after finalizers are called to give boehm a chance
to resurrect it.
2011-02-08 18:30:09 +01:00
Hib Eris
b9c4865b04
Fix build-mingw32.sh for CROSS_PKG_CONFIG_DIR without *.pc files
2011-02-08 14:56:26 +01:00
Hib Eris
83c2b73c8c
No longer include glib binaries in build-mingw32.sh builds.
...
By default, Mono now uses an embedded glib implementation, so there
is no need to ship external glib libraries anymore.
2011-02-08 14:55:51 +01:00
Hib Eris
77b6d414b9
Let build-mingw32.sh script also work on dist tarballs
2011-02-08 14:55:10 +01:00
Hib Eris
cb8913217e
Use winternl.h instead of ddk (when available)
...
These changes are nescessary for compiling with a mingw-w64 compiler.
2011-02-08 14:45:12 +01:00
Hib Eris
c45dd61269
Remove implementation details from public header io-layer.h
...
The macro HAVE_GETPROCESSID is defined in config.h and should not be
exposed in public headers.
2011-02-08 14:44:52 +01:00
Marek Safar
2990e2e271
[657099] Fix cloning of remapped blocks
2011-02-08 12:53:05 +00:00
Atsushi Eno
7e69d0aa77
Simple content restriction was not validated when it is in further reference.
...
Fixed bug #595947 . It was complexType [base]-> complexType [base]-> simpleType.
2011-02-08 20:55:16 +09:00
Marek Safar
cf0928b53e
Fix remapping of cloned block parent when already in cloned context
2011-02-08 11:23:46 +00:00
Atsushi Eno
b2525e0cb0
For complexType simpleContent restriction, fill attributes from base type.
...
Part of bugfix #595947 .
2011-02-08 18:32:53 +09:00
Atsushi Eno
38fe929b9f
There's a tricky namespace-mismatching deserialization in .NET implementation.
...
Fixed bug #666333 .
2011-02-08 17:11:15 +09:00
Atsushi Eno
f5ef8da8e5
Contract-based type must ensure that the base type is also contract-based.
...
Fixed bug #661987 on WCF side.
Conflicts:
mcs/class/System.Runtime.Serialization/Test/System.Runtime.Serialization/XmlObjectSerializerTest.cs
2011-02-08 12:13:57 +09:00
Atsushi Eno
20453fcb9c
Open and close client/service runtime channels in chains. Fixed bug #663278 .
2011-02-08 12:08:10 +09:00
Atsushi Eno
f3ddd9df63
handle IsTerminating.
2011-02-08 12:07:57 +09:00
Atsushi Eno
68ce0748e5
Duplex client has its own listener loop, so special care on reply is needed.
2011-02-08 12:07:45 +09:00
Atsushi Eno
34fad98bf0
Callback contract should be distinguished from others for DispatchOperation.
2011-02-08 12:07:33 +09:00
Atsushi Eno
176c92c21d
Now operations are collected per corresponding ContractDescription.
...
This fixes naming of MessageDescription Action URI from its type.
2011-02-08 12:07:22 +09:00
Atsushi Eno
a303481db4
Implement GetInheritedContracts(), towards bugfix #668089 .
2011-02-08 12:07:11 +09:00
Atsushi Eno
e2884a6c57
standard endpoint and protocol mapping support were lacking at client side.
...
Turned out that they had nothing to do with #668089..
2011-02-08 12:07:00 +09:00
Atsushi Eno
be19163ffe
Members in the base type in different namespace are serialized in base ns.
...
When the serializer serializes a Type B which is derived from A, it used to
serialize member M in A as in namespace_of_B, not in namespace_of_A.
This should fix bug #652331 .
2011-02-08 12:06:50 +09:00
Atsushi Eno
44a9e7eef7
Manage opened proxy channels and close them when ChannelFactory is closed.
2011-02-08 12:06:39 +09:00
Atsushi Eno
ab26a0788e
Implemented a couple of async methods in InstanceContext as well as disposing.
2011-02-08 12:06:29 +09:00
Atsushi Eno
0870ad290d
Avoid possible list modification error during close process.
2011-02-08 12:06:18 +09:00
Atsushi Eno
c4c9b57b9d
Make sure to close session once the client opened one.
2011-02-08 12:06:07 +09:00
Atsushi Eno
184d565783
Fix regression, avoid null key.
2011-02-08 12:05:55 +09:00
Atsushi Eno
84c27ca818
And rename source file name.
2011-02-08 12:05:44 +09:00
Atsushi Eno
561ec9f0e6
Rename InstanceBhavior, too ambiguous among IXxxBehavior interfaces.
2011-02-08 12:05:34 +09:00
Atsushi Eno
cf586923d5
Sessions should not be keyed by MessageId but be done by channel SessionId.
2011-02-08 12:05:24 +09:00
Atsushi Eno
be5559c59f
Read body content if required. Fixed all issues in bug #656020 .
...
Now it considers message content format and IsWrapped[Request|Response] to
retrieve XmlObjectSerializer.
2011-02-08 12:05:13 +09:00
Atsushi Eno
97a48b0eab
Enable duplicate "UriMatched" error check, with couple of FIXMEs.
...
.NET is very unclear about those UriTemplate behavior. Too minor to mind.
2011-02-08 12:05:03 +09:00
Atsushi Eno
fbc54c3de5
Fix template match logic to first check HTTP-method-matching ones.
...
Part of the fix for bug #656020 .
2011-02-08 12:04:53 +09:00
Atsushi Eno
e99c8b5a77
Serialize non-mapped message parameter as body content. Part of bug #656020 fix.
2011-02-08 12:04:43 +09:00
Marek Habersack
6eca3e53ed
[crypto] Added missing 4.0 algorithm names
2011-02-08 00:34:33 +01:00
Hib Eris
d1ef6f2e4b
Do not distribute eglib-config.h
...
The file eglib-config.h is generated when running configure.
Distributing eglib-config.h in tarballs causes errors when building
out of the source tree.
2011-02-07 23:55:47 +01:00
Hib Eris
0ab1c82223
Use _vscprintf() for mingw-w64 compilers
...
The mingw-w64 compilers implement a vsnprintf() function that do not
conform to the C99 standard (just like MSVC).
2011-02-07 23:43:37 +01:00
Hib Eris
dd8a1f2831
Include config.h in mono-profiler-aot.c
...
This change is nescessary for compiling with a mingw-w64 compiler.
2011-02-07 23:41:28 +01:00
Zoltan Varga
632a3c70c7
Cast the result of MONO_CONTEXT_GET_SP () to an int to fix the windows build.
2011-02-07 23:36:41 +01:00
Zoltan Varga
6b9347a35b
Include sys/types.h for pid_t on mingw. Fixes #670076 .
2011-02-07 23:33:11 +01:00
Zoltan Varga
ccedbc64dc
Use mono_method_get_vtable_slot () instead of accessing method->slot directly. Fixes #669808 .
2011-02-07 16:11:47 +01:00
Zoltan Varga
a962434e90
Fix the ia64 build.
2011-02-06 00:08:16 +01:00
Rodrigo Kumpera
129cfd47ee
Fixes ldfnt to ldvtftn conversion.
...
* mini-trampolines.c (mono_delegate_trampoline): The ldftn
to ldvtftn conversion must check if the method is abstract,
otherwise it breaks delegate to base classes.
Fixes #666008
2011-02-05 13:38:42 +01:00
Zoltan Varga
1c51463ed0
Print a normal stack trace even if a hard stack overflow happens in unmanaged code.
2011-02-04 12:55:47 +01:00
Zoltan Varga
719afa9b59
Print a normal stack trace on a hard stack overflow.
2011-02-03 23:04:47 +01:00
Zoltan Varga
8f45703547
Fix the handling of CompareExchange icalls in AOT, we were using the 'object' versions for everything, which broke with 64 bit types on 32 bit platforms.
2011-02-03 21:59:34 +01:00
Ankit Jain
d47a028ed4
[webservices] Extensions can be unknown XmlElements also, fix.
...
* class/System.Web.Services/System.Web.Services.Description/BasicProfileChecker.cs:
Extensions can be XmlElement or ServiceDescriptionFormatExtension.
* class/System.Web.Services/System.Web.Services.Description/ServiceDescription.cs:
(AddExtensionNamespaces): Likewise. Also, ignore namespaces from
XmlElement, as we retain and write them out as-is.
(WriteExtension): Emit the XmlElement as-is.
* class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionTest.cs:
Update to write out the wsdl also.
2011-02-04 01:03:45 +05:30
Marek Habersack
568f9ab996
[asp.net] HttpRuntimeSection.RequestPathInvalidCharacters default value is different
2011-02-03 17:43:31 +01:00
Marek Habersack
c7f2fda73d
[xml] XmlReaderSettings.{DtdProcessing,MaxCharactersFromEntities,MaxCharactersInDocument} are present in 3.5+
...
With the exception of DtdProcessing, the properties are part of .NET 3.5+. DtdProcessing appeared in 4.0.
2011-02-03 17:43:02 +01:00
Marek Safar
c139a0e52d
Don't even try to import type when its context is wrong
2011-02-03 15:21:38 +00:00
Marek Safar
320645f312
Add handling of broken Convert callsite from Orchard Project
2011-02-03 15:21:13 +00:00
Marek Safar
8b1e1255e6
Fix importing of private types under dynamic context
2011-02-03 15:16:50 +00:00
Zoltan Varga
a96d068321
Fix the passing of vtype arguments for methods which return floats in soft-float mode. Fixes #668905 .
2011-02-03 16:06:25 +01:00
Marek Safar
a5f9b5d9c6
Allow any expression to be used in where clause. Some custom linq implementations use non-predicate version of where
2011-02-03 13:55:28 +00:00
Marek Habersack
fe7386298f
[reflection] Default binder's AdjustArguments method treats ParamArray parameters which are already arrays properly
...
Such parameters are not adjusted as it would lead to an InvalidCastException whenever an attempt to set an array
index's value would be made.
2011-02-03 02:23:15 +01:00
Zoltan Varga
db64c7f8f1
Add support for --debug=casts to Array:SetValue (). Fixes #668851 .
2011-02-03 00:37:45 +01:00
Zoltan Varga
63f4b4cdd4
Fix a warning.
2011-02-03 00:36:41 +01:00
Rodrigo Kumpera
0efd1e04f6
Fix dynamic method cleanup at shutdown.
...
* gc.c (mono_gc_cleanup): Cleanup all reference
queues after regular finalization.
* reflection.c: The dynamic method ref queue is finalized
by the runtime itself.
* runtime.c: Ditto.
2011-02-02 20:28:30 +01:00
Miguel de Icaza
b4e49b89b4
[csharp] Change the signature for print
2011-02-02 13:09:53 -05:00
Marek Safar
bf12c6eb03
Implement support for implicit user conversion for DefaultParameterValue (very odd)
2011-02-02 17:25:22 +00:00
Ankit Jain
15514b1b26
[xbuild] Warn for unknown toolsVersion only on build.
...
Emit warning for unknown toolsversion only on a build, and
*not* everytime the project file is parsed.
* class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs
(GetToolsVersionToUse): Add a 'emitWarning' bool param.
(Build): Call GetToolsVersionToUse () to ensure that a warning is
emitted in case of a unknown tools version.
2011-02-02 18:26:43 +05:30
Rodrigo Kumpera
8dba556993
Align call instructions to make code patching SMP safe.
...
* mini-x86.c (emit_call): Align call instructions on
3 mod 4 so the address is 4 bytes aligned and can't span
two cache lines. This is required for proper SMP support
as CAS is not atomic across cache lines.
Fixes one of the crashes due to #667921 .
2011-02-02 13:03:04 +01:00
Geoff Norton
a40312f1c1
Avoid a stack overflow when deactivating a window
2011-02-01 23:54:06 -05:00
Lucas Meijer
ca201f3478
make mono_print_thread_dump output to the visualstudio debugger window, for better debugger experience
2011-02-01 21:55:57 +01:00
Rodrigo Kumpera
e7785a27ab
Don't use finalization to cleanup dynamic methods.
...
* reflection.c: Use a reference queue to cleanup
dynamic methods instead of finalization.
* runtime.c: Shutdown the dynamic method queue
before runtime cleanup begins.
* DynamicMethod.cs: No longer finalizable.
* icall-def.h: Remove unused dynamic method icall.
Fixes #660422
2011-02-01 17:35:11 +01:00
Rodrigo Kumpera
fd57b963ad
Implement a reference queue API.
...
* gc.c: A reference queue allows one to queue
callbcks for when objects are collected.
It allows for safe cleanup of objects that can
only be done when it is effectively collected.
The major difference with regular finalization
is that the collector makes sure the object
was collected - and can't be resurrected.
* gc-internal.h: Export entrypoints for the
new API.
2011-02-01 17:35:11 +01:00
Zoltan Varga
88bfc71d89
Make caching in mono_marshal_get_virtual_stelemref () thread-safe. Fixes #668489 .
2011-02-01 17:09:45 +01:00
Marek Safar
efcd37f730
Fix empty cast conversion from dynamic type object type argument
2011-02-01 14:29:49 +00:00
Marek Habersack
b27182bd5d
[asp.net] FormsAuthenticationTicket.FromByteArray stops early if it is passed a null parameter
2011-02-01 09:21:13 +01:00
Marek Habersack
e44310c079
[runtime] AddWatcher icall must look up the path in an IOMAP-aware way
2011-02-01 09:21:07 +01:00
Atsushi Eno
5d7723bc37
Members in the base type in different namespace are serialized in base ns.
...
When the serializer serializes a Type B which is derived from A, it used to
serialize member M in A as in namespace_of_B, not in namespace_of_A.
This should fix bug #652331 .
2011-02-01 15:59:00 +09:00
Atsushi Eno
157111dbb5
quick build workaround.
2011-02-01 13:01:50 +09:00
Atsushi Eno
38bdb82f95
in NET_4_0, remove types that went into System.Xaml.dll. Change build order.
2011-02-01 11:05:11 +09:00
Bit Diff
0a8a210791
Fixes #527447 whereby it was not possible to pass additional arguments to mono-service2 (if your executable required command-line arguments of it's own).
2011-01-31 17:59:03 -05:00
Zoltan Varga
ca0ededdc6
Fix stack walks on sparc.
2011-01-31 22:40:11 +01:00
Gonzalo Paniagua Javier
79633ee3d1
Handle wrapped ThreadAbortException
...
Third party ProcessRequest() like the one from Razor can wrap a
ThreadAbortException originated from response.Redirect().
2011-01-31 16:36:16 -05:00
Jonathan Pryor
0577648c00
Fix the basic-profile build.
2011-01-31 15:16:05 -05:00
Jonathan Pryor
8cc7997a69
Fix the MonoDroid build.
...
Most System.TimeZoneInfo members weren't being included.
2011-01-31 14:05:19 -05:00
Gonzalo Paniagua Javier
1258d11fc3
Allow forcing HTTP protocol version
...
If the version is manually set, ignore the version from the service
point when set.
Fixes bug #668199 .
2011-01-31 10:49:40 -05:00
Lluis Sanchez
b5da420c28
Handle possible exceptions thrown by Socket.Close
2011-01-31 16:34:17 +01:00
Marek Habersack
879cb82456
[asp.net] Implemented 4.0 types System.Web.Security.{MachineKey,MachineKeyProtection} plus tests
2011-01-31 15:20:57 +01:00
Zoltan Varga
15aed192fb
When using xdebug, allocate all code from the code manager of the root domain. Hopefully fixes #666152 .
2011-01-31 14:02:29 +01:00
Marek Habersack
789c5a7f91
[asp.net] Ignore directories that don't exist instead of throwing.
2011-01-31 11:08:33 +01:00
Marek Habersack
684266d2b3
[runtime] Use IOAMP-aware method of looking for domain configuration file
2011-01-31 09:47:20 +01:00
Jo Shields
c5302b7b52
Really fix sgen on PowerPC Linux. Assembler on Linux requires that register names are just bare numbers, unlike OSX, i.e. "r0" must be "0" on Linux.
2011-01-31 07:47:05 +01:00
Atsushi Eno
fc0ec2635d
Do not return DocumentFragment from AppendChild() etc. Fixed bug #666249 .
2011-01-31 13:48:00 +09:00
Atsushi Eno
2d13b63f4e
Fixed bug #666872 ; XElement.Changed and .Changing were not triggered.
2011-01-31 13:46:55 +09:00
Atsushi Eno
b057032956
add public NetTcpSecurity .ctor() and close #667429 .
2011-01-30 23:38:57 -05:00
Miguel de Icaza
a11120ae36
[repl] Fix running specified scripts from command line, allow #! syntax, add print command
...
We were calling the Reset () method after we had initialized the driver
with the new command line arguments, clearing the list of files to execute
before we executed them.
Added support for #! in the csharp repl, and added the print() command to
the InteractiveBase
Add a better way of dealing with -e, without adding hacks to the core that wont work
in the future
2011-01-30 17:43:44 -05:00
Miguel de Icaza
b56b8ad2c3
[repl] Add support for -e EXPRESSION to the csharp command
2011-01-30 12:06:10 -05:00
Miguel de Icaza
0b17f7feab
Document csharp #! support
2011-01-30 11:41:09 -05:00
Miguel de Icaza
abf855afe1
[repl] Fix running specified scripts from command line, allow #! syntax, add print command
...
We were calling the Reset () method after we had initialized the driver
with the new command line arguments, clearing the list of files to execute
before we executed them.
Added support for #! in the csharp repl, and added the print() command to
the InteractiveBase
2011-01-30 11:33:00 -05:00
Zoltan Varga
af6065a810
Fix some quadratic behavior in the AOT compiler.
2011-01-30 09:13:51 +01:00
Zoltan Varga
9cffdf6cf4
Improve hashing of MONO_PATCH_INFO_TYPE_FROM_HANDLE.
2011-01-30 09:13:36 +01:00
Zoltan Varga
5a862ae52a
Mark a newly added test as !FULLAOT.
2011-01-30 09:13:05 +01:00
Zoltan Varga
07b052d9c6
Don't crash when inlining static methods called using callvirt. Fixes #668170 .
2011-01-30 07:00:30 +01:00
Zoltan Varga
70adac78be
Clear the 'need_rgctx_tramp' flag when creating a synchronized wrapper. Fixes
2011-01-29 20:52:23 +01:00
Geoff Norton
51a4f125d1
Typo
2011-01-29 11:37:17 -05:00
Geoff Norton
8e4b73cb4a
Avoid a crash when shutting down jit attached threads
2011-01-28 19:05:21 -05:00
Geoff Norton
e0dd2115d6
Ensure we setup the vtable before accessing it
2011-01-28 01:08:57 -05:00
Zoltan Varga
54fe90cf1c
Add an AtLeast version to sdb's VersionInfo class.
2011-01-28 06:28:55 +01:00
Geoff Norton
abc793ffbd
Bump SDB protocol so MonoDevelop can guard IL inspection of dynamic methods
2011-01-28 00:26:12 -05:00
Geoff Norton
d23601d20b
Dont leak loader errors in the aot compiler, as it could cause later methods to not get compiled erroneously
2011-01-27 23:23:27 -05:00
Gonzalo Paniagua Javier
2151a961f8
[HttpListener] Set each cookie in its own header
...
Send a Set-Cookie header per cookie instead of a Set-Cookie2 with
multiple cookies.
Fixes bug #667550 .
2011-01-27 15:47:53 -05:00
Zoltan Varga
b8bf630538
Fix AOT support for types in the EXPORTEDTYPE table.
2011-01-27 19:28:18 +01:00
Zoltan Varga
77f13bc288
Increase an aot buffer size again.
2011-01-27 17:25:07 +01:00
Marek Habersack
dead19bc1e
[asp.net] A bunch of fixes related to the default VirtualPathProvider (needed for Orchard)
...
* DefaultVirtualDirectory is now more careful when snipping off parts of the path passed to
its constructor. Before removing the file part it checks whether the file indeed exists.
Also sealed the class and made it use generic List instead of ArrayList
* HttpRequest does not normalize mapped paths when converting them to absolute ones. This is
to avoid errors when path like "~/bin/../../file.txt" is passed to MapPath.
* VirtualPathUtility.ToAbsolute overload with normalize parameter really doesn't normalize
the resulting path now.
2011-01-27 15:36:45 +01:00
Marek Habersack
ef2c84591a
[machine.config] Added the <system.transactions> section definition
2011-01-27 15:36:45 +01:00
Zoltan Varga
30f5e30bc4
Applied patch from Burkhard Linke <[email protected] >. Add support for newer boehm-gc versions.
2011-01-27 15:35:25 +01:00
Jérémie Laval
cdd5b3f397
Leave db connection opened until requested to close it and add more unit tests
2011-01-27 13:18:19 +00:00
Zoltan Varga
4512ede1a0
Fix compilation of tests/assemblyresolve with newer mcs-es.
2011-01-27 11:06:35 +01:00
Marek Safar
fb6c06445f
[667261] Fixes overload resolution of an optional parameter followed by a params parameter of the same type
2011-01-27 09:06:10 +00:00
Zoltan Varga
d2fddf5062
Fix dist issues in Mono.Debugger.Soft.
2011-01-27 07:16:44 +01:00
Gonzalo Paniagua Javier
ae3683b3c2
Prevent abort
...
When cleaning up the sockets we no longer have access to Tls.
2011-01-26 23:09:50 -05:00
Zoltan Varga
36d4336429
Add AOT support for castclass_with_cache wrappers.
2011-01-27 01:44:47 +01:00
Kyle Ambroff
51a47770f2
version tolerant serialization fails with missing primitive members
...
Modifies ObjectReader so that when it encounters a primitive typed member in
an object stream which has no corresponding member in the app domain, it will
read the value anyway and throw it away. That way it can read the next block
from the stream.
Added a unit test which passes with the changes to ObjectReader.
Fixes bug #641821 .
2011-01-26 18:07:42 -05:00
Kenneth Bell
c0a4dd98cf
Implement RawSecurityDescriptor.
...
* Marshals to/from SDDL and binary form.
* Supports 'Common' ACEs and 'Object' ACEs
2011-01-26 17:58:57 -05:00
Kenneth Bell
27729c4b20
Implement SecurityIdentifier and improve NTAccount.
...
* Only translates between SecurityIdentifier and NTAccount for
well-known accounts.
* NTAccount changed to not upper-case values to match behaviour
observed in Microsoft's .NET (see also unit tests)
* Add unit tests for both classes
2011-01-26 17:46:28 -05:00
Antoine Cailliau
c7f33c1904
Implements System.ComponentModel.DataAnnotations.RegularExpressionAttribute
2011-01-26 17:28:56 -05:00
Geoff Norton
eb3626b925
Include operands when emitting the IL stream to sdb clients
2011-01-26 12:34:48 -05:00
Geoff Norton
acba62755d
Ensure we properly align the stack before resuming from breakpoint signal handlers
2011-01-26 12:13:52 -05:00
Andrew Jorgensen
e62983964b
Add 2.0 and 4.0 S.D.S.C
2011-01-26 09:48:47 -07:00
Geoff Norton
93966536b5
Dynamic methods are classes already here
2011-01-26 11:24:38 -05:00
Rodrigo Kumpera
9aa0d0ba0b
Fix freeing of delegate wrappers.
...
* marshal.c (mono_marshal_get_delegate_invoke): If
the target is a static method with first arg bound
and it belongs to a different assembly than the delegate
we might end up with a freed signature in the hashtable.
Fix a moonlight crash.
2011-01-26 12:37:39 +01:00
Marek Safar
e984af0443
Optimized constructor readonly access has to be inside same declarting type
2011-01-26 09:04:50 +00:00
Geoff Norton
97c46a7be6
MonoTouch doesnt support SRE, so we need to disable this code on MT
2011-01-25 23:04:33 -05:00
Zoltan Varga
7d5fce6c1b
Add a 'suspend-on-unhandled' MONO_DEBUG option to help track down the random build failures on ia64.
2011-01-26 04:17:08 +01:00
Geoff Norton
3d19f5b624
Further .NET 4.0 ification of the mobile profile
2011-01-25 20:11:19 -05:00
Ankit Jain
16669c9944
[xbuild] Improve error messages for condition evaluation.
...
Also, add new ExpressionEvaluationException class.
Wrap Expression*Exceptions in InvalidProjectFileException with
info about the full condition being evaluated.
2011-01-26 05:03:16 +05:30
Ankit Jain
a8f4de0f37
[xbuild] Support short-circuiting in conditions.
2011-01-26 05:03:14 +05:30
Ankit Jain
ad8508c148
[xbuild] Correctly set CscToolExe if TargetFrameworkVersion is not set.
...
* tools/xbuild/xbuild/Microsoft.CSharp.targets: $(CscToolExe)
is set depending on the value of $(TargetFrameworkVersion).
Since, $(TargetFrameworkVersion)'s default value is set
by MS.Common.targets, set $(CscToolExe) *after* importing
MS.Common.targets .
2011-01-26 05:03:13 +05:30
Ankit Jain
081dc45b72
[xbuild] Fix bug #665637 .
...
Pass $(WarningsNotAsErrors) to Csc task.
2011-01-26 05:03:11 +05:30
Ankit Jain
b0f9fd65a1
[xbuild] Fix bug #665004 . Honor /nologo option.
...
* tools/xbuild/Parameters.cs (DisplayVersion): Remove, not required.
2011-01-26 05:03:10 +05:30
Ankit Jain
f995310582
[xbuild] Update Novell copyright.
2011-01-26 05:03:08 +05:30
Ankit Jain
5789f96b3c
[xbuild] Error out, if no target is found in a project.
2011-01-26 05:03:07 +05:30
Jb Evain
e413cf2327
[linq] Fix Reverse for IList implementors
2011-01-26 00:10:55 +01:00
Jb Evain
bbd7f83168
[linq] Fix overflow check for Count
2011-01-26 00:10:41 +01:00
Jb Evain
dcad2f1b22
[linq] fix Range extreme boundaries
2011-01-26 00:10:30 +01:00
Miguel de Icaza
e9f180be6a
Restoring some of the formal beauty of this text document as
...
we carefully restore the missing tabs that helped carefully
align the continuation characters in a list of assemblies.
As we align these newline separators, suddenly, a new form
emerges from the chaos, something that gives us the illusion
that this stream of bytes is indeed almost like a dawn of a
new day as we breathe the air in a valley overlooking a beautiful
mountain at the beginning of the spring.
2011-01-25 17:56:00 -05:00
Geoff Norton
8c3c6c4b54
Fix the mobile build
2011-01-25 14:16:11 -05:00
Mark Probst
f97c2388cb
Merge branch 'sgen-android' into mono-2-10
...
Conflicts:
mono/metadata/sgen-gc.c
2011-01-25 16:35:16 +01:00
Marek Habersack
1e0d0e7c4c
[corlib,crypto] RandomNumberGenerator implements IDisposable in 4.0
2011-01-25 15:49:24 +01:00
Marek Habersack
f96a9873cc
[system] SmtpClient implements IDisposable on 4.0 (a no-op for now)
2011-01-25 15:49:19 +01:00
Marek Habersack
b10086345e
[wcf] Install the System.Data.Services.Client properly.
2011-01-25 15:49:13 +01:00
Marek Safar
77a05371b4
Degrade wrong override member to virtual instead of non-virtual
2011-01-25 10:46:43 +00:00
Geoff Norton
ff1caafd97
Add pfx to the mobile profile
2011-01-25 01:52:17 -05:00
Geoff Norton
d1eb847ef2
Work around a full-aot issue for monotouch System.Json
2011-01-25 01:52:12 -05:00
Zoltan Varga
6e268ac849
Fix up CAS tests a bit.
2011-01-25 03:01:48 +01:00
Andrew Jorgensen
8f69b0e0e0
Add WebMatrix.Data to spec
2011-01-24 15:17:16 -07:00
Tomasz Kubacki
d70c578fc4
[Mono.CSharp] Improve error reporting
2011-01-24 15:44:42 -05:00
Geoff Norton
7ee94c1ca3
Avoid leaking the vmmap allocated by the kernel for the thread_act_array_t
2011-01-24 12:07:24 -05:00
Geoff Norton
8db070aae1
Fix a mach port leak
2011-01-24 11:39:19 -05:00
Jérémie Laval
bc326d8e73
Add unit test for Database
2011-01-24 15:06:00 +00:00
Jérémie Laval
7c3bd246b6
Add unit tests for DynamicRecord
2011-01-24 15:05:58 +00:00
Jérémie Laval
1f40d73cdf
Just fixup comment
2011-01-24 15:05:58 +00:00
Jérémie Laval
b364173319
Add GetLastInsertId
2011-01-24 15:05:55 +00:00
Jérémie Laval
f1acca540b
Foobar trigger connection
2011-01-24 15:05:54 +00:00
Jérémie Laval
98c4b8992d
Add Close method
2011-01-24 15:05:53 +00:00
Jérémie Laval
591be8a33f
Add ConnectionOpened event to Database
2011-01-24 15:05:53 +00:00
Jérémie Laval
f5b9efc784
Fix up compilation of Database and DynamicRecord
2011-01-24 15:05:52 +00:00
Jérémie Laval
d607d23767
Add Dispose calls to Database
2011-01-24 15:05:52 +00:00
Jérémie Laval
1b4eee0534
Add Database type
2011-01-24 15:05:51 +00:00
Jérémie Laval
784198d66a
Complete base DynamicRecord API
2011-01-24 15:05:50 +00:00
Jérémie Laval
77908fc88a
Stub DynamicRecord
2011-01-24 15:04:53 +00:00
Jérémie Laval
9bcbd52f03
Add WebMatrix.Data assembly skeleton
2011-01-24 15:01:20 +00:00
Jérémie Laval
b57515aa5a
Make sure a synchronous continuation get executed synchronously in all cases
2011-01-24 14:33:57 +00:00
Marek Habersack
2d2834e4bc
[asp.net] Global.asax assembly must be passed as reference when compiling. BuildManager.GetType improvements.
...
When user has their own global application class (global.asax is present) the assembly produced from it must
be passed as reference to the compiler.
BuildManager.GetType now supports fully-qualified type names for 'typeName' and searches for the type in the
top-level assemblies, the global.asax assembly and in the assemblies specified in as references in web.config.
All of this fixes certain MVC3+Razor applications.
2011-01-24 15:30:53 +01:00
Marek Habersack
a87db25252
[asp.net] Avoid passing duplicate assemblies on mcs command line.
2011-01-24 15:30:47 +01:00
Marek Safar
450b15885d
[666476] Use correct parameter count when checking ambiguous params methods
2011-01-24 14:04:41 +00:00
Marek Safar
3fc9d42ca0
Use byte array as underlying storage for AttributeEncoder
2011-01-24 13:59:33 +00:00
Zoltan Varga
e50fc47fd5
Dist finally_guard.cs.
2011-01-24 04:15:05 +01:00
Gonzalo Paniagua Javier
234a2d72e8
Fix Dispose()
2011-01-22 13:30:22 -05:00
Marek Habersack
38e5ecca9f
[asp.net,routing] Fix for bug #651966 . Regular expression constraints must be treated as absolute regexps.
2011-01-22 12:44:25 +01:00
Gonzalo Paniagua Javier
7dabffd212
[HttpListener] Fix incorrect 411 error
...
Don't send a 411 for unknown methods without content length.
No need to assign input_stream until requested.
Fixes bug #666251 .
2011-01-21 23:53:51 -05:00
Zoltan Varga
9e14e62935
Fix an assert which happens when a call is made to Nullable.Unbox from gshared code in AOT.
2011-01-22 03:08:26 +01:00
Bassam Tabbara
54b00f3630
Fix for 666225
2011-01-21 21:00:49 -05:00
Miguel de Icaza
6e81152a98
[getline] Fix history search in the cmdline editor
2011-01-21 20:48:51 -05:00
Miguel de Icaza
6593ea7a5e
[Mono.CSharp] Fix bug where overwriting variables cleared the wrong value
...
This fixes #641910
2011-01-21 20:19:38 -05:00
Miguel de Icaza
70feb6a2b3
[csharp] repl using statement fix + support for --fatal
...
Fixes #638585 which kept reporting the same error on the using statements over and over
Added support for the --fatal flag to the REPL
2011-01-21 19:56:41 -05:00
Zoltan Varga
93f8f61c8a
Transition non perf-critical users of klass->has_finalize over to mono_class_has_finalizer ().
2011-01-21 22:32:00 +01:00
Zoltan Varga
cef819966a
Obsolete VirtualMachine.GetNextEvent () as it is impossible to determine when to resume after an event, since the debuggee suspends only once per event-set.
2011-01-21 21:54:31 +01:00
Zoltan Varga
8b52311dfd
Initialize klass->has_finalizer lazily. This allows us to remove the find_method_in_metadata () optimization without a perf cost which is broken in the presence of overrides. Fixes #665769 .
2011-01-21 21:54:12 +01:00
Andrew Jorgensen
faac64a083
Oops, Microsoft.Web.Infrastructure, not System.
2011-01-21 12:54:13 -07:00
Andrew Jorgensen
0e29d1e39b
add Microsoft.Web.Infrastructure
2011-01-21 10:44:36 -07:00
Sebastien Pouliot
ef3bdc76c2
Allow RSACryptoServiceProvider.SignHash to work with SHA-2 family
...
* System.Security.Cryptography/CryptoConfig.cs: Add OID for RIPEMD160
* System.Security.Cryptography/RSACryptoServiceProvider.cs: Update
GetHashNameFromOID to include SHA2-family OIDs. Remove historical
comments about 1.x FX behavior.
* Test/System.Security.Cryptography/CryptoConfigTest.cs: Add test cases
wrt RIPEMD160 OID
* Test/System.Security.Cryptography/RSACryptoServiceProviderTest.cs: Add
test case for SignHash with all FX-provided hash implementations (all
working except RIPEMD160). Remove some NET_2_0/NET_1_1 defines.
* Test/System.Security.Cryptography/RSAPKCS1SignatureFormatterTest.cs:
Remove hacks that were needed for running the tests under FX 1.x. Remove
some NET_2_0/NET_1_1 defines.
2011-01-21 08:39:32 -05:00
Zoltan Varga
ec98a692a1
Add NET 4.0 Assembly.UnsafeLoadFrom () method.
2011-01-21 07:27:30 +01:00
Zoltan Varga
a1681e5ee3
Fix the previous aot fix.
2011-01-21 05:58:29 +01:00
Miguel de Icaza
962fedd1e6
Do not build the Socket passing on Mobile systems
2011-01-20 22:50:08 -05:00
Atsushi Eno
5920237751
backport JavaScriptObjectDeserializer encoding detection fix.
2011-01-21 12:13:52 +09:00
Gonzalo Paniagua Javier
788535030b
[System.Web] Razor works now (modulo DB)
2011-01-20 21:59:47 -05:00
Zoltan Varga
48f3edb3cd
Add a test for infinite generic recursion + AOT.
2011-01-21 02:07:57 +01:00
Zoltan Varga
e235e72884
Only add imt items whose is_equal flag is set to the array passed to the full-aot imt thunk.
2011-01-21 02:06:47 +01:00
Zoltan Varga
3a1ae308b8
Avoid emitting .note.GNU-stack on arm.
2011-01-21 01:52:51 +01:00
Zoltan Varga
f1c1e02c38
Detect inifinite generic recursion differently in the AOT compiler.
2011-01-21 01:50:35 +01:00
Marek Habersack
43937146ac
[asp.net] Don't throw NREX when a cache item to be removed is null
2011-01-20 23:39:12 +01:00
Miguel de Icaza
c618dfe519
[sockets] Implement DuplicateAndClose and Socket (SocketInformation) constructor for in-process socket passing (AppDomains)
2011-01-20 16:52:49 -05:00
Andrew Jorgensen
42afbbaaa4
remove conflict marker
2011-01-20 11:24:24 -07:00
Jb Evain
730898592e
[bug] Prevent a GetMethodBody call on a dynamic method. Fixes 665788
2011-01-20 16:45:43 +01:00
Marek Habersack
0a63027390
[asp.net,mvc] Make unobtrustive request validation in MVC v3 possible
...
Validation is enabled early in the pipeline during request. ValidationUtility makes sure that validation is indeed enabled and
replaces the default form and query string collections with a lazy version which will validate values only when an existing key
is found and requested.
2011-01-20 14:38:46 +01:00
Marek Habersack
61aa41abb7
[asp.net] Do not throw NREX when firstError is null in ErrorMessage getter
2011-01-20 14:38:37 +01:00
Marek Habersack
66818bb2b6
[asp.net] ValidationUtility implementation
2011-01-20 14:38:21 +01:00
Marek Habersack
1d180c57e1
[asp.net] Introduced unvalidated versions of Form and QueryString properties for MVC3
2011-01-20 14:38:12 +01:00
Marek Habersack
5119b6ef08
[asp.net] Implemented dynamic HTTP module registration
2011-01-20 14:38:02 +01:00
Marek Habersack
14698a4fbf
[asp.net] Implemented BuildManager.GetObjectFactory
...
This method is not used by Mono internally but is called by MVC v3.
2011-01-20 14:37:53 +01:00
Marek Habersack
bbca7f5660
[asp.net] Added internal property InputValidationEnabled to report whether the user enabled validation for current request.
2011-01-20 14:37:42 +01:00
Marek Habersack
a0c987053d
[asp.net] System.Web and Microsoft.Web.Infrastructure are now friends
2011-01-20 14:37:33 +01:00
Marek Habersack
61f6558eae
[asp.net] Added the Microsoft.Web.Infrastructure assembly
2011-01-20 14:37:17 +01:00
Marek Safar
ba139553af
[665333] Encode Length of Public Key correctly
2011-01-20 08:36:02 +00:00
Zoltan Varga
15ead88bf2
Properly align the stack in the arm generic trampoline.
2011-01-20 05:36:20 +01:00
Zoltan Varga
626711d3ac
Add a TID field to ThreadMirror which returns the system thread id.
2011-01-20 02:14:22 +01:00
Andrew Jorgensen
51d92f3a6a
Dist more files needed by MSVC build
2011-01-19 15:43:12 -07:00
Rodrigo Kumpera
3914fd479a
Document precise marking
2011-01-19 15:02:25 +01:00
Rodrigo Kumpera
a3d0d6916e
Properly clear weak refs that don't track resurrection.
...
* sgen-gc.c (finish_gray_stack): We must clear
weak refs that don't track resurrection before
processing finalizable objects otherwise we'll
copy/mark them and the weak ref won't be cleared
until after finalization.
Fixes #657408
2011-01-19 15:02:09 +01:00
Gonzalo Paniagua Javier
347ad09426
Happy new year.
2011-01-18 22:44:15 -05:00
Zoltan Varga
744c3e2c5b
Make the stacks of aot image non-executable.
2011-01-18 18:12:47 +01:00
Marek Safar
ca11993157
Checking skd path for is not enough, add check for mscorlib as well
2011-01-18 17:11:07 +00:00
Marek Safar
132f745176
Fallback to corlib location when sdk path cannot be found
2011-01-18 17:10:46 +00:00
Zoltan Varga
001ea99047
Disable some of the FastCopy fast paths since they are racy.
2011-01-18 17:17:42 +01:00
Zoltan Varga
74d5f80e4a
Allow only primitive types/enums in RuntimeHelpers.InitializeArray ().
2011-01-18 16:42:22 +01:00
Marek Safar
8e600e2290
Remove devirtualization for Type members
2011-01-18 13:32:34 +00:00
Zoltan Varga
fe6c36df0a
Make runtime invoke wrappers use cdecl cconv on windows.
2011-01-17 23:18:17 +01:00
Zoltan Varga
fe3cd893f7
OP_LCOMPARE_IM has type 'L', not 'I'. Fixes #664630 .
...
This is the same as 6c02c15153 , but only for ia64, to avoid destabilizing the
branch.
2011-01-17 22:46:43 +01:00
Rodrigo Kumpera
7dfbfce2c4
Don't check for brokeness when verifying contraints.
...
* verify.c (is_valid_generic_instantiation): Don't
check if any argument is broken during constraint check
as an instance should be valid, but not realizable, even
if it has broken arguments.
Fixes one of the issues with #664612
2011-01-17 20:05:16 +01:00
Marek Safar
fd66549c35
Add new mcs -sdk option
2011-01-17 17:22:12 +00:00
Zoltan Varga
61b183faa3
Avoid another case of infinite recursion in AOT.
2011-01-17 16:15:10 +01:00
Jb Evain
029c168ffb
Fix pdb2mdb when a pdb has a method with no seq points.
...
Patch by Thad Thompson <[email protected] >
2011-01-17 15:55:11 +01:00
Marek Safar
2ec8c50752
Update to the latest mcs version
2011-01-17 14:15:43 +00:00
Marek Safar
322bc4c9c2
Update IKVM.Reflection
2011-01-17 14:13:26 +00:00
Marek Habersack
8341dc023d
[asp.net] (4.0) Validate the form data in Form getter
2011-01-17 14:03:09 +01:00
Zoltan Varga
52ac70bd71
Fix the previous marshalling change so it only applies to chars, not structures which contain char fields.
2011-01-17 00:09:39 +01:00
Zoltan Varga
3229ba977b
Pass the string encoding to emit_struct_conv () so marshalling of char arrays works on big-ending machines like s390/ppc64.
2011-01-16 21:11:45 +01:00
Zoltan Varga
02c5d6df68
Make OP_CHECK_THIS do a byte load on arm, since the source argument might point to a vtype if a vtype method is inlined.
2011-01-14 22:29:29 +01:00
Marek Habersack
10ed451a10
[asp.net] Make StopRoutingHandler actually stop the routing instead of throwing an exception
...
Patch from Damir Simunic <[email protected] >, thanks!
2011-01-14 21:37:18 +01:00
Ankit Jain
31458593f0
[xbuild] Use the backing field directly to avoid evaluating again.
...
* Microsoft.Build.BuildEngine.Project.cs (InitializeProperties): Use
evaluatedProperties field instead of EvaluatedProperties property,
to avoid invoking a Reevaluate, since it is already in progress.
2011-01-14 04:11:23 +05:30
Ankit Jain
4a914ca1bf
[xbuild] Fix bug #664349 .
...
* Microsoft.Build.BuildEngine/Project.cs (BuildInternal): Set needToReevaluate to
false, when reevaluating.
2011-01-14 04:11:18 +05:30
Ankit Jain
66a2165e37
[xbuild] Add $(TargetDir) property.
...
Add $(TargetDir) and set TargetPath only if its not set already.
2011-01-14 04:11:12 +05:30
Ankit Jain
035f96e4f8
[xbuild] Clear the built targets cache on project unload.
...
Remove the entries for a project from the built targets cache, on
project unload.
* Microsoft.Build.BuildEngine/Engine.cs (ClearBuiltTargetsForProject): New.
* Microsoft.Build.BuildEngine/Project.cs (BuiltTargetKeys): Remove.
(RemoveBuiltTargets): Use Engine.ClearBuiltTargetsForProject .
* Microsoft.Build.BuildEngine/Target.cs: Track api changes.
*
2011-01-14 04:11:00 +05:30
Ankit Jain
88b0d19f8b
[xbuild] Copy metadata from Project items to target outputs.
...
Copy metadata from Project items to the corresponding target
outputs in MSBuild task.
Fix the corresponding test also.
2011-01-14 04:10:46 +05:30
Ankit Jain
ca46b25e6a
[xbuild] Ensure trailing slash on some properties.
...
Ensure trailing slash on $(BaseIntermediateOutputPath) and
$(IntermediateOutputPath).
2011-01-14 04:10:37 +05:30
Ankit Jain
6140b9ca09
[xbuild] ConsoleLogger - Correctly indent multi-line messages.
...
Split and correctly indent multi-line messages in ConsoleLogger.
2011-01-14 04:10:29 +05:30
Geoff Norton
5ed112e660
Fix the win32 build
2011-01-13 12:38:44 -07:00
Geoff Norton
318ddb4924
Fix win32 build
2011-01-13 12:38:34 -07:00
Andrew Jorgensen
b073713bfa
Add vcxproj files for msbuild
2011-01-13 12:37:39 -07:00
Marek Habersack
4085f52f2c
[data-annotations] Added some missing 4.0 members
2011-01-13 20:23:36 +01:00
Marek Habersack
71d78c2ceb
[asp.net] Implemented the 4.0 type, FileLevelMasterPageControlBuilder
2011-01-13 20:23:26 +01:00
Zoltan Varga
7d25fb2f5e
Add null check to stelem_ref_check () jit icall. Fixes #664297 .
2011-01-13 18:42:52 +01:00
Jérémie Laval
6418ad41d2
Make use of the wait changes in the internal TaskScheduler -> IScheduler proxy.
2011-01-13 17:19:13 +00:00
Jérémie Laval
6a8c4a6220
Rework internal wait mechanism in thread workers participation code
2011-01-13 17:18:58 +00:00
Andrew Jorgensen
97d18f0c32
2.10
2011-01-13 09:50:27 -07:00
Jb Evain
92b8771128
Remove custom ResolutionException now that Cecil is providing one
2011-01-13 16:09:42 +01:00
Jb Evain
4689cde2f6
Update cecil from upstream
2011-01-13 16:09:17 +01:00
Jérémie Laval
7132ff6bc1
Fix continuation not being scheduled because of too early and too greedy disposing.
2011-01-13 14:40:02 +00:00
Rodrigo Kumpera
e159ffb746
Fix 2.0 remapping of System.Transations to 2.0 and not 3.5.
2011-01-13 11:40:42 +01:00
Rodrigo Kumpera
882fad8a8e
Fix array assignability to one of its generic interfaces.
...
* verify.c: mono_class_is_assignable_from can't handle
IList<GTD<T>> x GTD[] since GTD[] won't have the right
iface slots set. This isn't a problem for the runtime
since GTD[] will never happen as it's an unrealizable type.
Fixes #663815
2011-01-12 18:32:48 +01:00
Rodrigo Kumpera
6c6008506f
Handle more cases of gtd encoded as ginst over itself.
...
* verify.c (mono_type_is_valid_type_in_context_full):
The trick of encoding the GTD as an instantiation over its
own arguments is also valid for component types such as GTD[]
GTD[,] and Foo<GTD>.
2011-01-12 18:32:35 +01:00
Atsushi Eno
403346372f
Fix cygwin build.
2011-01-12 20:05:08 +09:00
Marek Safar
4ae2b5037d
Update copyright years
2011-01-12 09:28:03 +00:00
Marek Safar
a67eb7f224
Use base type parameters to extract params modifier of virtual method
2011-01-12 09:27:39 +00:00
Marek Safar
d9619cbfa9
Install new ikvm based C# compiler as mcs
2011-01-12 09:26:46 +00:00
Marek Safar
c098d0d842
[662222] Import dynamic attribute using attribute type reader
2011-01-12 09:26:20 +00:00
Christian Hergert
b2823262ba
Fix broken g_int_hash/g_int_equal semantics
...
Both g_int_hash and g_int_equal used the semantics that an
integer is stored directly in the pointer. This is incorrect
as the pointer actually points to a location containing an
integer.
For those wanting the previous (incorrect) implementation,
they should look at g_direct_hash and g_direct_equal.
2011-01-11 19:46:05 -05:00
Marek Habersack
42d8b111ec
[asp.net] Fix for bug #662918 . Do not create the HtmlTitle child control for HtmlHead if <title> wasn't used in the page code.
2011-01-11 23:23:58 +01:00
Zoltan Varga
cfa37dc27d
Disable system AOT when using the loaded llvm, as it seems to cause crashes on the x86 buildbot.
2011-01-11 20:56:15 +01:00
Zoltan Varga
2be48ab1fa
Dump the AOT log upon a failure.
2011-01-11 20:44:22 +01:00
Geoff Norton
cd6a73c07f
Fix AOT on OSX/x86
2011-01-11 10:34:03 -05:00
Geoff Norton
4264916df5
Fixed loadedllvm on OSX
...
The default build of libmono-llvm.dylib includes libmono and all its dependencies,
but our statically compiled mono binary does as well. OSX can actually load both
into its process space, and get confused as to which symbol it should call, leading
to non-deterministic crashes. We'll remove all the mono dependencies, and use
-undefined suppress to mitigate this on OSX.
2011-01-11 00:55:52 -05:00
Jonathan Pryor
32b1aa404a
[monodoc/osx] Look for docs in additional directories.
...
Fixes #663182 .
OSX allows multiple framework versions to be installed side-by-side,
and the current version is available through
/Library/Frameworks/Mono.framework/Versions/Current.
However, documentation installed into /L/F/M.f/V/C/lib/monodoc/sources
is specific for that Mono version; upgrade Mono.framework, and the
documentation is "lost," not visible to the newly installed version.
To fix this, we're creating an *unversioned* directory to contain
documentation, which will thus be persistent across Mono.framework
upgrades: /Library/Frameworks/Mono.framework/External/monodoc
This will allow Mono.framework to be upgraded without "losing" the
documentation visible within monodoc.
2011-01-10 21:09:26 -05:00
Zoltan Varga
1302702ad5
Fix a regression introduced by db4299a1.
2011-01-11 01:12:47 +01:00
Ankit Jain
3fb44e93e2
[xbuild] Update man page, new search paths for extensions and .pc files.
2011-01-11 05:19:12 +05:30