Compare commits

...
2974 Commits
Author SHA1 Message Date
Aaron Bockover feaf598cf9 Merge branch 'master' of github.com:mono/mono into compiler-hooks 2013-11-03 12:22:31 -05:00
Zoltan Varga c574de067d [jit] Add support for generating the push/pop the LMF from the LMF stack as IR instead of hand-written assembly code in the backends. Not yet used. 2013-11-03 14:38:44 +01:00
Zoltan Varga abc18e4340 Mark some corlib tests with the LLVMNotWorking category. 2013-11-03 14:19:09 +01:00
Zoltan Varga fc169c3839 [jit] Disable the optimization added by 63eb94e451 when using LLVM, the handler bblock has no in edges, which seems to cause problems when using LLVM. 2013-11-03 01:35:50 +01:00
Zoltan Varga 762d5fb72b [jit] Add a comment. 2013-11-02 23:53:47 +01:00
Zoltan Varga 45ce641f28 [jit] Remove OP_JMP implementation from the x86 backend, its not used there. 2013-11-02 23:45:08 +01:00
Zoltan Varga 90e0dbcc17 [jit] Clean up the tail call code a bit. 2013-11-02 22:14:18 +01:00
Zoltan Varga 56fa47629f [sdb] Implement support for DebuggerStepThrough attribute. Fixes #15139. 2013-11-02 20:42:59 +01:00
Marek Safar 54ecc9c6a1 Merge pull request #798 from akoeplinger/fix-test
Fixed an issue in corlib Makefile
2013-11-02 01:20:02 -07:00
Atsushi Eno 40d5064d04 hack SettingValueElement.Unmerge(). 2013-11-02 16:54:09 +09:00
Zoltan Varga 36cf982222 [jit] Fix fbd9fd7167, a wrong version was commited. 2013-11-02 03:26:33 +01:00
Rodrigo Kumpera 0cf6982962 [fullaot] Don't use the complicated generics-heavy cache under full-aot. 2013-11-01 17:51:16 -04:00
Jonathan Pryor 55f400b644 [System] Avoid an NRE when Close() and Write() are concurrent.
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=15857

Scenario (for which I couldn't easily create a testcase, but can
sketch out): Imagine using HttpClient...in a multithreaded manner:

	// shared:
	static CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource ();

	// Thread 1
	var request = new HttpRequestMessage(HttpMethod.Post, "https://www.google.com/") {
		Content = new StringContent (new string('x', 1024)),
	};
	using (request)
	using (HttpClient httpClient = new HttpClient())
	using (HttpResponseMessage response = await httpClient.SendAsync(request,
			_cancellationTokenSource.Token)) {
		string responseContent = await response.Content.ReadAsStringAsync();
		Console.WriteLine ("Read {0} chars", responseContent.Length);
	}

	// Thread 2
	_cancellationTokenSource.Cancel ();

This isn't entirely farfetched; in the case of #15857, Thread 2 was
the Main thread (due to the user clicking a button), while Thread 1
was the ThreadPool (because of async/await).

The _occasional_ result: a TargetInvocationException exception:

	System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
	  at (wrapper delegate-invoke) <Module>:invoke_bool__this___HttpsClientStream (Mono.Security.Protocol.Tls.HttpsClientStream)
	  at System.Reflection.MonoProperty.GetterAdapterFrame[HttpsClientStream,Boolean] (System.Reflection.Getter`2 getter, System.Object obj)
	  at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index)
	  --- End of inner exception stack trace ---
	  at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index)
	  at System.Net.WebConnection.Write (System.Net.HttpWebRequest request, System.Byte[] buffer, Int32 offset, Int32 size, System.String& err_msg)
	  at System.Net.WebConnectionStream.WriteHeaders ()
	  at System.Net.WebConnectionStream.SetHeaders (System.Byte[] buffer)
	  at System.Net.HttpWebRequest.SendRequestHeaders (Boolean propagate_error)
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw ()
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[System.Net.Http.HttpResponseMessage].GetResult ()
	  at System.Net.Http.HttpClient+<SendAsyncWorker>c__async0.MoveNext ()
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw ()
	  at System.Runtime.CompilerServices.TaskAwaiter`1[System.Net.Http.HttpResponseMessage].GetResult ()
	  at HttpClientAsyncCancellationRepro.Activity1+<AccessGoogleButton_Click>c__async0.MoveNext ()

Huh?

The reason why is because HttpClientHandler.SendAsync() registers a
Cancel handler with the CancellationTokenSource, and the registered
handler calls HttpWebRequest.Abort() (which eventually calls
WebConnection.Close()). This causes WebConnection.nstream to _change_
while WebConnection.Write() is executing, causing
WebConnection.nstream to go from non-null to null, which
WebConnection.Write() does not expect:

	# WebConnection.CreateStream; from 5 Threadpool worker
	# WebConnection.Write; from 5 Threadpool worker
	# WebConnection.Close; from 1  at    at System.Environment.get_StackTrace()
	   at System.Net.WebConnection.Close(Boolean sendNext)
	   at System.Net.WebConnection.Abort(System.Object sender, System.EventArgs args)
	   at System.Net.WebConnection+AbortHelper.Abort(System.Object sender, System.EventArgs args)
	   at System.Net.HttpWebRequest.Abort()
	   at System.Net.Http.HttpClientHandler+<SendAsync>c__async0.<>m__0(System.Object l)
	   at System.Threading.CancellationToken+<Register>c__AnonStorey0.<>m__0()
	   at System.Threading.CancellationTokenSource.Cancel(Boolean throwOnFirstException)
	   at System.Threading.CancellationTokenSource.Cancel()
	   at System.Threading.CancellationTokenSource.SafeLinkedCancel()
	   at System.Threading.CancellationTokenSource.Cancel(Boolean throwOnFirstException)
	   at System.Threading.CancellationTokenSource.Cancel()
	   at HttpClientAsyncCancellationRepro.Activity1.CancelButton_Click(System.Object sender, System.EventArgs e)
	   at Android.Views.View+IOnClickListenerImplementor.OnClick(Android.Views.View v)
	   at Android.Views.View+IOnClickListenerInvoker.n_OnClick_Landroid_view_View_(IntPtr jnienv, IntPtr native__this, IntPtr native_v)
	   at System.Object.e7b5b870-ea0f-434f-bc31-984f665a44ad(IntPtr , IntPtr , IntPtr )
	# WebConnection.Write: checking piTrustFailure; from 5 Threadpool worker

(Yay extra logging. Notice that WebConnection creates a stream from
the ThreadPool, starts WebConnection.Write(), then before it can se
piTrustFailure the instance is Close()d, which nulls out nstream.)

Since WebConnection.Write() attempts to access the (now null)
WebConnection.nstream field, it results in a NullReferenceException,
which is wrapped into a TargetInvocationException by
System.Reflection.

The fix? As usual, "don't do that."

In this case, WebConnection.Write() has already captured
WebConnection.nstream into the local variable `s` (which thus can't be
changed by another thread). Instead of using WebConnection.nstream,
reuse the `s` local variable, which cannot be null, thus avoiding the
NullReferenceException.

(This solution could fail if HttpsClientStream ever throws e.g.
ObjectDisposedException from HttpsClientStream.TrustFailure, but at
present HttpsClientStream.TrustFailure never throws, so this is fine.)
2013-11-01 16:56:53 -04:00
Miguel de Icaza 06693aa3bb Comment style 2013-11-01 16:49:35 -04:00
Rodrigo Kumpera 63eb94e451 [jit] Avoid linking the try block with the EH block as this produces spurious BBs during inlining.
The inliner could not handle optimally when we inline code inside the try block as it would be linked
with the catch block.

Since the source block would have more than one exit, the inliner would conservatively not link them together,
which hinders further local optimizations.
2013-11-01 15:27:12 -04:00
Alexander Köplinger 9550e4ce08 Fixed an issue in corlib Makefile that would make a resource test case fail which relies on satellite assemblies.
The satellite assembly generated by the Makefile was suffixed with '.Resources.dll', but the assembly loader looks for '.resources.dll', thus the satellite assembly wasn't found.
2013-11-01 20:08:06 +01:00
Rodrigo Kumpera 11b2e3e60f [jit]Extract emit_init_local and use it with the ldloca optimization to handle any kind of types. 2013-11-01 15:05:55 -04:00
Zoltan Varga 53c777d22b [jit] Fix a gsharedvt crash on x86. 2013-11-01 18:12:50 +01:00
Zoltan Varga f3b4e40281 Revert "[sgen] Use mono_class_has_parent () instead of mono_class_has_parent_fast () in one place."
This reverts commit 2594b36363.

Revert this as its wrong.
2013-11-01 17:16:18 +01:00
Zoltan Varga 2fc3754d21 Fix warnings. 2013-11-01 16:20:09 +01:00
Zoltan Varga 2594b36363 [sgen] Use mono_class_has_parent () instead of mono_class_has_parent_fast () in one place. 2013-11-01 11:19:38 -04:00
Zoltan Varga 7f61dee23f [jit] Implement support for OP_TLS_GET_REG on amd64 linux. 2013-11-01 11:19:38 -04:00
Rodrigo Kumpera be58704339 Fix the linker script for OSX. libtool screwed up the first attempt. 2013-11-01 10:56:55 -04:00
Zoltan Varga 19be2cd66a Merge pull request #797 from ranma42/fix-log-message
[runtime] Fix AOT log message
2013-11-01 06:47:40 -07:00
Zoltan Varga daccd00b00 Fix the amd64 build. Fix a warning. 2013-11-01 14:40:54 +01:00
Zoltan Varga e4a37a7663 [sdb] Fix an assertion if a single step breakpoint is hit in a thread other than the thread the single stepping is done on. Fixes #14950. 2013-11-01 14:16:15 +01:00
Zoltan Varga fbd9fd7167 [jit] Fix the processing of LLVM compiled method frames on x86. Fixes running corlib tests with LLVM. 2013-11-01 13:14:48 +01:00
Zoltan Varga 644359eb5d [sdb] Fix tests. 2013-11-01 13:14:47 +01:00
Andrea Canciani 1bcb295fed [runtime] Fix AOT log message
In 72ca429d6c the message format was
refactored and an additional '%s' format specifier was left over.
2013-11-01 11:38:51 +01:00
Alex Rønne Petersen 7ab1185624 Fix indentation.
Oddly, we don't use tabs here...
2013-11-01 09:53:38 +01:00
Rodrigo Kumpera 382210f927 [jit] Pair of fixes from last merge. 2013-10-31 19:44:40 -04:00
Rodrigo Kumpera 98d59927c6 [jit] The AggressiveInlining hint now triggers class initialization so more stuff gets force-inlined. 2013-10-31 19:34:04 -04:00
Rodrigo Kumpera a85d5e0285 [jit] Clean up emit_init_rvar and reduce code duplication. 2013-10-31 19:30:09 -04:00
Rodrigo Kumpera d994c2ea19 [jit] Clean up usage of signature variables. 2013-10-31 18:41:18 -04:00
Rodrigo Kumpera 363b1864e8 [jit]Add an alias analysis pass to the JIT.
The alias analysis pass is capable of simplifying indirection against
local or temporary variables. It will replace a memory load or store
with direct access to the variable.

It does a local pass looking for addresses and replacing memory
ops with direct ops.

If any conversion happens, it does a DCE pass to try to kill those
LDADDR and then recalculate the indirect flag.

Finally, if the number of indirect variables is reduced, it does a
global to local vreg pass and another DCE pass to kill most spurious
copying.

Performance numbers on 32bits OSX:

Code size:
mcs: -11.366 (0.6%)
corlib: -15.397 (0.6%)

Execution time increased by less than 0.2% which is about the same
value of the test variance.

Numbers are not impressive since we don't perform store forwarding
or constant load elimination. Proper handling of value type aggregates
and longs would move us much further.
2013-10-31 17:37:13 -04:00
Rodrigo Kumpera 33e4ab9bde [jit] Add counters for alias analysis. 2013-10-31 17:37:07 -04:00
Rodrigo Kumpera 8c92a0da08 [jit] Introduce has_indirection flag in MonoCompile to signal that LDADDR was generated.
To reduce the cost of alias analysis we detect which methods can potentially profit from
the optimization.

The current detection logic is very simple, every time LDADDR is generated, we set
has_indirection to TRUE.
2013-10-31 17:37:06 -04:00
Rodrigo Kumpera cdd96589ad [jit]Replace all usages of MONO_INST_INDIRECT to force regalloc with MONO_INST_VOLATILE.
The indirect flag should only be used to signal that the address of the given variable
has been taken. This means that it should be possible to recompute that flag from the IR.

The usage of the volatile flag remains not ideal as it conflates two separate issues
and will in the future hinder efforts to implement address based alias analysis.
2013-10-31 17:37:06 -04:00
Rodrigo Kumpera e30fed93a6 [jit] Add new optimization flag for alias analysis. 2013-10-31 17:37:06 -04:00
Jeffrey Stedfast bbd3769cde [Mono.Debugger.Soft] Test the inherited Type attributes 2013-10-31 15:58:04 -04:00
Jeffrey Stedfast b79cd5abd3 [Mono.Debugger.Soft] Fixed unit test for getting custom type attributes 2013-10-31 15:02:42 -04:00
Rodrigo Kumpera d57d8ccd12 Revert "Implementation of Properties and Methods in MethodSignatureGenerator.cs"
This reverts commit 46cd052a3a.

This breaks the build.
2013-10-31 14:59:19 -04:00
Zoltan Varga 4e9f9fcf6e [runtime] Fix the ARM build. 2013-10-31 18:05:24 +01:00
Martin Baulig edbc59e9db [linker]: Fix my previous commit.
We need to resolve all the TypeReferences before we update their scopes.
After setting the scope to null, calling Resolve() on a nested child would
crash.
2013-10-31 10:34:20 -04:00
Marek Safar 96a201f7fe Merge pull request #794 from aakashapoorv/patch-1
Implementation of Properties and Methods in MethodSignatureGenerator.cs
2013-10-30 23:58:27 -07:00
aakashapoorv 46cd052a3a Implementation of Properties and Methods in MethodSignatureGenerator.cs
Implemented following properties:-

CodeProvider 
ContainerParameterType
DataSetClassName
IsGetMethod 
PagingMethod 
ParameterGenerationOption
ParameterOption 
TableClassName

and following methods:-

GenerateMethod
GenerateMethodSignature 
GenerateUpdatingMethods
SetDesignTableContent
SetMethodSourceContent
2013-10-31 11:00:22 +08:00
Zoltan Varga 724f6285a3 Dist README.md. 2013-10-31 02:31:41 +01:00
Zoltan Varga 72ca429d6c [runtime] Make an AOT log message smaller. 2013-10-31 02:31:41 +01:00
Jeffrey Stedfast e7db8e896a [Mono.Debugger.Soft] Implemented inheritance for TypeMirror.GetCustomAttributes()
Fixes bug #15320
2013-10-30 15:36:24 -04:00
Miguel de Icaza 599a21d6ae Merge pull request #795 from mono/readme2
[README] Minor update to content and use markdown formatting.
2013-10-30 11:45:21 -07:00
Therzok da6191eaeb [README] Minor update to content and use markdown formatting. 2013-10-30 20:42:27 +02:00
Miguel de Icaza 93468652f7 Rename README to README.md 2013-10-30 14:36:34 -04:00
Neale Ferguson 0c07e4a0b8 Add mono_arch_get_nullified_class_init_trampoline 2013-10-30 14:35:36 -04:00
Zoltan Varga 212e36fc3a Fix MONO_PATH for run-test-vts in corlib. 2013-10-30 14:31:00 +01:00
Zoltan Varga cbacd4801f [runtime] Fix a warning. 2013-10-30 13:04:05 +01:00
Zoltan Varga 992e3d6ace [runtime] Fix an assertion in mono_arch_context_get_int_reg () on amd64. Fixes #15786. 2013-10-30 13:03:47 +01:00
Zoltan Varga d8e44958d4 Dist the subdirs of class/Facades. 2013-10-30 11:31:26 +01:00
Rodrigo Kumpera 75165860c4 Fix skip_scan to handle proper load errors. 2013-10-29 15:25:20 -04:00
Marek Safar 01abc8bb07 Fixes build 2013-10-29 20:07:07 +01:00
Marek Safar ef722ff122 When parsing documentation cref text turn on error probing for tokenizer as well. Fixes #15511 2013-10-29 19:04:27 +01:00
Zoltan Varga 93c6b94bb0 [aot] Small AOT changes. Save some constants into the AOT image instead of duplicating them in aot-runtime.c. Emit some padding so multiple symbols do not point to the same address. 2013-10-29 17:23:33 +01:00
Zoltan Varga 4c1198f3b8 [runtime] Add mno-signal-handler.h to dist. 2013-10-29 17:05:26 +01:00
Marek Safar da82237da0 Better error message when member does not implement interface. Fixes #15369 2013-10-29 15:04:44 +01:00
Marek Safar dd1826124a Variables from diffent parameter block still need to be captures even if async block has no await. Fixes #15719 2013-10-29 11:51:39 +01:00
Sebastien Pouliot 5b56dc2ce2 The stripper does not care if some variables can't be referenced (they'll be removed) and new cecil has a similar fix [#15727] 2013-10-28 09:56:11 -04:00
Marek Safar 9209bf5634 Better error message when type inference resolves valid types but parameter types still don't match 2013-10-28 13:08:58 +01:00
Marek Safar b5bc9d75d5 Update lower/upper type inference fixing to match the latest C# standard. Fixes #15505 2013-10-27 21:37:34 +01:00
Marek Safar ee09ac3bcf Enum subtraction quirk needs to work with numeric constants only. Fixes #15520 2013-10-27 08:40:51 +01:00
Alex Rønne Petersen 0a17e9070d Silence some noisy warnings in mono/tests/. 2013-10-27 01:23:41 +02:00
Alex Rønne Petersen 05f4546a96 Add a .gitignore file to support/minizip/ to ignore *.la *.lo files. 2013-10-27 01:15:45 +02:00
Alex Rønne Petersen 6c3edfc5eb Ignore .dirstamp files. 2013-10-27 01:15:00 +02:00
Alex Rønne Petersen b37ba14801 Don't assert in Interlocked.Add () icalls on 64-bit systems.
The checks here were wrong in the first place; they should have
checked for MONO_ARCH_HAVE_ATOMIC_ADD rather than SIZEOF_VOID_P.
But regardless, these methods need to work when invoked via
reflection, which they wouldn't previously.
2013-10-27 00:52:09 +02:00
Alex Rønne Petersen 4b6494f0c6 Define WIN32_LEAN_AND_MEAN before including windows.h. 2013-10-26 21:39:39 +02:00
Marek Safar e00cbf2c42 Merge pull request #790 from akoeplinger/fixtests
Fixed a test issue where net45 methods were used in net40 profile
2013-10-26 00:11:19 -07:00
Alex Rønne Petersen d7e3f8f1bb Remove dead s390(x) code from mono-membar.h. 2013-10-26 05:08:19 +02:00
Alex Rønne Petersen 00bdbda27f Enable GCC atomics on sparc32/64. 2013-10-26 05:08:16 +02:00
Alex Rønne Petersen 481abfa4f3 Correct VFP detection in mono-hwcap-arm.
This is supposed to be the value 64, not 100.
2013-10-25 23:31:54 +02:00
Rodrigo Kumpera 6a2975513a [runtime]Add a wrapper around signal handlers to ease porting work. 2013-10-25 15:49:10 -04:00
Alexander Köplinger 40eaa78a8d Fixed a test issue where net45 methods were used in net40 profile 2013-10-25 19:52:36 +02:00
Alex Rønne Petersen c4a9aa1f8c Add LLDB support to mono_gdb_render_native_backtraces () on POSIX. 2013-10-25 18:20:44 +02:00
Rodrigo Kumpera 12cdbfceb7 [runtime] Improve the docs on reference queues a bit. 2013-10-25 11:41:08 -04:00
Rodrigo Kumpera 248c37dfa9 [runtime] Promote the reference queue API to the public. 2013-10-25 11:40:51 -04:00
Martin Baulig c8b403250f [linker]: Also reference all type-references for LinkAction.Link and Save. 2013-10-25 15:15:46 +02:00
Marek Safar 707d914007 Tests update 2013-10-25 12:25:49 +02:00
Marek Safar fcad876ef1 When looking for base implementation of generic MVAR methods use non-inflated parameter types. Fixes #15523 2013-10-25 11:59:53 +02:00
Marek Safar f4aa1c4149 Add new tests 2013-10-25 10:42:57 +02:00
Zoltan Varga 913a2d5fbd [runtime] Fix the windows build. 2013-10-24 22:47:45 +02:00
Zoltan Varga 6a9c585384 [runtime] Fix the sparc build. 2013-10-24 19:37:11 +02:00
Alex Rønne Petersen 0ab2677994 Prefix internal variables with mono_. 2013-10-24 17:28:51 +02:00
Rolf Bjarne Kvinge 8ff7f5748c Add OrderedDictionary to the mobile profile.
Requested in support case #49635.
2013-10-24 16:07:53 +02:00
Rolf Bjarne Kvinge 64c326af71 Move mono_get_optimizations_for_method to mini.c, since driver.c is only included in binaries, not libraries. 2013-10-24 16:07:43 +02:00
Zoltan Varga bc4e870d2b Add a --with-llvm=<llvm prefix> argument to configure to make the location of llvm-config explicit, instead of reading it from the PATH, which might be different on a reconfigure. 2013-10-24 01:58:34 +02:00
Rodrigo Kumpera 90690f5036 [runtime]Properly calculate the bitmap of valuetype [ThreadStatic] variables.
We must account that a valuetype field offset is relative to a boxed instance
and TLS memory stores a valuetype unboxed.
2013-10-23 18:09:40 -04:00
Alex Rønne Petersen 04a90dcbb0 Fix mono_gc_wbarrier_generic_store_atomic semantics.
It should ensure that stores are fully atomic with barriers.
2013-10-24 00:06:23 +02:00
Alex Rønne Petersen 3f6b4e4fea Fix the semantics for System.Threading.Volatile methods.
This is a bit tricky. The System.Threading.Thread.Volatile* methods
don't actually guarantee atomicity; all they guarantee is that the
runtime will insert acquire barriers for loads and release barriers
for stores. The methods in the System.Threading.Volatile class,
however, require both barriers *and* atomicity.

So, we need an entirely separate set of icalls for the Volatile
class in order to get the right semantics there.

These APIs are insane.
2013-10-24 00:06:23 +02:00
Alex Rønne Petersen 41d1358f09 Add Interlocked{Read,Write}{8,16,Pointer} functions. 2013-10-24 00:06:23 +02:00
Alex Rønne Petersen 9bcda222de Merge pull request #787 from directhex/master
Don't redeclare desc in mini_create_ftnptr on ppc64
2013-10-23 15:01:46 -07:00
Jo Shields 1a1c17d59c Don't redeclare desc in mini_create_ftnptr on ppc64 2013-10-23 22:58:41 +01:00
Sebastien Pouliot c0cbbb15d9 Merge pull request #786 from xplicit/master
fix DivideByZeroException in Random.Next()
2013-10-23 14:42:48 -07:00
Rolf Bjarne Kvinge caff055609 Provide more public API to inspect MonoTypes, MonoClasses and MonoMethodSignatures. 2013-10-23 23:25:46 +02:00
xplicit edbcf074ce fix DivideByZeroException in Random.Next() 2013-10-24 04:09:30 +07:00
Zoltan Varga 0943037e68 [runtime] Fix a warning. 2013-10-23 21:18:45 +02:00
Zoltan Varga c6994ed5fd [runtime] Fix the windows build. 2013-10-23 21:18:36 +02:00
Alex Rønne Petersen bc55637bd1 Add more missing atomic functions for MinGW. 2013-10-23 19:47:19 +02:00
Alex Rønne Petersen 93edc5e860 Add separate icall for System.Threading.VolatileRead (object&).
Previously, the icall that was used for the IntPtr overload was
used for this overload as well. Having a separate icall is less
error-prone for future modification as the two types are no longer
conflated.
2013-10-23 19:47:19 +02:00
Zoltan Varga 50d4232bbe [runtime] Fix the DISABLE_JIT build on ARM. 2013-10-23 17:46:18 +02:00
Alex Rønne Petersen 80f7e1f15b Add InterlockedExchange64 () based on GCC intrinsics for MinGW.
As with InterlockedCompareExchange64, MinGW appears to lack this
one from its Windows headers.
2013-10-23 15:06:09 +02:00
Sebastien Pouliot f9bbb7c58b Disable ClientWebSocketTest.cs (for mobile) until the type itself is added to the mobile profile (i.e. added to mobile_System.dll.sources). Fix building/running System.dll unit tests 2013-10-23 08:22:25 -04:00
Marek Safar ab93080478 Merge pull request #784 from alesliehughes/master
Support for ManagementQuery and ObjectQuery classes
2013-10-23 00:17:22 -07:00
Alistair Leslie-Hughes b1d551265a Implement ObjectQuery 2013-10-23 08:13:34 +11:00
Alistair Leslie-Hughes 13d44dbcbe Implement ManagementQuery QueryString 2013-10-23 08:13:33 +11:00
Alistair Leslie-Hughes 596921b77d Implement ManagementQuery QueryLanguage 2013-10-23 08:13:32 +11:00
Alex Rønne Petersen 3be7b103d8 Use THREAD_INFO_TYPE consistently in mono-threads.h. 2013-10-22 23:09:14 +02:00
Zoltan Varga ea4d594639 [runtime] Add a missing TLS key for LMF addr. 2013-10-22 19:44:02 +02:00
Rodrigo Kumpera 3153dec190 Fix this test to work on 2.0. 2013-10-22 13:12:05 -04:00
Zoltan Varga 6be13313df [runtime] Fix the interlocked increment/decrement/add functions. 2013-10-22 15:11:44 +02:00
Zoltan Varga 0d40321933 [runtime] Centralize the processing of MonoTrampInfo structures into the mono_tramp_info_register () function, to reduce code duplication. 2013-10-22 14:35:46 +02:00
Zoltan Varga d48b2f6a29 [runtime] Use mono_restore_context () to reduce code duplication in the back ends. 2013-10-22 14:12:38 +02:00
Zoltan Varga 9be988fc33 [runtime] Use mini_exception_id_by_name () on ARM. 2013-10-22 14:05:43 +02:00
Zoltan Varga 3ee03145ff [runtime] Use mini_get_nullified_class_init_trampoline () to reduce code duplication in the back ends. 2013-10-22 14:04:50 +02:00
Zoltan Varga f62ffb9b89 [runtime] Add a mini_get_nullified_class_init_trampoline () helper function. 2013-10-22 07:33:41 -04:00
Zoltan Varga e6f000945f [runtime] Fix gsharedvt support in mono_helper_compile_generic_method (). 2013-10-22 07:32:27 -04:00
Zoltan Varga 3b5d644f27 [runtime] Add a mono_restore_context () helper function. 2013-10-22 07:28:56 -04:00
Zoltan Varga 7226a70c87 [runtime] Avoid crashing in mini_jit_info_table_find () if the current thread is not set. 2013-10-22 07:27:35 -04:00
Zoltan Varga dde6bb81f5 [jit] Add a mini_exception_id_by_name () helper function. 2013-10-22 07:26:01 -04:00
Zoltan Varga 7994b74bc4 [jit] Add a MONO_TRAMPOLINE_TYPE_HAS_ARG macro which determines whenever a given trampoline type receives its argument directly in a register. 2013-10-22 07:22:59 -04:00
Zoltan Varga 71a7f55907 [jit] Add a 'relocation' field to MonoJumpInfo which contains an architecture specific relocation constant so mono_arm_patch_code () doesn't have to decompile the patch site to determine the type of patching to do. 2013-10-22 07:21:37 -04:00
Zoltan Varga 60c5ef5e2b [jit] Add a 'call_info' field to MonoCallInst so the OP_CALL_... opcodes have access to the calling convention information computed in mono_arch_emit_call (). 2013-10-22 07:18:28 -04:00
Zoltan Varga 16d53c2dd7 runtime] Print unwind information in the JIT debug output. 2013-10-22 07:16:02 -04:00
Zoltan Varga e833cd7669 [jit] Add a MONO_ARCH_EMULATE_LONG_MUL_OVF_OPTS define for architectures which have mul but not mul.ovf opcodes. 2013-10-22 07:14:39 -04:00
Zoltan Varga 5557499b1a [runtime] Make --regression work when a domain is not yet setup during porting. 2013-10-22 06:51:14 -04:00
Zoltan Varga 47fcf8de8c [sdb] Fix support of vtypes passed by ref. 2013-10-22 06:48:47 -04:00
Zoltan Varga e6fcd7e886 [runtime] Avoid running tests using AC_TRY_RUN () when cross-compiling. 2013-10-22 06:45:43 -04:00
Zoltan Varga fb4dd485c9 [runtime] Use a cache in mono_create_rgctx_lazy_fetch_trampoline () in the full-aot case as well. 2013-10-22 06:42:37 -04:00
Zoltan Varga 4e6c494b30 [sdb] Add an IncludeSubclasses property to ExceptionEventRequest, to control whenever to include subclasses of the exception type. Fixes #15541 2013-10-22 08:38:07 +02:00
Sebastien Pouliot 64eff753bd Merge pull request #730 from LogosBible/locale-changes
Improving the retrieval of the user's locale on Apple systems.
2013-10-21 14:19:26 -07:00
Sebastien Pouliot ba6de2d5cc Fix condition (for MOBILE) that excluded System.Xml.Schema/Extensions.cs. Removed the condition since every profile we now support includes this [#15552] 2013-10-21 17:15:53 -04:00
Jeffrey Stedfast e028273cff Fixed a some compiler warnings 2013-10-21 17:15:02 -04:00
Alex Rønne Petersen c17e2527d1 Add comment explaining the TARGET_OSX oddity in atomic.c. 2013-10-21 23:10:44 +02:00
Alex Rønne Petersen e6b5336bb9 Add a couple of casts to scan_thread_data () to shut GCC up.
This would result in the following warnings on e.g. PowerPC:

sgen-gc.c: In function 'scan_thread_data':
sgen-gc.c:4045:6: warning: passing argument 1 of 'conservatively_pin_objects_from' from incompatible pointer type [enabled by default]
sgen-gc.c:1467:1: note: expected 'void **' but argument is of type 'void * (*)[32]'
sgen-gc.c:4045:6: warning: passing argument 2 of 'conservatively_pin_objects_from' from incompatible pointer type [enabled by default]
sgen-gc.c:1467:1: note: expected 'void **' but argument is of type 'void * (*)[32]'
2013-10-21 23:10:15 +02:00
Rodrigo Kumpera cd474dc552 Bump mono to 3.2.5 2013-10-21 15:25:46 -04:00
Rodrigo Kumpera 0a4a52cb96 [mkbundle] New mkbundle options for better handling integration with native libs.
New --skip-scan flag allow us to handle resource assemblies as opaque data.
New --static-ctor flag allows us to better interop with weird C libraries requirements.
2013-10-21 15:22:47 -04:00
Miguel de Icaza 2a4a459021 Merge pull request #717 from mono/client_websockets_impl
Add implementation of ClientWebSocket
2013-10-21 11:28:04 -07:00
Alex Rønne Petersen 0b3c3126ea Merge pull request #268 from pcc/menudeactivate
Cause MenuDeactivate event to be delivered when appropriate
2013-10-21 11:21:06 -07:00
Alex Rønne Petersen e946a6cdeb Merge pull request #260 from pcc/topmost
X11: improve handling of WS_EX_TOPMOST
2013-10-21 11:19:47 -07:00
Michael Hutchinson b86af48486 Merge pull request #565 from rneatherway/master
This is a possible fix for finding xml documentation files
2013-10-21 11:09:23 -07:00
Alex Rønne Petersen 457a8453f7 Merge pull request #587 from madewokherd/gdipdllmap
Ignore the gdiplus dllmap on Windows.
2013-10-21 10:00:26 -07:00
Alex Rønne Petersen 67d6c8f685 Remove commented-out irix path from configure.in. 2013-10-21 18:17:10 +02:00
Alex Rønne Petersen e4d2cc49a0 Add mono_gc_wbarrier_generic_store_atomic () function.
This is used in place of mono_gc_wbarrier_generic_store () when
we need the store to be atomic with release semantics.
2013-10-21 18:08:16 +02:00
Alex Rønne Petersen 55d338134d Add an extension point in atomic.c. 2013-10-21 18:08:15 +02:00
Alex Rønne Petersen 1b9ca03c22 Use slow 64-bit cmpxchg for 32-bit ARM, MIPS, and PowerPC.
GCC doesn't provide a 64-bit __sync_val_compare_and_swap intrinsic
for these architectures.
2013-10-21 18:08:05 +02:00
Alex Rønne Petersen 53398c4641 Correct our implementation of Thread.VolatileRead ()/VolatileWrite ().
We have various issues:

* All of the functions assumed that doing volatile loads/stores was
  enough, when load-acquire, store-release semantics were actually
  needed. This may have worked before purely by chance. We now use
  proper memory barriers so that we don't have to hope for the
  compiler and CPU to do the right thing.
* Removes the hack for 64-bit quantities on 32-bit systems. This is
  no longer needed now that we use explicit memory barriers in
  these functions. Also, these functions are not supposed to do
  atomic reads/writes in the first place - they're purely about the
  memory barrier semantics.
* The VolatileWrite (object&, object) overload was not using the
  volatile qualifier at all, thus not getting volatile semantics
  as per: http://gcc.gnu.org/onlinedocs/gcc/Volatiles.html
2013-10-21 17:59:30 +02:00
Alex Rønne Petersen 421e1beea5 Use InterlockedAdd64 () for Interlocked.Add (long&, long). 2013-10-21 17:59:29 +02:00
Alex Rønne Petersen 89a99c2634 Use InterlockedAdd () for Interlocked.Add (int&, int). 2013-10-21 17:59:29 +02:00
Alex Rønne Petersen d785b33891 Use InterlockedExchange64 () for Interlocked.Exchange (double&, double). 2013-10-21 17:59:28 +02:00
Alex Rønne Petersen b9db6c2071 Use InterlockedExchange64 () for Interlocked.Exchange (long&, long). 2013-10-21 17:59:28 +02:00
Alex Rønne Petersen 15f9be5d03 Use InterlockedDecrement64 () for Interlocked.Decrement (long&). 2013-10-21 17:59:28 +02:00
Alex Rønne Petersen bb62cced7e Use InterlockedIncrement64 () for Interlocked.Increment (long&). 2013-10-21 17:59:27 +02:00
Alex Rønne Petersen ab90040305 Use InterlockedRead64 () for Interlocked.Read (long&). 2013-10-21 17:59:27 +02:00
Alex Rønne Petersen e02b11b708 Use __sync_sub_and_fetch () for atomic decrements for clarity. 2013-10-21 17:59:26 +02:00
Alex Rønne Petersen e48f61dc84 Move definition of NEED_64BIT_CMPXCHG_FALLBACK to top of atomic.c. 2013-10-21 17:59:26 +02:00
Alex Rønne Petersen a92cfede81 Add interlocked read/write functions to atomic.c/.h.
These are guaranteed to have sequential consistency regardless
of the bitness of the machine they run on.
2013-10-21 17:59:25 +02:00
Alex Rønne Petersen ec96b2dc22 Add implementations of various interlocked functions to atomic.c/.h.
Mainly 64-bit variants, but also InterlockedAdd ().
2013-10-21 17:59:21 +02:00
Alex Rønne Petersen e601897f3f Use mono_memory_barrier () for Thread.MemoryBarrier ().
This gets rid of the rather hacky lock-based barrier.
2013-10-21 15:57:25 +02:00
Alex Rønne Petersen 7fae16348a Kill the Cygwin hack in mono-membar.h.
We only support GCC 4.x in Cygwin now.
2013-10-21 15:57:25 +02:00
Alex Rønne Petersen 6d2008b013 Remove MONO_ARCH_SAVE_REGS from threading icalls. 2013-10-21 15:57:25 +02:00
Alex Rønne Petersen a3632c6274 Use GCC atomics on s390x. 2013-10-21 15:57:25 +02:00
Alex Rønne Petersen bf0b8a1d1a Remove unneeded ARM code from atomic.c. 2013-10-21 15:57:24 +02:00
Alex Rønne Petersen a33ce0c39f Use host preprocessor identifiers in atomic.c, not target.
Here we care about the system we run on, not the kind of
system that Mono is built to compile for.
2013-10-21 15:57:24 +02:00
Alex Rønne Petersen fd6f60245f Simplify the ifdeffery in atomic.c/.h a bit. 2013-10-21 15:57:24 +02:00
Alex Rønne Petersen 9dd59c1f13 Remove unneeded NetBSD code path from atomic.h. 2013-10-21 15:57:24 +02:00
Marek Safar 17d4130d1b Merge pull request #783 from alistair/timezoneinfo_fix_for__convert_utc_to_local
Bug 15373: Return Local DateTime instead of Unspecified for >net_4_0
2013-10-19 08:34:26 -07:00
Alistair Bush 98f1c8c584 Return Local DateTime instead of Unspecified for >net_4_0 2013-10-19 23:41:17 +13:00
Mark Probst a57f9ce8a0 [runtime] JIT debugging option to optimize only single methods.
The --single-method option run regression tests from an assembly, like
--regression.  Instead of going through a list of optimizations,
however, it takes one optimization combination, runs all tests with
all optimizations turned off, while gathering a list of which methods
were jitted.  Then, for each jitted method, it runs all tests again,
with the optimizations applied to only that one method, stopping as
soon as a test fails.  Example:

    mono --single-method=branch,peephole basic-float.exe
2013-10-18 16:19:00 -07:00
Zoltan Varga b17461cb8a Disable a corlib test assertion which is no longer true. 2013-10-18 22:24:04 +02:00
Rodrigo Kumpera 9acd6e303d Merge pull request #768 from madewokherd/gcnotdll
Define GC_NOT_DLL for included boehm on win32.
2013-10-18 11:09:11 -07:00
Zoltan Varga 930e8fe970 [sgen] Set the TLS key offsets in one place in create_allocator (). 2013-10-18 19:28:39 +02:00
Zoltan Varga 6633bf1697 [aot] Add the JIT icall wrappers later, so it can pick up the JIT icalls registered by the managed allocators. 2013-10-18 19:25:09 +02:00
Zoltan Varga 8ff186652f [runtime] Fix the build. 2013-10-18 18:32:28 +02:00
Zoltan Varga cb2e262116 [runtime] Really fix the build. 2013-10-18 18:14:25 +02:00
Zoltan Varga 88bbc34b27 [runtime] Fix the build. 2013-10-18 18:10:30 +02:00
Zoltan Varga c94acdd085 [runtime] Add a missing file. 2013-10-18 18:01:44 +02:00
Zoltan Varga 2735588c0c [runtime] Clean up the usage of the CEE_MONO_TLS opcode in wrappers. Instead of passing it the tls offset, pass one of the TLS_KEY_ constants defined in mono-tls.h, and resolve the offset in the JIT. This allows these wrappers to work with AOT. 2013-10-18 17:54:20 +02:00
Zoltan Varga dc0bf73e84 Merge pull request #781 from directhex/master
SPARC build fixes
2013-10-18 02:22:32 -07:00
Jo Shields 842b67d546 Define REG_SP on SPARC in sgen-archdep.h, if needed.
This definition is stolen from exceptions-sparc.c
2013-10-18 09:36:00 +01:00
Jonathan Lima 49017bc699 Fix MSVC build. 2013-10-18 10:19:33 +02:00
Jo Shields dd149e75e6 Add missing ; characters to mono-hwcap-sparc.c. Fixes build failure. 2013-10-18 09:07:52 +01:00
Atsushi Eno 6dae772d49 Merge pull request #762 from echampet/wsdl
[FIX] Bug 267: wsdl fails with "Argument is out of range."
2013-10-18 00:52:08 -07:00
Atsushi Eno 87f80d1139 Merge pull request #766 from remobjects/resx-delete-on-clean
When generating resources, it intends to add the .resources file to the ...
2013-10-18 00:49:51 -07:00
Atsushi Eno 0075f39215 Merge pull request #767 from ovatsus/Bug14922
Fix for #14922
2013-10-18 00:48:26 -07:00
Zoltan Varga 6934f160db Fill out AssemblyName.ProcessorArchitecture for assemblies. Fixes #15347. 2013-10-17 11:53:17 +02:00
Marek Safar 4387da1524 Better check for open generic types in probing expression. Fixes #15422 2013-10-16 20:21:18 +02:00
Marek Safar b055fa22df Fixes too early optimization of binary &&/& bool constants. Fixes part of #15392 2013-10-16 19:17:25 +02:00
Martin Baulig 346b2ee260 Dummy test commit. 2013-10-16 11:24:57 +02:00
Mark Probst 5db0301dc8 [sgen] Don't crash on nurseries of 512M or larger. 2013-10-15 16:47:18 -07:00
Martin Baulig 65aefd9749 [PCL]: Update the PCL Facade Assemblies. 2013-10-15 20:31:03 +02:00
Zoltan Varga b322a6e410 [aot] Only use an AOT shortcut in the trampoline code if its safe to do so. Fixes #15345. 2013-10-15 17:01:24 +02:00
Martin Baulig f0fe1fbd79 Makefile magic ... 2013-10-15 14:49:49 +02:00
Marek Safar 3a7e67b4c5 Fixes CodeDom regression introduced by 66d4b82a87 2013-10-14 19:17:52 +02:00
Marek Safar 394591e203 Merge pull request #779 from LogosBible/UTF8Encoding
Fixing bugs in UTF8Encoding's GetMaxByteCount and GetMaxCharCount.
2013-10-14 00:32:13 -07:00
Martin Potter 1b318701b9 Fixing bugs in UTF8Encoding's GetMaxByteCount and GetMaxCharCount.
The previous implementation of GetMaxByteCount has two bugs: it incorrectly took into account the byte order mark and it was taking the max of a byte count (3) and a character count (EncoderFallback.MaxCharCount). This could result in returning the max number of bytes required to convert a string that was less than the number bytes used when converting the string.

GetMaxCharCount did not previously take into account DecoderFallback.MaxCharCount or the fact that there may still be part of a surrogate pair left on the buffer from a previous call to convert.

I removed the #if NET_2_0 conditionals and NotWorking category since these methods now return results consistent with Microsoft's implementation. I also added two simple tests for custom EncoderFallback and DecoderFallback cases.

This commit is licensed under MIT/X11.
2013-10-13 14:37:45 -07:00
Jeffrey Stedfast 779127e0a5 Merge pull request #774 from DavidS/patch-1
Minor fix to avoid ArgumentOutOfRangeException
2013-10-12 15:07:27 -07:00
Zoltan Varga 0cbc4ad6c0 [runtime] Run the tests in mono/tests in sorted order. 2013-10-12 15:17:59 +02:00
Zoltan Varga d4741184d3 [xdebug] Avoid using a MonoDebugMethodJitInfo structure after it has been freed. Fixes #15090. 2013-10-12 02:49:10 +02:00
Sebastien Pouliot cb19547a83 [mono-api-html] Several indexer properties (Item) can have the name (with different parameters) 2013-10-11 16:44:59 -04:00
Sebastien Pouliot 24169a083e [mono-api-html] Output nested type correctly (was missing the declaring type name) 2013-10-11 11:05:17 -04:00
Marek Safar d2b121244a The first definite assignment cleanup 2013-10-11 15:35:28 +02:00
Mark Probst ace1e095ce [regalloc2] Handle sreg3. 2013-10-10 16:55:01 -07:00
Mark Probst ce6ec03e5d [regalloc2] Lazily allocate intervals. 2013-10-10 16:55:01 -07:00
Rodrigo Kumpera cb04c5a12d Merge pull request #777 from nealef/master
Remove debug message
2013-10-10 11:44:45 -07:00
Neale Ferguson d6a8d9880e Remove debug message 2013-10-10 14:37:43 -04:00
Rodrigo Kumpera 796c64439b Merge pull request #776 from nealef/master
Fix memory leaks in Oracle Client. The largest leaks come from the curso...
2013-10-10 11:26:54 -07:00
Neale Ferguson 0b26afc182 Fix memory leaks in Oracle Client. The largest leaks come from the cursors being created but never freed in OracleParameter.cs. The size of the memory used by these cursors varies from tens to thousands of bytes depending on the statement being executed. Several hours of transactions can lead to OOM errors. The other fixes are relatively minor but they do clean up other unmanaged memory not being returned. 2013-10-10 13:17:17 -04:00
Aaron Bockover d075623275 bxc#13642: MacNetworkChange: implement using managed code
The previous version used SCNetworkReachability
in C inside libMonoPosixHelper. This was less
than ideal and made it more problematic for
supporting iOS as it doesn't actually link
MPH in.

Rewrite using P/Invokes directly into the
SCNetworkReachability APIs for Mac OS X and
iOS.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=13642
for iOS and Mac OS X.
2013-10-10 12:35:47 -04:00
Marek Safar a55758d136 Compound assignment of optimized binary constant needs to decompose it first. Fixes #15315 2013-10-10 16:09:31 +02:00
Marek Safar 87d6328f2f Better debugger visualization for .net 1.1 style custom collections 2013-10-10 16:09:31 +02:00
Sebastien Pouliot 8113f9b237 [mono-api-html] Output C# 'char' instead of 'System.Char' 2013-10-10 08:12:13 -04:00
Sebastien Pouliot 93399696e0 [mono-api-html] Do not produce (near-)empty files when no (public) changes are detected 2013-10-10 08:12:13 -04:00
Marek Safar 66d4b82a87 Ensure that CodeDom generated temporary directory is always created. Fixes #12202 2013-10-10 11:54:20 +02:00
Sebastien Pouliot a812e9a24b [mono-api-html] Show 'static' fields as such 2013-10-09 20:59:21 -04:00
Sebastien Pouliot 4407f88ea6 Process/compare/output method's generic parameters [#15311] 2013-10-09 20:31:13 -04:00
Marek Safar 6e5cd4b5cf Anonymous type are shared across module hence need module counters. 2013-10-09 20:01:44 +02:00
Rodrigo Kumpera 6b71c73790 Fix net_2_0 test. 2013-10-09 12:58:44 -04:00
Jonathan Pryor 4490185a8d Merge pull request #775 from directhex/fix-gendarme-doc-generation
[monodoc] Ensure we don't try to use <Parameters/> when it might be null. Fixes Gendarme doc generation.
2013-10-09 08:07:05 -07:00
Jo Shields 0e08c1f9c2 [monodoc] Support fields that match operator naming convention 2013-10-09 16:02:35 +02:00
Jo Shields 94eb62fdb9 [monodoc] Add a test for ba222d4eb9 2013-10-09 15:57:47 +02:00
Jo Shields ba222d4eb9 [monodoc] Ensure we don't try to use <Parameters> when it might be null. Fixes Gendarme doc generation. 2013-10-09 15:31:23 +02:00
Gustavo Guerra 6c8c17c932 Adjust defines to check for 4_0 instead of 3_0 2013-10-09 13:38:35 +01:00
Marek Safar 0e040e2244 anonymous: move counters to TypeContainer
With the anonymous counters on ModuleContainer,
    anonymous method and type names will be generated
    in a way that depends on the order of the sources
    passed to mcs. This can cause undesirable API
    and IL differences.

    Moving the counters to TypeContainer instead
    avoids this issue.
2013-10-09 14:27:19 +02:00
Marek Safar e0b711beaf Enum IConvertible can convert to same enum or System.Enum. Fixes #15289 2013-10-09 14:04:47 +02:00
Marek Safar d6f05668d4 Cleanup redundant code 2013-10-09 13:52:10 +02:00
Marek Safar 5d96c0de63 Simplify work item registration for internal work items 2013-10-09 12:51:16 +02:00
Marek Safar e591a1d63c Remove redundant initialization 2013-10-09 11:39:14 +02:00
Marek Safar f410e545e2 Allow to queue multicast delegates in thread-pool 2013-10-09 11:26:34 +02:00
Marek Safar e5bd8bc98b Release continuation ancestor before running. Fixes #15036 2013-10-09 10:43:41 +02:00
David Schmitt bb3d1b7ca3 Minor fix to avoid ArgumentOutOfRangeException
When the file is empty, data[0] would throw and swallow the original exception.
2013-10-09 10:36:37 +02:00
Marek Safar f33bd8ad7f Adds async type inference of void return type. Fixes #15238 2013-10-08 19:30:32 +02:00
Marek Safar cf2ac2171b Make Task.Delay more reliable. Fixes #14585 2013-10-08 10:16:19 +02:00
Jeffrey Stedfast c82aea5fb2 [System.ComponentModel.DataAnnotations] Implemented EmailAddressAttribute.IsValid() 2013-10-07 17:51:17 -04:00
Atsushi Eno 8d401cb39d Element() and Elements() could also reduce use of extraneous iterators. 2013-10-08 01:57:17 +09:00
Jonathan Pryor a601831f63 Fallback to $LANG if $LC_ALL isn't set.
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=15214

This is a regression introduced in be532638.

Xamarin.Android assumes that the $LANG environment variable can be
used to control System.Globalization.CultureInfo.CurrentCulture,
setting LANG based on the current Java locale.

This was broken in be532638 because $LANG was no longer being checked
to determine the default locale, as $LC_ALL was not set.

Fix the fallback logic so that $LANG is checked when $LC_ALL is not.
2013-10-07 12:31:06 -04:00
Atsushi Eno 5d25022423 reduce memory use on Attribute() caused by Attributes(). 2013-10-08 01:25:51 +09:00
Marek Safar 43a0a9d47f Inline more is instance checks 2013-10-07 17:04:13 +02:00
Marek Safar 3fbd4b873c Cache only resolved types not expression to report correct error location. Fixes #15035 2013-10-07 15:04:09 +02:00
Atsushi Eno 2a52ec9e36 in XLinq XObject there is no need to instantiate XObjectEventArgs every time. 2013-10-07 21:32:10 +09:00
Zoltan Varga f4ada63ae8 Merge pull request #771 from madewokherd/rvamap
For module handles, only check that rva's are within the image size.
2013-10-05 21:12:58 -07:00
Sebastien Pouliot dd197f0c5f Ignore some asserts since the validation were removed 2013-10-04 17:08:48 -04:00
Miguel de Icaza 096c647c80 FixBuild 2013-10-04 17:07:14 -04:00
Marek Safar 009d937c1d Better check for instance equality of generic types. Fixes #15100 2013-10-04 16:42:57 -04:00
Marek Safar 7585958bfd Fix some code issue warnings 2013-10-04 16:42:57 -04:00
Zoltan Varga fd7cec894d [sgen] Use gcc bitcount intrinsics where appropriate. 2013-10-04 15:54:17 -04:00
Miguel de Icaza 8f604d71f1 This regex was wrong in the first place, and second, it uses CC code from Stackoverflow 2013-10-04 15:47:22 -04:00
Miguel de Icaza 9d13d1aeb0 Remove CodeProject licensed code 2013-10-04 15:43:47 -04:00
Miguel de Icaza 58cf2e272a Add actual source 2013-10-04 15:42:49 -04:00
Miguel de Icaza a52849e336 Fix inacurrate reference 2013-10-04 15:39:09 -04:00
Vincent Povirk 7a4f59d121 For module handles, only check that rva's are within the image size.
This commit licensed as MIT/X11.
2013-10-04 13:33:56 -05:00
Rodrigo Kumpera 48266c8b04 Merge pull request #770 from abock/master
mdbrebase: fix prefix replacement, add regex & filename modes
2013-10-04 09:55:00 -07:00
Aaron Bockover b8be8f0e63 mdbrebase: fix prefix replacement, add regex & filename modes
Existing prefix replacement was incorrect as
it tested for a prefix but performed a multi
search and replace instead of just a prefix
replace. Fix that.

Add -r|--regex mode to indicate that path
replacement should be performed with regular
expressions.

Add -f|--filename mode to indicate that
replacements should be performed only on
a file name and not the full absolute path.

Add -v|--verbose mode to print the replacements
that are performed.
2013-10-04 10:26:24 -04:00
Gustavo Guerra 0fd61547a1 [xBuild] Don't set any VisualStudioVersion 2013-10-04 10:49:00 +01:00
Sebastien Pouliot 8e037f7cef [mdoc] Fix output of GenericParameter (Cecil now overrides DeclaringType since 60ce19429e9cfaa770d72c2f395fdcdf11eb0f7b) not to include namespace (and match previous, correct, output) 2013-10-03 21:59:41 -04:00
Jonathan Pryor eda41be355 Support deserializing relative Uris. Fixes #15169.
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=15169
2013-10-03 11:06:21 -04:00
Marek Safar a769cce0b7 Fixes regression caused by 3912066fe1 change 2013-10-03 09:07:45 -04:00
Rodrigo Kumpera d7cc362ebd Merge pull request #769 from schani/fix-exception-throw-signal
[x86] Fix bug when getting a signal while throwing exception.
2013-10-02 14:45:09 -07:00
Marek Safar 7e01f047fa Emit better debugger attribute for stepping over state machine initialization 2013-10-02 17:29:59 -04:00
Sebastien Pouliot 7885214216 Use more detailled assert messages in some, randomly failing, Timer unit tests (to help track #14305) 2013-10-02 16:28:12 -04:00
Zoltan Varga 3e745070db [runtime] Save MonoTrampInfo structures in a list so mono_print_method_from_ip () would work on trampolines. 2013-10-02 13:20:43 -04:00
Gustavo Guerra b8a031d583 [xBuild] Add missing VisualStudioVersion propety which was introduced in VS2012 2013-10-02 16:12:29 +01:00
Mark Probst 3f587a4ec5 [x86] Fix bug when getting a signal while throwing exception. 2013-10-02 10:58:53 -04:00
Mark Probst 8828fafe29 [AMD64] Fix bug when getting a signal while throwing exception.
This is a very rarely occurring bug that's also still present on x86
and possibly other architectures, as well.
2013-10-02 10:06:50 -04:00
Atsushi Eno 2f7631188b revive XSLT standalone tests (which was broken because of dependency on too old nunit and build profiles). 2013-10-02 23:04:44 +09:00
Zoltan Varga 6622e98ec6 [runtime] Fix a runtime test which got broken by the newly added methods to the Marshal class. 2013-10-02 09:24:32 -04:00
Gustavo Guerra 92eda1e2a6 [xBuild] Fix use of properties in project references when those properties use MSBuildExtensionPath after expanded 2013-10-01 21:45:54 +01:00
Robin Neatherway 80dea22861 [xBuild] Fix compilation for Mono 2.0 2013-10-01 21:45:13 +01:00
Martin Baulig 714efcf7d1 [System]: Fix System.IO.Compression.CompressionLevel enum. 2013-10-01 12:48:57 -04:00
Sebastien Pouliot f7882be852 Relax name check when deserializing a WindowsIdentity instance as the name can be empty (e.g. iOS7 simulator will hide the user name) [#12789] 2013-09-30 20:39:14 -04:00
Sebastien Pouliot f5c5728ba6 [mono-api-html] Better handling of generic types (so they can be simplified and displayed correctly, e.g. for arrays) 2013-09-30 17:32:57 -04:00
Sebastien Pouliot 2ce488024f [mono-api-html] Fix ending quote for non-string fields 2013-09-30 17:32:56 -04:00
Marek Safar 3912066fe1 Anonymous method with this access inside an iterator needs to initialize captured this field from iterator's copy. Fixes #14926 2013-09-29 17:58:19 -04:00
Gustavo Guerra f7a787b140 [xBuild] Fix Import elements with the combination of wildcards and absolute paths
Used in the .targets files shipped with VS2013
2013-09-29 21:28:56 +01:00
Gustavo Guerra 29bb48cdc7 [xBuild] Support for ImportGroup element
Used in the .targets files shipped with VS2013
2013-09-29 21:26:00 +01:00
Gustavo Guerra ad8b4d7a4b [xBuild] Suport >= in string conditions
e.g: '$(MSBuildAssemblyVersion)' == '' and ('$(VisualStudioVersion)' != '' and '$(VisualStudioVersion)' >= '12.0'), used in the .targets files shipped with VS2013
2013-09-29 21:22:47 +01:00
Gustavo Guerra fed01f9b44 [xBuild] Support use of properties defined in Choose elements in project references
This is used by the .fsproj files generated by VS2013 which use a Choose element to set the location of the F# targets file to import
2013-09-29 21:21:34 +01:00
Gustavo Guerra b9a4200cae [xBuild] Support ToolsVersion 12
From VS2013, MSBuild is now decouple from the .NET Framework and is a separate redistributable. This means it has a new location and version numbering scheme. There are also some addition MSBuild properties because of this
2013-09-29 21:13:58 +01:00
Sebastien Pouliot 6336e516d3 Fix potential NRE and give better output for fields and some types 2013-09-28 13:07:17 -04:00
Atsushi Eno 99bcb28944 Add ConsoleLoggerTest and fixed implementation to match .NET implementation. 2013-09-28 20:58:52 +09:00
Atsushi Eno d8b8cab32a implement some "new in 4.0" build event args types. 2013-09-28 20:57:50 +09:00
Rodrigo Kumpera 44545f6cc2 Revert "Allow workitems to startup faster and reduce polling thread interval in the threadpool."
This commit is causing unbound growth in the number of threads for a series of workloads.

It's leading a sgen test to crash with 800 tp threads around, which doesn't make sense on a
4 cores system with default TP configuration.

This reverts commit 3c347d5d3a.
2013-09-27 19:51:54 -04:00
Rolf Bjarne Kvinge 28a6623aa9 [Mono.Tuner] Remove unused field. 2013-09-27 15:03:42 +02:00
Atsushi Eno 3579ae4ec7 Add some "new in 4.0" API regarding build event args. 2013-09-27 20:02:14 +09:00
Zoltan Varga 9c2e07499e [sdb] Fix decoding of nested structs. Fixes #14942. 2013-09-27 12:35:22 +02:00
Atsushi Eno 5b867d6fb7 Fix build.
I forgot to save buffer, build, then save, then committed :(
2013-09-27 19:12:54 +09:00
Sebastien Pouliot ff7b7254bc Drop the System.Enum and System.ValueType for enum and struct. 2013-09-26 16:17:15 -04:00
Sebastien Pouliot c90d23bed5 Add a new tool to produce HTML diff of assemblies similar to what Xamarin.iOS has been producing 2013-09-26 15:42:29 -04:00
Vincent Povirk bd421b40ee Define GC_NOT_DLL for included boehm on win32.
This commit licensed as MIT/X11.
2013-09-26 14:06:06 -05:00
Atsushi Eno 630cace193 implement some primary members of ConsoleLogger (and FileLogger). 2013-09-27 01:54:41 +09:00
Jeffrey Stedfast 450407d1c8 [MacProxy] Initialize err to IntPtr.Zero before calling CFNetworkCopyProxiesForAutoConfigurationScript 2013-09-26 12:27:12 -04:00
Zoltan Varga ef53ac8727 [sdb] Fix a race in the sdb tests exposed by the recent threadpool changes. 2013-09-26 13:02:30 +02:00
Mark Probst b4320bf02f [sgen] A better fix for the POSIX stop-world deadlock. 2013-09-25 18:40:21 -07:00
R. Brian Lindahl e1a1624504 When generating resources, it intends to add the .resources file to the FilesWritten list. However, it sets the ItemSpec on the wrong item, and a 'Clean' ends up deleting the .resx file. 2013-09-25 08:40:43 -07:00
Zoltan Varga 91ae2ef9aa Implement net 4.5.1 generic wrapper methods in Marshal. 2013-09-25 13:04:02 +02:00
Atsushi Eno 20716c55e7 Fix bug #14951 - there was another escape sequence 1B 24 40 to indicate "old" JIS. 2013-09-25 18:37:30 +09:00
Marek Safar 269db1075c Bump ikvm-reflect 2013-09-25 11:27:06 +02:00
Marek Safar a4a84a1325 Report less cascading errors 2013-09-25 11:20:09 +02:00
Marek Safar dd108ce0ac Don't crash when reporting invalid named argument name. Fixes #14962 2013-09-25 10:53:49 +02:00
Zoltan Varga 4a38ae76cb Fix the build. 2013-09-25 01:35:19 +02:00
Mark Probst a4f089aadb Add a section to the README on how to submit bug reports. 2013-09-24 15:17:14 -07:00
Jonathan Pryor 4672f532ea [System] Fix the CSharpCodeCompiler error parsing regex.
Use the same regex as xbuild uses for error parsing; see 7a2d2c24.
2013-09-24 17:14:55 -04:00
Jonathan Pryor 7a2d2c247c [MSBuild] Fix the ${level} and ${number} capture.
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=14767

	Some people, when confronted with a problem, think
	“I know, I'll use regular expressions.”   Now they have two problems.
	- http://regex.info/blog/2006-09-15/247

ToolTask uses a regular expression to extract various bits of
information from the warning/error message. Unfortunately it was
inadequate, and didn't correctly match on some errors.

The error message in this case is:

	class1.cs(16,4): error CS0152: The label `case 1:' already occurs in this switch statement.

The problem was that while the previous regular expression would
succeed in matching the above string, it was horribly inaccurate in
what it captured:

	${file}   = "error CS0152"
	${line}   = "16"
	${column} = "4"
	${level}  = "The"
	${number} = "label `case 1"
	${message}= "' already occurs in this switch statement."

Did I mention hilariously wrong?

There were two problems with the previous pattern:

 1. It allowed filename+(line,column) to be _repeated_, which is
    clearly insane. Filename/etc. shouldn't be repeated.

 2. ${number} captured ".*\d", i.e. anything ending with a number, so
    when the message had a number embedded within it, it was captured.

For good measure, use RegexOptions.IgnorePatternWhitespace so that
we don't have a horrendously long regex pattern to compare for diffs
the next time this needs fixing, and add NUnit tests.
2013-09-24 16:29:31 -04:00
Mark Probst 8c57ebccfd [sgen] Fix a thread startup deadlock on POSIX.
If the GC stops the world and a thread is in the process of starting
up, but has not yet registered (it's not in the thread_list), it is
possible that the thread does register while the world is stopped.
When restarting the GC will then try to restart said thread, but since
it never got the suspend signal, it cannot answer the restart signal,
so a deadlock results.

This is triggered by `tests/sgen-bridge.cs`, about once every 10 runs.

We solve this by using a negative value in the `signal` field in the
thread info to indicate threads that have never been suspended.
2013-09-24 11:27:29 -07:00
Marek Safar 0d06d873f8 Better checks for inaccessible member used via dynamic proxy. Fixes #14762 2013-09-24 19:17:06 +02:00
Marek Safar b70d5e1b96 Reenable accidentally disabled test 2013-09-24 16:04:07 +02:00
Marek Safar 40fb1399c9 Fixes compilation error on Mavericks 2013-09-24 16:00:58 +02:00
Marek Safar f9ba0a1b8f Initialize cookie container for default requests. Fixes #14783 2013-09-24 16:00:57 +02:00
Marek Safar 1c89349477 Optmizes one string comparison.
Remove useless GC.SuppressFinalize
2013-09-24 16:00:57 +02:00
Paolo Molaro 3c347d5d3a Allow workitems to startup faster and reduce polling thread interval in the threadpool.
Deals with xambug #14644 and similar issues.
2013-09-24 15:30:51 +02:00
Sebastien Pouliot 6cf0c51ae3 Update cecil sources to latest 2013-09-24 08:56:51 -04:00
Sebastien Pouliot 97a9e58789 [linker] Resolve every type references if we're to save an assembly that is not linked (so the scope won't point to assemblies that were removed) 2013-09-24 08:56:51 -04:00
Marek Safar 5eb58e2e4e Check modifying members of readonly value-type field. Fixes #14802 2013-09-24 10:22:07 +02:00
Zoltan Varga a3f67badc0 Fix the windows build. 2013-09-24 06:11:50 +02:00
Rodrigo Kumpera 3734c725a4 Fix the windows build. 2013-09-23 19:14:05 -04:00
Rodrigo Kumpera 98d23141f9 Add test case for xref behavior for the sgen bridge. 2013-09-23 19:13:20 -04:00
Rodrigo Kumpera 86df16b7bc Make sure we properly account for transitive liveness when processing bridge objects. Fixes #13858
We depend on the latent liveness state of objects at the time we collect bridged objects. To
preserve this we must perform the dfs1 step right after collecting them and before we drain the
gray stack or all objects pointed by candidate bridge objects will be marked as alive.
2013-09-23 19:13:20 -04:00
Miguel de Icaza 89f10a3ba5 Wrap the code in MONO_BEGIN/END_DECLS 2013-09-23 13:03:12 -04:00
Miguel de Icaza 85841d0bbd Update message 2013-09-23 13:03:12 -04:00
Marek Safar b52c963187 Pass cancellation token to CopyAsync read block 2013-09-22 19:23:17 +02:00
Marek Safar 17a018fef8 Implements content loading cancellation. Fixes #13200 2013-09-22 19:15:08 +02:00
Marek Safar 61ab67065d Test update 2013-09-22 17:43:41 +02:00
Marek Safar b8e3beb7d3 Bump ikvm-reflection 2013-09-22 17:42:47 +02:00
Zoltan Varga 3a84cf0612 [runtime] Ignore --llvm when LLVM is not enabled in configure. 2013-09-21 14:56:58 +02:00
Vincent Povirk be23ac1a4e Add test for native thiscall methods.
Licensed under MIT/X11.
2013-09-21 05:13:10 +02:00
Vincent Povirk 437f115dcd Add support for thiscall pinvokes on x86.
Licensed under MIT/X11.
2013-09-21 05:12:26 +02:00
Zoltan Varga e0fb186df2 [aot] Pass correct architecture to llc on x86-64. 2013-09-21 05:03:48 +02:00
Zoltan Varga 767a1311ee Make the test-aot test less verbose. 2013-09-21 02:45:09 +02:00
Zoltan Varga 6244e939b8 Merge pull request #765 from knocte/runtime_fixage
[sgen] Improve fix for BXC#14834 to avoid redundant code
2013-09-20 15:51:35 -07:00
Andrés G. Aragoneses f55996d3b4 [sgen] Improve fix for BXC#14834 to avoid redundant code
Improve https://github.com/mono/mono/commit/d2cc22580898df5d4a15e0f99ab513e1570a6082
by making OBJ_BITMAP_FOREACH be less redundant thanks to new macro
GNUC_BUILTIN_CTZ
2013-09-20 22:15:42 +02:00
Marek Safar ee5939881d Fixed TaskFactory::ContinueWhenAny with func result. Fixes #14839 2013-09-20 19:41:15 +02:00
Zoltan Varga d2cc225808 [sgen] Use __builtin_ctzl () in OBJ_BITMAP_FOREACH_PTR () on 64 bit platforms. Fixes #14834. 2013-09-20 19:06:44 +02:00
Mark Probst 0a695738d8 Fix the build. 2013-09-20 09:34:44 -07:00
Marek Safar 8e78bec72e AggregateException::GetBaseException uses only 1-based inner exceptions. Fixes #14824 2013-09-20 18:01:08 +02:00
Marek Safar 8914882238 Merge pull request #760 from mayerwin/patch-2
Fix: bug https://bugzilla.xamarin.com/show_bug.cgi?id=14811 (to be reviewed)
2013-09-20 08:39:51 -07:00
Martin Baulig 90f23bfccf [xbuild]: Actually add the $(TargetFrameworkMonikerAssemblyAttributesPath) to @(Compile). 2013-09-20 16:56:17 +02:00
APS e4620ee888 [FIX] Bug 267: wsdl fails with "Argument is out of range."
This fix bug 267
https://bugzilla.xamarin.com/show_bug.cgi?id=267

Signed-off-by: Etienne CHAMPETIER <[email protected]>
2013-09-20 14:24:59 +02:00
Marek Habersack bdc4eb0085 Merge pull request #758 from echampet/capabilities
Fix crashes with browser capabilities
2013-09-20 05:21:52 -07:00
Etienne CHAMPETIER ce65812cb2 [System.Web] Re-enable AppBrowsersTest.cs tests for net_2_0
For now mcs/class/System.Web/Test/mainsoft/NunitWebResources/adapters.browser
depends on System.Web_test_net_2_0.dll

Signed-off-by: Etienne CHAMPETIER <[email protected]>
2013-09-20 14:19:41 +02:00
Etienne CHAMPETIER ae17ceeecc [Install] Add Compat.browser files for net_4_0 and net_4_5
Without that referencing browser 'Default' (parentID="Default")
in a .browser file make the app throw exceptions here
mcs/class/System.Web/System.Web.Configuration_2.0/nBrowser/Build.cs#L206

Signed-off-by: Etienne CHAMPETIER <[email protected]>
2013-09-20 14:19:40 +02:00
Frederic Mestayer 03e31732d3 [System.Web] Do not crash on duplicate keys in browser capabilities
Correct https://bugzilla.xamarin.com/show_bug.cgi?id=14720 and
probably https://bugzilla.xamarin.com/show_bug.cgi?id=13014

Signed-off-by: Etienne CHAMPETIER <[email protected]>
Signed-off-by: Frederic Mestayer <[email protected]>
2013-09-20 14:19:40 +02:00
Rolf Bjarne Kvinge db195e8e90 [System.Net] Fix CFNetworkCopyProxiesForAutoConfigurationScript signature. Fixes #7923. 2013-09-20 10:33:49 +02:00
Rolf Bjarne Kvinge e638c4d7ca [System.Net.Http] Add a way to add extra build arguments.
This is used by monotouch to add a reference to monotouch.dll.

Also add a profile-specific sources file for monotouch so the
extensions module can add even more files.
2013-09-20 01:05:57 +02:00
Rodrigo Kumpera db047c0473 Merge pull request #763 from madewokherd/mingwbuild
Fix the mingw-w64 build
2013-09-19 15:05:15 -07:00
Vincent Povirk c5635f8fa6 Fix undeclared variables in exceptions-amd64.c on win64.
This commit is licensed under MIT/X11.
2013-09-19 16:17:41 -05:00
Vincent Povirk b97629ec79 Test for InterlockedCompareExchange64 in the configure script.
mingw.org doesn't have this function but mingw-w64 does.

This commit is licensed under MIT/X11.
2013-09-19 16:17:18 -05:00
Zoltan Varga 267253b355 Disable the LLVM version check for now, it doesn't work if llvm was not compiled in a git repo. 2013-09-19 22:33:16 +02:00
Zoltan Varga 8ea61a7b5e Check the version of LLVM at configure time to make sure it has a matching version. 2013-09-19 22:05:00 +02:00
Rodrigo Kumpera 84432a62a1 Add test-aot target. 2013-09-19 16:03:23 -04:00
Rodrigo Kumpera 7d3c65c1b5 [runtime]Fix typo in detection of the need of 64bits atomic intrinsics. 2013-09-19 16:03:23 -04:00
Sebastien Pouliot 28882bd094 Change Random implementation to JKISS which is faster and has a longer period. Also match .NET 2.0 behaviour wrt calls to protected Sample. Add unit tests (and removed the commented ones). Ref: http://www0.cs.ucl.ac.uk/staff/d.jones/GoodPracticeRNG.pdf 2013-09-19 15:28:40 -04:00
Zoltan Varga 9ae3d769cb [runtime] Improve error checking for temporary file creation in the AOT compiler. 2013-09-19 21:23:24 +02:00
Rolf Bjarne Kvinge 2f60b53c8b Revert "Add System.Net.Http.dll to the monotouch build."
This reverts commit 9df6eebc34.

Not quite ready for this yet, more changes are needed.
2013-09-19 19:47:29 +02:00
Rolf Bjarne Kvinge 9df6eebc34 Add System.Net.Http.dll to the monotouch build. 2013-09-19 19:23:32 +02:00
Rodrigo Kumpera b445f447a0 [llvm] On OSX we need to search in /Libraries in addition to /lib. 2013-09-19 12:56:18 -04:00
Zoltan Varga 6bbf88d8cc [runtime] Fix a bug in the local register allocator when an fp vreg wasn't clobbered by a call if its href happened to be equal to the hreg of the call instruction. Fixes #12510. 2013-09-19 02:03:29 +02:00
Rodrigo Kumpera 920332a133 Fix the Makefile addition of a new test. 2013-09-18 16:21:49 -04:00
Rodrigo Kumpera 35e90b1af7 [runtime]Do an alignment check before using the atomic op. 2013-09-18 16:20:19 -04:00
Zoltan Varga e3bf9e84ff Fix the DISABLE_JIT build. 2013-09-18 22:09:37 +02:00
Rodrigo Kumpera 8288f81dfd Add a sgen test for threads joining/leaving at random places. 2013-09-17 19:25:27 -04:00
Rodrigo Kumpera 9dc8efe26e [sgen] Kill SgenThreadInfo::thread_is_dying in favor of the thread-info state information. 2013-09-17 19:23:50 -04:00
Rodrigo Kumpera 5942afee6f [runtime]Properly set mono-thread state as when starting/running/shutting down/dead. 2013-09-17 19:23:49 -04:00
Rodrigo Kumpera d6581bdf14 [sgen]Remove doing_handshake field since the race condition it fixes is now handled by mono-threads. 2013-09-17 19:23:49 -04:00
Rodrigo Kumpera a85ae5f10e [io-layer] Fix a warning. 2013-09-17 19:23:48 -04:00
Rodrigo Kumpera ce5327414f [runtime] Small optimizations and cleanup in ves_icall_System_Array_FastCopy. 2013-09-17 19:23:48 -04:00
Rodrigo Kumpera 8403a9ad43 [runtime]Add more fast variants of the mono_array functions as those shown up in profiling. 2013-09-17 19:23:48 -04:00
Rodrigo Kumpera 13a8893171 [sgen] Force inlining of some perf-critical functions. 2013-09-17 19:23:48 -04:00
Rodrigo Kumpera 9cae0d7361 [sgen]We no longer need joined_stw as new threads can't join once the suspend lock has been acquired.
Since no new thread can join until the collection is over, FOREACH_THREAD won't miss any thread.
2013-09-17 19:23:47 -04:00
Rodrigo Kumpera a1d20a2d53 [runtime]Provide a consistent view of registered threads during suspend operations.
We previously failed to provide a consistent view of the registered threads set. This
would should up in the following ways:

-New threads would join in between two FOREACH_THREAD passes. The recently joined threads
lead to broken invariants that one loop carried to the other.

-Existing threads would leave during a FOREACH_THREAD. The now defunct threads lead
to code waiting them to ack back and deadlock in the process.

-It was possible to witness an in-progress cleanup. This would show up by
mono_thread_info_current returning null when it should not.

To amend this we provide a a consistent view of all registered threads once the global
suspend lock is acquired. This is done by acquiring that lock when registering/unregistering.

This allows us to remove some of the work-around in the sgen thread registration
code and avoid taking the GC lock.
2013-09-17 19:23:47 -04:00
Mark Probst d836e9f05b [sgen] Don't stack overflow when there are too many binary protocol buffers.
Binary protocol buffers are linearly linked from newest to oldest, but need to be
written out from oldest to newest.  This was sloppily implemented with a recursive
call, which caused a stack overflow when there were too many buffers.  We now
allocate an array and store pointers to all the buffers in it, then iterate over it in
reverse.
2013-09-17 16:07:16 -07:00
mayerwin 5a25913631 Fix: bug https://bugzilla.xamarin.com/show_bug.cgi?id=14811 (to be reviewed) 2013-09-18 01:14:04 +08:00
Atsushi Eno 6176e0b179 Merge pull request #756 from akoeplinger/fix-xmlreader
Fixing inconsistency in XmlSchemaValidatingReader between Mono and MS.NET
2013-09-17 10:09:28 -07:00
Martin Potter c5918aef82 Improving the retrieval of the user's locale on Apple systems.
The previous behavior used the entire local identifier string that includes optional settings such as variant and calendar format. This returns locales like en_US_POSIX@calendar=buddhist which result in the user's culture being the invariant culture.

This change builds the locale from the language, country code and optional script code so that the locale returned is in the expected format.

This commit is licensed under MIT/X11.
2013-09-17 07:26:27 -07:00
Rodrigo Kumpera ab184afd66 Merge pull request #754 from blackfusion/master
[Scripts] Fix a Shebang in mono-test-install for freeBSD
2013-09-17 06:25:00 -07:00
Zoltan Varga 1a2668ce95 [runtime] Fix a regression introduced by 5503991372. Use __builtin_popcountl () on 64 bit machines. 2013-09-17 13:41:28 +02:00
Zoltan Varga 7c9b28a127 Disable a profiler test which fails on osx. 2013-09-16 23:26:24 +02:00
Zoltan Varga 248b6160be Fix the profiler tests. 2013-09-16 23:09:56 +02:00
Zoltan Varga 9aec810235 Revert "Set tls->context.valid to FALSE if a thread is suspended in native code. Fixes #1540."
This reverts commit 5ddbe31ee5.

Revert this as its incorrect, and causes a regression (#14058).
2013-09-16 20:46:04 +02:00
Larry O'Brien 9454174ee5 [mdoc] Switched from swallowing error to guarded execution
Improves a60ff0fd1e

Tests for file existence and outputs diagnostic rather than treating it as a local recoverable exception.

Leaving the question of general mdoc error-reporting for another day.
2013-09-16 07:19:00 -10:00
Zoltan Varga a88eb036a6 [runtime] Avoid constructing vtables in a few places during AOT. 2013-09-16 15:02:06 +02:00
Zoltan Varga a580cab5d6 [runtime] Avoid calling mono_resolve_patch_target () while AOTing, its not needed. 2013-09-16 01:44:02 +02:00
Zoltan Varga 3627b977d7 [runtime] Add support for constrained gsharedvt calls to normal virtual methods. 2013-09-16 01:23:15 +02:00
Zoltan Varga f160a59231 [runtime] Avoid looking up pinvoke addresses when AOT compiling. 2013-09-16 01:23:14 +02:00
Larry O'Brien a60ff0fd1e Bugzilla 14672 (mdoc namespace-level summary and remarks elements weren't being included)
commit 6ec0ddc7e5c4d5640da7420600898c10578a7974
Author: Larry O'Brien <[email protected]>
Date:   Sun Sep 15 11:03:32 2013 -1000

    Coding style

commit f034514fca8298a8ed2a167f3ab288f32bc7c74f
Author: Larry O'Brien <[email protected]>
Date:   Sun Sep 15 10:28:47 2013 -1000

    Bugzilla 14672

    Added namespace file ("ns-{namespace}.xml") summary and remarks into the nsSummaries, which results in displaying the data prior to the namespace type-list when the user searches at the namespace level.

    Appears to only be necessary for native viewer (Web viewer for some reason "knows" about the summaries).
2013-09-15 11:12:27 -10:00
Zoltan Varga bb2bc9ae42 [runtime] Fix a few more places which accessed jinfo->method directly. 2013-09-15 03:21:44 +02:00
Zoltan Varga 454a4c5de7 Fix a problem introduced by c6989ab9f9. Avoid foreach on _items since that includes empty entries too. 2013-09-15 02:42:28 +02:00
Zoltan Varga 52072b80a5 [sdb] Simplify tests. 2013-09-15 01:51:25 +02:00
Zoltan Varga 25ec53d1f1 Update AOT after changes to SeqPoint in 488888ce61. 2013-09-15 01:39:05 +02:00
Zoltan Varga 488888ce61 [sdb] Add an implicit seq point after every nonvoid call and make step over skip them. Fixes #10782. 2013-09-15 01:36:38 +02:00
Zoltan Varga eb3e8946a8 Fix the ENABLE_JIT_MAP build. Fixes #14752. 2013-09-14 21:10:02 +02:00
Zoltan Varga 9a6510ece6 [runtime] Make mono_install_handler_block_guard () async-safe. Fixes #14073. 2013-09-13 21:37:00 +02:00
Zoltan Varga 2451de6cb3 [runtime] Make the stack walking code async safe when run in an async context. 2013-09-13 21:36:59 +02:00
Zoltan Varga 1597b525b9 [runtime] Make mono_aot_find_jit_info () async-safe by allocating memory from the lock-free domain mempool, avoiding loading metadata, and caching jit info entries in a lock-free array. 2013-09-13 21:36:59 +02:00
Zoltan Varga 2b7f5921f1 [runtime] Add a 'is_async_context' property to MonoThreadInfo, allowing functions to detect whenever they are in async context without having to pass an 'async' parameter around. 2013-09-13 21:36:59 +02:00
Zoltan Varga 3ac10d3382 [runtime] Add a lock-free mempool allocator to MonoDomain. 2013-09-13 21:36:58 +02:00
Marek Safar 5c8befbe27 Move dynamic handling out of Binary::DoResolve to reduce stack size 2013-09-13 18:55:47 +02:00
Marek Safar 22fd61d3b5 Add new test 2013-09-13 18:55:46 +02:00
Zoltan Varga 197b08dbe9 Fix a warning. 2013-09-13 18:46:34 +02:00
Zoltan Varga dace44d806 [runtime] Make the address->aot module lookup in mono_jit_info_table_find () async-safe by storing the mapping in another MonoJitInfoTable. 2013-09-13 18:46:34 +02:00
Zoltan Varga f48233a1e1 Extract the jit info table code into separate functions so we it can be used in more places. 2013-09-13 18:46:34 +02:00
Zoltan Varga 5bc25b90fb [runtime] Avoid direct access to MonoJitInfo.method, use an accessor function instead. 2013-09-13 18:46:33 +02:00
Mark Probst 1bdd4a6662 [sgen] Fix a toggleref array resize bug. 2013-09-13 09:21:32 -07:00
Atsushi Eno f0478f1f51 UTF8Encoding.GetMaxByteCount() was returning too big number.
The thing is, unlike the standards describe in codepoints, .NET String
characters beyond BMP are represented as surrogate pairs and they can be
converted all in 3 bytes.

The implementation didn't take care of encoder fallbacks, or byte order
marks either, so take them into considertion too.
2013-09-14 00:56:48 +09:00
Marek Safar 43bd9a8c6d Don't crash when unreachable code contains unreachable constant switch. Fixes #14587 2013-09-13 16:53:51 +02:00
Zoltan Varga 803cf83566 Fix parallel compression in mkbundle, not enabled yet. 2013-09-13 15:12:30 +02:00
Marek Safar c6989ab9f9 Unify Array/List FindIndex/FindLastIndex handling and argument checking. Fixes #14632 2013-09-13 14:51:08 +02:00
Sebastien Pouliot 1b4d970000 Move undef HAVE_SIOCGIFCONF later so it's not defined again by other includes 2013-09-12 19:48:33 -04:00
Miguel de Icaza be532638f5 Simplify locale fetching, we have very simple needs 2013-09-12 17:21:39 -04:00
Miguel de Icaza 06dc8911a0 Add workaround for DNS garbage return 2013-09-12 16:54:18 -04:00
Rodrigo Kumpera e03314480d [bcl] Fix BlockingCollection.TakeFromAny to handle when no items are available on the first collection. Fixes #6095. 2013-09-12 16:42:53 -04:00
Marek Safar 040b028811 Bump ikvm. Fixes the build 2013-09-12 17:00:16 +02:00
Sebastien Pouliot eeff03c59c Reduce/remove the probability of having test failures wrt UdpClient.Available 2013-09-11 21:00:04 -04:00
Marek Safar cb52f180bd Bump ikvm 2013-09-11 23:17:20 +02:00
Zoltan Varga 5503991372 Use __builtin_popcount () in mono_bitset_count (). 2013-09-11 22:51:59 +02:00
Miguel de Icaza be272cb3e8 Remove comment, refer to the spec instead 2013-09-11 16:26:47 -04:00
Miguel de Icaza 47b5f3a52c Remove text from article 2013-09-11 15:47:10 -04:00
Martin Baulig 8d3b4b7ae5 Bump ikvm again to only pick-up my single commit.
I created a new 'mono-master' branch in ivkm-fork, which is based
at the previous ikvm commit, then cherry-picked my single commit.

Apparently, there are API changes in IVKM which prevent it from
being applied cleanly.
2013-09-11 21:13:10 +02:00
Miguel de Icaza 0c25f98893 Rewrite the header file, based on the internal mono-hash.c contents 2013-09-11 15:06:18 -04:00
Miguel de Icaza 17669cd166 More inline docs 2013-09-11 15:06:18 -04:00
Martin Baulig 018c4af398 Bump ikvm to pick up ce0e014ed68d052989b162f0e74524cac2199647. 2013-09-11 20:52:31 +02:00
Martin Baulig 40a8a891f7 Add comment that this must be kept in sync with ikvm. 2013-09-11 20:52:30 +02:00
Marek Safar fb3ad60837 Revert "Bump ikvm"
This reverts commit 89166a0ea7.
2013-09-11 18:31:19 +02:00
Marek Safar 89166a0ea7 Bump ikvm 2013-09-11 18:26:16 +02:00
Martin Baulig 55065d0d02 [System.Core]: Minor API fix in the Non-DLR version of System.Linq.Expressions. 2013-09-11 15:42:19 +02:00
Martin Baulig 446857eaa3 Use ecma.pub for System.Xml.Serialization. 2013-09-11 15:39:21 +02:00
Martin Baulig 1ae48f124c Use msfinal.pub for System.Net in .NET 4.0/4.5. 2013-09-11 15:37:06 +02:00
Alexander Köplinger 3dfeae598a Fixed inconsistency in XmlSchemaValidatingReader between Mono and MS.NET 2013-09-11 12:38:19 +02:00
Rodrigo Kumpera 1f0eebb35f Fix the OSX and Windows build. 2013-09-10 19:43:09 -04:00
Rodrigo Kumpera b3d80013a0 Improve the build system. 2013-09-10 18:43:22 -04:00
Marek Safar 4529532aa7 Bump ikvm 2013-09-10 15:50:01 +02:00
Marek Safar 7db34940fe Don't set sealed flag for imported static types 2013-09-10 15:44:18 +02:00
Marek Safar 78a8c012d4 Don't emit inflated type parameter constraints which can collide with special constraint types. 2013-09-10 14:56:27 +02:00
Marek Safar 8bd66dbbeb Add System.ServiceModel.Activation assembly. Fixes #14544 2013-09-10 10:14:50 +02:00
Rodrigo Kumpera 6531ed7dd7 [verifier]Check generic constraints for duplicates. Fixes #1782. 2013-09-09 14:49:27 -04:00
Marek Safar c71c7fd196 Merge pull request #755 from ondrejmyska/master
Suggestion fix for bug https://bugzilla.xamarin.com/show_bug.cgi?id=6327
2013-09-09 10:15:23 -07:00
Rodrigo Kumpera 0ef4bd5dc9 [runtime] Fix a loader leak in the aot compiler. 2013-09-09 12:08:41 -04:00
Rodrigo Kumpera a578665b8a [runtime] Make suspend work during thread cleanup. Fixes #14555
SDB does suspend/resume during thread cleanup. It used to work until I introduced
critical regions. This won't work anymore as we need to lookup the thread info object
and during cleanup it will be gone.

The fix is to introduce mono_thread_info_current_slow which is a variant of
mono_thread_info_current that does search the thread list if the TLS key
is gone.
2013-09-09 11:25:49 -04:00
Ondrej Myska 50b53c5e1c Suggestion fix for bug https://bugzilla.xamarin.com/show_bug.cgi?id=6327 2013-09-09 17:19:34 +02:00
Zoltan Varga a918a64771 [runtime] Fix a nullref when casting a null object to a complex type when using --debug=casts. Fixes #14552/#14493. 2013-09-09 17:15:39 +02:00
Marek Safar 253b7cfc3f Set empty string to TraceListeners for empty assert message. Fixes #14505 2013-09-09 09:42:53 +02:00
Marek Safar 84d93ab24f Cleanup TraceImpl 2013-09-09 09:36:03 +02:00
Marek Safar f33ed3fd4f Fixes parallel enumerable index counter. Fixes #14515 2013-09-09 09:12:41 +02:00
Raphael Boissel eaa39bd1c7 [Scripts] Fix a Shebang in mono-test-install for freeBSD 2013-09-08 22:40:30 +02:00
Zoltan Varga 0318cfae1a [runtime] Force the usage of --host=i686-pc-mingw32 when running configure on windows. 2013-09-08 11:08:22 +02:00
Marek Safar 3dec818807 Don't print empty detailed assert message 2013-09-08 10:59:28 +02:00
Zoltan Varga 94856d264c [runtime] Fix the mingw build by defining InterlockedCompareExchange64 () which is missing from mingw's winbase.h. 2013-09-08 10:52:42 +02:00
Zoltan Varga 31db4c7cb4 [sdb] Add support for invoking interface methods. Fixes #14503. 2013-09-07 06:31:07 +02:00
Martin Baulig f59fa062fb [System]: WebRequest.GetSystemProxy(): Return custom proxy for monodroid.
On ICS and newer, we can use Java.Net.ProxySelector, which supports
per-access point proxy settings.  Fixes #12640.
2013-09-07 00:06:00 +02:00
Rodrigo Kumpera 715be9e991 Add another extension point to the runtime. 2013-09-06 17:22:25 -04:00
Mark Probst 0b296662ae [runtime] Thread teardown race condition. Fixes #13813. 2013-09-06 10:46:31 -07:00
Marek Safar 0372e3cd93 Implements parsing of multi value User-Agent string. Fixes #8719 2013-09-06 13:41:20 +02:00
Zoltan Varga 81d7fec759 Fix the test added by e682eceec3. 2013-09-06 06:43:12 +02:00
Zoltan Varga 7ca581cd34 [runtime] Add more logging to a test which fails on wrench. 2013-09-06 03:29:41 +02:00
Zoltan Varga a5839c9c20 [runtime] Make a marshalling test more robust. 2013-09-06 02:22:58 +02:00
Zoltan Varga e682eceec3 Avoid the managed->copy for ref vtypes with an [In] attribute in native-to-managed wrappers. Fixes #14069. 2013-09-05 18:13:43 +02:00
Zoltan Varga 6f5f478329 Avoid printing an error message in UnixRegistryApi which can happen during normal usage when a root process has created a registry under the mono installation prefix. Fixes #14366. 2013-09-05 17:43:48 +02:00
Rodrigo Kumpera 7ac5749d3e [runtime]Fix the OSX build due to crappy compilers. 2013-09-05 11:17:38 -04:00
ProUkorNew 98246b0552 Remove repeated include 2013-09-05 17:07:19 +02:00
Zoltan Varga 38ee810a9e Clear out the ref fields from MonoDomain before calling mono_gc_clear_domain (), since they will be invalidated by that call, and a GC could try to mark the invalid objects. Fixes #14339. 2013-09-05 16:21:36 +02:00
Marek Safar 894114cdf6 Merge pull request #751 from akoeplinger/AssemblyNameReferenceMatchesDefinition
Implemented AssemblyName.ReferenceMatchesDefinition ()
2013-09-05 06:13:31 -07:00
Marek Habersack 41f7b18368 Merge pull request #752 from echampet/bug-10001-2
[FIX][v2] Do not use chunked encoding with CGI/FastCGI
2013-09-05 04:51:28 -07:00
Alexander Köplinger 4f37c78e6a Implemented AssemblyName.ReferenceMatchesDefinition () 2013-09-05 03:58:40 -07:00
Zoltan Varga 9778d252c9 Revert "Fix the windows build."
This reverts commit 71e0c38272.

Revert this as its no longer needed.
2013-09-05 07:50:58 +02:00
Miguel de Icaza e4f8a6c339 Improve inline docs 2013-09-05 00:14:32 -04:00
Zoltan Varga 71e0c38272 Fix the windows build. 2013-09-05 03:44:06 +02:00
Rodrigo Kumpera 99a8261acc Fix the windows build. 2013-09-04 20:21:40 -04:00
Miguel de Icaza 3d613f0c68 Add inline api docs 2013-09-04 17:30:21 -04:00
Rodrigo Kumpera a3b80aeccb [bcl]Replace more long fields with int to make them CAS friendly on 32 bits systems. 2013-09-04 14:59:13 -04:00
Rodrigo Kumpera 0acb81dc64 [bcl] Replace more long fields with int to make them CAS friendly on 32 bits systems. 2013-09-04 14:47:27 -04:00
Rodrigo Kumpera fa2419c9cf Perform alignment checks for CAS on 32bits systems. Fixes #14426. 2013-09-04 13:38:52 -04:00
Zoltan Varga b71ab29b8c [runtime] Remove a needless ifdef. 2013-09-04 18:53:08 +02:00
Stefan da51407be5 [FIX][v2] Do not use chunked encoding with CGI/FastCGI
it's forbiden by http://tools.ietf.org/html/rfc3875#section-6.3.4

This correct bug 10001, https://bugzilla.xamarin.com/show_bug.cgi?id=10001

Signed-off-by: Etienne CHAMPETIER <[email protected]>
2013-09-04 18:29:54 +02:00
Zoltan Varga 119df901c2 Disable a corlib test which fails on some test runners. 2013-09-04 17:32:01 +02:00
Zoltan Varga 7a7a1ff947 Optimize MonoCustomAttrs.GetCustomAttributes(): add fastpaths for common cases, add a cache for looking up AttributeUsageAttributes, clean up intendation. 2013-09-04 17:31:19 +02:00
Zoltan Varga 431248dd0a Revert "[runtime] Handle MONO_PATCH_INFO_OBJC_SELECTOR_REF in mono_patch_info_hash ()."
This reverts commit 924e2b28ce.

Revert this, its not needed.
2013-09-04 17:20:47 +02:00
Zoltan Varga 924e2b28ce [runtime] Handle MONO_PATCH_INFO_OBJC_SELECTOR_REF in mono_patch_info_hash (). 2013-09-04 17:19:19 +02:00
Marek Safar 71b463fef1 Don't resolve extension method expression when in probing mode it may fail to resolve. Fixes #14384 2013-09-04 17:06:36 +02:00
Marek Safar 8d0de999d8 Less cascading errors 2013-09-04 17:06:36 +02:00
Miguel de Icaza c9db2bb7db mono_patch_info_hash: handle the MONO_PATCH_INFO_OBJC_SELECTOR_REF case 2013-09-04 10:53:48 -04:00
Zoltan Varga ec46c85cc4 Implement an intrinsics for Selector.GetHandle (). 2013-09-04 04:34:36 +02:00
Sebastien Pouliot 11df177e10 [linker] Allow some useful methods to be reused elsewhere 2013-09-03 21:23:39 -04:00
Zoltan Varga e2128ca26e Fix the mt build. 2013-09-04 02:48:10 +02:00
Zoltan Varga 6168d7a278 Rename a test target to hopefully fix the linux wrench build. 2013-09-04 02:36:01 +02:00
Zoltan Varga 7ba82952d6 Use $(MAKE) instead of make in one place. 2013-09-04 02:14:32 +02:00
Rodrigo Kumpera 4f41e84fde [bcl]Switch BlockingCollection to do CAS over ints and not longs.
The reasoning behind doing CAS on longs was to avoid overflowing
which is not a problem because 2-completement math does the trick.

This is much more reliable than using longs on 32 bits.
2013-09-03 17:03:59 -04:00
Rodrigo Kumpera 0923ad6b26 [bcl]Switch BlockingCollection to use SequentialLayot to make sure its longs are 8 bytes aligned everywhere. 2013-09-03 16:29:32 -04:00
Rodrigo Kumpera 7e2c7665a5 Fix Thread.VolatileRead(long&) on 32bits. 2013-09-03 16:29:32 -04:00
Rodrigo Kumpera 5d903d6762 [runtime]Use InterlockedCompareExchange64 instead of local hack. 2013-09-03 16:29:32 -04:00
Rodrigo Kumpera 32615d361b [runtime]Implement InterlockedCompareExchange64 on 64bits target, x86 and arm.
The current state of ARM compilers don't allow us to use compiler intrinsics as
they ICE on us, so we suck it up and use a naked function.
2013-09-03 16:29:31 -04:00
Marek Habersack 0101c86471 Revert "Merge pull request #744 from echampet/bug-10001"
This reverts commit 5178f29c4b, reversing
changes made to fb653dc0ea.
2013-09-03 21:16:26 +02:00
Marek Habersack a970e70152 Revert "Fix typo in commit b6d634dd."
This reverts commit d5dbf35c80.
2013-09-03 21:16:05 +02:00
Duncan Mak 3a91222d39 Change the version number to 3.2.3 2013-09-03 13:04:39 -04:00
Zoltan Varga 67b5d1d51f Add 'AM_PROG_CC_C_O' to configure to hopefully fix the build on older systems. 2013-09-03 18:31:46 +02:00
Marek Safar 1ea250fbd6 Merge pull request #749 from head-thrash/master
Fixes build when running `make -k check`
2013-09-03 08:21:09 -07:00
head-thrash 5f014934ae Fixes build when running make -k check:
* Fixes Broken Test in BuildEngine for 4.0 and 3.5
* Fixes build for Mono.Debugger.Soft not in 4_5 profile
* Fixes build for NET_4_0 profile (CustomAttributes and HasDefaultValue)
2013-09-03 18:52:29 +04:00
Martin Baulig c5e7004e98 Fix mobile build of my commit 1ae87e9. 2013-09-03 15:15:43 +02:00
Zoltan Varga 6cd4ddc089 Only print the 'Assuming PLATFORM messages when running make with V=1. 2013-09-03 10:36:21 +02:00
Zoltan Varga 43679b54e6 Fix warnings. 2013-09-03 10:36:21 +02:00
Alex Rønne Petersen 67db6fd702 Merge pull request #748 from spicypixel/hotfix/mini-codegen-disable-jit
Fix build break compiling with DISABLE_JIT
2013-09-02 23:40:59 -07:00
Aaron Oneal c25510b2b9 Fix build break compiling with DISABLE_JIT
When building with DISABLE_JIT, mono_inst_name which is normally defined in helpers.c is not. But, mini-codegen.c tries to use it anyway. This fix updates mini-codegen.c to not rely on this logging feature.
2013-09-02 22:45:35 -07:00
Martin Baulig d5dbf35c80 Fix typo in commit b6d634dd. 2013-09-02 21:56:52 +02:00
Marek Safar 4f64de335d Merge pull request #747 from spicypixel/hotfix/object-disable-com
Fix build break when COM is disabled
2013-09-02 12:53:43 -07:00
Martin Baulig 1ae87e9ee9 [WCF]: Add stubs for some missing .NET 4.0/4.5 APIs. 2013-09-02 21:52:13 +02:00
Martin Baulig 4db812ca7e Add missing .NET 4.5 APIs
* System.Text.RegularExpressions.Regex.InfiniteMatchTimeout
* System.Net.HttpStatusCode.UpgradeRequired
* Add System.Reflection.TypeAttributes.WindowsRuntime
* System.Runtime.GCLatencyMode.SustainedLowLatency
* System.UriComponents.NormalizedHost
2013-09-02 21:52:13 +02:00
Aaron Oneal edf74c2289 Fix build break when COM is disabled
This removes a typo that was introduced which caused COM dependencies to be referenced.
2013-09-02 10:53:06 -07:00
Marek Habersack 5178f29c4b Merge pull request #744 from echampet/bug-10001
Do not use chunked encoding with CGI/FastCGI
2013-09-02 08:39:57 -07:00
Stefan b6d634dd24 [FIX] Do not use chunked encoding with CGI/FastCGI
it's forbiden by http://tools.ietf.org/html/rfc3875#section-6.3.4

This correct bug 10001, https://bugzilla.xamarin.com/show_bug.cgi?id=10001

Signed-off-by: Etienne CHAMPETIER <[email protected]>
2013-09-02 17:30:14 +02:00
Marek Safar fb653dc0ea Better check for hoisted this location when emitting nested lambda expressions inside async containers. Fixes #14351 2013-09-01 14:49:01 +02:00
Zoltan Varga 36dc978682 Precompile the test assemblies in tests/ in parallel to speed up wrench test runs. 2013-08-30 22:00:59 +02:00
Zoltan Varga 9d714e77f4 Fix make check in tests/. 2013-08-30 22:00:59 +02:00
Zoltan Varga 2e5994b2ae Use AC_PROG_MKDIR_P instead of AM_PROG_MKDIR_P in m4/ since the latter is obsoleted by automake. 2013-08-30 22:00:59 +02:00
Zoltan Varga 63eeec0c81 Pass 'subdir-objects' to AM_INIT_AUTOMAKE() to quiet an automake warning. 2013-08-30 22:00:58 +02:00
Marek Safar 0e31ea67b7 More thorough check for managed type parameters. Fixes #14347 2013-08-30 17:48:59 +02:00
Marek Safar 17e5901d34 Probing of generic parameter for value type generic parameter needs to check both operands. Fixes #14289 2013-08-30 11:40:28 +02:00
Zoltan Varga 3dafb861ab Remove moon support from the build system. 2013-08-30 05:36:07 +02:00
Zoltan Varga ce263fe530 Disable the running of sgen tests on windows on wrench, they fail consistently. 2013-08-30 05:28:22 +02:00
Zoltan Varga cbe03c20e3 Check the cfg exception at the start of mono_method_to_ir (), to catch failures caused by mono_compile_create_var_for_vreg (). 2013-08-30 04:08:59 +02:00
Zoltan Varga c981bb9922 Fix warnings. 2013-08-30 04:08:04 +02:00
Zoltan Varga 82128fa503 Fix an LLVM assertion on structs with unaligned size. Fixes #14217. 2013-08-30 00:49:56 +02:00
Rodrigo Kumpera 9849c0a8fc Merge pull request #746 from madewokherd/sgenbuild
Fix non-sgen builds.
2013-08-29 14:46:17 -07:00
Vincent Povirk 226ebc4bef Fix non-sgen builds.
This commit licenced as MIT/X11.
2013-08-29 16:27:31 -05:00
Lluis Sanchez 9b5bc71e76 Fixed bug #14295 - Project.Load incorrectly resets the FullFileName property 2013-08-29 10:59:13 +02:00
Rodrigo Kumpera 18baa67f72 Fix some warning. 2013-08-28 16:14:53 -04:00
Rodrigo Kumpera a9b4ca9b36 [runtime]Don't assume MonoType extends directly from System.Type 2013-08-28 16:12:31 -04:00
Marek Safar fc522a49ed Fixes parameter name 2013-08-28 17:55:53 +02:00
Marek Safar 2f639b3c78 Use IReflectType interface instead of TypeDelegator for introspection type extensions. Fixes #14168 2013-08-28 17:55:53 +02:00
Marek Safar af31330de4 Make setProperties private 2013-08-28 10:18:26 +02:00
Marek Safar abe95222de Merge pull request #743 from gvillanueva/master
Rewrote Font.GetHashCode() to improve uniqueness
2013-08-28 01:15:59 -07:00
gvillanueva 234c346b81 Rewrote Font.GetHashCode() to improve uniqueness.
Added test cases to prevent reintroduction of collision scenarios observed in Font.GetHashCode().
2013-08-27 22:22:09 -07:00
Rodrigo Kumpera be400d4fc8 Naming cleanup. 2013-08-27 14:29:41 -04:00
Miguel de Icaza b08d9c20a1 Console.iOS: Reset sb.Length in all cases, even for poor man's print 2013-08-27 12:01:50 -04:00
Marek Safar 982f710571 Invalid syntax during attribute target parsing can crash parser. Fixes #14245 2013-08-27 10:20:56 +02:00
Miguel de Icaza fd12f0b05e Console.iOS: add fallback for the case where monotouch_log is not linked in 2013-08-26 23:22:35 -04:00
Michael Hutchinson b2cc26aa81 Merge pull request #742 from remobjects/import-project-userfile
Import ".user" as if it was part of the project, this lets users overrid...
2013-08-26 12:19:28 -07:00
Carlo Kok 60fd58a157 Import ".user" as if it was part of the project, this lets users override the options without checking changes to the main project file. 2013-08-26 17:53:46 +02:00
Marek Habersack 4ec59639b7 Merge pull request #726 from pruiz/xamarin-bug-13708
Fixed xamarin bug #13708: ASP.NET routing constraints should be treated as 'convertible to string' in order to be compat with MS.NET
2013-08-26 05:20:46 -07:00
Marek Safar 8e5e7ea505 Merge pull request #741 from marcominetti/master
Clean verbose (debug) logs in mcs for MakeExpression function call
2013-08-26 04:08:55 -07:00
marcominetti 94e8ad6ef0 cleaned console logs in MakeExpression function
Cleaned verbose logs leftovers (probably debug ones) that are currently printed on every compiling that involves dynamic objects...
2013-08-26 12:47:16 +02:00
marcominetti cf0b31248a cleaned console logs in MakeExpression function
Cleaned verbose logs leftovers (probably debug ones) that are currently printed on every compiling that involves dynamic objects...
2013-08-26 12:46:34 +02:00
Marek Safar 16013bc247 Merge pull request #740 from pruiz/dataannotations-enhancements
Some enhancements and additions to DataAnnotations, incluiding implementation of a few missing pieces of Sys.ComponentModel.DataAnnotations v4.5, like:
2013-08-26 02:59:07 -07:00
Pablo Ruiz Garcia 71d6896925 Reverted string.Format(CultureInfo.CurrentCulture, ..) change. 2013-08-26 11:42:02 +02:00
Marek Safar 8c2c29d41c Add test for #12745 2013-08-26 11:13:03 +02:00
Pablo Ruiz Garcia 46e571eaf1 Set correct author on test files. 2013-08-25 17:28:59 +02:00
Pablo Ruiz Garcia eb25dfce5c Some enhancements and additions to DataAnnotations, incluiding implemented of a few missing pieces of Sys.ComponentModel.DataAnnotations v4.5, like:
- CompareAttribute
	- CreditCardAttribute
	- EmailAddressAttribute
	- FileExtensionsAttribute
	- PhoneAttribute
	- Implemented  IsValid() methods of Min/MaxLengthAttribute.
	- Fixed all existing Validation attributes so they take into account current's locale when composing ErrorMessage.
2013-08-25 03:42:30 +02:00
Sebastien Pouliot 0d864b08c0 SRE.ParameterBuilder cannot be exposed in FULL_AOT_RUNTIME 2013-08-24 11:33:42 -04:00
Rodrigo Kumpera 3b846d3d4c We have g_getenv for portability reasons, so let's use it. 2013-08-23 18:23:27 -04:00
Zoltan Varga 722ace9131 Fix yet another DISABLE_JIT bug in wrapper generation. Fixes #14194. 2013-08-23 23:17:41 +02:00
Marek Safar 20d08fd8da Annonymous method storey inside async storey has to capture this directly when the storey does not have any parents. Fixes #14126 2013-08-23 13:27:21 +02:00
Rodrigo Kumpera 29c42bf0dc Add tests for the new 4.0 behavior in ParameterInfo. 2013-08-22 16:00:15 -04:00
Rodrigo Kumpera 3673d051fb [corlib]Implement .net 4.0 ParameterInfo. 2013-08-22 16:00:14 -04:00
Marek Safar cfa7bad1d7 Fixes negative symbol definition for few locales to be simple -. Fixes #14185 2013-08-22 19:12:47 +02:00
Zoltan Varga 33bd2503de Disable two delegate tests on mobile. 2013-08-22 18:57:06 +02:00
Marek Safar 95a6979c3b Enable fixed failing test 2013-08-22 17:50:22 +02:00
Neale Ferguson 9bcd33f029 Enable INLINE support for s390x 2013-08-22 08:17:24 -04:00
Sebastien Pouliot b46b038f33 Fix test case not to assume it can write in the current directory 2013-08-21 19:54:09 -04:00
Mark Probst 7770413fac [sgen] Disable cementing for parallel mark&sweep.
Cementing isn't parallel-ready yet.
2013-08-21 16:24:03 -07:00
Sebastien Pouliot f2e7f36368 Use the invarient culture calendar if the requested one is not available. Partial fix for #13977 2013-08-21 14:15:39 -04:00
Atsushi Eno 41290d39db Fix bug #14143 - xsl:import in included stylesheet caused compilation error.
Simply ignoring xsl:import causes regression in
XslTransformTests.ImportIncorrectlyLocated so no-go. The actual error for
that case is now reported better (not just "unrecognized element").
2013-08-22 02:15:24 +09:00
Rodrigo Kumpera a700784767 [runtime] Don't allow execution of dynamic assemblies without run access. Fixes #7126 2013-08-21 12:08:11 -04:00
Rodrigo Kumpera de2efdbd0f [corlib]Fix 2.0 test suite breakage. 2013-08-21 10:52:08 -04:00
Rodrigo Kumpera d71ca46641 [verifier]Remove duplicate check. 2013-08-21 10:22:31 -04:00
Atsushi Eno 2d6335f6a7 revert default serialization: ignore non-public members. Also need to exclude backing field in non-default serialization. 2013-08-21 15:44:27 +09:00
Rodrigo Kumpera bfff327c10 [runtime]Add some error checking to custom attr parsing and plug a memory leak. Fixes #13435. 2013-08-20 19:10:45 -04:00
Zoltan Varga 8cb8add995 Make the dmcs/gmcs scripts identical to the mcs script with an extra -sdk: argument, to avoid PATH problems, and to allow the windows installer to generate .bat files for them. Hopefully fixes #8813. 2013-08-21 00:57:28 +02:00
Rodrigo Kumpera e0c4e5bf88 [runtime] Handle custom attributes with nested array of enums. Fixes #13767
When decoding a custom attribute value, an array value in an object
position can have type of an enum.
2013-08-20 18:34:08 -04:00
Zoltan Varga 0152cee92d Use i686-pc-mingw32-gcc as the mkbundle compiler on windows. 2013-08-21 00:24:26 +02:00
Zoltan Varga 7685ca6271 Merge pull request #737 from Mixaill/master
Remove deprecated -mno-cygwin flag.
2013-08-20 15:20:14 -07:00
Rodrigo Kumpera ac146cb037 [verify]Relax the restriction on global methods visibility. Fixes #13890. 2013-08-20 15:49:24 -04:00
Rodrigo Kumpera c187e5ea14 [verifier]Since 4.5 arrays now implement IReadOnlyList<T> and IReadOnlyCollection<T>. Verify this properly. Fixes #13879. 2013-08-20 14:47:55 -04:00
Zoltan Varga ba8d128834 Add support for more return types for constrained gsharedvt calls. Fixes #13030. 2013-08-20 19:50:29 +02:00
Zoltan Varga c686f20fbe Enable support for constrained gsharedvt calls to Object.GetType (). 2013-08-20 19:09:31 +02:00
Zoltan Varga 74fc821cf6 Fix a regression introduced by d84a165c8e. Unbox casts were failing for enums. Fixes #14026. 2013-08-20 16:08:32 +02:00
Paolo Molaro e50f95626b Merge pull request #739 from mono/upstream-master
Ported perf code to work on arm and adjusted to changes in the kernel th...
2013-08-20 06:10:07 -07:00
Paolo Molaro 25961ac5cf Ported perf code to work on arm and adjusted to changes in the kernel that broke mmap().
The kernel doesn't allow anymore to setup a perf fd with any cpu and the inherit flag
(to take into account threads created later on), so now we setup a fd/mmap area for each
cpu in the system.
2013-08-20 14:50:47 +02:00
Zoltan Varga f36257e03b [aot] Add support for constrained gsharedvt calls which return a reference value. Fixes #13030. 2013-08-20 01:30:10 +02:00
Marek Safar cabe0f95ed Merge pull request #738 from strawd/bug14077
Fix for #14077. HashSet no longer grows in capacity on deserialize
2013-08-19 13:05:16 -07:00
David Straw a257338394 Fix for #14077. HashSet no longer grows in capacity on deserialize
Not all necessary members were being initialized during deserialization
2013-08-19 13:48:17 -06:00
Rodrigo Kumpera 2bec46815c [runtime]Fix mono-config.h to use the mono API public types and not the glib ones. 2013-08-19 15:40:05 -04:00
Alex Rønne Petersen 4a61680549 Add an #else -> #error path to mono-membar.h. 2013-08-19 21:30:40 +02:00
Jeffrey Stedfast 7694b5dbae Only disable __thread with clang on Mac OS X 2013-08-19 11:30:31 -04:00
Marek Safar 1269b409b3 Add argument modifiers to generated base proxy when needed. Fixes #13892 2013-08-19 13:22:13 +02:00
Marek Safar cbca01b433 Add dispose checks to ReaderWriterLockSlim and fix race in currentThreadState initialization 2013-08-19 10:22:23 +02:00
Marek Safar 1fe24728bd Optimize common path 2013-08-19 10:22:22 +02:00
Atsushi Eno 88dadaaf10 Revert "Revert "Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor().""
This reverts commit 0ef5f49c1f.
2013-08-19 12:13:38 +09:00
Michael Pavlyshko 52a67a6219 Remove deprecated -mno-cygwin flag. 2013-08-18 21:12:14 +03:00
Atsushi Eno 0ef5f49c1f Revert "Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor()."
This reverts commit b43211d101.
2013-08-18 15:34:37 +09:00
Atsushi Eno b43211d101 Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor().
It is only one of probably many reasons that prevents Jurassic JavaScript engine.
2013-08-18 15:31:40 +09:00
Marek Safar 6508d62869 Grow underlying buffer only when necessary. Fixes #13552 2013-08-17 16:31:45 +02:00
Marek Safar 70b14ec733 Report error for name collision between property and generic method with same name. Fixes #14053 2013-08-17 11:14:33 +02:00
Marek Safar e9f871dfe4 Merge pull request #736 from wtfrank/charting
add missing ZTestResult properties
2013-08-17 01:39:41 -07:00
Francis Fisher ada7e135c9 add missing ZTestResult properties 2013-08-17 08:36:49 +01:00
Marek Safar f81e067e01 Fixes GZipStream dispose order. Fixes #14032 2013-08-16 23:16:23 +02:00
Zoltan Varga cad5315ebf Convert nan/infinity to uint 0 to match MS.NET. Fixes #13927. 2013-08-16 19:48:55 +02:00
Rodrigo Kumpera e86837b7d2 Merge pull request #725 from knocte/threadpool_init
[ThreadPool] Allow heavier initialization when using --server flag
2013-08-16 06:21:31 -07:00
Marek Safar a208b628e9 Implements lifted nullable comparison with null 2013-08-16 15:18:49 +02:00
Marek Safar 1044b36c14 Rewrites RuntimeReflectionExtensions to actually do something. Fixes #13626 2013-08-16 11:14:50 +02:00
Marek Safar f9391f934a Disable test failing due to runtime bug 2013-08-16 10:13:29 +02:00
Zoltan Varga a8cbb84a2c Simplify the caching of delegate-invoke wrappers with a bound first argument, caching can be done using just the signature. 2013-08-16 03:10:52 +02:00
Zoltan Varga 8d291a2e77 Merge pull request #734 from joncham/domain-debug-leaks
Fix domain related leaks of debug information
2013-08-15 17:53:33 -07:00
Marek Safar 0c8d56025e Remove some unused parameters 2013-08-15 18:06:36 +02:00
Marek Safar b05f24e810 Type parameter inflated interfaces needs to be marked too. Fixes #13996 2013-08-15 16:59:10 +02:00
Atsushi Eno 349c84032e Fix regression from 2cc36e3, missing BaseURI caused external schema resolution failure. 2013-08-15 22:09:49 +09:00
Marek Safar 17a8120548 Correct parsing of invalid 00000000-0000-0000-0000-000000000000 guid format. Fixes #13970 2013-08-15 12:18:36 +02:00
Marek Safar 4060edb4fa Small optimization of GuidParser 2013-08-15 11:41:05 +02:00
Marek Safar 0e9c53b052 Workaround for legacy nunit 2013-08-15 11:17:02 +02:00
Marek Safar 9d94a06e6a Inflate explicit delegate parameters using type inference context too. Fixes second part of #13969 2013-08-15 11:03:15 +02:00
Atsushi Eno 37e7f2fb50 Fix build (giconv.c) 2013-08-15 13:18:16 +09:00
Jeffrey Stedfast a81cd6dae8 [eglib] Fixed g_utf8_to_utf16_general() to handle invalid utf8 2013-08-14 19:41:38 -04:00
Rodrigo Kumpera 384f1d8af5 Add tests for the recently fixed issues with block guards. 2013-08-14 19:23:34 -04:00
Rodrigo Kumpera a385a2bac2 [runtime]Generate the proper exit code for block guard trampolines.
Finally blocks use a non-standard calling convention which means we need to take it
into account in the return address hijacking trampoline.

A finally block is called with ESP % 16 == 4. Once inside the finally block, ESP returns
to be % 16 == 0 due to the call instruction pushing the return address.

The problem comes when we want to hijack the return address. Our trampolines expect a
normal calling convention with ESP properly aligned, so we use a small thunk of code that
does that before jumping into the trampoline itself. This is required as we'll enter native.

The problem lies on the exit path as the trampoline jump to an arbitrary place instead back
to the above thunk. This leaves the stack with the thunk adjustment in, which will cause
the resulting code to misalign the stack even further.

The solution, though a big ugly, is to change the exit path of the trampoline fix the stack
to be "properly" misaligned.
2013-08-14 19:05:33 -04:00
Rodrigo Kumpera 58e8550d5c [runtime]Properly compute the end address of a finally block when it ends in a dead basic-block.
We compute the end address of a finally block by using cil_offset_to_bb, which can point to dead
basic blocks if those were killed by CFG simplification.
2013-08-14 19:05:26 -04:00
Rodrigo Kumpera 93b0f40d43 [runtime] Make sure mono_create_handler_block_trampoline is async signal safe.
We call mono_create_handler_block_trampoline when installing the block guard,
so this function must be async safe at that stage in the runtime.

Since it is eagerly called during startup, we should be fine with just
memory barriers.
2013-08-14 19:05:19 -04:00
Zoltan Varga 516c4d85f5 Add a WrapperInfo for delegate-invoke wrappers to make it possible to distinguish between normal wrappers and ones with a bound first argument. 2013-08-14 22:59:32 +02:00
Marek Safar c7a91f9309 Add test for #13969 2013-08-14 21:54:49 +02:00
Marek Safar 2b39b6a926 Fix recursive check for non dependent return types during type inference. Fixes #13969 2013-08-14 21:53:30 +02:00
Mark Probst 00f152cfc4 Fixed a few bugs that were found by Visual Studio's static code analysis. 2013-08-14 11:22:59 -07:00
Mark Probst 6a14275371 [sgen] Fix another posix handshake issue. 2013-08-14 11:04:28 -07:00
Jonathan Chambers effa6dcf44 Free domain specific sequence point information.
Conflicts:
	mono/mini/mini.c
2013-08-14 13:10:23 -04:00
Jonathan Chambers 5047a9c314 Free returned offsets and line numbers from mono_debug_symfile_get_line_numbers. 2013-08-14 13:07:38 -04:00
Marek Safar 4f021d81ca Merge pull request #733 from amoiseev-softheme/bugfix/monofix
Applying fixes to Https from Windows team to mono
2013-08-14 06:46:41 -07:00
Marek Safar 64dcc45998 Don't crash when reporting invalid case label value. Fixes #13952 2013-08-14 15:32:21 +02:00
Alexey Moiseev 26099534a0 Applying fixes to Https from Windows team to mono 2013-08-14 16:28:19 +03:00
Marek Safar 2940861c80 Merge pull request #732 from wtfrank/charting
placement of MonoTODO
2013-08-14 00:48:17 -07:00
Francis Fisher 6930f1a8ee placement of MonoTODO 2013-08-14 00:14:23 +01:00
Zoltan Varga a31b580fdc [sgen] Add a workaround for #13951. Register the jit info for GC critical methods as soon as they are loaded, and avoid lookups in the AOT images when calling mono_jit_info_table_find () during STW. 2013-08-14 00:15:16 +02:00
Zoltan Varga fd80c70838 Fix a warning. 2013-08-14 00:15:16 +02:00
Marek Safar 18068d5b4f Merge pull request #729 from wtfrank/charting-submit
Continued implementation of Charting namespace
2013-08-13 12:42:18 -07:00
Jeffrey Stedfast 2f19eee32f Fixed configure.in to fail the __thread check with clang 2013-08-13 15:34:12 -04:00
Miguel de Icaza cca57fa576 Add System.DirectoryServices.Protocols to the rpm build to fix the bots 2013-08-13 15:00:18 -04:00
Jeffrey Stedfast 9fd216db06 Fixed some compiler warnings in libgc 2013-08-13 13:12:59 -04:00
Jeffrey Stedfast b609cbb543 Replaced call to sscanf() with calls to strtoull(). Better. Faster. Stronger. 2013-08-13 12:46:50 -04:00
Jonathan Pryor bd130f3a2c [mscorlib] Support OID names in RSACryptoServiceProvider.SignData()
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=13953

MSDN documents that RSACryptoServiceProvider.SignData()'s provider
paramter may contain an OID name:

http://msdn.microsoft.com/en-us/library/y2wf1b6k.aspx
> The halg parameter can accept a String, a HashAlgorithm, or a Type.
> The string value can be one of the following:
> * The object identifier (OID) friendly name of the hash algorithm to use,
>   either a name registered in the crypto config file or one in the
>   Crypto API OID table.
> * The OID value. The OID must be one recognized by the Crypto API.
> For example, you could use SignData(new byte[5], "1.3.14.3.2.26") or
> SignData(new byte[5], "sha1"), or SignData(new byte[5], "SHA1").

Add support for this OID names as the provider.
2013-08-13 12:09:56 -04:00
Jeffrey Stedfast 91bf902e2e Improved fix for g_iconv() compiler warnings 2013-08-13 11:59:52 -04:00
Jeffrey Stedfast 82219acd3c Fixed eglib compiler warnings about g_string_truncate() and g_iconv() 2013-08-13 11:44:58 -04:00
Jeffrey Stedfast 94f12d815e Fixed some compiler warnings 2013-08-13 11:24:21 -04:00
Rolf Bjarne Kvinge 2448e73caa Revert "Fix a test to work on mobile after the async release."
This reverts commit b22667cd23.

It was a build bug in monotouch, not a buggy test.
2013-08-13 13:21:22 +02:00
Zoltan Varga 92d3a7b0b6 Fix 5d37fac7c8 yet again. 2013-08-13 12:29:45 +02:00
Zoltan Varga fad3d7f588 [msvc] Implement MONO_CONTEXT_GET_CURRENT () on the msvc build. 2013-08-13 03:34:06 +02:00
Zoltan Varga c0365e5748 Fix warnings. 2013-08-13 03:34:06 +02:00
Zoltan Varga c98df65bfa [msvc] Avoid linking against libgc in the sgen configurations. 2013-08-13 03:34:05 +02:00
Rolf Bjarne Kvinge af8e11988d Only build mscorlib in the monotouch_runtime profile. 2013-08-13 00:34:58 +02:00
Zoltan Varga 398c7fc21f [sgen] Disable freeing of OS memory on win32, it causes asserts because VirtualFree () fails. 2013-08-12 23:23:57 +02:00
Jonathan Pryor 0e7dc370e3 [System.Core/Android] Android's libc.so doesn't export getpagesize()
Partially fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=12739

Android's libc.so doesn't export getpagesize(3), resulting in an
EntryPointNotFoundException:

	System.EntryPointNotFoundException: getpagesize
	  at (wrapper managed-to-native) System.IO.MemoryMappedFiles.MemoryMapImpl.getpagesize ()
	  at System.IO.MemoryMappedFiles.MemoryMapImpl.Map (int,long,long&,System.IO.MemoryMappedFiles.MemoryMappedFileAccess,intptr&,int&)
	  at System.IO.MemoryMappedFiles.MemoryMappedViewAccessor.Create (long,long,System.IO.MemoryMappedFiles.MemoryMappedFileAccess)
	  at System.IO.MemoryMappedFiles.MemoryMappedViewAccessor..ctor (int,long,long,System.IO.MemoryMappedFiles.MemoryMappedFileAccess)
	  at System.IO.MemoryMappedFiles.MemoryMappedFile.CreateViewAccessor (long,long,System.IO.MemoryMappedFiles.MemoryMappedFileAccess)

Android does provide getpagesize(3); it's just an inline function.

The full fix will require two parts:

 1. Update MemoryMapImpl to P/Invoke
    libmonodroid.so!monodroid_getpagesize()
 2. Add a libmonodroid.so!monodroid_getpagesize() export.

This commit implements (1).
2013-08-12 16:59:14 -04:00
Sebastien Pouliot 2ab52ceae2 [linker] Add AssemblyAction.Save to enable the linker to re-write an assembly without actually linking it. Useful to remove references to PCL assemblies that are not really used (e.g. when only type forwarders are needed) [#13488] 2013-08-12 15:31:33 -04:00
Sebastien Pouliot 27e36aef37 [linker] Small string optimizations to avoid culture aware code paths 2013-08-12 15:31:33 -04:00
Zoltan Varga f447c860f5 [aot] Align the static linking symbol. 2013-08-12 21:10:13 +02:00
Francis Fisher c529dc59df fix properties per mono guidelines 2013-08-12 19:48:20 +01:00
Zoltan Varga 56a02b9285 Merge pull request #708 from spicypixel/hotfix/mono-object-to-string
Add support for value types to mono_object_to_string
2013-08-12 11:17:07 -07:00
Jonathan Lima d0715eeb4b Fixed SGen build for MSVC
From:
https://github.com/mono/mono/pull/724
2013-08-12 19:57:02 +02:00
Jonathan Lima 0585e7cb9a Fixed incorrect pointer arithmetic on SGen for MSVC.
From:
https://github.com/mono/mono/pull/724
2013-08-12 19:53:21 +02:00
Jonathan Lima 9883ab8b8a Fixed MSVC build, ported to Visual Studio 2012.
From:

https://github.com/mono/mono/pull/724
2013-08-12 19:48:05 +02:00
Jonathan Lima d5b8fd8e6d Improved exception handling with vectored exception handling.
Now a native debugger can be used with soft debugger running without triggering any exception. Code provided by Jonathan Chambers:

* https://github.com/Unity-Technologies/mono/commit/e9f9f7170914c5caaff3e95e09f6f58ecced2a10
* https://github.com/Unity-Technologies/mono/commit/4c2e1db60ccb38e792545d595d85b12ff309a919
* https://github.com/Unity-Technologies/mono/commit/bd7e534aa7da49b89787b8c1b40e165a34c0e960
* https://github.com/Unity-Technologies/mono/commit/b885251a83969d243deabc56bb3d1495d4a971dc

From:

https://github.com/mono/mono/pull/724
2013-08-12 19:46:06 +02:00
Jeffrey Stedfast 51b648a118 Fixed build breakage from my previous commit 2013-08-12 12:12:47 -04:00
Jeffrey Stedfast b1d7375726 Fixed System.Text.Decoder.GetChars(byte*,int,char*,int,bool) to copy output into the char* buffer. 2013-08-12 08:22:49 -04:00
Zoltan Varga b5188e8b4e Get rid of the annoying 'PLATFORM is not defined.' message on every build. 2013-08-12 01:26:54 +02:00
Zoltan Varga 7839312e84 Avoid infinite logfiles if the test-process-exit test fails to terminate. 2013-08-12 01:14:13 +02:00
Zoltan Varga 529b920b35 Fix skipping of disabled runtime tests on windows. 2013-08-12 00:48:38 +02:00
Zoltan Varga 06dea0679d Clean up the win32 lmf code by using a separate variable to hold the jit_tls tls offset. Fix warnings. 2013-08-11 23:19:18 +02:00
Zoltan Varga 21e5a22980 Enable MONO_ARCH_HAS_MONO_CONTEXT on mingw. 2013-08-11 22:46:00 +02:00
Francis Fisher f436736f30 fix up some properties per mono coding guidelines 2013-08-11 18:12:58 +01:00
Francis Fisher 699ef5e948 Boilerplate implementation of Charting
Implemented enough of
System.Windows.Forms.DataVisualization.Charting to get two pieces of
software to compile: the charting examples from MSDN and the windows OSS
EVEMon.

This patch contains the majority of properties defined, and many methods
stubbed - I have avoided implementing any functionality in this patch.

All this work is under the MIT Licence.
2013-08-11 15:07:55 +01:00
Rolf Bjarne Kvinge fa0f423dc5 Fix profile values for monotouch_runtime. 2013-08-10 00:35:10 +02:00
Mark Probst 2c45af25e2 Fix #13604 - STW handshake/thread shutdown race condition. 2013-08-09 13:24:18 -07:00
Atsushi Eno b62bb260ec Fix bug #4344 - xsl:stylesheet always ignored xsl template contents. 2013-08-09 19:47:20 +09:00
Marek Safar 2f334102cd Add more implicit generic array interfaces. Fixes #8934 2013-08-09 11:56:13 +02:00
Marek Safar ded10b24e9 Update reference file 2013-08-09 11:56:13 +02:00
Atsushi Eno d21b0aa3d9 Fixed bug #4141 - XmlSchemaImporter needs to consider attributeGroupRef in some case. 2013-08-09 17:22:38 +09:00
Zoltan Varga fde407c873 Fix 5d37fac7c8 again. 2013-08-09 10:13:22 +02:00
Atsushi Eno 53a68c9e20 Fixed bug #4668 - C# compiler doesn't like decimal in custom attribute values, so use string. 2013-08-09 17:03:40 +09:00
Atsushi Eno ccab57808d Fix bug #8637 - omit xml declaration for ToString(). 2013-08-09 15:57:35 +09:00
Zoltan Varga 4c0a69874e Remove the usage of gcc-3 on mingw, the gcc-3 package no longer exists on cygwin. Mono can be built by configuring with --host=i686-pc-mingw32. Building without this will not work, since the libtool wrapper executables created by libtool will be unusable, i.e. they exit before the real runtime process exits. 2013-08-09 01:59:46 +02:00
Zoltan Varga ebfd12313e Fix mingw compilation problems. 2013-08-09 01:59:45 +02:00
Zoltan Varga 77f1fafb58 Fix monodis compilation on mingw which is missing some fp classification functions. 2013-08-09 01:59:45 +02:00
Zoltan Varga 04f533820d Make the gc descriptor tests fail consistently if python is not found. 2013-08-09 01:59:44 +02:00
Jonathan Pryor d1fcb53e15 [mdoc-validate] Allow <format/> to have ANY content.
The intent of the <format/> element is to assist encapsulating
arbitrary HTML content within an mdoc(5) container. This frequently
requires having more than _one_ element within the <format/> block.

(WTF was I thinking forgetting the maxOccurs attribute?!)
2013-08-08 16:35:51 -04:00
Atsushi Eno c65fe47d44 generate mobile csproj files too. 2013-08-08 22:45:07 +09:00
Atsushi Eno 468cb8d277 Build Ix assemblies from rx sources. 2013-08-08 22:07:29 +09:00
Atsushi Eno 2cc36e3331 Fix bug #13716 - use XmlSchemaSettings.XmlResolver to resolve schemas. 2013-08-08 21:38:47 +09:00
Marek Safar 5c55eea17e Basic optional parameters support in binder. Fixes #13817 2013-08-08 13:31:08 +02:00
Marek Safar 09139111a5 Merge pull request #728 from alesliehughes/master
Enable System.DirectoryServices.Protocols assembly
2013-08-08 02:58:22 -07:00
Alistair Leslie-Hughes 1eb75507a6 Enable System.DirectoryServices.Protocols assembly 2013-08-08 19:20:32 +10:00
Marek Safar f2524362fc Always release DeflateStream unmanaged resources. Fixes #13742 2013-08-08 10:29:05 +02:00
Atsushi Eno b5a856e716 Fix bug #11298 - in XElement.Replace*(), create snapshot of content first before removal (unlike it is documented!) 2013-08-08 16:02:03 +09:00
Zoltan Varga 0487904629 [aot] Avoid passing partially shared instances to the JIT. Fixes #13191. 2013-08-08 00:08:51 +02:00
Zoltan Varga 9c65ad34a9 Fix 5d37fac7c8. 2013-08-07 22:51:51 +02:00
Zoltan Varga 5d37fac7c8 [aot] Error out if -O=gsharedvt is used on a platform/configuration where it is not supported. 2013-08-07 21:28:55 +02:00
Marek Safar 56f98e18dd Add block scope for foreach variables with statement only 2013-08-07 20:58:35 +02:00
Marek Safar 0c22492321 Remove NIE from SetWaitNotificationRequired. Fixes #13742 2013-08-07 20:02:03 +02:00
Marek Safar 6a4c57e05b Handle partial class case when nested type of partial container dependends on parent base type from another partial container. Fixes #13731 2013-08-07 19:00:57 +02:00
Atsushi Eno 3e2f5ef8fc Fix bug #10194 - SetElementValue(nonExistentElementName, null) caused NRE. 2013-08-08 01:36:35 +09:00
Atsushi Eno 874d3b1389 Fix bug #12035 - xsi:nil='true' was ignored in some scenario.
"some scenario" I mean:

- There is a sequence with more than one elements in xsd,
- The second element is nillable and its type has content elements, and
- The corresponding XML element specifies xsi:nil='true'

Then it resulted in a validation error as if it were missing the required
content.
2013-08-08 01:00:10 +09:00
Marek Safar 155df94118 Inflate default parameter expression without type checks. Fixes #13793 2013-08-07 15:18:04 +02:00
Rolf Bjarne Kvinge b22667cd23 Fix a test to work on mobile after the async release. 2013-08-07 14:59:12 +02:00
Marek Safar 3448cab291 Update named params parameter converted result expression. Fixes #13786 2013-08-07 12:49:48 +02:00
Atsushi Eno 72d14cca36 Fix bug #12469 - add more conversion methods to XmlAtomicValue.
Since XmlAtomicValue is pretty much hidden in the implementation, there is
almost no way to verify how it should work. So the changes are all based on
assumption. Yet I added a test based on bug #12469.

There is still problem on processing *invalid* inputs. They have to be
rejected, but they pass.
2013-08-07 18:54:03 +09:00
Marek Safar b213facf8e Merge pull request #727 from alesliehughes/master
ActiveDirectory Class and enums
2013-08-06 23:35:12 -07:00
Rodrigo Kumpera b0406462f6 [build]Bring some sanity to the monotouch profiles.
monotouch is now the static profile and it does define FULL_AOT_RUNTIME globally.
2013-08-06 19:00:03 -04:00
Rodrigo Kumpera f9adf72b40 Add support for exclude files in extension modules. 2013-08-06 19:00:03 -04:00
Alistair Leslie-Hughes 72855152a6 Add class DirectoryServicesCOMException 2013-08-07 08:52:08 +10:00
Alistair Leslie-Hughes 3942cbcf71 Add class DirectoryVirtualListView 2013-08-07 08:18:31 +10:00
Alex Rønne Petersen 060669d19a Fix an unlikely case in cmd_to_string () where cmds would be accessed uninitialized. 2013-08-06 21:27:03 +02:00
Alex Rønne Petersen b0b4fdb5ee Fix another strtod warning with #if 0. 2013-08-06 21:23:03 +02:00
Alex Rønne Petersen afef0a0f59 Add two unnecessary zero initializations to shut GCC up.
The conditions are too complex for GCC to realize that these variables
are actually initialized when they're used.
2013-08-06 21:23:03 +02:00
Alex Rønne Petersen dcd27aa93f Kill another mixed-decls-and-code warning. 2013-08-06 21:23:02 +02:00
Marek Safar 1496eac3f4 Create correct flow branching for single non-default switch section. Fixes #13736 2013-08-06 21:07:16 +02:00
Alex Rønne Petersen 19d7806b73 Fix some warnings in strtod by #if 0'ing some unused functions. 2013-08-06 20:53:00 +02:00
Alex Rønne Petersen 5db03c67c1 Fix a warning in dlmalloc by #if 0'ing an unused function. 2013-08-06 20:53:00 +02:00
Alex Rønne Petersen a0bba405d1 Fix a mixed-decls-and-code warning. 2013-08-06 20:53:00 +02:00
Jonathan Pryor 82a197e41c [System.Core/Android] Support Android v4.3's timezone DB format
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=13686

Android v4.3 changed the timezone DB format described in 8a263984 and
replaced it with a single file containing version, index, data, and a
"zoneTab" (which is parsed but unused).

Port/rewrite the Java libcore.util.ZoneInfoDB type into
System.AndroidTzData so that this new file format is supported.

(Another day, another file format...)
2013-08-06 14:27:20 -04:00
Alistair Leslie-Hughes b4f1c73e83 Add class DirectoryVirtualListViewContext 2013-08-06 19:22:05 +10:00
Alistair Leslie-Hughes 261ec28e7c Add class DirectorySynchronization 2013-08-06 19:22:04 +10:00
Alistair Leslie-Hughes c5c858d823 Add enum ExtendedDN 2013-08-06 19:22:02 +10:00
Alistair Leslie-Hughes aa5da06469 Add class ExtendedRightAccessRule 2013-08-06 19:22:01 +10:00
Alistair Leslie-Hughes 6129ec4d09 Add enum DirectorySynchronizationOptions 2013-08-06 19:22:00 +10:00
Alistair Leslie-Hughes 20d02fae27 Add class ForestTrustCollisionException 2013-08-06 19:21:59 +10:00
Alistair Leslie-Hughes 67a116c863 Add class ForestTrustRelationshipCollisionCollection 2013-08-06 19:21:56 +10:00
Alistair Leslie-Hughes aa5657b7fa Add class ForestTrustRelationshipCollision 2013-08-06 19:21:54 +10:00
Alistair Leslie-Hughes f04968359d Add class ListChildrenAccessRule 2013-08-06 19:21:54 +10:00
Alistair Leslie-Hughes c234f6e2dc Add enum ForestTrustCollisionType 2013-08-06 19:21:51 +10:00
Alistair Leslie-Hughes 903d21bac7 Add class ActiveDirectoryServerDownException 2013-08-06 19:21:48 +10:00
Alistair Leslie-Hughes 8263101015 Add class DirectoryEntryConfiguration 2013-08-06 19:21:47 +10:00
Alistair Leslie-Hughes 559570da6d Add enum PasswordEncodingMethod 2013-08-06 19:21:47 +10:00
Alistair Leslie-Hughes 571444246f Add enum DomainCollisionOptions 2013-08-06 19:21:46 +10:00
Alistair Leslie-Hughes 7f50298027 Add class PropertyAccessRule 2013-08-06 19:21:45 +10:00
Alistair Leslie-Hughes 1a2de021ca Add class PropertySetAccessRule 2013-08-06 19:21:44 +10:00
Alistair Leslie-Hughes a9201c5b00 Add enm PropertyAccess 2013-08-06 19:21:42 +10:00
Alistair Leslie-Hughes a6331506cb Add class ReadOnlySiteLinkBridgeCollection 2013-08-06 19:21:42 +10:00
Alistair Leslie-Hughes 5682a6430e Add class ActiveDirectorySiteLinkBridge, ActiveDirectorySiteLinkCollection 2013-08-06 19:21:41 +10:00
Alistair Leslie-Hughes cf17ecb829 Add enum ReplicationSecurityLevel 2013-08-06 19:21:41 +10:00
Alistair Leslie-Hughes e12b9a2c61 Add enum SecurityMasks 2013-08-06 19:21:40 +10:00
Alistair Leslie-Hughes ae40175ca0 Add enum TopLevelNameCollisionOptions 2013-08-06 19:21:39 +10:00
Andrés G. Aragoneses 26d0b81c26 [ThreadPool] Allow heavier initialization when using --server flag
Create on demand up to min_threads to avoid startup penalty, avoiding
throttling of threadpool worker thread creation (for now, using
a --server flag) at initialization.

When throttling happens, operations such as parallel https requests were
slowed down significantly due to all of the threads created in order
to complete the SSL operations.

Based on @kamalaboulhosn's patch (https://github.com/mono/mono/pull/640/files)
2013-08-06 10:32:54 +02:00
Zoltan Varga ab92538d5a [llvm] Disable LLVM for async methods to work around #13734. 2013-08-06 09:28:57 +02:00
Zoltan Varga 6cca13b657 [llvm] Avoid adding methods which failed llvm compilation to 'mono.function_indexes'. 2013-08-06 09:28:32 +02:00
Zoltan Varga 1188277099 [sdb] Improve logging a bit. 2013-08-06 09:26:46 +02:00
Atsushi Eno 439046726f implement character validation methods in XmlConvert. Fix bug #11910. 2013-08-06 14:38:14 +09:00
Rodrigo Kumpera 70d411b525 Fix thinko in last commit. It's DISABLE_COM and not DISABLE_REMOTING. 2013-08-05 17:25:56 -04:00
Rodrigo Kumpera 1f6effb1e1 [sgen]GC fight club rules. NEVER poke the managed heap if you are not supposed to. 2013-08-05 17:24:57 -04:00
Rodrigo Kumpera 37ac7d16dc [sgen]Add some comments on the usage of all STW related fields. 2013-08-05 17:04:14 -04:00
Rodrigo Kumpera 300f015223 monotouch requires DISABLE_COM too. 2013-08-05 14:24:48 -04:00
Rodrigo Kumpera 809b7ed950 Fix log messge. 2013-08-05 11:41:24 -04:00
Pablo Ruiz Garcia 6128710873 Fixed xamarin bug #13708: routing constraints should be trated as 'convertible to string' in order to be compat with MS.NET 2013-08-05 15:20:31 +02:00
Marek Safar fb24aa7b1a Don't show internal error when default paramater expression cannot be converted to paramter type. Fixes #13682 2013-08-05 12:17:18 +02:00
Marek Safar 7cda2dd37c Merge pull request #723 from alesliehughes/master
Revert "Add class DnsPermission"
2013-08-05 02:07:57 -07:00
Atsushi Eno 8a10b06610 Fix bug #13485: retrieve private fields and properties in serialization. 2013-08-05 15:36:24 +09:00
Micael Dias 5a9472a254 Fix cross compilation to windows. "Windows.h" should be "windows.h". Fixes #13729. 2013-08-05 08:10:32 +02:00
Zoltan Varga 568e0bc803 Add support for constrained gsharedvt calls to IComparable<T>.CompareTo ()/IEquatable<T>.Equals (). Fixes #13704. 2013-08-04 09:18:49 +02:00
Zoltan Varga e7a9566734 Put runtime-invoke wrappers of valuetype methods into a separate cache, they have a different signature. 2013-08-04 09:17:43 +02:00
Alex Rønne Petersen 23548657e1 Fix the non-MSVC build. 2013-08-02 22:39:15 +02:00
Neale Ferguson 41a154d096 Variable has_ld was renamed 2013-08-02 15:20:47 -04:00
Rodrigo Kumpera cbbd711017 Merge pull request #681 from tritao/dll-api
Added public API visibility macros
2013-08-02 10:55:19 -07:00
Alistair Leslie-Hughes 9a1ddb9f0c Revert "Add class DnsPermission"
This reverts commit c3d818e1ba.

The class is already part of the System assembly.  I mistook the
namespace as the Assembly name.
2013-08-02 19:02:35 +10:00
Alex Rønne Petersen 09219a1459 Merge pull request #722 from JulianHamilton/master
Faster index lookup in RemoveInternal
2013-08-01 22:59:28 -07:00
JulianHamilton d4e750970c Faster index lookup in RemoveInternal 2013-08-02 09:53:17 +09:30
Alex Rønne Petersen 849fb05887 configure: Fix arch selection for s390x. 2013-08-01 23:45:16 +02:00
Miguel de Icaza 6944d48c68 FullAOT fallback: Slightly better random 2013-08-01 09:50:20 -04:00
Zoltan Varga 0721c1fb28 [sdb] Improve some sdb logging messages. 2013-08-01 06:53:52 +02:00
Zoltan Varga d84a165c8e Fix enum->int unbox casts in gsharedvt code. Fixes desk #42463. 2013-08-01 02:17:33 +02:00
Mark Probst 57224013a8 [sgen] Honor --disable-major. 2013-07-31 10:32:00 -07:00
Marek Safar 1e93b054ec Add better diagnostics for invalid properties 2013-07-31 18:00:38 +02:00
Marek Safar 316061e2dc Revert "Add null constant argument type check"
This reverts commit 01697c1f78.
2013-07-31 18:00:38 +02:00
Miguel de Icaza 8a019b64fe Not currently referenced 2013-07-31 09:42:13 -04:00
Marek Safar 01697c1f78 Add null constant argument type check 2013-07-31 13:48:00 +02:00
Marek Safar 8ffb6b1981 Workaround limitation of ancient nunit 2013-07-31 10:55:27 +02:00
Zoltan Varga b6da6da507 Fix some cases of --debug=casts, add tests. 2013-07-31 04:36:50 +02:00
Zoltan Varga c4ced34e1c Avoid tail calls which breaks the test in finalizer-exception.cs. 2013-07-31 04:07:39 +02:00
Zoltan Varga b181fa6d91 Fix a warning. 2013-07-31 03:54:17 +02:00
Zoltan Varga 2a4e1e127b Quote path arguments to opt/llc. Fixes #13603. 2013-07-31 00:26:57 +02:00
Miguel de Icaza b6d1b4492f Class libraries: introduce mobile_static profile, for MonoTouch-like static builds, but not limited to iOS (WinStore, Kumpera did the work). 2013-07-30 16:51:38 -04:00
Marek Safar 81e3a33c79 Write only import section from global namespaces before global attribute sections. Fixes #13523 2013-07-30 20:18:48 +02:00
Alex Rønne Petersen ff9f71c44e Fall back to /proc/cpuinfo when sys/auxv.h is not available.
Diagnosed and suggested by Chris Araman <[email protected]>.
2013-07-30 17:56:41 +02:00
Paolo Molaro 4ed1d92610 Merge pull request #703 from ysw/master
Fixed: send/recv race in tpool-epoll and tpool-kqueue implementations
2013-07-30 08:51:04 -07:00
Marek Safar 77d2f31ac1 Merge pull request #665 from andreas-auerswald/master
Serilaization TimeZoneInfo class
2013-07-30 06:56:54 -07:00
Marek Safar adbe98f12d Add more system assemblies remapping. Fixes #11294 2013-07-30 15:51:30 +02:00
Marek Safar 694d67d582 No type forwarders for 2.0 System.Net 2013-07-30 15:51:29 +02:00
Marek Safar d90decc417 Fixed binary serialization 2013-07-30 15:51:29 +02:00
Marek Safar fa8dc3c5e5 Merge pull request #719 from alesliehughes/master
Last of System.DirectoryServices.ActiveDirectory classes
2013-07-30 03:44:51 -07:00
Marek Safar ebff81b3d5 Fix ObservableCollection binary serialization (based on 828a6a4f45) 2013-07-30 11:14:43 +02:00
Alistair Leslie-Hughes df60ae8379 Added the following classes
ActiveDirectorySite
ActiveDirectorySiteCollection
ActiveDirectorySiteLink
ActiveDirectorySubnet
ActiveDirectorySubnetCollection
Domain
DomainCollection
DomainController
DomainControllerCollection
Forest
GlobalCatalog
GlobalCatalogCollection
ReadOnlySiteCollection
ReadOnlySiteLinkCollection

I couldn't split them up into single commits without breaking the build.
2013-07-30 17:58:54 +10:00
Alistair Leslie-Hughes 5c3ea0d668 Add class ActiveDirectorySchema 2013-07-30 17:58:53 +10:00
Alistair Leslie-Hughes 0b839ce9ea Add class ActiveDirectorySchemaClass, ActiveDirectorySchemaClassCollection, ReadOnlyActiveDirectorySchemaClassCollection 2013-07-30 17:58:52 +10:00
Alistair Leslie-Hughes dd53968422 Add class ActiveDirectorySchemaPropertyCollection, ReadOnlyActiveDirectorySchemaPropertyCollection 2013-07-30 17:58:49 +10:00
Alistair Leslie-Hughes 73caba4f68 Add class ActiveDirectorySchemaProperty 2013-07-30 17:58:48 +10:00
Alistair Leslie-Hughes eea85080a6 Add ForestTrustRelationshipInformation 2013-07-30 17:58:47 +10:00
Alistair Leslie-Hughes 77986a10be Add class ForestTrustDomainInfoCollection 2013-07-30 17:58:44 +10:00
Alistair Leslie-Hughes d673f23cad Add class ForestTrustDomainInformation 2013-07-30 17:58:42 +10:00
Alistair Leslie-Hughes e99ecebd51 Add class ApplicationPartitionCollection 2013-07-30 17:58:41 +10:00
Alistair Leslie-Hughes 76e680de20 Add class ApplicationPartition 2013-07-30 17:58:39 +10:00
Alistair Leslie-Hughes 277758cdab Add class ReadOnlyDirectoryServerCollection 2013-07-30 17:58:37 +10:00
Alistair Leslie-Hughes 0b7e53aa89 Add class DirectoryServerCollection 2013-07-30 17:58:35 +10:00
Alistair Leslie-Hughes d1711cf941 Add class DirectoryServer, ReplicationConnection, ReplicationConnectionCollection 2013-07-30 17:58:34 +10:00
Alistair Leslie-Hughes 0c1a0270bc Add class ReplicationNeighborCollection 2013-07-30 17:58:32 +10:00
Alistair Leslie-Hughes 9aa6a601e4 Add class ReplicationOperationInformation 2013-07-30 17:58:30 +10:00
Alistair Leslie-Hughes 15eed77288 Add class ReplicationOperationCollection 2013-07-30 17:58:27 +10:00
Alistair Leslie-Hughes e1107c0b30 Add class ReplicationOperation 2013-07-30 17:58:26 +10:00
Alistair Leslie-Hughes c83b58b942 Add class DirectoryContext 2013-07-30 17:58:23 +10:00
Alistair Leslie-Hughes b5e4d2de43 Add class ReplicationCursorCollection 2013-07-30 17:58:22 +10:00
Alistair Leslie-Hughes c6914fe1b1 Add class ReplicationCursor 2013-07-30 17:58:21 +10:00
Alistair Leslie-Hughes 65b50fc464 Add class ReplicationFailureCollection 2013-07-30 17:58:18 +10:00
Alistair Leslie-Hughes ce3e843793 Add class ReplicationFailure 2013-07-30 17:58:16 +10:00
Alistair Leslie-Hughes 7101724538 Add class TrustRelationshipInformationCollection 2013-07-30 17:58:15 +10:00
Alistair Leslie-Hughes 4d74cc9c57 Add class TrustRelationshipInformation 2013-07-30 17:58:14 +10:00
Alistair Leslie-Hughes 9543cd8c27 Add class TopLevelNameCollection 2013-07-30 17:58:11 +10:00
Alistair Leslie-Hughes 01536c4acf Add class TopLevelName 2013-07-30 17:58:09 +10:00
Alistair Leslie-Hughes 9fdd8bc9b2 Add delegate SyncUpdateCallback 2013-07-30 17:58:06 +10:00
Alistair Leslie-Hughes 727520fbdd Add class SyncFromAllServersOperationException 2013-07-30 17:58:04 +10:00
Alistair Leslie-Hughes c65b7e486f Add class SyncFromAllServersErrorInformation 2013-07-30 17:58:01 +10:00
Alistair Leslie-Hughes 48b37187ef Add class ActiveDirectorySecurity 2013-07-30 17:57:58 +10:00
Alistair Leslie-Hughes 8165563a4c Add class ActiveDirectoryAuditRule 2013-07-30 17:57:57 +10:00
Alistair Leslie-Hughes c676050454 Add ActiveDirectoryAccessRule 2013-07-30 17:57:57 +10:00
Alistair Leslie-Hughes 0da8d969d3 Add enum ActiveDirectoryRights 2013-07-30 17:57:56 +10:00
Alistair Leslie-Hughes 6a9e457af2 Add enum ActiveDirectorySecurityInheritance 2013-07-30 17:57:56 +10:00
Marek Safar d0cfdc22b4 Add test for bug #13509 2013-07-30 09:52:36 +02:00
Zoltan Varga a7debabcd4 Fix a Mono.Posix test to avoid failing if readlinkat() is not available. 2013-07-30 01:28:19 +02:00
Rodrigo Kumpera 000d442b50 Use a relative symlink. 2013-07-29 14:38:27 -04:00
Marek Safar 02820da410 Correctly import nested non-generic types inside generic containers used within same generic container. Fixes #13549 2013-07-29 18:08:00 +02:00
Marek Safar 90e4ae45ea Clone arguments array before modifying. 2013-07-29 16:28:18 +02:00
Marek Safar 12aa2ee3ca Correctly parse pragma headers. Fixes #13501 2013-07-29 14:36:11 +02:00
Zoltan Varga cd49ed4b02 Revert the 'Emit push/pop LMF code as IR' changes, they seem to break make test-sgen on wrench. 2013-07-29 14:27:11 +02:00
Marek Safar 01ee50f7d6 Merge pull request #718 from alesliehughes/master
More System.DirectoryServices.ActiveDirectory classes + other.
2013-07-29 04:25:40 -07:00
Alistair Leslie-Hughes e906cecb4c Add class ActiveDirectorySchedule 2013-07-29 20:57:18 +10:00
Alistair Leslie-Hughes e8f477f90a Add class ActiveDirectoryRoleCollection 2013-07-29 20:56:41 +10:00
Alistair Leslie-Hughes 0a93160fdc Add class ActiveDirectoryReplicationMetadata 2013-07-29 20:56:04 +10:00
Alistair Leslie-Hughes e338775ecd Add class ActiveDirectoryPartition 2013-07-29 20:55:27 +10:00
Alistair Leslie-Hughes 52300170c7 Add class ActiveDirectoryOperationException 2013-07-29 20:54:43 +10:00
Alistair Leslie-Hughes c732e37828 Add enum TopLevelNameStatus 2013-07-29 20:54:08 +10:00
Alistair Leslie-Hughes a157487ca7 Add enum PropertyTypes 2013-07-29 20:54:02 +10:00
Alistair Leslie-Hughes 8b9d426608 Add enum ForestTrustDomainStatus 2013-07-29 20:53:55 +10:00
Alistair Leslie-Hughes 62cd47529d Add enum ActiveDirectorySyntax 2013-07-29 20:53:42 +10:00
Alistair Leslie-Hughes 374c94876a Add enum ActiveDirectorySiteOptions 2013-07-29 20:53:15 +10:00
Alistair Leslie-Hughes c3d818e1ba Add class DnsPermission 2013-07-29 20:53:03 +10:00
Alistair Leslie-Hughes 2864dd1bad Add missed file TrustType.cs 2013-07-29 20:52:13 +10:00
Alistair Leslie-Hughes ea8e3bfa07 Add enum SchemaClassType 2013-07-29 20:51:49 +10:00
Alistair Leslie-Hughes ad32f65e9b Add missed file AttributeMetadataCollection.cs 2013-07-29 20:51:39 +10:00
Jérémie Laval 036ed3cc63 [System] Implement a first pass of ClientWebSocket. 2013-07-29 00:47:12 -04:00
Jérémie Laval 96935b19e1 [System] Add crude (for now) socket stealing of an HttpWebRequest.
HttpWebRequest is a very tricky piece of code when it comes to its socket, this patch is more like a hack to get something working out of it but it's definitely not the best option.
2013-07-29 00:47:11 -04:00
Jérémie Laval ee7a497ed4 [System] Don't overwrite custom Connection header on HttpWebRequest 2013-07-29 00:47:11 -04:00
Alex Rønne Petersen a1e5ba803f Fix a missing return statement in 16d2bcaa37. 2013-07-29 05:09:03 +02:00
Zoltan Varga 77c1ea1999 Fix overflow checking in newarray with 64 bit array lengths. Fixes part of #13544. 2013-07-29 03:08:12 +02:00
Jonathan Pryor eb13855b98 Merge pull request #701 from steffen-kiess/fix-11778
Fix Syscall.readlink() for non-ascii targets
2013-07-28 07:17:38 -07:00
Marek Safar 0a3b65804b Merge pull request #716 from alesliehughes/master
More System.DirectoryServices.ActiveDirectory classes
2013-07-28 04:24:53 -07:00
Alistair Leslie-Hughes 40546e633d Add class AttributeMetadataCollection 2013-07-28 19:22:00 +10:00
Alistair Leslie-Hughes 0d6d70b299 Add class AttributeMetadata 2013-07-28 19:20:55 +10:00
Steffen Kieß 9b824c31c8 Fix Syscall.readlink() for non-ascii targets
Syscall.readlink() currently returns an integer indicating the number of
bytes in the link. As buf contains chars, this value is useless if the
target contains non-ascii characters.

This commit creates a new overload which uses a byte array instead of a
StringBuilder and rewrites the old overload to return the number of chars
instead.

Fixes #11778 and #9611
2013-07-28 11:11:38 +02:00
Alistair Leslie-Hughes 98dec22c8f Add class ReadOnlyStringCollection 2013-07-28 18:39:04 +10:00
Zoltan Varga 7c89014866 [sdb] Fix round tripping of vtypes with boxed fields. Fixes #12354. 2013-07-28 09:40:32 +02:00
Alistair Leslie-Hughes 9036063250 Add enum TrustDirection.cs 2013-07-28 17:09:03 +10:00
Alistair Leslie-Hughes c1f4854661 Add class ReplicationNeighbor 2013-07-28 17:00:23 +10:00
Alistair Leslie-Hughes ff3f2aca0e Add enum LocatorOptions 2013-07-28 16:51:34 +10:00
Alistair Leslie-Hughes 14ac833855 Add enum ForestMode 2013-07-28 16:37:25 +10:00
Alistair Leslie-Hughes 2cde7a3eca Add enum DomainMode.cs 2013-07-28 16:21:13 +10:00
Alistair Leslie-Hughes fa60f1033b Add enum ActiveDirectoryRole 2013-07-28 16:10:17 +10:00
Zoltan Varga 76890ae042 Add error handling to calls of mono_reflection_create_custom_attr_data_args (). Fixes part of #13435. 2013-07-28 02:52:51 +02:00
Zoltan Varga e2478f0c75 Remove #ifdefs from MonoTrampolineType, to prevent cross-compilation problems where the cross compiler and the target runtime have different defines. Also do a sanity check at aot load time. 2013-07-27 23:55:29 +02:00
Zoltan Varga 02964f35a8 Fix an assert in constrained_gsharedvt_call_setup (), mono_class_interface_offset () returns a -1 on failure, not 0. 2013-07-27 23:55:28 +02:00
Marek Safar dbf1626dc0 Don't hide internal error exception when reported cannot show it. 2013-07-27 08:58:11 +02:00
Marek Safar 69d356081a Add clone for error expression. Fixes #13443 2013-07-26 23:44:40 +02:00
Marek Safar b96c455ef9 Less cascading errors 2013-07-26 23:23:50 +02:00
Marek Safar 439ef67c99 Merge pull request #714 from IDisposable/patch-2
Consistent use of ch to avoid array indexing more than once.
2013-07-26 14:15:39 -07:00
Zoltan Varga f7e2304843 Add more extensive logging to sdb. 2013-07-26 23:04:51 +02:00
Marc Brooks a667b8846d Consistent use of ch to avoid array indexing more than once.
Replace the couple places where the string character array was being indexed twice in the same block instead of the character being cached locally. Cleanup formatting of the switch statements to follow conventions.
MIT licence
2013-07-26 14:06:33 -05:00
Alex Rønne Petersen 78db50f208 Revert the use of mono_binary_search () in support/supportw.c.
This code can't depend on mono/utils and doesn't need the 'fixed'
implementation of bsearch () anyway since keys are never null.
2013-07-26 20:16:24 +02:00
Marek Safar 7a307b7068 Remove CultureInfo.CurrentCulture dependency from ordinal based string::EndsWith. Fixes #13509 2013-07-26 19:48:50 +02:00
Marek Safar 567f714b26 Lift result of enum substraction when operation is lifted due to non-nullable enum type. Fixes #13454 2013-07-26 16:30:39 +02:00
Marek Safar 6ff60ff56e Comment update 2013-07-26 16:30:38 +02:00
Alex Rønne Petersen bd54b2b72d Add a mono_binary_search () function.
This is a replacement for bsearch () because some platforms
have bogus asserts in their implementations.
2013-07-26 16:24:50 +02:00
Alex Rønne Petersen 912074c481 Fix a C# compiler error in the runtime test suite. 2013-07-26 16:23:51 +02:00
Alex Rønne Petersen 41d5852ba0 Fix a warning in appdomain.c introduced by 76e8c8ba0f. 2013-07-26 16:23:41 +02:00
Alex Rønne Petersen 79dfbe5192 Mark inline assembly in mono-hwcap-s390x.c volatile. 2013-07-26 14:26:59 +02:00
Alex Rønne Petersen 84c483ae45 Fix up memory barriers on Windows.
1. The _ReadWriteBarrier intrinsic and friends do not actually issue
   a CPU fence; they are purely for inhibiting the compiler in moving
   loads and stores across the call. So when compiling with MSVC, we
   also need to call MemoryBarrier from Windows.h to issue a fence.
   Note that _ReadWriteBarrier is *not* implied by MemoryBarrier; both
   are *really* needed.
2. On Cygwin, we only support GCC 3.x, so resort to inline assembly to
   issue memory barriers. I would have liked to avoid this, but since
   GCC 3.x doesn't provide __sync_synchronize and we aren't likely to
   upgrade to 4.x anytime soon, this is the workaround for now.
2013-07-26 14:26:55 +02:00
Marek Safar 6b55ac5530 Check promoted value type binary equality operations against null too. Fixes #13497 2013-07-26 13:51:23 +02:00
Marek Safar 4085776a67 Ignore space separators in nowarn arguments. Fixes #13476 2013-07-26 10:30:48 +02:00
Marek Safar d199de6270 Use local variable in commit 482f6c7b55 2013-07-26 09:49:56 +02:00
Marek Safar 482f6c7b55 Show more info for missing indirect assembly references 2013-07-26 09:44:53 +02:00
Zoltan Varga a3c12804f0 Update msvc project files with newly added sgen files. 2013-07-26 03:55:58 +02:00
Zoltan Varga a54d96b37e Add full-aot support for runtime invokes to array Get/Set methods. 2013-07-26 02:01:47 +02:00
Zoltan Varga 180fb9b3f9 Avoid an assert on android where seq points are not generated for wrappers. 2013-07-26 00:36:21 +02:00
Jeffrey Stedfast ff41b501ea Revert "Revert "[xbuild]: Provide a real Microsoft.Portable.CSharp.targets""
This reverts commit a4800b96b2.
2013-07-25 16:19:26 -04:00
Jeffrey Stedfast a4800b96b2 Revert "[xbuild]: Provide a real Microsoft.Portable.CSharp.targets"
This reverts commit 03011419a4.
2013-07-25 14:42:34 -04:00
Jonathan Pryor 365da8343a [System] Fix DnsTest.GetHostByName() test.
Test Case Failures:
	1) MonoTests.System.Net.DnsTest.GetHostByName : Should raise a SocketException (assuming that 'www.unlikely.novell.com' does not exist)
	  at MonoTests.System.Net.DnsTest.GetHostByName () [0x00089] in /Users/jon/Development/mono-HEAD/mono/mcs/class/System/Test/System.Net/DnsTest.cs:212
	  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
	  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /Users/jon/Development/mono-HEAD/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230

As it happens, 'www.unlikely.novell.com' DOES exist:

	$ ping www.unlikely.novell.com
	PING www.unlikely.novell.com (199.101.28.20): 56 data bytes
	64 bytes from 199.101.28.20: icmp_seq=0 ttl=57 time=29.399 ms

Apparently it's due to the "www." prefix; remove "www." and the site
isn't found, as expected:

	$ ping unlikely.novell.com
	ping: cannot resolve unlikely.novell.com: Unknown host

Update DnsTest.noneExistingSite so that the DnsTest.GetHostByName()
test passes.
2013-07-25 11:38:09 -04:00
Jonathan Pryor f9d78260db [System] Support FTP download where PWD starts with '\'.
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=13343

There are some Industrial Automation Hardware devices which return a
'\'-prefixed path to the FTP PWD command, which would break:

	System.UriFormatException: Invalid URI: The hostname could not be parsed.
	  at System.Uri.Parse (UriKind kind, System.String uriString)
	  at System.Uri.ParseUri (UriKind kind)
	  at System.Uri..ctor (System.String uriString, Boolean dontEscape)
	  at System.Uri..ctor (System.String uriString) [0x0000
	  at System.Net.FtpWebRequest.GetRemoteFolderPath (System.Uri uri)
	  at System.Net.FtpWebRequest.CWDAndSetFileName (System.Uri uri)
	  at System.Net.FtpWebRequest.ProcessMethod ()
	  at System.Net.FtpWebRequest.ProcessRequest ()
	There was an error connecting to the FTP Server.

The problem was this statement:

	Uri initial = new Uri ("ftp://dummy-host" + initial_path);

Since the FTP server was returning "\" to the PWD command,
`initial_path` was "\", and the above was equivalent to:

	Uri initial = new Uri (@"ftp://dummy-host\");

This results in the UriFormatException.

The solution is to not assume that `initial_path` will start with '/',
and instead use UriBuilder.
2013-07-25 11:38:09 -04:00
Marek Safar b69d833414 Add *CachePolicy to mobile profile. Fixes #13466 2013-07-25 17:23:26 +02:00
Marek Safar 0497877695 Fixed string null constant conversion to object constant 2013-07-25 17:23:25 +02:00
Marek Safar 1022c50752 Merge pull request #713 from alesliehughes/master
Add Some System.DirectoryServices.ActiveDirectory enums.
2013-07-25 03:55:53 -07:00
Zoltan Varga 75ffa3d011 Merge pull request #711 from spicypixel/hotfix/appdomain-leak
Fix string leak when loading assemblies.
2013-07-25 03:33:56 -07:00
Zoltan Varga e5942fbc7b Merge pull request #712 from spicypixel/hotfix/trampoline-name-leak
Fix generic trampoline string leak.
2013-07-25 03:31:16 -07:00
Zoltan Varga f0a95b71e3 Make some sdb tests more robust so they work again after the latest line number changes. 2013-07-25 07:31:54 +02:00
Aaron Oneal 37502a86d5 Fix additional string leaks when creating tramp_info.
A recent change modified mono_tramp_info_create to duplicate the name string passed to it, but all of the references that were previously duping the name before calling were not updated at the same time. This resulted in several memory leaks. This fix removes the now extra string duplications.
2013-07-24 16:17:26 -07:00
Aaron Oneal ad639e3e99 Fix additional string leaks when creating tramp_info.
A recent change modified mono_tramp_info_create to duplicate the name string passed to it, but all of the references that were previously duping the name before calling were not updated at the same time. This resulted in several memory leaks. This fix removes the now extra string duplications.
2013-07-24 16:13:04 -07:00
Aaron Oneal c931c463c2 Fix generic trampoline string leak.
Generic trampolines were leaking strings because:
1. The mono_arch_create_generic_trampoline function uses mono_get_generic_trampoline_name which does strdup.
2. That string was passed into mono_tramp_info_create which did strdup again.

The fix is to free the string after passing it to mono_tramp_info_create.
2013-07-24 15:47:46 -07:00
Aaron Oneal 76e8c8ba0f Fix string leak when loading assemblies.
The mono_portability_find_file method allocates a new string but the private_file_needs_copying method was not freeing it which resulted in a leaked string when loading assemblies.
2013-07-24 14:13:47 -07:00
Zoltan Varga 2c6dc87269 Continue single stepping if the same line reached in all cases. Factor out some code code. Fixes #13065. 2013-07-24 22:46:31 +02:00
Aaron Oneal 17d1c098bf Add support for value types to mono_object_to_string
The current mono_object_to_string implementation does not support value types. This patch adds support by unboxing value types prior to calling mono_runtime_invoke.
2013-07-24 11:45:10 -07:00
Sebastien Pouliot 7f8fa9a8a5 Allow running System.ServiceModel.Web unit tests on the MOBILE profiles (using the same .sources file) 2013-07-24 08:58:44 -04:00
Alistair Leslie-Hughes 883998ce2d Add enum SyncFromAllServersOptions 2013-07-24 20:20:07 +10:00
Alistair Leslie-Hughes 44690a038a Add enum SyncFromAllServersEvent 2013-07-24 20:19:11 +10:00
Alistair Leslie-Hughes e085ba9991 Add enum SyncFromAllServersErrorCategory 2013-07-24 20:17:56 +10:00
Alistair Leslie-Hughes fdc96789c4 Add enum ReplicationSpan 2013-07-24 20:15:50 +10:00
Alistair Leslie-Hughes 8ba2023998 Add enum ReplicationOperationType 2013-07-24 20:14:51 +10:00
Alistair Leslie-Hughes 7f7a747893 Add enum NotificationStatus 2013-07-24 20:14:01 +10:00
Alistair Leslie-Hughes 5d357d8bde Add enum MinuteOfHour 2013-07-24 20:11:20 +10:00
Alistair Leslie-Hughes 20f022d489 Add enum HourOfDay 2013-07-24 20:08:19 +10:00
Alistair Leslie-Hughes da42adba1d Add enum DirectoryContextType 2013-07-24 20:05:56 +10:00
Alistair Leslie-Hughes 96cf763430 Add enum ActiveDirectoryTransportType. 2013-07-24 20:04:20 +10:00
Marek Safar bb8f31f1a8 Merge pull request #709 from alesliehughes/master
Correct TrySetApartmentstate tests
2013-07-23 23:42:19 -07:00
Alistair Leslie-Hughes ccbc9e3a8f Correct TrySetApartmentstate tests
License: This patch is under the MIT/X11 license.
2013-07-24 14:27:56 +10:00
Zoltan Varga c537883799 Unify the different gsharedvt constrained call jit icalls into one. 2013-07-24 04:13:49 +02:00
Zoltan Varga bc2ace8f20 Avoid calling valuetype methods with a signature which uses an explicit this argument, the JIT passes the implicit argument differently than an explicit one, leading to problems when the method returns another valuetype. 2013-07-24 00:07:29 +02:00
Zoltan Varga d62166b91a Revert "Generate the push/pop LMF code as IR on x86."
This reverts commit 5c85e41f84.

Revert this as it breaks a lot of tests.
2013-07-23 18:08:16 +02:00
Alex Rønne Petersen 0ffa570a3a Merge pull request #697 from linquize/atom-bug
Atom bug
2013-07-23 07:10:49 -07:00
Alex Rønne Petersen 2ee134a8ea Fix the mono-hwcap module to work in the MONO_CROSS_COMPILE case.
The Mini back ends still use the hwcap variables in this case, so we
can't exclude the files they are defined in. Instead, ifdef out the
actual hwcap logic in the MONO_CROSS_COMPILE case.
2013-07-23 15:58:46 +02:00
Sebastien Pouliot 160c8d3015 Do not include tests for AssociatedMetadataTypeTypeDescriptionProvider in MOBILE since the type is not available 2013-07-23 09:03:45 -04:00
Marek Safar 94e78fd162 Fix default content buffer max size 2013-07-23 14:28:45 +02:00
Zoltan Varga a31c107f59 Avoid linking the LLVM runtime codegen libs into a cross-compiler runtime. 2013-07-23 05:30:51 +02:00
Linquize ee48fc81a9 Atom10FeedFormatter should generate subtitle tag for Description property 2013-07-23 08:12:35 +08:00
Marek Safar 53b3d6532a Merge some nrefactory changes 2013-07-22 16:05:06 +02:00
Marek Safar b269b884fa Don't crash when metadata contains private top level type. 2013-07-22 13:44:11 +02:00
Marek Safar 03c3fbe77a Adds async handling to binary:emitbranchable. Fixes #13362 2013-07-22 08:22:41 +02:00
Marek Safar 6a2d71f889 Fixes duplicate error message 2013-07-22 08:22:41 +02:00
Marek Safar 9114f339f9 Add field target for automatic properties 2013-07-22 08:22:40 +02:00
Zoltan Varga 5c85e41f84 Generate the push/pop LMF code as IR on x86. 2013-07-22 03:49:25 +02:00
Zoltan Varga ba79efb593 Fix a problem in emit_pop_lmf (), it no longer needs to change the current bblock. 2013-07-22 03:45:06 +02:00
Zoltan Varga fbdc2a7639 Get rid of the MONO_ARCH_ENABLE_LMF_IR define added by 0938c69a52, use flags in MonoCompile instead. 2013-07-22 03:06:35 +02:00
Rodrigo Kumpera 23ac11d001 Handle property with default values. Fix part of #13336. 2013-07-21 18:22:57 -04:00
Rodrigo Kumpera 89d5527369 Merge pull request #600 from tr8dr/master
Fix for bug 9250 (critical bug for embedded mono)
2013-07-21 12:21:29 -07:00
Cameron Taggart 4579fb3d43 fixes ctaggart/mono#2 cpuid() now compiles in VS 2012 2013-07-21 20:20:50 +02:00
Alex Rønne Petersen 8a9d70fabc Fix a "mixed decls and code" warning. 2013-07-21 19:56:06 +02:00
i59 2719711a51 Added mono-mutex.h & c to libmonoutils.vcxproj
Signed-off-by: Alex Rønne Petersen <[email protected]>
2013-07-21 12:46:00 +02:00
i59 5385752588 mono-mutex.c: Don't include sys/time.h on Windows;
Signed-off-by: Alex Rønne Petersen <[email protected]>
2013-07-21 12:45:33 +02:00
Alex Rønne Petersen 33ffb757d2 Merge pull request #707 from LHCGreg/12752-windows_nul_isredirected
Improve detecting if a handle is a console on Windows.
2013-07-20 23:06:41 -07:00
Alex Rønne Petersen 16d2bcaa37 libgc: Use GCC atomics on ARM.
This is to ensure that if the runtime is compiled for e.g.
ARM v4 or v5, it will use the correct atomics on v6 and v7.
2013-07-21 08:00:58 +02:00
Zoltan Varga 9691284796 Rework the x86 lmf code to use stores instead of pushes, and to be more consistent with the code on other platforms. 2013-07-20 17:32:11 +02:00
Zoltan Varga 0938c69a52 Generate the push/pop LMF code as IR on architectures which support it. Currently only used on amd64. 2013-07-20 16:05:48 +02:00
Marek Safar 5e1c9a8ffe Fix indexer member formating 2013-07-20 11:15:06 +02:00
Marek Safar b166ec8b48 Fixes failing tests 2013-07-20 09:18:58 +02:00
Marek Safar 354027fe22 Schedule internal delay task on default scheduler only. Fixes #13318 2013-07-20 09:18:58 +02:00
Marek Safar 929bdf2f1d Lazy initialization of type parameters expanded interfaces. Fixes #13324 2013-07-20 09:18:57 +02:00
Zoltan Varga f8bf28804c Another attempt at fixing mono_atomic_load_acquire() on MSVC. Fixes #13340. 2013-07-20 06:05:49 +02:00
Alex Rønne Petersen 4e54e9e05f Enable GCC atomics on mips. 2013-07-20 03:03:55 +02:00
Alex Rønne Petersen 920d873ff3 Enable GCC atomics on arm. 2013-07-20 03:03:55 +02:00
Alex Rønne Petersen 93acdb1fcc Enable GCC atomics on ppc and ppc64. 2013-07-20 03:03:55 +02:00
Alex Rønne Petersen 579148e2d6 Enable GCC atomics on x86 and amd64. 2013-07-20 03:03:55 +02:00
Alex Rønne Petersen 778fc600e0 Use GCC atomics when USE_GCC_ATOMIC_OPS is defined.
We still prefer Windows.h functions when compiling for Windows, and
MSVC intrinsics for memory barriers when compiling with MSVC.
2013-07-20 03:03:55 +02:00
Alex Rønne Petersen ca747a3a1c PowerPC build fix in mono-hwcap-ppc. 2013-07-20 03:03:55 +02:00
Alex Rønne Petersen 80b8412a11 configure: Remove obsolete FIXME comment. 2013-07-20 03:03:54 +02:00
Alex Rønne Petersen 27c3736aac Add a MONO_VERBOSE_HWCAP environment variable.
This causes detected hardware features to be printed to stdout.
2013-07-20 03:03:54 +02:00
Alex Rønne Petersen a256df77aa Remove now-unneeded mono_aot_only guard around mono_hwcap_init ().
We no longer use the code manager in any of the hwcap implementations,
so we don't need to disable the hwcap infrastructure in full-aot mode.
2013-07-20 03:03:54 +02:00
Alex Rønne Petersen 24c84e6f31 Remove the JIT-ed CPUID hack from mono-hwcap-x86.
A proper workaround for the 32-bit PIC issue exists: Using xchg to
unclobber EBX which is used by the compiler. This means we can just
use inline assembly to issue the instruction, eliminating the hack
where we JIT-compiled a function to do the CPUID.

This patch also makes it so that we use MSVC's __cpuid intrinsic
on both 32-bit and 64-bit x86 since it's available on both.
2013-07-20 03:03:54 +02:00
Alex Rønne Petersen 08d4170b8c Check for sys/auxv.h and only use it if available. 2013-07-20 03:03:54 +02:00
Alex Rønne Petersen bfefbf3460 Make all Mini back ends use mono-hwcap for CPU feature detection.
Also some related cleanup as a result of this.
2013-07-20 03:03:54 +02:00
Zoltan Varga 5e9f57b92f Remove the async hacks from the gsharedvt code, gsharedvt can now handle async methods, and the infrastructure methods they use. 2013-07-19 20:53:16 +02:00
Zoltan Varga cfb36e518a Share byref arguments in runtime invoke signatures with int&. Remove the restrictions on sharing runtime invoke wrappers of valuetype instance methods, its not longer needed. 2013-07-19 20:52:12 +02:00
Zoltan Varga 50faec743e Properly null terminate strings in mono_dwarf_escape_path (). Fixes #13050. 2013-07-19 17:55:24 +02:00
Sebastien Pouliot 0b09bfc495 Disable TestDisposeOnCallback for MONOTOUCH, the test does not really work as the state is null (and throws in a separate thread) 2013-07-19 09:38:58 -04:00
Zoltan Varga 0de54a335a Avoid calling mono_domain_free () in a cross-compiler, it causes a GC, and the unwind infrastructure is not properly set up when cross-compiling. 2013-07-18 19:52:31 +02:00
Mark Probst be1042379a Simplify emit_write_barrier().
We have two ways of passing in the value - by MonoInst* and by register.
Remove the second and always pass a MonoInst*.
2013-07-18 10:38:24 -07:00
Marek Safar bb6cd4b722 Add nested partial types inside nested partial types to AST. Fixes #13316 2013-07-18 14:42:12 +02:00
Marek Safar 37bad99b16 Nested partial type inside generic class can have base type defined later than current type inflation happens. Fixes #13289 2013-07-18 10:55:38 +02:00
Marek Safar b92bac52bf Don't try to match lifted equality operators on same reference types 2013-07-18 10:55:37 +02:00
Zoltan Varga ff23e80e3e Fix an overflow if MONO_ZERO_LEN_ARRAY is not 0. Fixes #13233. 2013-07-18 05:36:58 +02:00
Alex Rønne Petersen e19fa7926a Add a mono_hwcap_init () call to parse_optimizations ().
This is necessary because we need hardware features to be
detected by the time we call mono_arch_cpu_optimizations ().
2013-07-18 04:17:22 +02:00
Alex Rønne Petersen a3272f7b44 Make mono_hwcap_init () only perform initialization if not already done.
This moves arch-specific initialization to mono_hwcap_arch_init ().
2013-07-18 04:17:22 +02:00
Mark Probst bfd1c73b7d Weaken a race condition in object initialization.
It's still there in a different form, but it's not easy to fix.
2013-07-17 16:26:56 -07:00
Mark Probst 6cd895de20 [sgen] Binary protocol improvements.
Protocol domain unloads, and allow greping for vtable.
2013-07-17 16:26:56 -07:00
Zoltan Varga 645991d363 Add support for constrained calls with one ref parameter to gsharedvt, enought to support AsyncMethodBuilder methods. 2013-07-17 23:54:16 +02:00
Zoltan Varga d1df1729ba Fix a warning. 2013-07-17 23:10:41 +02:00
Zoltan Varga 32be89f0f2 Add support for a simple form of constrained calls to gsharedvt, enough to support AsyncMethodBuilder.Start (). 2013-07-17 23:07:42 +02:00
Zoltan Varga d64dc48f1f Fix a warning. 2013-07-17 23:07:41 +02:00
Rodrigo Kumpera beb9cee5b5 Merge pull request #706 from elijahtaylor/fixdyncode
Fix nacl_dyncode include
2013-07-17 11:09:18 -07:00
Marek Safar 442ccb9676 Merge pull request #705 from alesliehughes/master
Allow TrySetApartmentState to set the same state multiple times.
2013-07-16 23:18:55 -07:00
Alistair Leslie-Hughes 070c3abecf Allow TrySetApartmentState to set the same state multiple times.
License: This patch is under the MIT/X11 license.
2013-07-17 15:22:54 +10:00
Alex Rønne Petersen 8f9a0185b3 mono-hwcap: Add ARM version detection for iOS. 2013-07-17 04:59:23 +02:00
Zoltan Varga 9999ea4a68 Avoid printing an extra newline when printing fp results while tracing. 2013-07-16 23:45:42 +02:00
Mark Probst aef4b77ea7 Fix race conditions in finalizer/weak link staging. 2013-07-16 14:41:40 -07:00
Elijah Taylor 614f3f9049 Fix nacl_dyncode include 2013-07-16 14:14:31 -07:00
Zoltan Varga fc1145ae84 Fix MONO_GC_DEBUG=collect-before-allocs. mono_gc_alloc_obj_nolock () was not called for the majority of allocations. 2013-07-16 18:54:14 +02:00
Zoltan Varga e90505c29f Fix the dependencies of the corlib test suite so the test suite is not rebuilt every time. 2013-07-16 16:17:01 +02:00
Zoltan Varga 1eff479c71 Fix a crash in thread_suspend_func () if the thread has no tls set. 2013-07-16 16:17:01 +02:00
Marek Safar b65deac489 Remove redundant status capturing 2013-07-16 10:13:27 +02:00
Marek Safar 20aaf27c90 Fixes scheduling of non-inlined sychronous continuations. 2013-07-16 10:00:15 +02:00
Zoltan Varga 453654552e Avoid an assert in mono_save_seq_point_info () if no seq points are generated for a method, as in wrappers in android. Hopefully fixes #12995. 2013-07-15 22:15:06 +02:00
Zoltan Varga b652b273af Make wrappers whose signature is static static. 2013-07-15 20:54:09 +02:00
Zoltan Varga 61923824ce Fix synchronized_generic_cache. 2013-07-15 20:34:39 +02:00
Sebastien Pouliot 1c7fc8195f Escape the .file path name generated in the asembly code. clang does not mind, but gcc does 2013-07-15 20:24:05 +02:00
Zoltan Varga 9d719ab6d0 Put the unbox_trampolines table into the .text segment instead of .rodata on mt since it contains code. 2013-07-15 20:09:53 +02:00
Rodrigo Kumpera b7bed40197 [runtime] Add a fallback on the TLS probing code that does a range scan in the pthread structure. 2013-07-15 12:36:16 -04:00
Rodrigo Kumpera 56e1d8fca6 Bump master version to 3.3.0. 2013-07-15 12:36:13 -04:00
Alex Rønne Petersen 846d80f19e Avoid using dmb/dsb/dib instructions on ARM v6.
This only worked by accident before the HAVE_ARMV<N>
changes because __ARM_ARCH_6__ is never defined by
any compiler.
2013-07-15 16:48:59 +02:00
Zoltan Varga 8f99af4eec Remove test-sgen from make check in tests/, it takes too much time. 2013-07-15 16:36:53 +02:00
Zoltan Varga b511f6d141 Fix gshared synchronized wrappers for static methods. 2013-07-15 16:36:25 +02:00
Marek Safar 9694eb7dbd Implement webrequest cancellation. Fixes #13200 2013-07-15 14:12:25 +02:00
Yuriy Solodkyyy 946e182bd9 There was a long discussion on a mailing list about the async-socket problem
in mono. We have previously submitted a patch fixing the problem, however it
was later reverted back as causing deadlocks in some cases.

This patch is very close to the original one, but it takes into account how
tpool-thread operates and avoids deadlocks in this code. (Unfortunately, it
probably makes the code a little less readable, but it works).

So, this patch aims to fix several races in the mono code. These problems are
not relevant for a lot of applications as they can appear only if both read
and write operations are active on the socket. (I.e. RPC style communications
do not trigger the problem).

So, there are two major problems with existing mono code:

a) threadpool.c :: socket_io_add

LeaveCriticalSection (&data->io_lock);
data->modify (data->event_data, fd, state->operation, ievt, is_new);

the problem is that data modify receives ievt and is_new arguments which
may be already outdated due to the concurrent operation on the same socket
(read vs. write).

(If you look at the other part of the operation in
tpool_epoll.c :: tp_epoll_wait updates the epoll settigs under the lock.)

b) The epoll implementation uses the following code to change the epoll
settings in the data->modify handler.

if (epoll_ctl (data->epollfd, epoll_op, fd, &evt) == -1) {
  int err = errno;
  if (epoll_op == EPOLL_CTL_ADD && err == EEXIST) {
    epoll_op = EPOLL_CTL_MOD;
    if (epoll_ctl (data->epollfd, epoll_op, fd, &evt) == -1) {
      g_message ("epoll_ctl(MOD): %d %s", err, g_strerror (err));
    }
  }
}

Here we have the same problem. If concurrent operation updates epoll between
first epoll_ctl and the second epoll_ctl the second will override concurrent
update.

These problems result in missing callbacks on async socket send or receive
completion

The original idea was as simple as just move the data->modify under the lock.
(NOTE: both internal associated list and epoll are updated under the lock in
case of data->wait (see tp_epoll_wait).

As i already noted it causes a problem for tpool_poll.c implementation as it
uses different approach than epoll/kqueue.

This patch still invokes data->modify under the lock, but allow implementation
to release lock at the point where it is appropriate for the given
implementation.

The tpool-poll.c releases lock immediately and thus its behavior remains
unchanged (and it still has a problem of missing send/receive callbacks)

The tpool-epoll/kqueue implementations update their internal structures and
corresponding OS level structures under the locks (as _wait does). This change
makes them reliable in simultaneous socket read/write scenarios.

The following code demonstrates the problem. See readme inside.

https://github.com/ysw/mono-socket-problem/tree/master/SocketTest

NOTE: you need at least 4 coresto reliably reproduce the problem.

It is quite hard to reproduce on OSX, but it is easy reproducible in LINUX.

This commit is licensed under MIT/X11.
2013-07-15 00:16:23 +03:00
Alex Rønne Petersen bf6a13bcb4 Merge pull request #700 from jack-pappas/patch-1
Call 'awk' instead of 'gawk' for cross-platform compatibility.
2013-07-14 13:56:16 -07:00
Atsushi Eno 132a16ca07 Revert "Merge pull request #622 from killabytenow/master"
This reverts commit 392bae3c45, reversing
changes made to 61cd9ee8b6.
2013-07-13 23:56:59 +09:00
Jack Pappas 5e497f0de4 Call 'awk' instead of 'gawk' for cross-platform compatibility.
Call `awk` instead of `gawk` for cross-platform compatibility. Linux systems normally have a symbolic link from `awk` to `gawk`, so there should be no difference in the functionality on those systems.
2013-07-13 07:56:24 -04:00
Alex Rønne Petersen fab9077c17 configure: Also consider __ARM_ARCH_7S__ when checking for ARM v7.
This is defined by Apple's iOS gcc with -arch armv7s.
2013-07-12 20:39:02 +02:00
Jeffrey Stedfast fb2546951c Prevent potential integer overflows in SortedList's binary search midpoint calculation 2013-07-12 14:05:55 -04:00
Marek Safar 238785a3e3 Don't eat exception from timer handler (this is system timer not SWF timer) 2013-07-12 17:44:53 +02:00
Marek Safar 479cfc6980 Prefer user operators over predefined operators for binary enum operations too. Fixes #13202 2013-07-12 16:23:01 +02:00
Marek Safar 035214bee1 Allow async for explicitly implemented interface methods. Fixes #13197 2013-07-12 15:13:42 +02:00
Martin Baulig 5b8a026a06 .spec file, again. 2013-07-12 10:43:53 +02:00
Atsushi Eno 392bae3c45 Merge pull request #622 from killabytenow/master
UTF8 encoding/decoding improvements
2013-07-11 22:17:05 -07:00
Alex Rønne Petersen 61cd9ee8b6 Replace more __ARM_ARCH_... checks with HAVE_ARMV<N>. 2013-07-12 00:03:02 +02:00
Gerardo García Peña 2e6266606a Reverted changes of commit 6ad7f75a37 2013-07-11 23:52:35 +02:00
Gerardo García Peña 22892bc401 Better and more homogeneous error handling. 2013-07-11 23:49:47 +02:00
Alex Rønne Petersen f99f84a429 Add ARM version detection to configure and use the resulting macros.
This defines ARM_VERSION_{5,6,7}. Several of these can be
defined at once. For example ARM_VERSION_5 and ARM_VERSION_6
will both be defined if the target is an ARM v6 CPU.

Previously, we defined HAVE_ARMV6 based on running a program.
This obviously didn't work for cross-compilation. This new
approach does, and detects more cases (v5, v6, v7) than the
previous check (v6).
2013-07-11 22:11:29 +02:00
Alex Rønne Petersen 718ceb8601 Add a mono-hwcap module to utils.
This is an attempt to unify all the ad-hoc CPU feature
detection we do all over the codebase (mostly in Mini
back ends). It will also be used to detect and use SMP
instructions on older ARM devices (we need this info in
utils/, not just in mini/).

Each architecture has a mono-hwcap-$TARGET.h header if
it has specified one. So for example, if you want to
find out if a VFP unit is available on ARM, you would
include mono-hwcap-arm.h and read mono_hwcap_arm_has_vfp.
Remember to guard inclusions of these files with a check
along the lines of:

    #ifdef TARGET_ARM
    #include "mono/utils/mono-hwcap-arm.h"
    /* ... */
    #endif

Architectures that don't specify a file simply get an
empty implementation with no feature variables. This
empty implementation is also used if Mono itself is
compiled as a cross compiler.

Initialization of the mono-hwcap module is done in the
mini_init () function in mini/mini.c, very early in the
startup process. So in general, calling it is not needed.
2013-07-11 20:12:01 +02:00
Alex Rønne Petersen de60d57559 Fix the tests makefile. 2013-07-11 19:56:06 +02:00
Gerardo García Peña 54f3f6ae21 If 'flush' flag is enabled when calling decoding/encoding function, flush buffer when input run out (satisfies test 'SufficientByteArray'). 2013-07-11 18:54:11 +02:00
Alex Rønne Petersen 5de235b376 Fix (hopefully) the last architecture casing inconsistency. 2013-07-11 18:43:22 +02:00
Alex Rønne Petersen 233e828938 Remove an m68k check from configure. 2013-07-11 18:43:21 +02:00
Alex Rønne Petersen 4ce97be553 Fix an s390x check broken by faff4654c8. 2013-07-11 18:43:21 +02:00
Alex Rønne Petersen fa69e58cc6 Add missing TARGET_* defines for SPARC and Itanium. 2013-07-11 18:43:20 +02:00
Martin Baulig cee5749a81 Oops, remove extra %endif in .spec file. 2013-07-10 18:09:14 +02:00
Martin Baulig 1f337115cd [PCL]: Add System.Linq.Expressions type-forwarders. 2013-07-10 17:00:14 +02:00
Martin Baulig 83ed15e19d Add libmonoboehm package to the spec file. 2013-07-10 16:46:53 +02:00
Marek Safar 24f08876a8 Ignore only local Makefile 2013-07-10 16:26:26 +02:00
Gerardo García Peña 9d55be425d An #if has been negated (bugfix) 2013-07-10 11:26:26 +02:00
Alex Rønne Petersen 9645cd9249 Add atomic.c/.h to libmonoutils.vcxproj. 2013-07-10 06:56:52 +02:00
Alex Rønne Petersen faff4654c8 configure: Set TARGET=S390X instead of S390x for consistency. 2013-07-10 06:56:51 +02:00
Alex Rønne Petersen 938d3fa4cb Merge pull request #695 from jack-pappas/patch-4
Fix preprocessor/compiler warning due to unbalanced apostophe (') character
2013-07-09 21:27:40 -07:00
Jack Pappas 208d5648fe Fix preprocessor/compiler warning due to unbalanced apostophe (') character
Reworded the warning message to be displayed when the fall-through case is taken by the preprocessor in `mono_thread_get_stack_bounds()`.
2013-07-09 21:44:19 -04:00
Sebastien Pouliot de00f9d473 Ensure the new FileStream unit tests does not throw in the non-main thread (which nunit-console won't report but other tools, like Touch.Unit, will) 2013-07-09 20:17:37 -04:00
Rodrigo Kumpera 29cb82c254 Use a non rooted symlink and make it point to the right mono. 2013-07-09 18:28:58 -04:00
Rodrigo Kumpera 2e6f26e1a8 [runtime]Revert the fast tls check as we always need it on mach. Add another iOS 7 offset. 2013-07-09 18:22:01 -04:00
Martin Baulig 5fd4d99fe8 Bump libmonosgen version in the .spec file. 2013-07-10 00:05:28 +02:00
Martin Baulig 66fb7ce67e [build]: Use a relative symlink from mono to mono-sgen. 2013-07-09 22:48:19 +02:00
Rodrigo Kumpera 2172220087 Merge pull request #694 from madewokherd/pthreadinclude
Don't include pthread.h when it's not needed.
2013-07-09 13:19:54 -07:00
Alex Rønne Petersen 35aec39910 Fix a #define style issue in mini.c.
Introduced in d401698972.
2013-07-09 22:17:12 +02:00
Alex Rønne Petersen 251c170d3f Only require mono_arch_is_soft_float () to be defined when needed.
Now, only ports that define MONO_ARCH_SOFT_FLOAT_FALLBACK have to
provide this function. For ports that don't define this, a default
function is provided that returns FALSE.
2013-07-09 22:17:12 +02:00
Alex Rønne Petersen f0ae724eaf Add an MSVC branch to MONO_ALWAYS_INLINE. 2013-07-09 22:17:12 +02:00
Rodrigo Kumpera 1a552aefd4 [runtime] On mach-arm don't probe for tls offsets if the runtime was not built with support for fast tls. 2013-07-09 15:49:51 -04:00
Alex Rønne Petersen d401698972 Change the way we do soft float to a fallback mechanism.
MONO_ARCH_SOFT_FLOAT previously meant that a back end was using
soft float unconditionally. It's now MONO_ARCH_SOFT_FLOAT_FALLBACK
and actually indicates whether the back end has a soft float
fallback compiled in - not necessarily that it's used.

A new port function has been added:

    gboolean mono_arch_is_soft_float (void) MONO_INTERNAL;

This function is what actually tells Mini whether the back end is
going to use soft float. If MONO_ARCH_SOFT_FLOAT_FALLBACK is not
defined, it must return FALSE. Otherwise, it should return TRUE or
FALSE depending on whether the back end determines that the hardware
supports floating point. Once mono_arch_init () has been called,
the value returned from this function must be constant for the rest
of the VM's lifetime.

For example, on ARM, we now try to detect VFP via /proc/self/auxv
or /proc/cpuinfo and, if found, return FALSE from the function. This
only applies to Linux and Android as iOS always has VFP.

It's important to note that if the runtime is built with the 'softfp'
or 'hard' ABIs, the soft float fallback is not compiled in, as the
runtime is assumed to only be executed on VFP-capable systems.

Finally, the ARM feature detection code has been moved from the
mono_arch_cpu_optimizations () function to mono_arch_init () so that
FPU detection/initialization is done in one place.
2013-07-09 19:27:57 +02:00
Rodrigo Kumpera 4bed597229 [build] Add dep tracking between Makefile.am.in and Makefile.am when the extension module is disabled. 2013-07-09 13:22:01 -04:00
Rodrigo Kumpera 66ce1e4960 [runtime]On install, symlink mono to the right binary. 2013-07-09 13:22:00 -04:00
Martin Baulig 77dc2ebb66 Fix the spec file; we don't create any .mdb's for the PCL Facades anymore. 2013-07-09 18:37:34 +02:00
Vincent Povirk 6f54e4a2fc Don't include pthread.h when it's not needed.
Fixes mingw-w64 build.

This commit is licensed under MIT/X11.
2013-07-09 11:30:06 -05:00
Alex Rønne Petersen ec3513c3fd Merge pull request #692 from jack-pappas/patch-2
Use the NI_MAXHOST constant to initialize the size of the hostname buffer.
2013-07-09 08:49:58 -07:00
Alex Rønne Petersen 0e67acba31 MIPS: Set USE_MUL to 0 by default (for now).
Setting it to 1 breaks on Loongson CPUs which are the most common
desktop MIPS CPUs supported by e.g. Debian.

This change can be reverted when more investigation is done to find
out why exactly this breaks.

Thanks to Jo Shields (@directhex) for lots of testing and debugging
and spotting this define that turned out to be the culprit.
2013-07-09 16:48:15 +02:00
Gerardo García Peña 04ffec1684 Added new test for checking EncoderFallbackException exception behaviour. 2013-07-09 16:22:37 +02:00
Marek Safar c7e874a982 Merge pull request #693 from jack-pappas/patch-3
Print diagnostic messages for platform detection
2013-07-09 05:42:18 -07:00
Jack Pappas 24ac85a90f Print diagnostic messages for platform detection
Print some diagnostic messages when running 'make' on this file, so it's clear when a platform has not been explicitly specified and we're going to compile with a platform value which has been automatically selected.
2013-07-09 08:35:26 -04:00
Jack Pappas cf1f9138eb Use the NI_MAXHOST constant to initialize the size of the hostname buffer.
The NI_MAXHOST constant should be used when creating the hostname buffer to avoid potential buffer overflows.
2013-07-09 08:12:41 -04:00
Marek Safar 871a24a580 Update test name 2013-07-09 11:14:56 +02:00
Marek Safar 4ce0e7e848 Equality structural comparer needs to do recursive comparisons. Fixes #13110 2013-07-09 11:12:33 +02:00
Marek Safar d7fe5b8a89 Update failing test 2013-07-09 10:47:29 +02:00
Marek Safar 2ab53f953f Update member access completion after e40775d0dc 2013-07-09 10:44:15 +02:00
Rodrigo Kumpera 5dd394c77c [runtime] Don't return success on invalid parameters, raise an exception instead. 2013-07-08 19:47:45 -04:00
Zoltan Varga fb9400fd06 Place the method_addresses symbol into the .text segment on mt, not rodata, since it is actually code. 2013-07-09 00:26:49 +02:00
Rodrigo Kumpera 7ff2a90ad5 Bump mono to 3.1.1 2013-07-08 18:15:01 -04:00
Gerardo García Peña ef205e5df2 Added new test for checking DecoderFallbackException exception behaviour. 2013-07-08 23:31:06 +02:00
Marek Safar 0ec1a19ac7 Update after newline update 2013-07-08 23:11:50 +02:00
Zoltan Varga fc7ceab083 Remove the constraint checks from get_shared_inst (), it is no longer needed since we replace gsharedvt arguments with a vtype now. Fixes #12727. 2013-07-08 22:30:16 +02:00
Zoltan Varga a872ebb614 Make the synchronized wrappers static if the original method was static. Fixes shared-generic-synchronized.2.exe. 2013-07-08 18:24:51 +02:00
Marek Safar 71739e6420 Updated gitignore 2013-07-08 18:13:21 +02:00
Zoltan Varga 9e8e9a6d36 Add a test for #12110. 2013-07-08 17:13:52 +02:00
Marek Safar 75f4e90d4b Revert "Revert "Revert "Merge"""
This reverts commit 5705602f1b.
2013-07-08 17:01:47 +02:00
Marek Safar 5705602f1b Revert "Revert "Merge""
This reverts commit ed1838b4e7.
2013-07-08 17:00:36 +02:00
Marek Safar ed1838b4e7 Revert "Merge"
This reverts commit cbe746f29f.
2013-07-08 16:58:33 +02:00
Marek Safar cbe746f29f Merge 2013-07-08 16:49:13 +02:00
Andreas Auerswald a4edd897b5 Add TimeZoneInfo Serialization
Add serialization for the TimeZoneInfo, TimeZoneInfo.AdjustmentRule and TimeZoneInfo.TransitionTime class. It is compatible with the serialization in .Net for cross serialization/deserialization from Mono to .Net and vice versa.

The code in this commit is released under the terms of the MIT/X11 license.
2013-07-08 10:39:51 +02:00
Marek Safar d51dc95fb9 Add test 2013-07-08 09:17:18 +02:00
Marek Safar 6c54381300 Merge pull request #686 from LHCGreg/12971-IsRedirectedAfterSet
Fix behavior of Console.Is*Redirected.
2013-07-07 23:58:15 -07:00
Zoltan Varga f3cc3bf544 Remove some gcc-ism from mono_atomic_load_acquire/release, so it can be compiled by msvc. 2013-07-07 03:47:36 +02:00
Marek Safar 924c7c5514 Merge pull request #690 from akoeplinger/httpruntime-net45
Added handling of 'targetFramework' attribute to HttpRuntime
2013-07-06 08:44:45 -07:00
Alexander Köplinger 9ccd495f33 Added handling of 'targetFramework' attribute (new in .NET 4.5) to HttpRuntime and HttpRuntimeSection 2013-07-06 16:53:22 +02:00
Marek Safar 5c4b348e80 Fixes build 2013-07-06 12:13:18 +02:00
Marek Safar a5ba6ad54d Merge pull request #687 from miniBill/master
Add IISVersion property to HttpRuntime
2013-07-06 00:16:29 -07:00
Leonardo Taglialegne b9cbade24a Add IISVersion property to HttpRuntime 2013-07-06 09:02:20 +02:00
Greg Najda 94660dd77f Improve detecting if a handle is a console on Windows.
Use GetConsoleMode. If it succeeds (returns non-zero) then the handle is a
console. If it fails (returns zero) then the handle is not a console.

The old check, (GetFileType (handle) == FILE_TYPE_CHAR) assumes that a handle
of type FILE_TYPE_CHAR is a console. This falsely reports a handle directed to
NUL as a console.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=12752
2013-07-06 01:10:13 -04:00
Marek Safar be2e73c7e8 Correctly reset buffer for nested asynchronous file stream writes. Fixes #12777 2013-07-05 18:47:22 +02:00
Marek Safar 2d868f3690 Emit additional sequence points for call entry when needed. Fixes #10782 and similars 2013-07-05 14:15:01 +02:00
Marek Safar e40775d0dc Check expression type of resolved expressions too 2013-07-05 14:15:00 +02:00
Greg Najda b5e9e3a965 Fix behavior of Console.Is*Redirected.
Setting Console.Out to a custom stream should not affect the value
of Console.IsOutputRedirected. This is how Microsoft's implementation
behaves.
2013-07-04 21:06:13 -04:00
Zoltan Varga e779592fb6 Make synchronized wrappers of generic methods generic the same way it is done with delegate invokes. 2013-07-05 01:02:10 +02:00
Zoltan Varga 18a3253788 Avoid passing class pointers to some marshal icalls since its not aot compatible. Fixes #12595. 2013-07-04 23:42:07 +02:00
Marek Safar ca1529df5b Interface members are hidden by class members if a type parameter has an effective base other than object 2013-07-04 14:52:25 +02:00
Alex Rønne Petersen 5a161c7d2d Merge pull request #684 from jack-pappas/patch-7
Clean up preprocessor ifdefs in mono_thread_get_stack_bounds and fix the way thread stack information is retrieved on BSD
2013-07-03 18:03:55 -07:00
Zoltan Varga 9bb552dcc0 Disable a failing System.Core test for mt (#12987). 2013-07-04 01:23:33 +02:00
tritao 4beada2892 Added MONO_API macro to annotate and control visibility of public (exported) APIs.
This is especially useful for Windows since this way there is no need to maintain a separate .def file with exports which is usually out-of-sync with the latest revisions. This could also be used to control visibility with GCC/Clang so there would be no need for MONO_INTERNAL (could be removed while changing the default visibility to hidden).
2013-07-04 00:16:31 +01:00
Jack Pappas d63cedf256 Clean up preprocessor ifdefs in mono_thread_get_stack_bounds and fix the way thread stack information is retrieved on BSD
Cleaned up the heavily-nested preprocessor ifdefs. The code within the function was extremely difficult to understand because of the nested preprocessor directives, which has led to a number of avoidable configuration-related bugs. I've de-nested the ifdefs into a mostly-flat style, where we check for each platform just once and the entirety of the code for that platform falls under that single check. This improves the readability of the code and should fix the configuration-related issues on some platforms.

This code also fixes an issue where thread-stack information wasn't retrieved correctly on BSD-based systems; now the platform is detected correctly and the `pthread_attr_get_np` function used to retrieve the information.

This subsumes pull-request #553, which couldn't be merged with the current master branch due to several changes which were made to the `mono_thread_get_stack_bounds` function since that pull request was submitted. This commit also keeps the OpenBSD-related code for auditing purposes, though it may be removed later if testing shows the "generic" BSD handler works for OpenBSD.
2013-07-03 18:51:53 -04:00
Martin Baulig ffe8719327 [xbuild] / [PCL]: Report an error for unsupported / missing PCL Profiles.
We previously only reported a warning, then failed later with tons of
"The predefined type `System.Object' is not defined or imported", which
was very confusing to the user.

We now distinguish between missing Reference Assemblies (ie. none of
them are installed) and the requested profile not being available, reporting
a meaningful error message.
2013-07-03 21:32:14 +02:00
Zoltan Varga 432633827b Update the Mono LLVM EH Frame reading code to match llvm 5f3329c6d97bb765dc54592367087d9ce8cd0040. 2013-07-03 19:45:26 +02:00
Aaron Bockover 42830053e9 Merge branch 'master' into compiler-hooks 2013-07-03 13:42:28 -04:00
Marek Safar 5d36460657 Update ast visitor 2013-07-03 18:38:18 +02:00
Marek Safar e147105e52 Loading of nested type of missing type needs to create another missing type. Fixes #12989 2013-07-03 17:39:50 +02:00
Alex Rønne Petersen 2c5cf355d8 Rename the POSIX MonoThreadInfo::suspend_semaphore field to begin_suspend_semaphore.
Unbreaks the Linux build.
2013-07-03 16:21:35 +02:00
Rodrigo Kumpera 45d70b772a Revert "Remove a duplicate field in mono-threads.h breaking the build on some systems."
This reverts commit 3600480ced.

This the wrong fix.
2013-07-03 09:33:52 -04:00
Marek Safar 0f05bb55f4 Add await support in to evaluator and REPL 2013-07-03 14:57:41 +02:00
Marek Safar b84ad279fb Better exception for unmarked labels 2013-07-03 14:57:40 +02:00
Alex Rønne Petersen 3600480ced Remove a duplicate field in mono-threads.h breaking the build on some systems. 2013-07-03 14:49:13 +02:00
Zoltan Varga 2bc6e4b228 Fix the implementation of sext.i4/zext.i4 for LLVM. Fixes test_0_regress_11058 () on amd64. 2013-07-03 03:44:44 +02:00
Rodrigo Kumpera 51c7b8892d Add regression tests for the last 3 fixes. 2013-07-02 18:50:36 -04:00
Rodrigo Kumpera e2ac2a9e45 [runtime]Replace suspend safe locks with semaphores as darwin's implementation is not reliable.
* mono-threads.c: On OSX, suspend safe locks are subject to a race condition
	where the lock is unlocked but a thread is blocked waiting for it.

	Semaphores are significantly slower as they always transition to the kernel, but given
	the two affected locks are taken very sporadically, there's nothing to worry here.
2013-07-02 18:42:26 -04:00
Rodrigo Kumpera 576dfed659 Introduce MonoThreadInfo::inside_critical_region to avoid suspending threads that are
dealing with suspended threads. One cannot reliably suspend a thread in the middle
of inspecting another one without the risk of deadlocking.

It usually goes like this:

thread 2:
	suspend thread 3, thread 3 is in the middle of some critical code.

thread 1:
	suspend thread 2 while probing for state of 3;
	try to suspend thread 3, fail to resume since it's on critical code.
2013-07-02 18:42:26 -04:00
Rodrigo Kumpera 2fa83f0a8c Suspend the world when cleaning up a domain as it's unsafe to walk the nursery with the world running. 2013-07-02 18:42:26 -04:00
Martin Baulig 1c4db5e0dd Don't create any .mdb's for the PCL Facade Assemblies. 2013-07-02 23:11:16 +02:00
Zoltan Varga 01cfd32f25 Revert "Make synchronized wrappers of generic methods generic the same way it is done with delegate invokes. Fixes #12727."
This reverts commit afb16275b0.

Revert this as it breaks tests in mini/.
2013-07-02 21:58:17 +02:00
Martin Baulig 219a648fbb Revert "Add configure check for -Wno-tautological-compare when using clang."
This reverts commit 6015a30c7a.
2013-07-02 21:12:51 +02:00
Zoltan Varga afb16275b0 Make synchronized wrappers of generic methods generic the same way it is done with delegate invokes. Fixes #12727. 2013-07-02 20:49:35 +02:00
Martin Baulig 6015a30c7a Add configure check for -Wno-tautological-compare when using clang. 2013-07-02 20:23:57 +02:00
Zoltan Varga 40ef8803ed Put read-only data into a separate section on ios to work around #13005. 2013-07-02 19:07:57 +02:00
Robin Neatherway c26a40eef7 Fix Bug 4811, xbuild should find xml documentation 2013-07-02 17:26:15 +01:00
Martin Baulig 21dacdc57e Merge pull request #664 from symform/xbuild-AssignProjectConfiguration
Renamed target AssignProjectConfigurations to AssignProjectConfiguration...
2013-07-02 07:49:31 -07:00
Sebastien Pouliot abe99070fa Fix type lookup when SSL/TLS is not embedded into System.dll 2013-07-02 08:23:17 -04:00
Marek Safar b888cf5f04 Update csproj files 2013-07-02 13:45:15 +02:00
Alex Rønne Petersen 11ab0e0864 Merge pull request #649 from DavidS/feature/implement-additional-reference-path
xbuild: use the AdditionalReferencePath items to locate assemblies
2013-07-02 03:47:22 -07:00
Alex Rønne Petersen 90c31329db Merge pull request #678 from jack-pappas/patch-5
Allow clang to compile sgen
2013-07-02 03:40:55 -07:00
Alex Rønne Petersen c9afd924fd Merge pull request #572 from jack-pappas/sockets-ipproto
Use IPPROTO_TCP instead of SOL_TCP for cross-platform compatibility.
2013-07-02 03:29:11 -07:00
Alex Rønne Petersen e998301332 Merge pull request #679 from jack-pappas/patch-6
Enable sigaltstack and dtrace on FreeBSD
2013-07-02 02:18:47 -07:00
Marek Safar 6769392581 Do system.object type scan after all references are loaded. Fixes #12991 2013-07-02 10:33:43 +02:00
Jack Pappas fe8d35a89f Enable sigaltstack and dtrace on FreeBSD
Enable the use of sigaltstack and DTrace on FreeBSD. Note that while DTrace is enabled here (with `has_dtrace=yes`), the DTrace hooks will only be compiled into Mono when the FreeBSD kernel has been compiled with DTrace support.
2013-07-01 22:07:03 -04:00
Jack Pappas b8b46cb622 Allow clang to compile sgen
Clang has supported both the `__thread` and `tls_model` attributes (needed to compile the sgen GC) since Clang/LLVM 3.2.

When compiling Mono with clang, the check which sets `with_tls=pthread` causes `mono-sgen` to be compiled anyway, although with some improper configuration which causes it to crash immediately when run.

I also removed the check for clang which was causing the `HAVE_TLS_MODEL_ATTR` symbol not to be defined, as Clang has in fact supported `tls_model` for some time now.

I cloned the Mono repository today, applied these changes, and compiled Mono using the LLVM/Clang 3.4 nightly builds on both the 32- and 64-bit versions of Ubuntu 12.04 LTS. In both cases, Mono compiled without any problems at all. Running `make check` on both boxes yielded no errors, except that the `finalizer-exception.exe` test hung on the x64 build; it's unclear whether or not this is a bug which manifests itself when Mono is built with clang, or if it's just a general bug in Mono. Either way, it doesn't seem to affect anything else.

If there are any issues compiling Mono with clang on other platforms, these "global" checks for clang should still be removed, and new platform-specific checks added where necessary.
2013-07-01 21:58:45 -04:00
Zoltan Varga f35b71e663 Update the LLVM backend to match https://github.com/mono/llvm/commit/7e2ee51f8cad6ddeebdc66d8288cb21685422d42. 2013-07-02 02:28:07 +02:00
Zoltan Varga a5101bb67e Fix a warning. 2013-07-02 02:10:53 +02:00
Zoltan Varga 6f2edb3799 Fix the unwind info for r7 on arm in managed-to-native wrappers. 2013-07-02 00:59:05 +02:00
Sebastien Pouliot 96a8500795 Allow the MONOTOUCH targetr to build its SSL/TLS support right inside System.dll and remove code duplication and non-required code paths. 2013-07-01 16:21:04 -04:00
Aaron Bockover 96eb32c659 mcs: support for compiler plugins
This patch provides a number of "hooks" for
plugins to use at various phases of compilation
inside the main driver.
2013-07-01 16:14:05 -04:00
Marek Safar 31f18d244e Use directly captured this instead of parent reference for nested state machine inside another state machine without anonymous storey. Fixes #12762 2013-07-01 16:51:21 +02:00
Zoltan Varga df5eff3dee Fix the DISABLE_EXECUTABLES build. 2013-07-01 14:16:21 +02:00
Marek Safar a4cac48864 Fix removing of hoisted variable moved to another storey 2013-07-01 12:11:13 +02:00
Marek Safar f2bf4f79c0 Tweak tokenizer get_char. 2013-06-30 18:45:10 +02:00
Zoltan Varga 48a31b46ad Fix more thumb+clang problems. 2013-06-29 20:48:07 +02:00
Michael Hutchinson 879bc0a945 [Mono.Cairo] Don't log warnings during VM shutdown
Else it can explode pretty badly if the Console streams are
finalized before the Cairo objects.
2013-06-29 05:29:11 -04:00
Marek Safar 18b8e63b6f Call correct ApplyToExtraTarget base override. Fixes #12949 2013-06-29 10:40:24 +02:00
Zoltan Varga 92addb6494 Emit the thumb plt trampolines as binary since clang has trouble encoding the assembly. 2013-06-29 02:30:32 +02:00
Rodrigo Kumpera 8e9e2d5d72 Remove debug spew from switch_gc. 2013-06-28 19:48:03 -04:00
Michael Hutchinson 3f9310e59b Merge pull request #642 from Ventero/CleanCopyLocal
[xbuild] Actually delete common files (CopyLocal) during Clean.
2013-06-28 16:22:13 -07:00
Michael Hutchinson 41565a96e1 [Mono.Debugger.Soft] More specific exception when not suspended 2013-06-28 18:20:54 -04:00
Marek Safar a3bbc43141 Fix generated generated code for implicit nullable conversions involving numeric binary promotion 2013-06-28 18:50:12 +02:00
Marek Safar 0f25b95bae Handle unicode line separators when parsing C# files 2013-06-28 18:50:11 +02:00
Rodrigo Kumpera 83c7a43cd0 Fix the build if -j4 is used. 2013-06-28 11:01:50 -04:00
Rodrigo Kumpera 6bc074be2e Cleanup automake warnings. 2013-06-28 11:01:10 -04:00
Rodrigo Kumpera efb46d7321 Another go fighting autohell. 2013-06-28 08:54:14 -04:00
Marek Safar 3b921ff630 Merge pull request #676 from TalAloni/master
Fix for bug 12892 - Path.GetFullPath() may return incorrect relative path under Windows
2013-06-28 02:21:47 -07:00
TalAloni 155a4799fc Fix for bug 12892 - Path.GetFullPath() may return incorrect relative path under Windows 2013-06-28 11:25:54 +03:00
Marek Safar 66eae5262c Recover more from invalid throw statement. Fixes #12889 2013-06-28 10:15:53 +02:00
Marek Safar ecd8c2af65 Better error candidate selection for anonymous methods 2013-06-28 09:30:36 +02:00
Zoltan Varga 7b4289dd3a Add a missing case to mono_patch_info_hash (). 2013-06-28 02:24:52 +02:00
Rodrigo Kumpera 76078ce3a3 Fix the build. 2013-06-27 16:40:40 -04:00
Rodrigo Kumpera 518a6dfcf8 [build]Fix make dist and use a symlink for mono. 2013-06-27 13:00:15 -04:00
Zoltan Varga ae4ba11d66 Remove a pass from the llvm opt pipeline which is not a function pass. 2013-06-27 16:43:03 +02:00
Marek Safar 7e7134d3c6 Block task awaiter until task completes. Fixes #12745 2013-06-27 16:02:07 +02:00
Zoltan Varga 85ebad8a08 Enable dolt on x64/osx. 2013-06-27 15:36:01 +02:00
Zoltan Varga 6e3ea0c529 Disable some warnings when using clang. 2013-06-27 15:36:01 +02:00
Zoltan Varga 111f7c9be6 Fix returning uninitialized memory in get_pid_status_item (). 2013-06-27 15:36:01 +02:00
Marek Safar 48c60315dd Merge pull request #671 from Blewzman/master
Fix SemaphoreSlim
2013-06-27 05:03:19 -07:00
Blewzman 21ca1f54bd Fix SemaphoreSlim Constructor.
Fix https://bugzilla.xamarin.com/show_bug.cgi?id=11598.
2013-06-27 13:33:50 +02:00
Marek Safar d0a14ebbcb Fix NRE on invalid second attribute target 2013-06-27 11:58:43 +02:00
Marek Safar 8cceb0ca63 Fix source file name comments 2013-06-27 11:58:43 +02:00
Martin Baulig cd1f964bf7 Fix commit c31a58b656. 2013-06-27 06:13:50 +02:00
Rodrigo Kumpera 9213adbbf6 Add regression test for #12898. 2013-06-26 20:26:39 -04:00
Rodrigo Kumpera 03f3947739 [verifier] Verify if the catch type is valid under the method context. Fixes BXC #12898. 2013-06-26 20:26:39 -04:00
Sebastien Pouliot 85cb07992d Do not throw, optionally, when facing an unknown OID. Fix mozroot facing an sha384ECDSA signed certificate) 2013-06-26 19:56:14 -04:00
Rodrigo Kumpera 8b787777c4 [sgen] Fix string size calculation in the string alloc wrapper.
It turns out copying the size calculation code from boehm's string wrapper
was a bad idea as it does it incorrectly. The whole runtime calculates it as
"sizeof (MonoString) + (len + 1) * 2" and not  offsetof (MonoString, chars) + (len + 1) * 2".

This difference is 4 bytes on 64bits OSX and causes the world to crash.

It might be that we're over allocating here, but we must follow what everything else
expects us to do.
2013-06-26 18:46:39 -04:00
Rodrigo Kumpera dd384a40f2 [sgen] Fix NALLOC_DEBUG. 2013-06-26 18:46:36 -04:00
Rodrigo Kumpera ef805b5947 Fix build due to boehm->sgen changes. 2013-06-26 16:10:36 -04:00
Rodrigo Kumpera 41aaf1cb99 Mono now defaults to sgen. We now ship a libmonoboehm for those that need it. 2013-06-26 15:27:24 -04:00
Rodrigo Kumpera e0f26cc241 Fix the build. 2013-06-26 14:59:45 -04:00
Zoltan Varga c6c3102d4e Don't make mono_tramp_info_create () assume ownership of its 'name' argument to avoid crashes if the caller passes in a static string. 2013-06-26 19:22:05 +02:00
Zoltan Varga 891a9dec7d Upgrade llvm backend to match https://github.com/mono/llvm/commit/411ba3e5b299e841a9418d7fa18c48a2543248d2. 2013-06-26 19:11:47 +02:00
Zoltan Varga defe72b830 Fix the LLVM JIT. 2013-06-26 19:05:40 +02:00
Zoltan Varga 35a7005b75 Add some comments to the gsharedvt constrained call code. 2013-06-26 17:41:15 +02:00
Rodrigo Kumpera e1b4682594 Merge pull request #670 from LogosBible/nostrndup
Don't try to detect strndup on OS X; it is only available on 10.7+.
2013-06-26 08:00:10 -07:00
Martin Potter 33748f55b1 Don't try to detect strndup on OS X; it is only available on 10.7+. 2013-06-26 07:09:57 -07:00
Marek Safar 0704f1f6db Mutate generic catch block type when needed. Fixes #12799 2013-06-26 15:32:25 +02:00
Marek Safar fcb255425a Fix order of capturing of this inside switch statement. Fixes #12544 2013-06-26 14:43:34 +02:00
Marek Safar 53baacbe84 Update test 2013-06-26 14:43:34 +02:00
Martin Baulig c31a58b656 [System]: Make WebClient report an error when the download aborted prematurely.
On iOS, Stream.Read() returns 0 if you put the device to sleep while the
download is still running.  We now work around that by checking whether the
file has been fully downloaded.  Note that this only works if the server
included a Content-Length header.

Fixes #3924.
2013-06-26 13:31:05 +02:00
Marek Safar f60cfb9d97 Fixes commit 99204b75da 2013-06-26 11:00:22 +02:00
Rodrigo Kumpera 157cb97206 Merge pull request #654 from alesliehughes/master
Implement two functions for supporting IDispatch.
2013-06-25 18:33:53 -07:00
Alistair Leslie-Hughes 3918b28d44 Implement cominterop_ccw_get_ids_of_names
License: This patch is under the MIT/X11 license.
2013-06-26 10:57:31 +10:00
Alistair Leslie-Hughes 817ff9c777 Implement cominterop_ccw_get_type_info_count
License: This patch is under the MIT/X11 license.
2013-06-26 10:57:06 +10:00
Zoltan Varga 1a8d9f1076 Implement proper osx aot tls support for amd64 too. 2013-06-26 01:55:25 +02:00
Martin Baulig e181a1a44d [System]: Partially fix #12393. 2013-06-26 01:35:28 +02:00
Duncan Mak 76aedd7c63 Bump version number to 3.1.0 2013-06-25 18:04:53 -04:00
Marek Safar d7f3e3d81a Update verification data 2013-06-25 22:58:11 +02:00
Marek Safar 99204b75da Fix MethodImplOptions argument checks. Fixes #12638 2013-06-25 22:58:10 +02:00
Marek Safar 7d372985f5 Better crash reporting 2013-06-25 22:58:10 +02:00
Jonathan Pryor ac11abe18d [System.Core/Android] Use correct comparison for timezone ids.
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=7953

The names within zoneinfo.idx are sorted ordinally, which is not the
default string comparison that Array.BinarySearch() uses.
Consequently, many timezones would not be found even though they were
present, including "Pacific/Auckland".

Use the correct string comparison so that names can be found.
2013-06-25 15:51:55 -04:00
Marek Safar e1a6e61389 Merge pull request #669 from LogosBible/Uri_TryCreate
Escape path for absolute Uris created using Uri.TryCreate(string, UriKind, out Uri)
2013-06-25 12:35:06 -07:00
Rodrigo Kumpera 68ddd1d28d [corlib] Fix MethodInfo::ToString () to properly format generic structs. Fixes BXC #12856 2013-06-25 14:22:48 -04:00
Rodrigo Kumpera 70869745d3 [aot]Clean the loader error after calling mini_method_compile to avoid poisoning further calls. 2013-06-25 12:00:20 -04:00
Zoltan Varga 1093d862a6 Add a workaround for an AOT crash in mt. 2013-06-25 17:53:57 +02:00
Grayson Hansard ee352cde75 Escape path for absolute Uris created using Uri.TryCreate(string, UriKind, out bool) 2013-06-25 08:04:14 -07:00
Zoltan Varga 7eba091197 Make the AOT compiler stats output a bit more compact. 2013-06-25 16:52:58 +02:00
Marek Safar 09ca788b4b Rewrite lifted binary operators to match C# spec more closely. Fixes #12608 and about 10 other issues. 2013-06-25 12:38:05 +02:00
Marek Safar 4c93595171 Fix wrong MediaType comparison 2013-06-25 12:38:04 +02:00
Martin Baulig 4429891208 [System]: Stub out System.Net.WebSockets.ClientWebSocket. 2013-06-25 00:18:43 +02:00
Zoltan Varga d0771cfe0d Use --relocation-model=pic for llvm on ios. 2013-06-24 23:09:40 +02:00
Zoltan Varga c84a47aace Fix the build. 2013-06-24 23:08:40 +02:00
Zoltan Varga 36c84f5378 Store AOT method indexes in the Mono EH frame instead of method addresses, since the former needs no relocations. 2013-06-24 22:33:18 +02:00
Martin Baulig 76ed5526bd [System]: Add System.Uri test for bug #12631. 2013-06-24 19:00:48 +02:00
Martin Baulig 3813ebc551 Implement System.Net.Http.WebRequestHandler. 2013-06-24 18:30:40 +02:00
Zoltan Varga 1b5ef4d3df Add a GSHAREDVT_REG_IREG return marshalling convention on ARM. 2013-06-23 23:08:01 +02:00
Zoltan Varga ef14a62348 Emit dummy dwarf line number info for methods without line numbers, like wrappers. 2013-06-22 23:42:39 +02:00
Zoltan Varga ac8695db9f When unloading domains, free dynamic assemblies first, since they have no ref counting, so they can depend on static assemblies which are already freed. Fixes #12786. 2013-06-22 14:49:21 +02:00
Zoltan Varga 2590f7355b Fix register allocation for hw remainder opcodes on armv7s. Fixes #12741. 2013-06-22 13:58:39 +02:00
Rodrigo Kumpera e3866aa092 When compiling gshared code, always use the cached isinst/castclass as it's faster than the cached one. 2013-06-21 20:31:13 -04:00
Rodrigo Kumpera 8ab46155bf Enable managed allocation under gsharing.
We do that by using the NORMAL allocator instead of the SMALL allocator
as sizes might overflow at runtime.

The other change was to fix the GC api to take a MonoClass instead of a
MonoVTable.
2013-06-21 20:31:13 -04:00
Rodrigo Kumpera 611eb97a99 Implement the string allocator for sgen. 2013-06-21 20:31:12 -04:00
Rodrigo Kumpera 9f9ba76d77 [corlib]String.IndexOf is culture aware, while String.Contains is not. 2013-06-21 20:31:12 -04:00
Zoltan Varga 40facc7a01 Fix some bugs in 39471e0c67. 2013-06-22 02:04:41 +02:00
Zoltan Varga 979192a39b Emit dwarf line number info using .file/.loc assembler directives on osx. Fixes #12731. 2013-06-22 01:55:55 +02:00
Sebastien Pouliot c03e4b4667 Add [Serializable] to X509Certificate2 (added in .NET 4.0) [#12457] 2013-06-21 11:56:06 -04:00
Zoltan Varga 39471e0c67 Change the prolog of managed-to-native wrappers so they conform to the ios unwind abi too. 2013-06-21 17:42:03 +02:00
Zoltan Varga dfc957a89c Change the linkage of 'mono_aot_personality' to Internal, otherwise older llvm generates code which cannot be assembled by clang. 2013-06-21 17:42:02 +02:00
Miguel de Icaza 3792aca2ea [compiler docs]: Update to reflect way to debug the parser 2013-06-21 09:52:20 -04:00
Martin Baulig db06719d2a [System]: Make ServicePointManager hash on the proxy as well as uri and use_connect.
This fixes #12640.
2013-06-21 14:25:51 +02:00
Rodrigo Kumpera 3a489de4b8 Remove COM types from mono_defaults and lazily fetch them at runtime.
Added some macros to generate functions to lazily fetch corlib types.
2013-06-20 19:32:47 -04:00
Rodrigo Kumpera 5d123cfa38 Try to make lldb backtracing more reliable. 2013-06-20 16:43:39 -04:00
Michael Hutchinson f61993fb98 [Cairo] Destroy should suppress finalizer 2013-06-20 16:33:39 -04:00
Sebastien Pouliot 313cb0f6be Do not assume AddressList[0] has the address the test wants, that's not always the case, and not what UdpClient should be testing 2013-06-20 15:46:55 -04:00
Michael Hutchinson 8f3522361b [man] document MONO_CAIRO_DEBUG_DISPOSE 2013-06-20 14:06:30 -04:00
Miguel de Icaza 60834f6475 Merge pull request #666 from mhutch/cairo-fix-3.0
Mono.Cairo improvements
2013-06-20 10:56:48 -07:00
Sebastien Pouliot 1065fe4e2b [ios] Ignore the WindowsIdentityTest.SerializeRoundTrip test on iOS (see #12789) 2013-06-20 09:32:35 -04:00
Mark Probst 9f19f605d3 [sgen] Fix a Clang warning. 2013-06-19 17:02:44 -07:00
Rodrigo Kumpera 731080c76b [sdb] Add a test case for returning the right error when a m2n frame has no information. 2013-06-19 19:42:30 -04:00
Michael Hutchinson 86b07679f7 [Mono.Cairo] Use getter methods for returning IDisposables
This makes it a bit clearer that the caller is responsible for
disposing IDisposable objects returned from any method.
2013-06-19 18:37:36 -04:00
Michael Hutchinson 7085bed36e [Mono.Cairo] Clean up Region's Dispose/ctor 2013-06-19 18:37:25 -04:00
Michael Hutchinson 0bb971d513 Make debug more robust 2013-06-19 18:37:14 -04:00
Mike Kestner 9ce4c0db33 Mono.Cairo: Add Region class for cairo_region_* API added in cairo 1.10
The Region type is needed for new API introduced by GDK 3.0.

This requires cairo 1.10 or above.
2013-06-19 18:37:03 -04:00
Bertrand Lorentz 16f4114159 Mono.Cairo: Re-order a few native methods and update API index URL 2013-06-19 18:36:54 -04:00
Bertrand Lorentz befd617058 Mono.Cairo: Fix names of native functions used in PSSurface
It seems cairo_ps_surface_begin_* functions never existed, they were
always named cairo_ps_surface_dsc_begin_*.

Conflicts:
	mcs/class/Mono.Cairo/Mono.Cairo/PSSurface.cs
2013-06-19 18:36:44 -04:00
Cameron White 461fd11d95 Mono.Cairo: Fix rectangles returned by StrokeExtents and FillExtents
The third and fourth parameters of the Rectangle constructor are width
and height, but cairo_stroke_extents and cairo_fill_extents give right
and bottom coordinates.

Signed-off-by: Bertrand Lorentz <[email protected]>

Conflicts:
	mcs/class/Mono.Cairo/Mono.Cairo/Context.cs
2013-06-19 18:36:34 -04:00
Michael Hutchinson d5b2ccb50f [Mono.Cairo] Put some classes in separate files 2013-06-19 18:36:22 -04:00
Michael Hutchinson 7fb3dc1e9f Introduce Mono.Cairo to the concept of reference ownership
Also:
  * improving naming consistency
  * obsolete old/broken stuff
  * clean up tabs/space mix

NOTE: this removes the wrapper caches for Pattern and Surface as
there was no reliable way to clear them.

Conflicts:
	mcs/class/Mono.Cairo/Mono.Cairo/Context.cs
2013-06-19 18:36:11 -04:00
Michael Hutchinson 0d1b8bed31 [Mono.Cairo] Add mechanism to debug missing Dispose calls
by setting a new MONO_CAIRO_DEBUG_DISPOSE env var
2013-06-19 18:36:00 -04:00
Michael Hutchinson abc2892889 [Mono.Cairo] Clean up dispose implementations 2013-06-19 18:35:47 -04:00
Rodrigo Kumpera eba22c4e18 [sdb] When a frame is missing it's context, report absent information instead of invalid frame.
* debugger-agent.c (frame_commands): When a thread is suspended in native code its top frame
	will be missing a context, so it's not possible to inspect it. Instead of reporting an invalid
	frame, it makes more sense to report unavailable data as this is the right clue for clients.
2013-06-19 18:05:28 -04:00
Rolf Bjarne Kvinge cf87ac832f Fix 64bit long alignment on Apple platforms when using Clang.
__alignof__ doesn't work properly with Clang (it returns 8 instead of 4)
in this case.
2013-06-19 00:19:02 +02:00
Zoltan Varga b39c8299da Fix the build. 2013-06-18 01:20:10 +02:00
Zoltan Varga 0b258fe3a2 Fetch TLS offsets from GOT slots when using AOT instead of embedding them in code, since the offsets can be different at runtime. Reorganize the OP_TLS_GET emission code. 2013-06-17 23:55:49 +02:00
Martin Baulig 691a961db7 Fix the .spec file. 2013-06-17 22:32:22 +02:00
Zoltan Varga ef5f374520 Unify the tail call handling code with the normal call handling code a bit. 2013-06-15 22:50:39 +02:00
Rodrigo Kumpera d6c5db881b Mark MonoCMethod (runtime subclass of ConstructorInfo) as serializable. Fixes #12611 2013-06-14 19:04:55 -04:00
Rodrigo Kumpera eff2914eaf Add lldb support to our thread dump capabilities. 2013-06-14 16:49:07 -04:00
Jonathan Pryor 8c7397406e [Mono.Posix] Fix time_t conversions.
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=12686

Mono.Unix.UnixFileSystemInfo.LastWriteTime & co. were hilariously
wrong. Just...hilariously wrong.

	$ ls -l bxc12686.exe
	-rwxr-xr-x  1 jon  staff  4096 Jun 14 15:43 bxc12686.exe

	$ csharp -r:Mono.Posix
	csharp> new Mono.Unix.UnixFileInfo("bxc12686.exe").LastWriteTime;
	6/14/2013 7:43:12 PM

Note: I'm currently in EDT (US Eastern Daylight Time). LastWriteTime
is supposed to be in the local time; it's 4 hours off (which also
happens to be the EDT UTF offset: -4:00).

The fundamental problem was that NativeConvert.FromTimeT() was written
for pre-.NET 2.0 environments, which precluded use (or knowledge of!)
DateTimeKind. Now that .NET 1.1 is no longer supported, and 2.0 is on
the its deathbead (bring on 4.5!), we can be smarter and let DateTime
sanely handle the conversion logic for us.

After the fix:

	$ csharp -r:Mono.Posix
	csharp> new Mono.Unix.UnixFileInfo("bxc12686.exe").LastWriteTime;
	6/14/2013 3:43:12 PM
2013-06-14 16:18:47 -04:00
Zoltan Varga 0418ecd930 Small llvm+gsharedvt changes. 2013-06-14 20:48:06 +02:00
Bassam Tabbara f8a1598eb1 Renamed target AssignProjectConfigurations to AssignProjectConfiguration (without the s) to better match .NET and other target files that call this target directly by name 2013-06-14 09:12:26 -07:00
Rodrigo Kumpera a9083067da Add TLS offset probing to mach-arm in the same way it's done on x86. 2013-06-13 18:50:02 -04:00
Rodrigo Kumpera f8b3c4142f Kill some unused code that is a leftover from when TPL had a managed scheduler. 2013-06-13 18:50:01 -04:00
Rodrigo Kumpera 19bb19f699 Add TLS offset probing to mach-amd64 in the same way it's done on x86. 2013-06-13 18:49:56 -04:00
Rodrigo Kumpera 1fd343ac44 Introduce mono_runtime_init_tls to centralize all of the late runtime TLS initialization.
TLS initialization must be done as early as possible since runtime initialization
might be intermingled with 3rd party code running that sometimes create additional
slots. Those extra TLS slots do interfere with AOT compilation that might see a
different set of offsets when compiling than when running.

The current piece of problem is AOT image loading. If the AOT image is not found,
the dynamic linker in 10.9 will create a TLS slot to hold error data. AOT image
loading is triggered in between the creation of the runtime TLS slots.

Since AOT image loading never happens during compilation, the dynamic linker
would never create the slot and things would otherwise remain working.

The solution is to move all TLS initialization to before any assembly is loaded
and, transitively, AOT image loading.
2013-06-13 17:05:06 -04:00
Rodrigo Kumpera bd8cc934ed Force the runtime on OSX to use a 8Mb stack.
This change doesn't affect any of the cats that default to 8Mb.

We need a significantly big main stack because mcs is implemented
in a recursive fashion and, right now, parts of the corlib test suite
require in excess of 1Mb of stack space to compile.
2013-06-13 17:03:18 -04:00
Zoltan Varga 4bd4f91206 Make the MONO_DISABLE_SHARED_AREA env variable actually work. Fixes #12655. 2013-06-13 17:01:46 +02:00
Zoltan Varga 0ea69f7fcc Fix more warnings/unitialized memory errors. 2013-06-13 17:01:46 +02:00
Atsushi Eno 643e27947b slightly change missing monolite error message.
context: https://twitter.com/k1iguchi/status/345084575019577345
2013-06-13 17:58:34 +09:00
Marek Safar 4abd716296 Merge pull request #662 from cdrnet/fix-biginteger-gcd
[System.Numerics] BigInteger.GCD(0,x) must return abs(x) instead of x
2013-06-12 23:10:31 -07:00
Zoltan Varga 162140f81f Fix a memory overwrite in the gsharedvt jit code. 2013-06-13 00:29:44 +02:00
Christoph Ruegg c9cc1d15cd [System.Numerics] BigInteger.GCD(0,x) must return abs(x) instead of x
According to the docs and matching the behavior in .Net, BigInteger's
GreatestCommonDivisor must return the absolute value of the non-zero
parameter if one of the parameters is zero.

Contains a fix and extended unit tests to cover the case.
2013-06-13 00:06:41 +02:00
Rodrigo Kumpera 616f6d2178 Make test more robust against conservative stack scanning. 2013-06-12 16:16:49 -04:00
Rodrigo Kumpera 93430d8ffe Fix an unitialized variable bug. 2013-06-12 15:55:15 -04:00
Rodrigo Kumpera a228ea49e8 Fix configure.in detection of -Wunused-but-set-variable support under clang. 2013-06-12 15:42:50 -04:00
Rodrigo Kumpera 3be3dc5d16 Perform TLS offset detection during startup.
* mono-suppport-x86.c (mono_mach_init): Probe TLS slots using an
	unlikely canary. Right now only two offsets are known.

	* mono-threads.c (mono_threads_init): Initialize mach from here
	as remote TLS reads are required for mono-threads to work.
2013-06-12 15:42:50 -04:00
Rodrigo Kumpera 5a48d055e2 Move unload_data to the heap and it can outlive the initiator.
The unload thread stores TRUE to the done field when unloading
ends so the initiator can break out of the wait loop in case its
thread doesn't belong to the domain been unloaded but was still
aborted.

This means that the initiator could be gone when the unload
thread stores into the done field. This is now a random write
to the thread stack, which has a high chance of causing crashes.

The solution is to move the unload_data to the heap and refcount
it so we can release it safely.
2013-06-12 15:42:49 -04:00
Zoltan Varga a2dbbdcb58 Use the same code for aot alignment checks in aot-compiler.c and aot-runtime.c. 2013-06-12 20:28:16 +02:00
Gonzalo Paniagua Javier 9b2e52a86a Merge pull request #631 from kebby/master
Fix race condition in System.Net.WebConnectionStream
2013-06-12 11:14:20 -07:00
Tammo 'kb' Hinrichs 170fc3aaf7 Reverted whitespace changes 2013-06-12 19:52:14 +02:00
Zoltan Varga 650d09e319 Revert "Add beginnings of a managed IL disassembler which uses Mono.Cecil. Not yet part of the build."
This reverts commit 535e76a058.

Revert this as we will be using something else.
2013-06-12 18:33:33 +02:00
Zoltan Varga 042b86c024 Add support for nullables to box/unbox in gsharedvt code. 2013-06-12 17:31:41 +02:00
Martin Baulig c016756546 Bump ikvm to 10b8312c8024111780ee382688cd4c8754b1f1ac. 2013-06-12 04:17:37 +02:00
Martin Baulig 27872586c0 Add System.Net to runtime remapping list. 2013-06-12 04:05:35 +02:00
Zoltan Varga 84be0c5e8b Fix the arm build. 2013-06-11 23:33:49 +02:00
Zoltan Varga d902cd4d21 Allow Nullable.Box/Unbox to be compiled as gsharedvt methods. 2013-06-11 23:32:51 +02:00
Rodrigo Kumpera 043b9d2025 Fix new BigInteger().GetHashCode() to not throw. 2013-06-11 15:55:48 -04:00
Rodrigo Kumpera c9b90f8f5b Fix delegate combine when left side has already been invoked. 2013-06-11 15:08:59 -04:00
Rodrigo Kumpera f9dac2ef19 Better handle default value BigInteger. Fixes #11945 2013-06-11 15:08:59 -04:00
Martin Baulig f4a11f47a3 [PCL]: System.Windows and System.Xml.Serialization are no Facade Assemblies. 2013-06-11 20:58:54 +02:00
Zoltan Varga 8dd12eab7f Allow the gsharedvt info/local vars to be register allocated. 2013-06-11 12:01:47 +02:00
Zoltan Varga 42a5695cc8 Optimize generated gsharedvt code: Load information from the gsharedvt_info variable instead of using an rgctx fetch trampoline, use optimized memcpy/bzero methods. 2013-06-11 11:27:06 +02:00
Rodrigo Kumpera 8480455584 Handle shifts by multiple of 32 correctly. Fixes #10887. 2013-06-10 18:31:46 -04:00
Zoltan Varga 31bf37d6d4 Add specialized memcpy/bzero methods to String which are called from gsharedvt code. 2013-06-10 23:10:34 +02:00
Zoltan Varga 23171bc457 Eliminate the use of localloc in gsharedvt methods which have no gsharedvt locals. 2013-06-10 16:09:50 +02:00
Alex Rønne Petersen f605c6478e Fix a couple of warnings in appdomain.c and threads.c. 2013-06-10 12:47:40 +02:00
Zoltan Varga 249c70882f Fix a typo in e5c45f1161. 2013-06-10 11:20:22 +02:00
Zoltan Varga c6c4b895ba Disable gc-altstack.exe on wrench until it is fixed (#12610). 2013-06-09 23:38:36 +02:00
Zoltan Varga adcaf49915 Rework the gsharedvt code to add support for vtypes with arbitrary size. 2013-06-09 23:17:12 +02:00
Marek Safar 2c02ea78df Merge pull request #658 from cdrnet/fix-bad-formatstring-forwarding
Complex.ToString must not pass format string to string.Format
2013-06-09 07:28:32 -07:00
Christoph Ruegg 9f43b4c822 Complex.ToString must not pass format string to string.Format
Type: System.Numerics.Complex

IFormattable format strings and string.Format formats are different
and incompatible. For example, `x.ToString("G")` and `x.ToString(null)`
must be equivalent to `x.ToString()`, but they behave very differently
with string.Format, where the former just returns "G" and the latter
throws an ArgumentNullException.

Changes System.Numerics.Complex.ToString to pass the format string to
double.ToString instead of string.Format.

Adds UnitTests for the changes in new ComplexTest.cs file
2013-06-09 16:19:43 +02:00
Marek Safar e4a5774ba8 Merge pull request #657 from jbevain-forks/thread-safe-cs-code-generator
Prevent multiple threads to populate the keyword table
2013-06-07 14:58:09 -07:00
Jb Evain 53e77d3628 Prevent multiple threads to populate the keyword table 2013-06-07 23:51:47 +02:00
Marek Safar 896975c58e Resolve switch cases without look aheah look-up. Fixes #12583 2013-06-07 18:40:37 +02:00
Sebastien Pouliot 50ab3fadd1 [ios] Remove code path using UseMachineKeyStore since it's not available (and bring extra code inside applications) 2013-06-07 11:10:59 -04:00
Rodrigo Kumpera 7d5f81f04d Fix the desktop test suite. 2013-06-07 10:42:28 -04:00
Martin Baulig 43dff8bd0a [System.ComponentModel.Composition]: Disable RefEmit classes on MonoTouch. 2013-06-07 03:39:55 +02:00
Rodrigo Kumpera e37d1d6103 Add regression test for wrench bug where an appdomain unload would race with shutdown and deadlock. 2013-06-06 19:04:49 -04:00
Rodrigo Kumpera 41a6f4267b Fix race condition between a domain unload and a runtime shutdown.
When a regular runtime shutdown and a domain unload starts mostly in parallel
it might happen that the unload initiator will deadlock waiting on the unload thread
for two reasons:

The unload thread will block when attaching as the runtime believe it's better
to not finish it as it's going down. To fix this we now use mono_thread_attach_full
and force it to be attached.

The unload initiator might deadlock on the wait loop if the shutdown initiator aborts
it instead of the unload thread. This happens if the unload was done from outside of
the domain been teared down.

The fix here is to add a variable that the initiation test on every loop, which is the
right thing to do when using wait loops on handles. This might degrade into a busy
loop when the above race condition happens. It's rare enough that it's not worth
fixing it now.
2013-06-06 19:00:06 -04:00
Rodrigo Kumpera 523648de78 Add mono_thread_attach_full function that can forces a thread to be attached during shutdown.
A thread must be forcibly attached during shutdown if the runtime needs it to run and needs it
to be functional.
2013-06-06 19:00:06 -04:00
Rodrigo Kumpera 1ab5169f9c Make threadpool_clear_queue resistant to concurrent runtime shutdown.
If threadpool_clear_queue is called while the runtime is been shutdown
it might crash since the queue will have been cleaned.

So now we guard against null queues and bail out from appending
the existing jobs if shutdown was initiated.
2013-06-06 19:00:06 -04:00
Rodrigo Kumpera 9b24f8c58b Run more runtime tests on wrench. 2013-06-06 19:00:06 -04:00
Zoltan Varga b31bb33f5f Rename the JIT test classes so they can be run on MT too. 2013-06-06 21:51:36 +02:00
Marek Habersack 07d97ab605 Merge pull request #655 from zgramana/master
Adds MemoryCacheEntryPriorityQueue heap index checks
2013-06-06 09:32:29 -07:00
Zachary Gramana f8d1e1c791 [Caching] Adds some checks for overflow and valid bounds on heap indexes. 2013-06-06 11:41:04 -04:00
Zoltan Varga 2424b67a3b Fix a regression introduced by 6285a057a2: Use the proper value to calculate whenever to do a near call on amd64. Fixes #12541. 2013-06-06 17:23:42 +02:00
Jérémie Laval 04618c1810 [monodoc] Cache assembly loaded with MonoImpInfo. Patch by Aaron Oneal. 2013-06-06 10:51:37 -04:00
Jérémie Laval 9c4ee21732 [monodoc] Use CLEAN_FILES rather than overriding clean-local 2013-06-06 10:51:10 -04:00
Jérémie Laval 05ea21e6e2 [monodoc] Remove .config file when cleaning 2013-06-06 10:39:28 -04:00
Marek Safar fed54ce181 Check class level type parameters used in explicit delegate parameters conversion. Fixes #12568 2013-06-06 14:30:51 +02:00
Marek Safar a4fdd2cf6e Correct encoding transformation flags for type arguments arrays without dynamic element. Fixes #12572 2013-06-06 11:54:20 +02:00
Marek Safar 8d89242edb Keep hoisted this when lambda parent is async lambda. Fixes #12549 2013-06-06 10:51:55 +02:00
Jérémie Laval 58131c2ee0 [mdoc] Pass the right HelpSource as a hint to the renderer to avoid generating system-provided doc. 2013-06-05 19:55:04 -04:00
Rodrigo Kumpera 26da5bd22a Rework the shutdown sequence so two initiations don't race each other.
This fixes a race condition where two threads could perform runtime shutdown
	at the same time and either crash or hang. Now each initiation checks if they
	won and take the proper action in such case.

	A recurring problem was with the debugger, that would hang on shutdown if the
	main thread started shutdown earlier. In this case the agent thread would
	call into mono_threads_set_shutting_down, which in turn would do an ExitThread
	since shutdown was in progress.

	The agent thread would exit without signaling that it did complete, causing
	the main thread to block waiting for it to do so.

	* runtime.c (mono_runtime_shutdown): Rename it to mono_runtime_try_shutdown
	and move threadpool cleanup to here. Some cleanup of the rest of the sequence
	still left to do.

	* icall.c (Environment.Exit): If we fail to start shutdown, just exit
	the thread as someone else will finish the job. We can't suspend because if
	this is called by regular shutdown we would be resumed and return to user code.

	An alternative would be to detach and then suspend. Not sure on the merits.

	* threads.c (mono_thread_manage): If we fail to start shutdown, suspend
	as this is what the winner initiator wants us to do as it must be for
	forced exit.

	* debugger-agent.c (vm_commands): If we fail to start shutdown, return
	from the function and let the agent thread finish and clean up.

	* debugger-agent.c (debugger_thread): VM_EXIT commands now can return
	if shutdown was externaly initiated and in such case we should break
	the main loop and let the agent thread finish.
2013-06-05 19:43:32 -04:00
Rodrigo Kumpera 56c238dd85 Move mono_runtime_set_shutting_down and mono_runtime_is_shutting_down to runtime.c 2013-06-05 19:43:32 -04:00
Rodrigo Kumpera 70720724e1 Don't set shutting_down here as it is now done much earlier in the shutdown sequence. 2013-06-05 19:43:31 -04:00
Rodrigo Kumpera 47a4a0b343 Kill unused func mono_threads_is_shutting_down. 2013-06-05 19:43:31 -04:00
Rodrigo Kumpera 17ea95e5e3 Detach the current thread as soon as possible when mono_gc_pthread_exit is called.
* sgen-gc.c (mono_gc_pthread_exit): Given the current thread is doomed, explicitly
	detach before calling pthread_exit and thus reducing the chance of TLS cleanup issues.
2013-06-05 19:43:31 -04:00
Jérémie Laval b857932b57 [monodoc] Ditto for fetching type node parents of subnodes. 2013-06-05 19:41:07 -04:00
Jérémie Laval ff817916b8 [monodoc] Fix ecma traversal with unattached tree.
Previously the code expected to stop at upper level node using the fact that their element starts with `root:/'. This element is attributed by RootNode when loading a complete tree. However tool like mdoc also loads tree unattached which doesn't create a standard `root:/` top-level root node hence causing the issue.
2013-06-05 19:04:04 -04:00
Martin Baulig a84dee6d10 Build System.Net on mobile (type-forwarders for PCL). 2013-06-05 23:09:08 +02:00
Sebastien Pouliot a60aa8fb41 Exclude the new System.IO.Directory unit test for iOS (no Mono.Unix) 2013-06-05 15:00:33 -04:00
Sebastien Pouliot 7e6673ce04 Add monotouch_corlib.dll.sources (to simply include corlib.dll.sources) since library.make change it's processing with its presence 2013-06-05 13:44:55 -04:00
Rodrigo Kumpera c21b959408 Fix 2.0 build. 2013-06-05 12:44:34 -04:00
Jonathan Pryor 322d5bd38f [System.Core] Add AesCryptoServiceProvider to the MONODROID profile.
Context: System.Security.Cryptography/AesCryptoServiceProvider.cs

Add System.Security.Cryptography.AesCryptoServiceProvider to the
MONODROID profile.

This is needed so that Aes.Create() can work.
2013-06-04 19:40:16 -04:00
Rodrigo Kumpera d6fd0cde05 Make sure the behavior between GetFiles and EnumerateFiles are the same regarding symlinks. Fixes BXC #12461
* Directory.cs: Only ignore symlinks when traversing subdirectories. This is the only case that it can result
	in loops.
2013-06-04 18:49:34 -04:00
Rodrigo Kumpera e16eacc268 Fix a loader leak in mono_class_create_from_typedef. 2013-06-04 17:41:57 -04:00
Sebastien Pouliot f39dc2adcd [ios] Remove the need to use reflection to call the StartWWAN method (by moving it into libmonotouch) 2013-06-04 14:42:44 -04:00
Martin Baulig 25dbd0829e [PCL]: Set Facade Assemblies' version number to "4.0.0.0". 2013-06-04 18:14:53 +02:00
Sebastien Pouliot f9ebdc5615 Re-enable a test for the MOBILE profile (by ensuring the required method is not removed by the linker) 2013-06-04 10:58:40 -04:00
Zoltan Varga 013a38cfba Implement MethodMirror.MakeGenericMethod (). 2013-06-04 08:01:32 +02:00
Jonathan Pryor b1f4d6dfcc [corlib] Don't throw UnauthorizedAccessException from Path.GetTempFileName
The problem is sporadic mdoc test failures on Wrench/OS X:

	Updating: Mono.DocTest.Widget/NestedClass/Double/Triple/Quadruple
	mdoc: System.UnauthorizedAccessException: Access to the path '/var/folders/_g/y9v720_90l914yylrk7m903c0000gn/T/tmp20f71445.tmp' is denied.
	  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
	  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool,System.IO.FileOptions)
	  at System.IO.Path.GetTempFileName () [0x00000] in <filename unknown>:0
	  at Mono.Documentation.MdocFile.UpdateFile (System.String file, System.Action`1 creator) [0x00000] in <filename unknown>:0
	  at Mono.Documentation.MDocUpdater.WriteFile (System.String filename, FileMode mode, System.Action`1 action) [0x00000] in <filename unknown>:0
	  at Mono.Documentation.MDocUpdater.DoUpdateType2 (System.String message, System.Xml.XmlDocument basefile, Mono.Cecil.TypeDefinition type, System.String output, Boolean insertSince) [0x00000] in <filename unknown>:0
	  at Mono.Documentation.MDocUpdater.DoUpdateType (Mono.Cecil.TypeDefinition type, System.String basepath, System.String dest) [0x00000] in <filename unknown>:0
	  at Mono.Documentation.MDocUpdater.DoUpdateAssembly (Mono.Cecil.AssemblyDefinition assembly, System.Xml.XmlElement index_types, System.String source, System.String dest, System.Collections.Generic.HashSet`1 goodfiles) [0x00000] in <filename unknown>:0
	  at Mono.Documentation.MDocUpdater.DoUpdateAssemblies (System.String source, System.String dest) [0x00000] in <filename unknown>:0
	  at Mono.Documentation.MDocUpdater.Run (IEnumerable`1 args) [0x00000] in <filename unknown>:0
	  at Mono.Documentation.MDoc.Run (System.String[] args) [0x00000] in <filename unknown>:0
	  at Mono.Documentation.MDoc.Main (System.String[] args) [0x00000] in <filename unknown>:0

I'm not sure why we're getting UnauthorizedAccessException exceptions,
nor do I particularly care; Path.GetTempFileName() should not be
throwing UnauthorizedAccessException; only IOException is documented:

	http://msdn.microsoft.com/en-us/library/system.io.path.gettempfilename.aspx

Update behavior to skip files that generate
UnauthorizedAccessException, and if we swallow short.MaxValue
exceptions wrap the UnauthorizedAccessException in an IOException so
that we conform to documented exceptional behavior.
2013-06-03 16:57:31 -04:00
Marek Safar c3bd60f842 Merge pull request #653 from LogosBible/TimeSpan-TryParseExact
TimeSpan.TryParseExact should not try to parse null input.
2013-06-03 09:12:47 -07:00
Martin Potter 822184746f TimeSpan.TryParseExact should not try to parse null input.
TimeSpan.TryParseExact would previously throw a NullReferenceException constructing the Parser when it accesses the Length property of the input string. Microsoft's implementation returns false when null is passed as the input string to parse.
2013-06-03 07:32:10 -07:00
Zoltan Varga 1479e24be5 Disable partial sharing for now, it breaks some tests on mt. 2013-06-03 15:56:43 +02:00
Atsushi Eno c72d1b7f0b a few more nunit test modernization. 2013-06-03 17:00:21 +09:00
Atsushi Eno 5aaa3ce00b convert some unit tests to modern style. (not really modern, just killing Assertion!) 2013-06-03 16:51:22 +09:00
Alex Rønne Petersen c01342d8d1 Use /proc/self/auxv for ARM feature detection when possible.
This is generally preferable because it works in QEMU chroots and
the information is significantly easier to process.

We still need to keep the /proc/cpuinfo code around, however, as
Android does not always allow access to /proc/self/auxv...

This patch also enhances the MONO_CPU_ARCH environment variable
to support the various new features we support.
2013-06-03 07:34:43 +02:00
Zoltan Varga db9c0bacde Use MonoBoolean instead of gboolean as an icall return type. 2013-06-03 07:33:18 +02:00
Alex Rønne Petersen f6f485f61c Ignore all cpu-*.h files in mono/mini. 2013-06-02 19:39:24 +02:00
Marek Safar 3fa714d922 Merge pull request #651 from JoostK/patch-1
Shortcut open paren recognition for switch statements
2013-06-02 09:53:20 -07:00
Zoltan Varga 968bd783b6 Fix constrained gsharedvt calls on enums. 2013-06-02 11:49:59 +02:00
Zoltan Varga 4bb1ab7dec [sdb] Clear ss_invoke_addr when stopping single stepping so runtime invokes don't stop single stepping. Fixes #12509. 2013-06-02 06:36:29 +02:00
Zoltan Varga 7a2bc28ed9 Get rid of the NESTED_LIBGC_FLAGS configure variable, use the already existing CPPFLAGS_FOR_LIBGC instead. 2013-06-01 09:18:51 +02:00
Zoltan Varga 5535c13577 Pass some defines in config.h instead of on the command line. 2013-06-01 09:14:29 +02:00
Zoltan Varga 8170bf67b1 [sdb] Keep the exception object alive during debugger suspensions. Fixes #12494. 2013-06-01 07:05:05 +02:00
Joost Koehoorn 9287b2354e Shortcut open parent recognition for switch 2013-06-01 03:48:15 +02:00
Sebastien Pouliot fa6625a8e7 Fix random unit test failures on the bots [#12493] 2013-05-31 15:44:39 -04:00
Jeffrey Stedfast f55bb35832 [Mono.Debugger.Soft] Updated closed/disconnected state when connection is force-closed 2013-05-31 14:27:30 -04:00
Atsushi Eno 6d153cd581 [mkbundle] do not require dos2unix (and sh) on Windows. Skip it if it does not exist. 2013-05-31 18:08:20 +09:00
Rolf Bjarne Kvinge ad85fd1fb5 Make all symbols visible for MonoTouch.
MonoTouch may use a shared libmono with AOT-compiled assemblies,
and the AOT-compiled assemblies need to access internal symbols
from libmono. The monotouch runtime also uses a few internal
API.

So the easiest way to fix both these cases is to make everything
public for MonoTouch. The libmono used will always be in sync
with the AOT-compiled code, so ABI-breakage is not a concern.
2013-05-30 23:48:49 +02:00
Rolf Bjarne Kvinge 142b670dae [System] Don't use System.Reflection.Emit if we're in a FullAOT runtime. 2013-05-30 23:48:48 +02:00
Rodrigo Kumpera 9015a7f609 Improve the reliability and error reporting of the TPL Dataflow test suite. 2013-05-30 15:43:25 -04:00
Zoltan Varga dbbb5ff89b Revert "Pass more defines in config.h instead of on the command line. Pass libgc defines to libgc only."
This reverts commit cff0ecb816.

Revert this as boehm-gc.c depends on the libgc defines.
2013-05-30 18:11:47 +02:00
Zoltan Varga cff0ecb816 Pass more defines in config.h instead of on the command line. Pass libgc defines to libgc only. 2013-05-30 10:59:05 +02:00
Zoltan Varga ff166ea8dd Disable locking around archive accesses in libtool on darwin, it doesn't seem to be necessary and it slows down parallel builds. 2013-05-30 07:58:27 +02:00
Zoltan Varga 8a7e0c825e Enable dolt on ios builds. 2013-05-30 07:57:04 +02:00
Zoltan Varga 655afb183b Remove the #ifdef HAVE_SGEN_GC dependency from main.c by using a separate main-sgen.c file for sgen. 2013-05-30 05:15:18 +02:00
Zoltan Varga dbc3713dcd Fix a warning. 2013-05-30 05:13:43 +02:00
Zoltan Varga c43c9f5b26 Avoid putting a duplicate -arch i386 into CPPFLAGS, it prevents ccache from working. 2013-05-30 05:13:33 +02:00
Zoltan Varga edd0b3a153 Use gsharedvt for some generic instances in full-aot mode to avoid code blowup. 2013-05-30 03:34:56 +02:00
Zoltan Varga fa885472fa Move the adding of unbox trampolines to mini_add_method_trampoline (). 2013-05-30 02:48:52 +02:00
Sebastien Pouliot 8bb86180f6 [ios] Allow some level of configuration when CryptoConfig is used (as a last resort fallback) 2013-05-29 16:52:50 -04:00
Sebastien Pouliot 3be80a930d Remove MOBILE defines inside X509Chain tests 2013-05-29 14:55:08 -04:00
Jonathan Pryor 574dbc8ec4 [mdoc] Fix unit tests.
3d3fe6af (among other commits...) "broke" the `mdoc` unit tests, as it
did two things:

 1. It added a new codepath calling string.Format(), thus introducing
    a new set of exceptions.
 2. Due to an `mdoc` bug, (1) resulted in a stack overflow on OS X.

(1) demonstrates that the mdoc unit tests might be too brittle.

(2) was fixed in 04bf9ad.

The problem with 04bf9ad, though, is that it resulted in a gigantic
~212MB diff, because while the recursion was "fixed", we could still
process the same method multiple times, resulting in _lots_ of
duplication, e.g. System.String.get_Chars() would be repeated hundreds
of times for a given exception.

Improve the source reporting mechanism so that instead of a
List<MemberReference> we use a HashSet<MemberReference>, listing each
source location _once_ instead of repeating them.

The _formatting_ of the <exception/> element is also changed so that
each source location is on its own line, making it easier to read and
review the locations.
2013-05-29 12:03:52 -04:00
Zoltan Varga 4e7ae2dd80 Use a different function for emitting write barriers for gsharedvt types which can handle reference types too. Fixes #12429. 2013-05-29 16:26:56 +02:00
Zoltan Varga 4ffdf1cd94 Avoid calling alloc wrappers directly, sgen does some initialization when the wrapper method is created. 2013-05-29 16:26:02 +02:00
Jonathan Pryor 9f216160f8 [mdoc] Fix export-msxdoc regression, updated expected output.
Commit 44b2b4a8 completely broke `mdoc export-msxdoc` because
EcmaDoc.GetCref() was removed. Expected:

	<member name="C:Mono.DocTest.DocAttribute(System.String)">

Actual:

	<member name="Mono.DocTest.DocAttribute..ctor">

i.e. useless.

The fix: bring back GetCref(), this time within monodocs2slashdoc.cs.

Commit 0ad6ffde changed the HTML-generating stylesheet and moved some
@id attributes around, thus breaking the mdoc unit tests (expected
output likewise changed). Fix the monodoc XSLTs so that we don't emit
id="" attributes (id's with no value).

Update mdoc's expected output so that tests pass[*].

[*]: tests will NOT actually pass, as 04bf9add -- attempted fix for
an OS X stackoverflow caused by 3d3fe6af -- results in a gigantic
216MB diff because String.get_Chars() is repeated over and over and
over... The updated expected output in this commit is the "ideal"
update needed after locally reverting 3d3fe6af and 04bf9add.)
2013-05-29 06:52:53 -04:00
Marek Safar 773aaf7ac7 Enable fixed tests 2013-05-29 11:04:17 +02:00
Marek Safar 02a3f41adf Run YieldAwaitable tests on default synchronization context. Fixes #12446 2013-05-29 11:02:53 +02:00
Zoltan Varga dcfebb9e96 Revert "Use gsharedvt for some generic instances in full-aot mode to avoid code blowup."
This reverts commit 9f36e10b1b.

Revert this as it breaks some mt tests.
2013-05-29 10:51:12 +02:00
Zoltan Varga 9f36e10b1b Use gsharedvt for some generic instances in full-aot mode to avoid code blowup. 2013-05-29 10:12:37 +02:00
Zoltan Varga 33746303e9 Add support for constrained calls to Object.Equals to gsharedvt. 2013-05-29 09:53:42 +02:00
Zoltan Varga 8da1402c8b Disable some YieldAwaitable tests on MT. 2013-05-29 06:41:23 +02:00
Sebastien Pouliot 4bc0c9dfe8 Change code to more linker friendly ways to create MD5 and X509Chain and allow, for iOS, the creation of X509Chain without requiring CryptoConfig 2013-05-28 21:09:06 -04:00
Sebastien Pouliot 48961ea967 Refactor the Mono.Security code to use more linker friendly ways to create hash algorithms 2013-05-28 20:12:15 -04:00
Rodrigo Kumpera 04bf9add68 Avoid direct recursion when computing the exceptions of a method.
* exceptions.cs: When Filling the exceptions of a method make sure
	to not recurse on the methods itself as this can lead to a stackoverflow.
2013-05-28 20:05:37 -04:00
Sebastien Pouliot 5c9cedd328 [ios] Add, as a last resort, the creation of the hash based on it's type name. Needed for some API (which provides it) and the associated unit tests 2013-05-28 19:35:27 -04:00
Marek Safar ec5a3f09b3 Update failing mobile test 2013-05-28 20:34:53 +02:00
Rodrigo Kumpera 7745e11b76 Fix 2.0 corlib test suite. 2013-05-28 14:00:09 -04:00
Rodrigo Kumpera 10bcb9cf69 Older versions of iOS don't have pthread_mutexattr_setpolicy_np so dynamically look up the function and fallback on failure. Fixes #12394 2013-05-28 13:40:29 -04:00
Zoltan Varga 8f1ba93ba3 Fix support for dynamic methods in collect_method_images (). Fixes #12412. 2013-05-28 18:15:19 +02:00
Marek Safar 8cabf341f7 Keep cancellation token for all running requests. Fixes #12349 2013-05-28 11:13:24 +02:00
Marek Safar 50bf3e8d59 Updated CryptoConvert.cs path 2013-05-28 11:13:24 +02:00
Marek Safar 06390644e6 Resolve unreachable block with correct flow settings. Fixes #12361 2013-05-28 11:13:23 +02:00
Zoltan Varga 437c3af12e Fix a reading of invalid memory error introduced by 3f3092b477. 2013-05-28 04:23:33 +02:00
Marek Habersack ada85c64ad Merge pull request #647 from knocte/aspnet_lru
[WebConfigurationManager] Fix memleak by using a LruCache (BXC#5598)
2013-05-27 13:36:05 -07:00
Andres G. Aragoneses 7fe883d9c5 [System.Web] Improve locking logic for WebConfigManager's sectionCache
As suggested by Marek Habersack, instead of catching
SynchronizationLockException in the case that the lock wasn't
acquired, we now have a boolean that indicates if it was
acquired or not, so we can act on it on the finally{} block.
2013-05-27 21:27:33 +01:00
Martin Baulig 7cf71acde0 Bump ikvm to f66ae58 to recognize PCL Facade Assemblies. 2013-05-27 20:03:31 +02:00
Martin Baulig aa3f9d85bb [xbuild]: Remove duplicates from 'TargetFrameworkDirectory'. 2013-05-27 17:41:13 +02:00
Martin Baulig eda8f9416a [WebConnection]: Fix incorrect end-of-stream with null callback.
This fixes #12355/#12395/#5904.

When EndRead() is called with a null "inner" IAsyncResult, then
we should not consider this as an end-of-stream condition.

This happens sometimes when using SSL and chunked encoding.
2013-05-27 15:52:13 +02:00
David Schmitt 12464b5706 xbuild: use the AdditionalReferencePath items to locate assemblies
This is a little underdocumented feature of MSBuild. Items with the name
"AdditionalReferencePath" get searched for referenced assemblies. This helps
with some scenarios, e.g. when the assembly has to be references from a central
location.
2013-05-27 12:51:30 +02:00
Marek Safar c48573e1c5 Add more argument checks to RegisterWaitForSingleObject 2013-05-25 10:23:12 +02:00
Marek Safar a53f8f558e Merge pull request #648 from DavidKarlas/defaultDependcyObject
DependencyObject default value
2013-05-24 23:57:57 -07:00
Atsushi Eno 54d8ffe881 forgot to add new source to .sources. 2013-05-25 08:02:46 +09:00
Martin Baulig 5f23d60b1d [xbuild]: Fix conditions for <ItemGroup> inside <Target>. 2013-05-25 00:42:48 +02:00
Atsushi Eno 9aff2b49e8 Use IKVM.Reflection to fully avoid reflection+mscorlib issues. 2013-05-25 07:09:05 +09:00
Zoltan Varga bab31bcb58 Merge some Nacl/ARM changes from https://github.com/igotti-google/mono/commit/65d8d68e8c81cf6adb1076de7a9425c84cab86a3. 2013-05-24 23:41:50 +02:00
Martin Baulig a6d12819a7 [PCL]: Add missing type-forwarder for System.String to System.Runtime. 2013-05-24 23:21:10 +02:00
Rodrigo Kumpera 9151d0e236 [sdb] Fix race condition on test program that would cause a hang when running on wrench. 2013-05-24 15:48:09 -04:00
Atsushi Eno 33da4c0957 the previous change was #fail, the string constants were regarded as preprocessor directives. 2013-05-25 04:31:19 +09:00
Atsushi Eno 1d775b6bd7 add include-less build for XamAndroid. 2013-05-25 04:28:19 +09:00
Miguel de Icaza c1c9dbb538 Put back the tests, we were trying to track down the regressions 2013-05-24 15:20:50 -04:00
Miguel de Icaza f918d5bd4e Document --break with generic methods 2013-05-24 15:18:57 -04:00
David Karlaš 91d3a70571 DependencyProperty of DependencyObject was trowing KeyNotFound exception instead of default value 2013-05-24 20:53:17 +02:00
Martin Baulig 7d92f4652d [System.Drawing]: Disable more broken tests. 2013-05-24 20:16:29 +02:00
Sebastien Pouliot 01c8c99e7b Refactor the [D|R]SACryptoServiceProvider constructors so it's possible for the linker to remove the dependency on the XML parser when CspParameters are not used (saves 42KB) 2013-05-24 10:31:41 -04:00
Atsushi Eno 2e22b9b666 Add some missing MSBuild project model evaluation members. 2013-05-24 11:54:40 +09:00
Atsushi Eno bf17a43b31 Add missing MSBuild Framework interface. 2013-05-24 11:24:26 +09:00
Martin Baulig d97c1a2236 [System.Drawing]: Disable broken tests. 2013-05-24 02:28:24 +02:00
Martin Baulig 5acf92937c Add Microsoft.Portable.CSharp.targets to the .spec file. 2013-05-24 01:59:10 +02:00
Martin Baulig 4d0df722e9 [xbuild]: Implicitly expand PCL2 facade assemblies.
* GetReferenceAssemblyPaths: return the reference assemblies for the
  requested PCL profile.

* ResolveAssemblyReference: always include System.Runtime as a
  dependency; the .targets check for this to determine whether
  we're a PCL2 library.
2013-05-23 21:32:24 +02:00
Martin Baulig 03011419a4 [xbuild]: Provide a real Microsoft.Portable.CSharp.targets 2013-05-23 21:32:24 +02:00
Martin Baulig 2f9542fb1c [xbuild]: Fix reference assembly path. 2013-05-23 21:32:23 +02:00
Sebastien Pouliot 5a00ed32ae Share a bit more code wrt OID/hash so X.509 CRL can use any of them (like the certificates) and make the code a little bit more linker friendly 2013-05-23 15:19:29 -04:00
Martin Baulig 98cdb70bb6 Ooops, variance is not available in 3.5. 2013-05-23 21:16:59 +02:00
Martin Baulig 885e69fc3c [make]: Build Facade assemblies in mcs/class/lib/$(PROFILE)/Facades. 2013-05-23 21:04:32 +02:00
Martin Baulig 934a44f286 [xbuild]: Fix task batching for <ItemGroup> inside <Target>.
This fixes

	<Target Name="Simple">
		<ItemGroup>
			<Foo Include="A;B" />
			<All Include="%(Foo.Identity)" />
		</ItemGroup>
		<Message Text="ALL: @(All)" />
	</Target>
2013-05-23 21:03:26 +02:00
Martin Baulig 091929ac27 [xbuild]: Fix 'make test'. 2013-05-23 21:02:37 +02:00
Rodrigo Kumpera d4018a0b34 Add the hostname into the exception message when doing dns lookups. 2013-05-23 11:24:15 -04:00
Gerardo García Peña 72ed65fdd8 Added counter mode in InternalGetChars.
Added methods InternalGetCharsCount and InternalGetCharsEncode for improving readability.
Accept zero-length input buffer in 'InternalGetBytesDecode/Count' for processing void char buffers.
Removed a redundant 'unsafe' keyword.
2013-05-23 17:12:02 +02:00
Gerardo García Peña bf9b74f05a bugfix: accept zero-length input buffer in 'InternalGetChars' for building void strings. 2013-05-23 15:57:38 +02:00
Gerardo García Peña c22ce0e053 Reverted all changes in 'System.Text/Encoding.cs' and disabled the emitIdentifier feature in the new 'System.Text/UTF8Encoding.cs'. 2013-05-23 15:43:27 +02:00
Gerardo García Peña 34aa103a3c Added counter mode in InternalGetBytes.
Added methods InternalGetBytesCount and InternalGetBytesEncode for improving readability.
2013-05-23 15:39:12 +02:00
Gerardo García Peña ade6a99d9e By default return an 'UTF8Unmarked' object. Removed unused 'utf8EncodingWithMarkers' attribute. 2013-05-23 12:53:15 +02:00
Marek Safar 8b7cf63dd3 Implement Task::AsyncWaitHandle. Fixes #12342 2013-05-23 11:11:25 +02:00
Gerardo García Peña 6ad7f75a37 in test SufficientByteArray() when !NET_2_0 unexpected exceptions should be forwarded. 2013-05-23 08:43:13 +02:00
Zoltan Varga b07771c53a Avoid the class name check in is_async_state_machine_class (), csc seems to generate a different name. Fixes #12329. 2013-05-22 21:11:02 +02:00
Duncan Mak 21e670b850 Update to 3.0.12 2013-05-22 13:58:06 -04:00
Martin Baulig 42688558b1 [xbuild]: Rename @(_ResolvedDependencyFiles) -> @(ReferenceDependencyPaths) 2013-05-22 19:52:21 +02:00
Martin Baulig 98e84304c5 [xbuild]: Add empty "BuildOnlySettings" target. 2013-05-22 19:51:00 +02:00
Gerardo García Peña ce246f6a5b - improved flush handling in encoder/decoder for fixing regression bug #565129
- fixed some checks to satisfy test 'ConvertZeroCharacters'.
2013-05-22 18:53:13 +02:00
Alex Rønne Petersen 6df55cf92a Fix the check in bf9c7dcc5e.
The C preprocessor sucks.
2013-05-22 07:49:03 +03:00
Miguel de Icaza aaf6c21139 Merge pull request #629 from pruiz/syswebrouting-fixes2
[Sys.Web.Routing] Refactor of Route's GetVirtualPath implementation based on System.Web.Http.Routing code in order to fix a few incompatibilities between our implementation and the one at ms.net
2013-05-21 19:36:02 -07:00
Miguel de Icaza 4958a276a6 Merge pull request #644 from knocte/connstrings
[System.Configuration] Remove a misleading MonoTODO in ConnectionStrings
2013-05-21 19:24:36 -07:00
Zoltan Varga f8e4a2b276 Enable partial sharing only in full-aot mode, it slows done generics heavy code like fsharp too much (see the fsharp test in the GC benchmark module). 2013-05-21 23:09:15 +02:00
Sebastien Pouliot b9ca2e5f41 Add support for certificates using RIPEMD160 and add test for them and SHA256/512. Fix bug #11703 2013-05-21 16:33:43 -04:00
Martin Baulig 1fb5b0481b Look for facade assemblies in $(mono_libdir)/4.5/Facades/ 2013-05-21 21:26:41 +02:00
Sebastien Pouliot 067f089518 Additional crypto support needs to be in mscorlib.dll (not System.dll) to be usable for X509Certificate and PKCS#1 2013-05-21 14:59:08 -04:00
Martin Baulig f596da9f38 [xbuild]: Generate [TargetFramework] attribute. 2013-05-21 18:33:30 +02:00
Sebastien Pouliot 4d08e81840 Point sources to Mono.Security versions of the files= (duplicates were removed) 2013-05-21 09:53:07 -04:00
Sebastien Pouliot b6f454e349 Remove duplicate files (cvs-time artefact) 2013-05-21 09:53:06 -04:00
Gerardo García Peña 062dfd03eb Accept a null input/output buffer in InternalGetBytes()/InternalGetChars() if its length is zero.
Throw ArgumentException in GetBytes()/GetChars() if no enough output buffer space.
2013-05-21 15:51:18 +02:00
Gerardo García Peña d624211706 MS.NET implementation returns 1000 not 625. 2013-05-21 13:43:23 +02:00
Gerardo García Peña b87ca2196c bugfixed returned charsUsed counter 2013-05-21 13:41:13 +02:00
Gerardo García Peña 05643bef22 MS.NET implementation returns 1000 not 625. 2013-05-21 12:26:49 +02:00
Marek Safar 46286930e7 Merge pull request #645 from knocte/nitpicks
Fix couple of nitpicks in mono-service and HttpWebRequest-Tests
2013-05-21 00:13:24 -07:00
Jonathan Pryor 377f6a6ce8 [Mono.Posix] Fix INTL.DLL CallingConvention.
INTL.DLL on Windows uses the `__cdecl` calling convention.

Let's not corrupt the stack on Windows...
2013-05-20 20:35:47 -04:00
Andres G. Aragoneses 7c6681afd0 [Sys.Configuration] Remove unneeded NET_2_0 ifdefs 2013-05-20 17:55:09 +01:00
Andres G. Aragoneses b0801115fc [Sys.Configuration] Remove a misleading MonoTODO in ConnectionStrings
The ConnectionStrings property of System.Configuration.ConfigurationManager
works perfectly, so this MonoTODO is not needed.

A unit test is also added to demonstrate that it's fully working and to
prevent it failing in the future.
2013-05-20 17:36:24 +01:00
Alex Rønne Petersen bf9c7dcc5e Add a sanity check to catch things like -DARM_FPU_NONE -DARM_FPU_VFP. 2013-05-20 15:37:06 +02:00
Ventero b04a0e6460 [xbuild] Actually delete common files (CopyLocal) during Clean.
The common files that should be deleted during Clean (see 4c37deb)
weren't actually written to the CleanFile, as they were stored in
FileWrites after it was already used to create CombinedFileWrites.
2013-05-19 16:54:59 +02:00
Alex Rønne Petersen 67142699ca Generalize the ARM pattern match in configure.
The previous one would only work if the 'vendor'
part of the target triple equals "unknown" which
is a bit of an arbitrary limitation.
2013-05-18 00:10:11 +02:00
Alex Rønne Petersen f956a83b65 Always define __ARM_EABI__ when compiling for ARM.
We don't actually support any non-AAPCS ABI.
2013-05-18 00:04:34 +02:00
Alex Rønne Petersen 0b372c8338 Do not define HAVE_ARMV6 unconditionally when cross-compiling for ARM.
This is simply an invalid assumption and certainly not a sane default.

Reverts part of 8f7a7a74.
2013-05-18 00:04:34 +02:00
Rodrigo Kumpera 078245b883 Add a function to convert from a MonoError to a loader error. Use it with callers of mono_class_create_from_typedef. 2013-05-17 17:54:06 -04:00
Rodrigo Kumpera 6fbb5f96a4 Move mono_class_create_from_typedef to use MonoError.
* class.c (mono_class_create_from_typedef): Do error handling using MonoError
	instead of the loader error for this one.
2013-05-17 17:54:05 -04:00
Rodrigo Kumpera 8258beb448 Add mono_class_set_failure_from_loader_error and use it in a few spots. 2013-05-17 17:54:05 -04:00
Michael Hutchinson b813bb46d5 [Mono.Data.Sqlite] Stop DataAdapter.Fill exploding when using Sqlite built w/o column metadata support
Fixes Bug 327 - Mono.Data.Sqlite doesn't work without SQLITE_ENABLE_COLUMN_METADATA

Essentially, if sqlite3_column_origin_name is not found, omit the metadata, instead of
exploding.  This is the fallback that's already used on MonoTouch.

A better fix would be load the column metadata from other sources, as proposed in
https://bugzilla.xamarin.com/show_bug.cgi?id=2128
2013-05-17 17:16:23 -04:00
Michael Hutchinson f38e6bb39e [monodoc] Return null from GetHelpXml if node not found
Instead of exploding the XML parser by trying to parse null.
2013-05-17 17:16:23 -04:00
Michael Hutchinson 30705ec34e [monodoc] Throw exception on unparseable URL
Instead of logging error with no useful context/content.
2013-05-17 17:16:22 -04:00
Zoltan Varga cce72fe840 Clear entries referencing the domain in reference_queue_clear_for_domain () even if the object is already null. Fixes #4595. 2013-05-17 22:08:12 +02:00
Sebastien Pouliot 11b973e9bc Use the source files from ../Mono.Security/ to avoid duplicate (and different files) 2013-05-17 11:10:13 -04:00
Sebastien Pouliot 977c27c262 Merge changes, that were only made in corlib, back into Mono.Security 2013-05-17 11:10:13 -04:00
Sebastien Pouliot b176adcc0e Do not bring (linking-wise) most of ToBase64Transform when Convert.ToBase64String is used 2013-05-17 11:10:13 -04:00
Rodrigo Kumpera e5c45f1161 Add regression test for #11362. 2013-05-17 11:03:40 -04:00
Rodrigo Kumpera e6d5285516 Fail with an exception when loading the value of field of a broken class. Fixes #11362
* object.c (mono_field_get_value_object): If the field belongs to a class with a broken
	vtable, lets raise an exception instead of printing a message and returning NULL.

	Fixes #11362
2013-05-17 11:03:39 -04:00
Andres G. Aragoneses 84202a68bb [HttpWebRequest] Assertion message nitpicks in new timeout tests
The timeout tests I added recently* had a missing assertion message and
one with a couple of typos.

* https://github.com/mono/mono/commit/96be7828510a1fb14dab07eed1e93dc1a3a7dd84
2013-05-17 00:48:10 +01:00
Andres G. Aragoneses e1c7d996f0 [mono-service] log service name when reporting ExitCode != 0
This nitpick was forgotten in this commit:
https://github.com/mono/mono/commit/4b3e9b3874334a55a9de3534f298ddbe891d94bd
2013-05-17 00:27:55 +01:00
Alex Rønne Petersen 872be6349b Remap printf to g_print in the Mini code on Android. 2013-05-17 00:01:50 +02:00
Alex Rønne Petersen 16b1af4dc3 Revert "Replace (f)printf with g_print(err) in method-to-ir.c, mini-arm.c, mini.c"
This reverts commit 26ffc615bf.
2013-05-16 23:59:09 +02:00
Alex Rønne Petersen 26ffc615bf Replace (f)printf with g_print(err) in method-to-ir.c, mini-arm.c, mini.c 2013-05-16 22:52:58 +02:00
Sebastien Pouliot 93fb13c44a Fix copy-paste typo (encryptionAlgorithm vs decryptionAlgorithm) in my last CipherSuite.cs change 2013-05-16 16:06:55 -04:00
Radek Doulik 50dacc2e31 revert my 2 last commits
Revert "add System.Net.Http.Formatting to monodroid build"
        Revert "added System.Configuration and System.Security to monodroid build to fix it"

        This reverts commit 85cb9e3176 and
                     commit 6566273367.
2013-05-16 17:29:26 +02:00
Sebastien Pouliot 0bf408eec0 Prefer using AES over Rijndael in newer profiles. SSL/TLS does not need the extra block size and some platforms (e.g. iOS) have a much better implementation for AES 2013-05-16 08:56:43 -04:00
Alex Rønne Petersen 457c9722a4 Merge pull request #637 from LogosBible/enetdown
Handle ENETDOWN error if defined.
2013-05-16 04:57:08 -07:00
Alex Rønne Petersen 70dfbbf95a Merge pull request #638 from directhex/master
Ensure $(DESTDIR)$(mono_libdir)/mono/3.5 exists before installing to it
2013-05-16 04:56:43 -07:00
Jo Shields 4f9e5ec31c Ensure $(DESTDIR)$(mono_libdir)/mono/3.5 exists before installing to it
Prior to 38348361da, the mono/X.X folders
were created when "gacutil /i foo.dll /package X.X" was called. However,
The above commit caused a call to $(INSTALL_DATA) to be executed *before*
gacutil, which caused a copy of Microsoft.Common.targets to be installed
as a file named mono/3.5 instead of into the mono/3.5 folder, on fresh
installs (not a problem installing into an existing prefix).

This commit forces creation of the folder which could potentially not
have been created yet by gacutil.
2013-05-16 12:55:07 +01:00
Jo Shields 38e2f40925 Correct list of EXTRA_DISTFILES
EXTRA_DISTFILES is used for tarball generation, it should be a list of files which actually exist
2013-05-16 12:06:38 +01:00
Radek Doulik 6566273367 added System.Configuration and System.Security to monodroid build to fix it 2013-05-16 12:17:48 +02:00
Rodrigo Kumpera abc9ea35c2 If the TP monitor thread is signaled, bound the number of spins when sleeping. Workaround for #8186. 2013-05-15 22:32:32 -04:00
Sebastien Pouliot 4526c6c27b For HMAC avoid using the hash names to create instances (since it bring CryptoConfig) when under FULL_AOT_RUNTIME. Also simplify the 'legacy' support for 384/512 2013-05-15 16:37:27 -04:00
Sebastien Pouliot 473fbfd3e1 Do not require an exception to detect if SHA1 is used. 2013-05-15 16:32:19 -04:00
Sebastien Pouliot 240c354baa Avoid calling TripleDES.Create(string), which calls CryptoConfig, when possible (e.g. from the default .ctor) since it makes linked applications smaller 2013-05-15 16:32:18 -04:00
Radek Doulik 85cb9e3176 add System.Net.Http.Formatting to monodroid build
- changed the Create method with FileOptions to not depend on FileSecurity
   to avoid dragging System.Security assembly in monodroid build as well
2013-05-15 22:26:32 +02:00
Rodrigo Kumpera 235eefff05 Make sure we release memory for the runtime generated backtraces. 2013-05-15 16:22:04 -04:00
Rodrigo Kumpera 751fc004b9 Make sure we can properly suspend the main thread on Android. Fixes #12112.
* sgen-os-posix.c (sgen_thread_handshake): Never never never never never
	use pthread_kill on Android as it doesn't work with the main thread.

	This resulted in all sorts of fringe crashes in #12112.
2013-05-15 16:22:04 -04:00
Zoltan Varga c8101826e3 Enable partial generic sharing by default. 2013-05-15 20:11:34 +02:00
Zoltan Varga ff4639b8f0 Disable the gsharedvt optimizatiom in AOT if it is not supported by the platform. 2013-05-15 19:01:08 +02:00
Zoltan Varga 8e63a86ff9 Shorten some gshared function names. 2013-05-15 18:28:24 +02:00
Zoltan Varga c810c9db87 Add partial sharing support to AOT. 2013-05-15 18:26:32 +02:00
Tom Philpot 694af2390a Handle ENETDOWN error if defined. 2013-05-15 09:19:41 -07:00
Zoltan Varga 591c688c15 Disable a corlib test which can fail on some systems. 2013-05-15 02:46:24 +02:00
Zoltan Varga fe6a522c0c Clean up the partial generic sharing code a bit. 2013-05-15 02:11:56 +02:00
Martin Baulig 0c736cf74e [xbuild]: Define TargetingClr2Framework. 2013-05-15 00:51:23 +02:00
Martin Baulig 38348361da [xbuild]: Fix 4.0/4.5 repo layout.
4.0/Microsoft.Common.* was not installed anywhere, so it could safely
be deleted, and 4.5/M.C.* was previously being installed into
$(prefix)/lib/mono/4.0.  It's now in 4.0/M.C.* to match xbuild's
tool version.

This patch does not affect how things are installed, it simply cleans
up the source layout.
2013-05-15 00:24:31 +02:00
Sebastien Pouliot aaea1f82e4 Simply logic a bit when SslClientStream is only used from inside System.dll 2013-05-14 15:16:43 -04:00
Sebastien Pouliot 56c12942cd Space/tabs unification 2013-05-14 15:16:43 -04:00
Rodrigo Kumpera 171c218f75 Use the native unwinder when Exception::ToString throws.
* exception.c: Add mono_exception_get_managed_backtrace so the code that
	deals with unhandled exceptions can produce some stacktrace in case
	Exception::ToString itself produces another exception.

	This can happen under multiple situations, be it OOM, heap corruption or
	bugs in ToString ().
2013-05-14 14:21:53 -04:00
Zoltan Varga f12bb0f8f3 Improve the size of the arm SEQ_POINT implementation a bit. 2013-05-14 19:43:47 +02:00
Andres G. Aragoneses 7d75358e6c [WebConfigurationManager] Fix memleak by using a LruCache (BXC#5598)
System.Web.ConfigurationManager had a cache which didn't have any max limit,
therefore when using Restful URIs in ASP.NET (like having some variable
parameter in the virtual path, i.e. /user/{userId}/tracks, where {userId}
is a variable Integer) this was very likely to cause a leak which would
end up causing troubles, like an InvalidCastException thrown by
HttpApplication::PreStart()

(Read operations in the cache now cause a write operation on the cache
object, so all sectionCache lock-read usages are converted to lock-write.)

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=5598
2013-05-14 17:47:40 +01:00
Zoltan Varga 6797928cbe Enable hw division/remainder on mt in non-thumb mode as well. 2013-05-14 18:27:32 +02:00
Andres G. Aragoneses e0b603fcce [man] update Mono version from "2.11" to "3.0" 2013-05-14 17:06:39 +01:00
Alex Rønne Petersen 0c3b528747 Add a missing IS_VFP check for OP_FCLT in the ARM back end. 2013-05-14 13:06:26 +02:00
Alex Rønne Petersen a84f79b541 Remove an unused variable in verify.c. 2013-05-14 13:06:19 +02:00
Alex Rønne Petersen 766bf95e66 Kill support for the ancient FPA format on ARM. 2013-05-14 13:05:33 +02:00
Zoltan Varga a97e686783 Enable hw division on armv7s in ARM mode too. 2013-05-14 02:37:17 +02:00
Zoltan Varga 46c9e877c1 Fix the build. 2013-05-14 00:25:11 +02:00
Zoltan Varga 4b4e8ed3b9 Fix thumb support in 36b9052157. 2013-05-13 22:06:19 +02:00
Zoltan Varga 36b9052157 Rework the way AOT method addresses are obtained on ios. Instead of emitting direct method addresses, emit a table of branches to the methods. This is position-independent, and it is easier for the linker to handle. Hopefully fixes #12143. 2013-05-13 20:35:19 +02:00
Rodrigo Kumpera fec0e98bd3 Add regression test for bug #10392. 2013-05-13 12:34:11 -04:00
Rodrigo Kumpera 7b0b8011b1 Don't try to merge interfaces between to non-interface types. Fixes #10392.
MCS used to emit code that would merge two stacks only by one of the interfaces
that two concrete types have.

This is not the behavior on either the SPEC or the MS implementation. It's not
a great one as the selected interface is non-deterministic, while the a parent is.
2013-05-13 12:34:11 -04:00
Sebastien Pouliot 5805a2c597 Allow compiling SSL/TLS and NTLM support directly into System.dll to avoid a dependency (on Mono.Security assembly) and avoid code duplication (with mscorlib.dll) 2013-05-13 11:10:12 -04:00
Sebastien Pouliot 9df16e5e7b Reduce the number of intermediate calls to allow the linker to remove mode code 2013-05-13 11:10:12 -04:00
Sebastien Pouliot d8bdd1f209 Do not bring Win32 or Linux specific code for iOS NetworkInterface 2013-05-13 11:10:11 -04:00
Zoltan Varga 35421ffb43 Make the checks done to detect unhandled exceptions in async invokes more precise so they don't trigger for other calls to mono_runtime_invoke (). Fixes #3338. 2013-05-13 16:28:32 +02:00
Zoltan Varga f932ab6ac7 Update .gitignore. 2013-05-13 04:29:20 +02:00
Zoltan Varga 06afd312a2 Bump the AOT file format version because of ad141a8b7b. 2013-05-11 15:33:12 +02:00
Sebastien Pouliot 0ed2c07f1c Use FULL_AOT_RUNTIME instead of MONOTOUCH since we only want this code when running on iOS (simulator or devices) and *not* when running tools (e.g. btouch #12179) that needs to use the mscorlib.dll shipped with Xamarin.iOS. 2013-05-09 20:15:46 -04:00
Zoltan Varga 5c7014772d Add stubs for a remoting icall instead of removing it. 2013-05-09 23:38:48 +02:00
Jérémie Laval 226cb96174 [monodoc] Add missing legacy GetTitle method 2013-05-09 16:56:46 -04:00
Jérémie Laval 468d8b9e7e [monodoc] Add forgotten test file 2013-05-09 16:56:46 -04:00
Zoltan Varga ad141a8b7b Avoid using a different layout for the MonoAotFileInfo structure on mt. 2013-05-09 22:05:12 +02:00
Neale Ferguson fc0560fb47 gcconfig.h - Add weak attribute to avoid __data_start undefined messages on dlopen
mini-s390x.c - Add profiling support to prolog/epilog instrumentation
2013-05-09 15:42:58 -04:00
Zoltan Varga 1dcbbaaedd Disable parallel compression in mkbundle again, it still doesn't seem to work, the resulting executable reports 'Error 2 decompressing data'. 2013-05-09 18:58:35 +02:00
Jérémie Laval f926625030 [monodoc] Disable usage of HtmlAgilityPack in tests since the concerned ones are disabled. Hopefully make them run again on the bots. 2013-05-09 12:33:35 -04:00
Zoltan Varga 658f6fd2d4 Fix a typo. 2013-05-09 18:19:10 +02:00
Jérémie Laval 245dee3799 [monodoc] Correctly insert mixed mode XML in namespace summaries rather than wrapping them in CDATA sections 2013-05-09 12:14:00 -04:00
Jérémie Laval 3f361e1a26 [monodoc] Add workaround to process CDATA backed summaries/remarks in namespaces 2013-05-09 12:13:11 -04:00
Marek Safar ad8e0f742e StreamWriter async methods cannot call base TextWriter async methods. Fixes #11979 2013-05-09 17:42:28 +02:00
Marek Safar 7bc0d12c4a Rename AddBasesForPart to SetBaseTypes 2013-05-09 14:52:37 +02:00
Marek Safar 32cc8a558e Abstract methods can override virtual methods. Fixes #12138 2013-05-09 14:52:36 +02:00
Marek Safar ff876e0389 Fix TraceSource constructor. Fixes #12001 2013-05-09 14:52:36 +02:00
Marek Safar 52ba2fff6f Nested dotted namespace can access its parent dotted namespace directly. Fixes #12165 2013-05-09 14:52:35 +02:00
Atsushi Eno 78d65dbced [Rx] some more csproj generator fixes; debug and release are different. Remove extraneous xmlns. 2013-05-09 21:03:44 +09:00
Atsushi Eno ea4a11da91 [Rx] update mobile project generator to hopefully generate the latest csproj files. 2013-05-09 18:13:28 +09:00
Marek Safar 5ad94bd33e Fix copyright author 2013-05-09 10:33:13 +02:00
Marek Safar cfbd05ca34 Populate more win32 version info values. Fixes #8578 2013-05-09 10:09:32 +02:00
Marek Safar 9cc8fdfc5b Define internal attribute in case we missed the global initialization. 2013-05-09 10:09:32 +02:00
Marek Safar 873866b4db Rename parameter name 2013-05-09 10:09:32 +02:00
Marek Safar 726fb74ac0 Remove extra null key check 2013-05-09 10:09:31 +02:00
Tammo 'kb' Hinrichs 907b13aa04 Fix race condition in WebConnectionStream
See https://bugzilla.xamarin.com/show_bug.cgi?id=1553
2013-05-08 16:34:17 +02:00
Zoltan Varga 420ba5e998 Fix support for ldtoken in AOTed non-shared generic instance methods. Fixes #12126. 2013-05-08 14:20:36 +02:00
Zoltan Varga f76a2f7b0b Fix support for ldfld/stfld wrappers in gshared code. Fixes #12086. 2013-05-08 13:06:04 +02:00
Neale Ferguson 89cbc62dee Remove unneeded call - lazy support 2013-05-07 18:06:42 -04:00
Pablo Ruiz Garcia 106c059d9f Fixed @grendello's comments regarding styling and a few other gotchas by my side. 2013-05-07 17:49:26 +02:00
Zoltan Varga 59c840be5a Add a missing wbarrier to the gsharedvt code. 2013-05-06 17:35:10 +02:00
Zoltan Varga 3f3092b477 Add support for separating the class and method names by :: in mono_method_desc_new (). Fixes #12113. 2013-05-06 17:06:18 +02:00
Pablo Ruiz Garcia 6c70b38e17 Refactor of Route's GetVirtualPath implementation based on System.Web.Http.Routing code in order to fix a few incompatibilities between our implementation and the one at ms.net 2013-05-06 00:31:44 +02:00
Alex Rønne Petersen 89c3c44dbc configure.in: Remove all explicit ARM_FPU_* definitions.
We now properly detect this via the toolchain, so these
explicit definitions are now pointless.
2013-05-04 06:58:32 +02:00
Zoltan Varga 3ac08cbb1b Disable a System.Core test which fails on mt because of linking. 2013-05-04 04:19:23 +02:00
Sebastien Pouliot 1d4118c51f Fix build for mobile (ios and android) wrt recent pull request on System.Data 2013-05-03 14:41:02 -04:00
Sebastien Pouliot 73a0051ead Hardcode the use of CFNetwork.GetDefaultProxy for iOS so WebProxy is not required (and can be removed by the linker) 2013-05-03 14:04:09 -04:00
Zoltan Varga f96c0fa9ac Implement division/remainder in hardware when using armv7s+llvm+thumb. 2013-05-03 19:50:16 +02:00
Martin Baulig 612fdf492f Add facade assemblies to the rpm spec file. 2013-05-03 18:36:56 +02:00
Marek Safar dac3465e80 Merge pull request #628 from pdonald/master
Implemented async methods in System.Data.Common
2013-05-03 07:47:06 -07:00
root 11471bc5a6 Implemented async methods in System.Data.Common 2013-05-03 11:56:05 +00:00
Martin Baulig 40fd7050e3 Hmm, 'dist-local: dist-default', maybe ... 2013-05-02 20:56:29 +02:00
Martin Baulig 1d0ea4510d Fix 'make dist'. 2013-05-02 20:37:39 +02:00
Martin Baulig 1ee4d7f23c Fix linux build (/r:System.Xml, not System.XML). 2013-05-02 20:20:47 +02:00
Martin Baulig e52dd7a130 Add PCL Facade assemblies. 2013-05-02 17:34:48 +02:00
Aaron Bockover d4630d000b mac-reachability.c: update for C89isms
In response to Rodrigo's comments on PR 629.
2013-05-02 11:03:27 -04:00
Aaron Bockover 1ddafd7997 mac-reachability.c: enable for TARGET_IOS 2013-05-01 18:10:06 -04:00
Miguel de Icaza d9f6f07701 Merge pull request #627 from abock/master
Support Mac OS X for System.Net.NetworkInformation.NetworkChange
2013-05-01 14:59:41 -07:00
Aaron Bockover ed5d39b1d7 NetworkChange: Support Mac OS X (bcx#12038)
Refactor System.Net.NetworkingInformation in order
to support multiple "providers"; previously only
Linux was ever supported for this API.

This patch provides basic support for Mac OS X
via the SystemConfiguration framework's
SCNetworkReachability API.

bxc#12038
2013-05-01 17:49:44 -04:00
Bojan Rajkovic db8f33718a Revert "Merge pull request #618 from knocte/aspnet_lru"
This reverts commit 675328ef16, reversing
changes made to edc181c514.
2013-05-01 17:05:12 -04:00
Sebastien Pouliot 059406396d [ios] throw an TimeZoneNotFoundException if the timezone name is unknown 2013-05-01 16:19:44 -04:00
Sebastien Pouliot 28fa0cebd8 Fix compilation of Variant for iOS: Marshal.GetObjectForIUnknown, like a lot of COM specific methods, is not available for iOS 2013-05-01 14:48:13 -04:00
Sebastien Pouliot 14b607cf6e Remove reflection usage to access NSTimeZone for iOS 2013-05-01 14:31:05 -04:00
Atsushi Eno 5c228f3dd0 remove wrong EOLs after Libs: in reactive.pc.in. Third attempt to fix bug #10002. 2013-05-01 13:21:45 +09:00
Alex Rønne Petersen 724739a15f Merge pull request #624 from jbevain-forks/mimemapping
Add new net_4_5 class System.Web.MimeMapping
2013-04-30 16:18:26 -07:00
Zoltan Varga c8db8dd5ec Fix support for reference types in unbox.any in gsharedvt code. 2013-05-01 00:51:36 +02:00
Jb Evain aed919ea18 Add new net_4_5 class System.Web.MimeMapping 2013-05-01 00:34:09 +02:00
Alex Rønne Petersen 852051425d Merge pull request #623 from madewokherd/byrefvariants
Implement reading byref variants.
2013-04-30 12:32:58 -07:00
Vincent Povirk 865a59b0cd Implement reading byref variants.
This commit is licensed under MIT/X11.
2013-04-30 10:40:51 -05:00
Sebastien Pouliot 7cd961939c Avoid potential NRE is the UserCAStore could not be created. ref: desk #33432 2013-04-29 17:44:39 -04:00
Jonathan Pryor 5543285e68 Add System.Diagnostics.Switch/etc. to the MOBILE profile.
Followup to:

	http://forums.xamarin.com/discussion/comment/11823/#Comment_11823

These are Switches with a labotomy: the MOBILE profile does not
support System.Configuration.dll, so there is no support for
.exe.config files or
System.Diagnostics.DiagnosticsConfigurationHandler.

Consequently these Switches are largely a compatibility/portability
aid: they DO NOT have the full functionality that the desktop
profile affords. Specifically, there is no way to provide an XML
config file that contains the Switch values to use. If you need to set
the Switch values, this MUST be done manually, e.g. through a Switch
constructor's `defaultSwitchValue` parameter or through a property,
e.g. for SourceSwitch:

	http://msdn.microsoft.com/en-us/library/w65awck1.aspx
	http://msdn.microsoft.com/en-us/library/system.diagnostics.sourceswitch.level.aspx
2013-04-29 14:38:53 -04:00
Marek Safar 2b36c5edd9 Run repl in unsafe mode by default 2013-04-29 18:02:58 +02:00
Marek Safar 2c20b020af Allow parsing compiler arguments with user specified defaults 2013-04-29 18:00:09 +02:00
Marek Safar 9fda7494ff Make LocatedToken top level type 2013-04-29 17:38:59 +02:00
Marek Safar 0772c59897 Make reusing few expressions easier 2013-04-29 17:31:19 +02:00
Marek Safar 22dc235289 Don't throw when trying to parse leading sign number only. Fixes #12008 2013-04-29 16:51:34 +02:00
Marek Safar e139ef1302 Don't try to inflate nested types of missing type. Fixes #11996 2013-04-29 15:02:01 +02:00
Gerardo García Peña 34222916bf Merge branch 'master' of https://github.com/mono/mono 2013-04-29 13:02:18 +02:00
Marek Safar 3fe85ac027 Revert "Merge pull request #615 from nealef/master"
This reverts commit ce6acbe4db, reversing
changes made to 7f0328f12a.
2013-04-29 11:25:17 +02:00
Marek Safar 80bf01e52f Add anonymous type evaluator test 2013-04-29 11:18:41 +02:00
Gerardo García Peña 4c7bcaaca3 some minor code style changes 2013-04-29 08:30:55 +02:00
Gerardo García Peña c9e3b37bb8 Disable BOM preamble in UTF8 by default (following best practices). 2013-04-29 08:09:23 +02:00
Rodrigo Kumpera da030feef9 [verifier] Add regression test for the case where the function being used in a delegate returns a variant interface. 2013-04-28 21:34:26 -04:00
Rodrigo Kumpera 289414ca32 [verifier]Handle variance correcty when checking delegate parameters.
* verify.c (verifier_class_is_assignable_from): If the target
	is a variant interface, check if the candidate is one too that
	is a direct match.
2013-04-28 21:34:08 -04:00
Rodrigo Kumpera 55edf4cd8e [verifier] Add regression test for stack merge of boxed valuetypes. 2013-04-27 18:50:05 -04:00
Rodrigo Kumpera 83fe128c8c [verifier] Properly merge stacks when both ends have the same boxed valuetype.
Fixes System.Data.Services.Client.dll failure on wrench.
2013-04-27 18:48:58 -04:00
Rodrigo Kumpera 9b1e0ae3d5 [verifier]Add test case for #11263. 2013-04-27 16:27:01 -04:00
Rodrigo Kumpera faa92da186 [verifier]A type constraint must be visible to the generic type definition. Fixes #11263. 2013-04-27 16:25:07 -04:00
Rodrigo Kumpera 1bfabe5860 [verifier]Fill in the assembly name so checks for InternalsVisibleTo don't crash. 2013-04-27 16:24:10 -04:00
Rodrigo Kumpera 99aad5797e Add mono_class_can_access_class so the verifier can check if one type can access another. 2013-04-27 16:23:58 -04:00
Sebastien Pouliot 2a0e2e6d68 Avoid using reflection to redirect Console.Write* to NSLog 2013-04-27 11:03:34 -04:00
Sebastien Pouliot b46553c20a Avoid using reflection to initialize RegionInfo from iOS current NSLocale 2013-04-27 11:03:34 -04:00
Zoltan Varga 56d72721dc Ignore requests to set breakpoints at il offsets belonging to dead code. Fixes #11880. 2013-04-27 16:18:17 +02:00
Zoltan Varga b0a35629e0 Fix a warning. 2013-04-27 16:18:17 +02:00
Jonathan Pryor f417a1f0cd Add System.Diagnostics.Trace to the MOBILE profile.
Requested here:

	http://forums.xamarin.com/discussion/3300/rationale-behind-removal-of-system-diagnostics-trace-in-xa-and-xi
2013-04-27 09:32:21 -04:00
Rodrigo Kumpera 0542f8af71 Revert "The build bots run on Snow Leopard that doesn't have pthread_spis.h. Let's revert this for now until the bots are switched to lion."
This reverts commit 6fb1b1fa55.

All our bots are now running on Lion or Mountain Lion so we can now happily enjoy this fix.
2013-04-26 19:41:40 -04:00
Marek Safar d68fd48e88 Merge pull request #621 from andreazevedo/master
Using existing contants
2013-04-26 15:21:27 -07:00
andreazevedo 898d9d6ccf Using existing constant instead of number literal 2013-04-26 18:49:24 -03:00
Miguel de Icaza ce6acbe4db Merge pull request #615 from nealef/master
Fix incompatibility with .NET's serialization of ObservableCollection
2013-04-26 09:55:22 -07:00
Miguel de Icaza 7f0328f12a Merge pull request #620 from knocte/monoservice_playground
Little improvements to mono-service land.
2013-04-26 09:48:29 -07:00
Miguel de Icaza 675328ef16 Merge pull request #618 from knocte/aspnet_lru
[WebConfigurationManager] Fix memleak by using a LruCache (BXC#5598)
2013-04-26 09:47:07 -07:00
Andres G. Aragoneses 126d079b84 [System.Web] Use STDERR instead of STDOUT in LRUcache
As suggested by Marek Habersack
2013-04-26 17:03:54 +01:00
Andres G. Aragoneses e072c0ec34 [System.Web] Move MONO_ASPNET_WEBCONFIG_CACHESIZE parsing out of LRUcache 2013-04-26 16:58:50 +01:00
Zoltan Varga edc181c514 Avoid creating any new threadpool threads while the runtime is suspended by sdb, since they cannot do any work, causing the code in monitor_thread () to spawn new ones indefinitely. Fixes #6452/11940. 2013-04-26 01:34:53 +02:00
Rodrigo Kumpera 3ac548855b When attaching a foreigh thread, make sure we initialize MOnoInternalThread::thread_info. 2013-04-25 18:38:22 -04:00
Duncan Mak 51cd39b462 Bump version number to 3.0.11 2013-04-25 18:19:32 -04:00
Mark Probst a2e6cb9d61 [profiler] Fix sampling timestamp output. 2013-04-25 14:32:24 -07:00
Neale Ferguson efa707b468 Correct call parameter processing for GENERICINST types 2013-04-25 17:19:28 -04:00
Neale Ferguson 3cbc51a820 Add lazy rgctx support to s390x 2013-04-25 17:19:28 -04:00
Rodrigo Kumpera 5491848f2e Document the new function and fix a typo on other. 2013-04-25 15:56:45 -04:00
Rodrigo Kumpera 255af30e1d Add MonoThreadInfo::runtime_thread so we can know if this thread is managed by the runtime or not.
* mono-threads.h: Add new field to MonoThreadInfo.

	* threads.c: New API function mono_thread_is_foreign that allows one to query if a given thread
	is foreign or not.
2013-04-25 15:56:45 -04:00
Rodrigo Kumpera 830f402047 On windows, Register/unregister runtime-managed threads from our wrapper.
* driver.c: Don't auto attach all threads, this is the same behavior of
	posix and mach. We still auto-detach so we can catch foreign threads that
	forgot to do it.

	* mono-threads-windows.c: Detach the thread after the thread fun has run to
	completion, this ensures we cleanup runtime-managed threads in a saner fashion.
2013-04-25 15:56:45 -04:00
Rodrigo Kumpera 42970c1299 Unregister runtime-managed threads before OS cleanup kicks in.
* mono-threads.c:
	* mono-threads-posix.c: Explicitly detach a thread from the wrapper
	instead of relying on the TLS destructor. This gives a good environment
	most of the time for other parts of the runtime to work with.
2013-04-25 15:56:45 -04:00
Rodrigo Kumpera 65aa1e5048 Don't emit thread event twice when explicitly detaching a thread. 2013-04-25 15:56:44 -04:00
Sebastien Pouliot fabfdd075e [linker] Move the special marking of serializable types in a virtual method 2013-04-25 15:24:56 -04:00
Sebastien Pouliot bdf97e53b7 Use field for GetObjectData and this (instead of base) for .ctor in SecurityException to help linker remove more code 2013-04-25 15:23:56 -04:00
Marek Safar 690ad3ce8a Better error message 2013-04-25 17:11:31 +02:00
Andres G. Aragoneses 3654ed4da0 [System.ServiceProcess.ServiceController] Remove NET_2_0 ifdefs
Also dropping ONLY_1_1.
2013-04-25 14:23:41 +01:00
Andres G. Aragoneses 4b3e9b3874 [mono-service] Report to syslog if ExitCode ended up != 0 after Stop()
In the previous commit, ExitCode was implemented, so we can query it now.
This is useful because many Windows Services nowadays use this variable
to notify about a problem at stop time.
2013-04-25 14:22:23 +01:00
Andres G. Aragoneses 0ca3f6ddff [System.ServiceProcess.ServiceBase]: Implement Stop() and ExitCode
Stop() wasn't calling OnStop, so a unit test was added, its basic
functionality was implemented, and MonoTODO is removed.

ExitCode now also stops throwing NIE. A unit test is added to confirm
that ServiceBase class doesn't modify it across runs. This property will
be useful for my next commit in mono-service.cs.
2013-04-25 14:20:33 +01:00
Gerardo García Peña b07a494bb6 Merge remote-tracking branch 'upstream/master' 2013-04-25 08:40:45 +02:00
Gerardo García Peña a93fa79df7 Rewrite of core coder & decoder functions to fix several bugs and limitations, and improve error handling. 2013-04-25 07:58:49 +02:00
Martin Baulig 32bdc7a90c Trying to fix the opensuse build. 2013-04-25 05:55:21 +02:00
Andres G. Aragoneses d198187591 [WebConfigurationManager] Reset LRUcache eviction count in Clear() 2013-04-25 00:10:50 +01:00
Andres G. Aragoneses d94839c493 [WebConfigurationManager] Make the max LRUcache size configurable
Using the env var MONO_ASPNET_WEBCONFIG_CACHESIZE, as discussed in BXC#5598
2013-04-25 00:01:08 +01:00
Martin Baulig 1cdeca43bb [monodoc]: Use shell script for jay to support parallel builds. 2013-04-25 00:35:56 +02:00
Zoltan Varga e65c8b1ca0 Fix gsharedvt support for gsharedvt methods on shared classes. Fixes #11933. 2013-04-24 17:01:33 +02:00
Andres G. Aragoneses 6d32796668 [man] Update mono version 2.11->3.0 2013-04-24 15:04:26 +01:00
Andres G. Aragoneses 4f9bdfab16 [System.Web] Coding style nits in LruCache 2013-04-24 12:35:26 +01:00
Alex Rønne Petersen c018aea7e9 Merge pull request #610 from metanest/tests_gc_descriptors_vpath_build_2013Mar_spike
modify for VPATH builds
2013-04-24 02:18:10 -07:00
Marek Safar 77b1b54d32 Don't check public token on missing references. Fixes #11796 2013-04-24 10:29:47 +02:00
Marek Safar 71a77b33c2 Task.Yield needs to continue on synchronization context if there is any. Fixes #11908 2013-04-24 10:29:46 +02:00
Marek Safar b013a778a2 Remove double verification checks 2013-04-24 10:29:46 +02:00
Marek Safar 262c9e227c Don't catch aggregate exception handle predicate exceptions. Fixes #11867 2013-04-24 10:29:45 +02:00
Marek Safar 1fd6e9a4ff Fix quoted values parsing for custom tostring formats. Fixes #11739 2013-04-24 10:29:45 +02:00
Rodrigo Kumpera e2f8c21767 Another try in fixing the windows build. 2013-04-23 17:43:28 -04:00
Rodrigo Kumpera ef3f9a6e80 Fix the build. 2013-04-23 17:29:16 -04:00
Rodrigo Kumpera 9c0b418df9 [sgen] Fix bridge interop missing some xrefs due to improve registration.
* sgen-bridge.c: Split the registration and dfs1 steps so we avoid issues
	where an earlier entry that points to a later one would not have a xref
	created between them.

	First we insert all bridges into the hash table and then we do dfs1.

	It must be done in 2 steps since the bridge arrays doesn't come in reverse topological order,
	which means that we can have entry N pointing to entry N + 1.

	If we dfs1 entry N before N + 1 is registered we'll not consider N + 1 for this bridge
	pass and not create the required xref between the two.
2013-04-23 17:08:08 -04:00
Atsushi Eno 44f3d6379a quick nullref fix for part of bugfix #11916. 2013-04-24 05:46:48 +09:00
Zoltan Varga bf14c4630a Clean the domain tls var on all code paths in thread_cleanup (). 2013-04-23 20:29:29 +02:00
Rodrigo Kumpera 176a3cd8f7 Fix windows build. 2013-04-23 12:30:53 -04:00
Andres G. Aragoneses 96bbdc60bf [WebConfigurationManager] Fix memleak by using a LruCache (BXC#5598)
System.Web.ConfigurationManager had a cache which didn't have any max limit,
therefore when using Restful URIs in ASP.NET (like having some variable
parameter in the virtual path, i.e. /user/{userId}/tracks, where {userId}
is a variable Integer) this was very likely to cause a leak which would
end up causing troubles, like an InvalidCastException thrown by
HttpApplication::PreStart()

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=5598
2013-04-23 16:36:42 +01:00
Zoltan Varga 11661568de Disable an sdb test which is not deterministic. 2013-04-23 13:41:19 +02:00
Marek Safar 6f2a8c52e2 Update failing test 2013-04-23 10:28:50 +02:00
Rodrigo Kumpera 6fb1b1fa55 The build bots run on Snow Leopard that doesn't have pthread_spis.h. Let's revert this for now until the bots are switched to lion. 2013-04-22 18:18:43 -04:00
Rolf Bjarne Kvinge c5bb3a92a8 Rework MulticastDelegate.Equals to use a loop instead of recursion.
This should aid in tracking down bugs such as #11871 (or possibly even
fixing them) - if the problem still exists the process will run into
an infinite loop, which is a lot easier to debug (at least on iOS, and
likely other platforms too) than a stackoverflow.
2013-04-22 23:58:31 +02:00
Rodrigo Kumpera c00c3f1482 Introduce a new kind of mutex, the suspension safe one.
* mono-mutex.c: Add mono_mutex_init_suspend_safe so special targets
	like OSX that have broken implementations of suspend for pthread mutex
	will hang less.

	A suspension safe mutex means one that can handle this scenario:

	mutex M

	thread 1:
	1)lock M
	2)suspend thread 2
	3)unlock M
	4)lock M

	thread 2:
	5)lock M

	Say (1) happens before (5) and (5) happens before (2).
	This means that thread 2 was suspended by the kernel because
	it's waiting on mutext M.

	Thread 1 then proceed to suspend thread 2 and unlock/lock the
	mutex.

	If the kernel implements mutexes with FIFO wait lists, this means
	that thread 1 will be blocked waiting for thread 2 acquire the lock.
	Since thread 2 is suspended, we have a deadlock.

	A suspend safe mutex is an unfair lock but will schedule any runable
	thread that is waiting for a the lock.

	This problem was witnessed on OSX in mono/tests/thread-exit.cs.
2013-04-22 17:20:02 -04:00
Rodrigo Kumpera b30bdb8e57 Remove some dead defines from mono-mutex.h 2013-04-22 17:20:02 -04:00
Rodrigo Kumpera c9bd28d0f9 Remove static initializers as they are not portable under windows. 2013-04-22 17:20:01 -04:00
Rodrigo Kumpera 12dfc34fc3 Remove the now unused mono_mutexattr family of functions. 2013-04-22 17:20:01 -04:00
Rodrigo Kumpera 375cbf369c Cleanup the interface of mono_mutex_init.
* mono-mutex.h: mono_mutex_init no longer takes a mutexattr,
	it's always non-recursive and returns zero on success.

	* mono-mutex.h: Add mono_mutex_init_recursive for those that need
	one. This makes the API much much nicer for win32 consumers. Caching
	the mutexattr on posix is really a waste of time. Mutexes are heavyweight
	objects such that their creating will never be on the fast path.
2013-04-22 17:20:01 -04:00
Rodrigo Kumpera 437f07777f Remove support for for pthread implementations that lack recursive mutexes.
* configure.in: Don't define USE_MONO_MUTEX. No sane posix system from this
	millennium lacks recursive mutexes. Given that, let's just fail mono on them
	and drop a bunch of dead code.
2013-04-22 17:20:01 -04:00
Rodrigo Kumpera 9d79602cca Move mono-mutex.c from io-layer to utils. Killing the io-layer, softly. 2013-04-22 17:20:00 -04:00
Zoltan Varga a57d7282c8 Revert "Fix the win64 build."
This reverts commit 2975c3c9b5.

Revert this as it seems to break the windows build.
2013-04-22 21:47:04 +02:00
Zoltan Varga 0d2cac122c Remove 32-bit s390 support from configure.in as well. 2013-04-22 18:05:36 +02:00
Alex Rønne Petersen f87a4f127d Support a MONO_ARCH_HAVE_TLS_INIT variable.
Setting this on an architecture makes Mini call
mono_arch_tls_init () on thread attach.

This is primarily useful for architectures that have not
had their LMF code ported to the new infrastructure due to
a general lack of maintenance or hardware to do it on.
2013-04-22 18:01:54 +02:00
Zoltan Varga c6a6afcaa1 Remove obsolete 32 bit s390 backend. 2013-04-22 17:54:48 +02:00
Atsushi Eno af4eafc963 now we (can) build Rx assemblies for mobile by *.sln in our mono/rx.git, so remove them from Makefile. 2013-04-23 00:50:53 +09:00
Marek Safar 6dc50c6d61 Always restore extension methods candidates after each run 2013-04-22 16:32:11 +02:00
Alex Rønne Petersen 64256c0d6a [configure] Use the preprocessor to determine the target FPU on ARM.
This is needed for a number of reasons:

1. Runtime detection of the target FPU is very hostile towards
   cross-compiling. We'd previously only pick up an FPU if we're
   compiling directly on the target device.
2. The runtime detection logic would attempt to use FP instructions
   regardless of whether the toolchain is actually configured for
   it. That means we could end up detecting an and using an FPU
   when the entire system is actually soft float, i.e. P/Invoke
   blows up.
3. The previous detection logic is never what distro packagers
   want because one build server could just happen to have an FPU
   even though the package is being built for soft float (armel).
4. We previously invoked 'gcc' explicitly, which is of course wrong
   when a non-GCC compiler is being used, or the compiler has a
   completely different executable name.

We now check preprocessor definitions to detect the FPU in use. This
works with cross-compilation, respects the toolchain's configuration,
and works when non-GCC compilers are being used. It also means distro
packagers can eliminate some downstream patches they previously used
to sanitize the FPU detection logic.
2013-04-22 16:02:17 +02:00
Marek Safar 0e5dd1f51a Merge pull request #617 from knocte/httpwebrequest_playground
[HttpWebRequest] Add timeout tests that cover BNC#317553 (ximian#74177)
2013-04-22 01:23:44 -07:00
Zoltan Varga 839539518c Add a freelist around the code chunk allocator to avoid mmap failures when a lot of appdomains are created and destroyed. Hopefully fixes #3311. 2013-04-21 21:36:17 +02:00
Andres G. Aragoneses 96be782851 [HttpWebRequest] Add timeout tests that cover BNC#317553 (ximian #74177)
The pull-request that was merged [1] intending to fix BXC#1183 [2] was
later reverted [3] because it broke a scenario that wasn't covered by tests.

This commits creates a couple of tests that cover this scenario (which was
implemented back in 2005 [4]) so that we are sure that any further proposed
fixes for bug 1183 [2] don't cause any regression in this area.

[1] https://github.com/mono/mono/commit/8c2167d52cb9acf9582647ebb5f99c92d9127fbd
[2] https://bugzilla.xamarin.com/show_bug.cgi?id=11833
[3] https://github.com/mono/mono/commit/14f0405443693ec2586e73e4b3746134046210d5
[4] https://bugzilla.novell.com/show_bug.cgi?id=317553
2013-04-20 14:29:37 +01:00
Zoltan Varga f3842235be Fix the map of bool and char in runtime invoke signatures. Fixes #11862. 2013-04-19 20:37:00 +02:00
Zoltan Varga d5cc160ab2 Fix previous commit. 2013-04-19 18:54:24 +02:00
Zoltan Varga 0256a8f672 Fix a warning. 2013-04-19 18:52:41 +02:00
Zoltan Varga a88fe76a03 Fix the msvc build. 2013-04-19 10:23:11 +02:00
Alex Rønne Petersen 3f3ef7225c Merge pull request #555 from jack-pappas/sigaltstack-patch
Fix sigaltstack on BSD
2013-04-19 01:16:18 -07:00
Zoltan Varga d0818307a1 Make the mkbundle output more dense to speed up assembly. 2013-04-18 22:27:17 +02:00
Zoltan Varga f1374e49d6 Parallelize the compression in mkbundle. 2013-04-18 22:26:44 +02:00
Zoltan Varga 1c94cd3849 Avoid sharing signed/unsigned types in runtime invoke wrappers since they are need to be loaded differently, leading to problems if the argument is register allocated in the called method. Fixes #11750. 2013-04-18 21:40:49 +02:00
Steffen Kieß f7b355721a Fix a crash in Mono.Posix.Syscall.getpwuid_r () on some systems when a uid is not found. Fixes #11770. 2013-04-18 20:35:30 +02:00
Zoltan Varga 78d9c2ce12 Disable an sdb test which is not deterministic. 2013-04-18 20:26:51 +02:00
Neale 191db41b36 Reverse previous changes 2013-04-18 11:31:47 -04:00
Neale 828a6a4f45 Fix incompatibility with .NET's serialization of ObservableCollection - part of bug 11294 2013-04-18 11:25:03 -04:00
Neale 425521a868 Merge branch 'master' of https://github.com/mono/mono 2013-04-18 11:24:04 -04:00
Neale 61b6b3f0b6 Reverse patches that should have gone to my fork rather than to head 2013-04-18 11:23:35 -04:00
Alex Rønne Petersen fdf5de3b26 Merge pull request #614 from directhex/master
Remove duplicated definition of mini_gc_enable_gc_maps_for_aot
2013-04-18 03:23:55 -07:00
Jo Shields 998373afb6 Remove duplicated definition of mini_gc_enable_gc_maps_for_aot - fixed build on PowerPC, Itanium, SPARC 2013-04-18 10:28:17 +01:00
Neale 66c4520fa2 Correct marshalling of size variables used in CharSetToUnicode (and vice-versa). They were specified as integers but for these calls they are, in C parlance, size_t so use SysUInt instead. 2013-04-16 22:48:58 -04:00
Neale 777336db71 Part of fix of 11294 - matching names to .NET and turning off serialization attributes for variables not required in serialization 2013-04-16 22:42:30 -04:00
Neale 3b6058791c Merge branch 'master' of https://github.com/mono/mono 2013-04-16 22:32:39 -04:00
Neale f19a364025 When .NET serializes it will use the TypeForwardedFrom information when
writing Assembly information but Mono does not. This means that
serialized objects created on one platform are not able to be
deserialized on the other, thus preventing interoperability between .NET
and mono applications. Fixes the ObservableCollection part of bugzilla
11294.
2013-04-16 22:27:47 -04:00
Zoltan Varga 2975c3c9b5 Fix the win64 build. 2013-04-15 22:24:22 +02:00
Zoltan Varga eff4cb5af8 Clear the domain on thread exit after the profile thread end hook, since it might need it to be set. 2013-04-13 22:07:37 +02:00
Gerardo García Peña 1eb5cd8654 removed index check because (1) it cannot be checked in this context and (2) it
only explains when a bad sequence started in the current or past buffer (in
this case it would take a negative value).
2013-04-12 00:12:29 +02:00
Gerardo García Peña 026a80eea2 removed index check because (1) it cannot be checked in this context and (2) it
only explains when a bad sequence started in the current or past buffer (in
this case it would take a negative value).
2013-04-12 00:06:16 +02:00
Zoltan Varga add2135688 Fix a test. 2013-04-11 17:25:33 +02:00
Zoltan Varga a7ba26f942 Disable some System.Data tests which are expected to fail in the mobile profile. 2013-04-11 16:56:18 +02:00
Zoltan Varga c94730c32f Disable some System tests which are expected to fail in the mobile profile. 2013-04-11 16:37:02 +02:00
Marek Safar 0d3f3eb27f Fix cascading errors for invalid out arguments 2013-04-11 12:03:58 +02:00
Marek Safar 9275b2d11b Check interface implementation using all base types members. Fixes #11694 2013-04-11 12:03:57 +02:00
Duncan Mak 205724650b Bump version to 3.0.10 2013-04-10 13:22:34 -04:00
Marek Safar a8eadf8b75 Don't emit symbol file entry for partial method declarations. Fixes #11704 2013-04-10 18:45:11 +02:00
Marek Safar a67b91692b Remove System.Net.Http from MT mobile build 2013-04-10 09:49:51 +02:00
Marek Safar 8f36e5c16e Fix duplicate metadata override entry. 2013-04-10 09:49:02 +02:00
Marek Safar 237740ca53 Add missing prepare phase to eval 2013-04-10 09:49:02 +02:00
Zoltan Varga 7a7fb32f01 Revert "Parallelize the compression in mkbundle."
This reverts commit d168c95182.

Revert this as it breaks mtouch.
2013-04-10 09:28:53 +02:00
Rodrigo Kumpera 75e4bbbb30 Revert "Remove System.Net.Http from MT mobile build"
This reverts commit a00ab04a64.
2013-04-09 19:20:44 -04:00
Zoltan Varga bf74036b44 Move some boehm specific code in gc.c to boehm-gc.c. 2013-04-10 00:46:19 +02:00
Zoltan Varga 3b7a9534bb Don't abort the process using g_abort () when a breakpoint cannot be inserted. 2013-04-09 22:36:35 +02:00
Zoltan Varga 5bae54197a Clear the domain TLS variable earlier in start_wrapper_internal () so async signal handlers don't run concurrently with thread cleanup. Hopefully fixes #11102. 2013-04-09 17:34:11 +02:00
Zoltan Varga 9db419c35c Don't leave the thread suspended in mono_threads_core_suspend () if thread_state_init_from_handle () fails. 2013-04-09 17:30:44 +02:00
Zoltan Varga d0fd942ab9 Fix alignment of unbox trampolines when using LLVM+thumb on ARM. Fixes #11594. 2013-04-09 14:26:09 +02:00
Marek Safar a00ab04a64 Remove System.Net.Http from MT mobile build 2013-04-09 14:14:10 +02:00
Marek Safar aa6cbe44bf Try to recover expressions aftern named argument 2013-04-09 14:14:10 +02:00
Alex Rønne Petersen 566e77925d Support disabling of the security subsystem (CAS/CoreCLR).
This could still use some future work. For example, we could get
rid of lots of security code in the class libs. There are also some
functions in the runtime that don't get removed because we don't
use the stub macro approach for all public security functions.

Based on Sebastien's patch.
2013-04-09 11:14:45 +02:00
Zoltan Varga 88bd84a855 Hopefully fix the windows build. 2013-04-09 09:26:18 +02:00
Duncan Mak 8f776d77c2 Bump version number to 3.0.9 2013-04-08 17:14:32 -04:00
Rodrigo Kumpera 87b9278607 Fix llvm loading when calling through a symlink.
mini-llvm.h: When trying to load mono from ./.libs or ../lib we did not
	resolve the current binary for symlinks. This failed on OSX since
	everyone calls /usr/bin/mono while libmono-llvm was on
	/Library/Frameworks/Mono.framework/Versions/Current/lib.

	This make mono --llvm work on release mono.
2013-04-08 15:32:20 -04:00
Rodrigo Kumpera 60f89d99fb Guard against another possible crash that has been seen on wrench. 2013-04-08 15:32:19 -04:00
Marek Safar 60979ce4a4 Merge pull request #601 from knocte/sock_improvements
[System.Net.Sockets] Specify 'timeout' in the exception msg of the Receive(buf) overload
2013-04-08 03:00:28 -07:00
Andres G. Aragoneses 3e401381fe [io-layer] add URLs for some ximian bug numbers in sockets.cs
Not everybody knows that a ximian bug 123 can be accessed this way:
https://bugzilla.novell.com/show_bug.cgi?id=MONO123
2013-04-08 10:43:38 +01:00
Andres G. Aragoneses 67f528d7bb [Socket] Improve exception message when timing out in Socket.cs
This uses now the same exception message as MS.NET.
2013-04-08 10:42:42 +01:00
Andres G. Aragoneses 2ee016a7a6 [Socket] Refactor Socket to make Receive(_) call Receive(_,_)
After previous commit, two Receive() overloads are basically the same, so
we can remove some duplicated code here by making one call the other one.
2013-04-08 10:41:56 +01:00
Andres G. Aragoneses 55c7e30b1e [Socket] Specify 'timeout' in the exception msg of Receive(buf)
In the same way the overload Receive (buf, flags) already does, mention
"time out" in the exception message when the socketError is WOULDBLOCK and
the socket is not non-blocking (otherwise it would throw with the reason
"Operation on non-blocking socket would block", which doesn't make sense
for a socket that is not non-blocking).
2013-04-08 10:41:18 +01:00
Elijah Taylor ab39b74267 NaCl ARM work, first pass 2013-04-07 09:47:16 +02:00
Elijah Taylor 1e726ce7a3 NaCl runtime fixes
- fix compile/runtime issues caused by upstream changes
- add NaCl glibc support
- various changes to support running tests in NaCl glibc
  from 'make check'
2013-04-07 09:45:45 +02:00
Marek Safar 28c53a39a4 Implement partial generic methods 2013-04-07 09:39:53 +02:00
Zoltan Varga 66acbc75aa Implement the calculation of stack bounds on windows. Fixes #11624. 2013-04-06 10:05:28 +02:00
Zoltan Varga d13a010ac0 Fix the windows build. 2013-04-06 10:04:27 +02:00
Zoltan Varga 1f53c672a5 Fix support for custom attribute classes in CustomAttributeDataMirror which indirectly inherit from Attribute. Fixes #11564. 2013-04-05 18:32:55 +02:00
Martin Baulig a3c14d7686 [xbuild]: Support <PropertyGroup/ItemGroup> inside <Target>. 2013-04-05 13:07:02 +02:00
Marek Safar 3b058f0680 Redirect more duplicate security types to Mono.Security 2013-04-05 11:15:25 +02:00
Atsushi Eno 2edeeb60e7 rx: Add -d:HAS_AWAIT options to 4.5 and 2.1 builds. 2013-04-05 00:02:29 +09:00
Jeffrey Stedfast 0bf20c9542 [Mono.Debugger.Soft] Make CommandException public 2013-04-03 17:23:54 -04:00
Mark Probst caf5fc0152 Merge remote-tracking branch 'origin/fix-los-cardtable-overlap' 2013-04-03 12:29:05 -07:00
Mark Probst 7cb476758c [sgen] Use unified cardtable-update code in M&S, too.
The bug where objects crossed the cardtable overlap boundary cannot
happen with M&S because blocks are naturally aligned.  It can't hurt
to use the same code for updating them, too, though.
2013-04-03 12:25:58 -07:00
Mark Probst b347b88255 [sgen] Fix 64-bit bug occurring when LOS object crosses cardtable overlap boundary. 2013-04-03 12:01:51 -07:00
Marek Safar 8e1f3725a5 Fix arguments location 2013-04-03 18:59:47 +02:00
Gerardo García Peña e62924259a Implemented method 'IsUnknownSurrogate()'. 2013-04-03 17:26:14 +02:00
Gerardo García Peña 8f6a053b80 Refactorized Convert(char[], int, ...) to use the pointer version. 2013-04-03 17:24:35 +02:00
Gerardo García Peña a0a12c128d Refactorized convert(byte[], int, ...), now uses the pointer version. 2013-04-03 17:21:58 +02:00
Marek Safar f02f3e5249 Add new test 2013-04-03 13:21:11 +02:00
Marek Safar 1a922652b4 Fix reported warning location 2013-04-03 13:21:10 +02:00
Marek Safar cb7a435f96 Error reporting improvements 2013-04-03 13:21:10 +02:00
Marek Safar 0ef6ca75c0 Report missing type definition dependency only once per type. 2013-04-03 13:21:09 +02:00
Alex Rønne Petersen cfcd953716 Fix another cast warning in sgen-debug.c. 2013-04-02 22:51:13 +02:00
Alex Rønne Petersen 10db9da681 Fix an #if in System.Delegate.IsTransparentProxy () to use DISABLE_REMOTING. 2013-04-02 22:43:49 +02:00
Alex Rønne Petersen 1eed6ec431 #ifndef some variables out to silence warnings in builds with COM/remoting disabled. 2013-04-02 22:36:13 +02:00
Alex Rønne Petersen 7023da15d3 Remove an unneeded inner #ifndef DISABLE_COM. 2013-04-02 22:36:13 +02:00
Alex Rønne Petersen 6e1636eebe Only define get_local_interface_id () on Apple platforms. 2013-04-02 22:36:12 +02:00
Alex Rønne Petersen 15b57de655 Explicitly ignore some return values with a G_GNUC_UNUSED variable. 2013-04-02 22:36:12 +02:00
Alex Rønne Petersen b8b46cb346 Fix the tramp_names table when remoting is disabled. 2013-04-02 22:36:12 +02:00
Alex Rønne Petersen 0b1f35561b Silence a couple of unused variable warnings with G_GNUC_UNUSED. 2013-04-02 22:36:12 +02:00
Alex Rønne Petersen 949a0bf462 Fix some warnings caused by casts. 2013-04-02 22:36:12 +02:00
Alex Rønne Petersen 7b302355df Unbreak the build when Boehm is enabled and remoting is disabled. 2013-04-02 22:36:12 +02:00
Mark Probst 03f7df287a Merge remote-tracking branch 'origin/fix-concurrent-wbarrier' 2013-04-02 12:32:52 -07:00
Mark Probst 6732f0e127 [sgen] Fix binary protocol concurrent crashes. 2013-04-02 12:31:33 -07:00
Mark Probst 5868efd369 [sgen] Mark major->major references in unmanaged wbarrier, too. 2013-04-02 10:39:38 -07:00
Mark Probst 9d9ffd1a44 [sgen] Update mod-union with regular, not shadow cardtable. 2013-04-02 10:39:37 -07:00
Mark Probst 49a81d8774 [sgen] Mod-union consistency check MONO_GC_DEBUG option. 2013-04-02 10:39:37 -07:00
Mark Probst 2f707e5d52 [sgen] Cmdline option to print all entries in sgen-grep-binprot. 2013-04-02 10:39:36 -07:00
Mark Probst 359f977e79 [sgen] Binary protocol entry for user-forced GCs. 2013-04-02 10:39:30 -07:00
Miguel de Icaza dbb4fd4700 Merge pull request #606 from sesef/master
Fix .NET incompatibility in UpDownBase
2013-04-01 18:28:03 -07:00
Jeffrey Stedfast 57cbcf93a5 [Mono.Debugger.Soft] fixed the build 2013-04-01 16:34:01 -04:00
Jeffrey Stedfast b06106a311 [Mono.Debugger.Soft] Throw AbsentInformationException, not ArgumentException which makes no sense 2013-04-01 16:31:23 -04:00
Zoltan Varga c29511f2e6 Don't disable sharing for open generic async methods, since the JIT can't compile these without sharing. 2013-03-31 13:42:08 +02:00
Marek Safar 10ef8870ef Set async block flag also for partial methods 2013-03-30 10:44:49 +01:00
Marek Safar dbdab197a7 Make table name comparison dataset locale specific. Fixes #7899 2013-03-29 18:36:55 +01:00
Zoltan Varga 1f739060e5 Hopefully fix the windows build. 2013-03-29 06:56:19 +01:00
Zoltan Varga 2bae3cf88d Hopefully fix the windows build. 2013-03-29 04:24:16 +01:00
Sebastien Pouliot 8cb68371fd Have the linker skip mixed-mode assemblies since it won't be able to save them later 2013-03-28 17:07:15 -04:00
Zoltan Varga a268679986 Remove some debug printfs. 2013-03-28 10:48:03 +01:00
Zoltan Varga 7485205bb3 Fix the build. 2013-03-28 10:46:58 +01:00
Zoltan Varga e70d60d39d Fix the build. 2013-03-28 06:24:09 +01:00
Jonathan Pryor 7a30dcccb9 Fix build break.
5329fab3 requires <sys/uio.h>, which wasn't being included.
2013-03-27 23:29:50 -04:00
Zoltan Varga 7547f6f2f1 Move atomic.h/atomic.h to utils/. 2013-03-28 04:08:13 +01:00
Zoltan Varga 2a2f1cf5b1 Add implementations of atomic functions using gcc atomic ops. Not yet used. 2013-03-28 03:44:57 +01:00
Jonathan Pryor 772fa304a2 [mkbundle] Remove Mono.Posix, ICSharpCode.SharpZipLib deps
I want to make execution of mkbundle possible under .NET, and as such
I want to remove unnecessary dependencies.

Mono.Posix is only used for UnixMarshal heap methods; there's NO need
to use these when Marshal can be used.

That leaves DeflaterOutputStream, and it's possible to configure zlib
to accept deflate streams, allowing us to use GZipStream:

	http://stackoverflow.com/a/1838702/83444

Update template_z.c accordingly so that the compressed data works.

Two side results of this:

 1. Increased compression; my (really stupid) test app went from a
    compression ration of 31.39% to 32%

 2. This MAY make things WORSE when running on .NET < 4.5. This is
    fixed in .NET 4.5:

	http://msdn.microsoft.com/en-us/library/system.io.compression.deflatestream.aspx

	Starting with the .NET Framework 4.5, the DeflateStream class
	uses the zlib library. As a result, it provides a better
	compression algorithm and, in most cases, a smaller compressed
	file than it provides in earlier versions of the .NET
	Framework.
2013-03-27 18:12:07 -04:00
Jonathan Pryor 6fc3d4f268 Merge pull request #609 from steffen-kiess/stat-st_atim
Add nanosecond resolution times to struct Stat
2013-03-27 06:38:11 -07:00
Steffen Kieß 28e16142fa Add nanosecond resolution times to struct Stat 2013-03-27 13:45:50 +01:00
KISHIMOTO, Makoto 2945762bc0 modify for VPATH builds 2013-03-27 16:45:18 +09:00
Zoltan Varga 3a29f718c5 Fix sdb asserts when seq-points are not found for a method because its assembly was AOTed without the 'soft-debug' option. Fixes #11435. 2013-03-27 02:00:44 +01:00
Jonathan Pryor f3b1d7e5eb Merge pull request #221 from steffen-kiess/master
Add various methods and flags to Syscall
2013-03-26 14:42:30 -07:00
Steffen Kieß 5329fab38b Add various methods and flags to Syscall
* Add OpenFlags.O_CLOEXEC and OpenFlags.O_PATH

    * Add AtFlags for AT_* values

    * Add fdopendir, mkdtemp, futimens

    * Add readv, writev, preadv, pwritev

    * Add *at methods: openat, renameat, fchmodat, fstatat, utimensat,
      mkdirat, mknodat, mkfifoat, faccessat, fchownat, linkat, readlinkat,
      symlinkat, unlinkat

    * Add constants AT_FDCWD, UTIME_NOW, UTIME_OMIT
2013-03-26 21:26:09 +01:00
Zoltan Varga f85afc4d55 Export a few more symbols for LLVM. 2013-03-26 20:15:20 +01:00
Miguel de Icaza ad1327fad5 [corlib] Marshal: fine-tune the pointer Read/Write operations.
This patch reworks the Marshal's Read and Write pointer operations
to avoid performing a modulo operation to choose the fast path, as
in some platforms the modulo operation is implemented as a C subroutine.

Instead we use bit operations which always run in constant time.

It also avoids the IntPtr.XXX method calls, factors out "unsafe", only
ever performs one IntPtr->pointer conversion, and makes the source
code uniform.
2013-03-26 15:05:02 -04:00
Zoltan Varga cbdf471ff5 Remove a redundant null check. 2013-03-26 20:01:41 +01:00
Zoltan Varga 9cdddca7ec Return null when null was passed to Marshal.PtrToStructure () instead of throwing an exception. Fixes #11417. 2013-03-26 19:59:09 +01:00
Steffen Kieß 6ceccd8cd2 Set errno to 0 before calling readdir in Syscall.readdir().
This will allow the caller to distinguish between errors and end-of-directory.
2013-03-26 19:53:00 +01:00
Marek Safar 888e9acdbb Update number separators for mexican and similar locales. Fixes #8084 2013-03-26 19:18:55 +01:00
Marek Safar 0b62a137ab Set invariant DateTimeFormatInfo for all invariant format specifiers. Fixes #11364 2013-03-26 19:18:55 +01:00
Marek Safar bbc5b610d0 Populate AbbreviatedMonthNames values. Fixes #11361 2013-03-26 19:18:54 +01:00
Atsushi Eno 3f19e47979 update cecil rev.
We cannot fully update cecil to the latest master which seems to break
some existing code, so use specific branch so far.
2013-03-27 01:56:13 +09:00
Paolo Molaro 477124f771 Export a few functions needed by llvm. 2013-03-26 16:35:28 +01:00
Marek Safar 76da0ed16c Fix quoting of some date time patters. Fixes #11363 2013-03-26 11:35:55 +01:00
Marek Safar 2002e45778 Add zh-CHT parent lcid handling. Fixes #11375 2013-03-26 11:07:31 +01:00
Alex Rønne Petersen 778c86d341 Merge pull request #608 from metanest/bin_bash_spike
#!/bin/bash -> #!/usr/bin/env bash
2013-03-26 00:46:16 -07:00
KISHIMOTO, Makoto 1e896532e7 #!/bin/bash -> #!/usr/bin/env bash 2013-03-26 12:56:22 +09:00
Zoltan Varga aa8abd1f58 Don't emulate idiv.un/irem.un on ARM in cases where it can be optimized away. 2013-03-26 04:31:07 +01:00
Zoltan Varga bd4c5c3651 Fix a typo in bc149a3814. 2013-03-26 01:32:33 +01:00
Marek Safar 947a45caec Add configure await 2013-03-25 16:01:53 +01:00
Marek Safar 7a345a73f5 Merge pull request #607 from maksimenko/master
use await GetRequestStreamAsync on System.Net.Http.HttpClientHandler SendAsync to avoid blocking
2013-03-25 07:44:13 -07:00
Rodrigo Kumpera 4b294019c6 Change mono_gc_get_managed_array_allocator to receive a MonoClass instead of a vtable, rank pair.
* method-to-ir.c: Given mono_gc_get_managed_array_allocator now takes a class and not an vtable,
	we can now use it for shared code allocating arrays.
2013-03-25 10:42:01 -04:00
Rodrigo Kumpera 4189fe3f95 Fast path Array::Resize with small arrays. 2013-03-25 10:42:01 -04:00
Marek Safar 694f00b66f Don't capture any variables when block yield only breaks 2013-03-25 15:11:50 +01:00
Marek Safar f94c224b85 Don't create interator parameters copies for unmodified parameters 2013-03-25 14:22:16 +01:00
Marek Safar f0af91e211 Apply 9dc360146f to all where methods 2013-03-25 14:16:35 +01:00
Marek Safar b26a3411e5 Don't copy hoisted iterator parameters when not needed 2013-03-25 11:05:42 +01:00
Zoltan Varga ec5503773f Fix the hashing of MonoJumpInfo structures, previously many had the same hash code. 2013-03-25 02:54:39 +01:00
Zoltan Varga b354c6268d Add a mono_print_ji () helper function to print a MonoJumpInfo structure. 2013-03-25 02:54:39 +01:00
Miguel de Icaza 77e58567c1 Add a test for the WebUtility.HtmlEncode bits 2013-03-24 19:18:51 -04:00
Zoltan Varga f90a274d80 Move the 'Created object count' stat to the GC section when using --stats. 2013-03-24 23:28:18 +01:00
Zoltan Varga b831ead5a9 Avoid using an rgctx when making delegate invokes from shared code, the delegate trampoline code already handles this. 2013-03-24 22:55:08 +01:00
Marek Safar 9dc360146f Add optimized where iterator for arrays 2013-03-24 15:03:22 +01:00
Marek Safar 7bcf833b78 Optimize entity conversion 2013-03-24 11:34:51 +01:00
Marek Safar dfaeb0c361 Try to recover incomplete ternary expression. Fixes #5195 2013-03-24 11:34:50 +01:00
Marek Safar cd14fdd614 Better error message for not matching overload when expanded params conversion fails. 2013-03-24 11:34:50 +01:00
Zoltan Varga 0681cc0f83 Fix the build. 2013-03-24 09:39:46 +01:00
Zoltan Varga 4c9075429a Avoid AOTing PtrToStructure/StructureToPtr() wrappers for the compiler generated '-...' structs. 2013-03-24 08:46:00 +01:00
Zoltan Varga adc5d247ef Use (uint) casts in the Marshal.Read/WriteXXX () methods to speed up the alignment checks. 2013-03-24 03:33:24 +01:00
Zoltan Varga 6dbaf9b671 Put back a cattr removed by mistake by 70141dc9f5. 2013-03-24 02:46:16 +01:00
Zoltan Varga 70141dc9f5 Implement the Marshal.Read/WriteXXX methods using unsafe code instead of icalls. 2013-03-24 02:43:27 +01:00
Victor H. Maksimenko 1a6f502f56 use the GetRequestStreamAsync method to avoid blocking on HttpClientHandler SendAsync 2013-03-23 15:59:48 -04:30
Jérémie Laval 605e4d6313 [monodoc] Remove previous horrible generic backtick notation hack and properly handle them in node search. 2013-03-23 15:11:49 +00:00
Jérémie Laval ab79cb82bc [monodoc] Add a simple stack-based generic argument count method. 2013-03-23 15:05:46 +00:00
Jérémie Laval 3e05c18093 [IDesigner] Add cref reachability checker unit test though disabled for now.
Mono documentation has a lot of syntax error in its crefs so it's not good material for a reliable unit test until we can do better on that front.
2013-03-23 15:02:19 +00:00
Jérémie Laval ba43a5ae56 [monodoc] Add utility property Generic*IsNumeric to distinguish between types using full generic notation (e.g. Foo<T1, T2>) or just backtick notation (e.g. Foo`2) 2013-03-23 15:01:03 +00:00
Jérémie Laval 75faf4d897 [monodoc] Add reachability unit test for ASP.NET style URLs 2013-03-23 14:58:01 +00:00
Jérémie Laval e2b584c2af [monodoc] Parse correctly '{' and '}' as '<' and '>' (generic params) in ECMA url.
These characters are used in place of normal bracket in some part of the xsl generation code, mostly to prevent ASP.NET default code injection policy to kick in.
2013-03-23 13:59:34 +00:00
Sesef ad381fc414 tabs 2013-03-23 11:52:12 +01:00
Sesef 2515e22514 Fix NET incompatibility 2013-03-23 11:43:33 +01:00
Sebastien Pouliot 71d027fb55 Open test files in read-only mode (so it will work on devices where permissions won't allow read/write) 2013-03-22 17:20:41 -04:00
Marek Safar e816267243 Maintain more tokens locations. 2013-03-22 16:30:33 +01:00
Marek Safar 0873dd811f Don't report error for incomplete member type 2013-03-22 15:49:27 +01:00
Marek Safar 19e7a81b9b Try to recover incomplete initializers. Fixes #4964 2013-03-22 15:28:03 +01:00
Marek Safar 2ae9fc18eb Avoid extra space when reporting error for compiler modifiers 2013-03-22 13:36:14 +01:00
Marek Safar 19c8282257 Maintain more locations values 2013-03-22 10:06:10 +01:00
Marek Safar 8209756fd0 Try to recover incomplete member declaration which looks like field. Fixes #7521 2013-03-22 10:06:10 +01:00
Marek Safar 12f8dd310a Merge pull request #605 from AerisG222/system.web.http.webhost
system.web.http.webhost
2013-03-22 00:43:08 -07:00
Atsushi Eno 32455dbbe9 remove extra printf. 2013-03-22 16:23:45 +09:00
Zoltan Varga 05b20fe484 Fix the checks in is_async_method (). 2013-03-22 04:19:29 +01:00
Martin Baulig d64187a447 [WCF]: Disable WsdlExporterTest.ExportMessageContract(). 2013-03-22 04:08:10 +01:00
Martin Baulig 97d52b2237 [WCF]: Implement cookie support in .NET 4.0. 2013-03-22 04:08:10 +01:00
Mike Morano 13c77a1629 making the build system aware of system.web.http.webhost that is a component of the aspnetwebstack 2013-03-21 21:31:55 -04:00
Zoltan Varga dc721e3c8a Fix deadlock in CreateProcess () if fork () fails. Fixes #11315. 2013-03-22 02:22:09 +01:00
Martin Baulig d2d903f1d2 [WCF]: 2nd part of bug #5827, set CheckCharacters = false in TextMessageEncoder. 2013-03-22 01:57:37 +01:00
Zoltan Varga e711081984 Fix an LLVM crash when a method ending with a throw is inlined into a catch clause. Fixes #11297. 2013-03-22 01:27:10 +01:00
Martin Baulig 91f11b20d7 Bug #5829: DataContractSerializer should not check for invalid characters. 2013-03-22 01:00:56 +01:00
Martin Baulig bf6d00c9b9 [System.ServiceModel.Web]: Fix 'make dist'. 2013-03-22 00:14:52 +01:00
Marek Safar 04403c39d2 Try to recover from invalid attribute. Fixes #8590 2013-03-21 19:02:01 +01:00
Rodrigo Kumpera 9c15b24100 Fix the System.Runtime.Serialization test suite to compile. 2013-03-21 13:18:16 -04:00
Marek Safar 9dd1781f8b Try to recover from incomplete group section. Fixes #10228 2013-03-21 10:28:16 +01:00
Elijah Taylor 26bc82731d Test for divide by zero for NaCl in software 2013-03-21 05:16:57 +01:00
Elijah Taylor b2de5b898d Add explicit laddcc/lsubcc IR opcodes
This allows ladd/lsub to decompose into CC instructions
that correctly maintain the width of the operands.  This
was a problem on NaCl amd64 specifically which has 32-bit
longs and ints, but 8 byte registers.
2013-03-21 05:16:57 +01:00
Elijah Taylor 9ae0e35f95 NaCl x86 codegen fixes 2013-03-21 05:16:56 +01:00
Elijah Taylor bc149a3814 NaCl amd64 codegen fixes
- mostly more code fixes to deal with a 64-bit ILP32 machine
2013-03-21 05:16:56 +01:00
Elijah Taylor b46a770869 NaCl GC improvements
- inline managed code implementation
  (add x86 test mem imm8 codegen macro for this as well)
- clean up libgc NaCl code
- centralize mono_nacl_gc into mini.c
2013-03-21 05:16:56 +01:00
Elijah Taylor 99f40ae5bb Add NaCl build scripts 2013-03-21 05:16:55 +01:00
Zoltan Varga 391e857c5b Disable the async test in generics.cs as it doesn't work with --regression. 2013-03-21 05:16:41 +01:00
Zoltan Varga 48b90276c2 Fix full-aot support for generic async methods by treating them as non-sharable. Fixes #11096. 2013-03-21 03:30:59 +01:00
Rodrigo Kumpera 02b64abba2 Fix multiple issues with System.Data.DataRow::SetParentRow. Fixes #7900.
* DataRow.cs: There is a total of issues been addressed here:

	1) SetParentRow (null) would crash instead of setting all relation
	columns to DBNull.

	2)SetParentRow (parentRow, relation) did not check if both row and relation
	belong to the same table.

	3)SetParentRow(parentRow) when the child table has multiple relations to different
	tables, we should only process those that belong to the table of parentRow.
2013-03-20 17:49:59 -04:00
Marek Safar 2e6a2a4454 define/undefine position errros are not reported when excluded from compiletion. Fixes #11292 2013-03-20 19:27:43 +01:00
Marek Safar 85639aee6d Use 4.0 path when configured with disabled 4.5 profile. Fixes #11233 2013-03-20 11:33:38 +01:00
Marek Safar a562752c01 Advance column on escaped string characters. Fixes #8097 2013-03-20 11:03:47 +01:00
Marek Safar 3868900a87 Copy type parameter constraint interfaces before its base type is expanded. 2013-03-20 09:11:13 +01:00
Marek Safar d5c315e803 Fix wrong assembly name hint 2013-03-20 09:11:12 +01:00
Zoltan Varga 2498a51c51 Fix an infinite loop in decode_llvm_mono_eh_frame () when the last method in an AOT image is processed on ios. Fixes #11212. 2013-03-20 04:53:56 +01:00
Marek Habersack c802ea53a3 Added CreateNLSocket stub for non-linux platforms 2013-03-20 01:38:07 +01:00
Sebastien Pouliot 325ed45145 Do not assume the unit tests can write in the application directory (e.g. iOS devices). 2013-03-19 15:04:49 -04:00
Sebastien Pouliot be0ecab083 Disable CAS permission tests for MOBILE profile 2013-03-19 15:04:09 -04:00
Sebastien Pouliot 32c4b50508 Ensure the linker does not remove some types needed (thru reflection) for some test cases to work 2013-03-19 14:07:17 -04:00
Marek Safar db4800320e Fix expansion of imported generic interfaces implementing imported types. Fixes #11241 2013-03-19 18:28:54 +01:00
Mark Probst 176363d37b Merge branch 'feature-free-32' 2013-03-19 10:09:55 -07:00
Mark Probst 3575b3a6c2 [sgen] Statistics for 32 bit freeing. 2013-03-19 10:09:41 -07:00
Mark Probst bed6bbf8f4 [sgen] While iterating over empty block array, compact it. 2013-03-19 10:09:41 -07:00
Mark Probst 29c9126e13 [sgen] Try allocating M&S blocks in smaller contingents in case of failure.
This might happen when the address space fragments.  If it happens due to
OOM, we're probably lost anyway.
2013-03-19 10:09:40 -07:00
Mark Probst 4ce22525e0 [sgen] Free contiguous blocks on 32 bit archs. 2013-03-19 10:09:40 -07:00
Marek Safar 6a51733812 Fix parsing decimal values used with integral numbers. Fixes #9090 2013-03-19 12:27:06 +01:00
alexrp b1d30c53c5 Use /bin/bash instead of /bin/sh in autogen.sh. 2013-03-19 05:17:54 +01:00
Sebastien Pouliot b43764a214 Do not assume the unit tests can write in the application directory (e.g. iOS devices) 2013-03-18 21:30:47 -04:00
Sebastien Pouliot 105f2bd164 Disable CAS permission tests for MOBILE profile 2013-03-18 21:30:29 -04:00
Sebastien Pouliot c3b782f4ec Do not assume the unit tests can write in the application directory (e.g. iOS devices). Use the temporary directory and open files in read-only 2013-03-18 17:38:28 -04:00
Zoltan Varga d168c95182 Parallelize the compression in mkbundle. 2013-03-18 19:54:38 +01:00
Sebastien Pouliot 2c945ffb26 Return null for AppDomain.Evidence so API accepting this type won't fail (as the type is linked away) when using AppDomain.CurrentDomain.Evidence as an argument. Fix more than 20 System.Xml unit tests on iOS devices 2013-03-18 14:08:53 -04:00
Marek Safar f52f10ef4f Add localized infinity symbols. Fixes #9052 2013-03-18 14:57:57 +01:00
Marek Safar eeac621f70 Use curl instead of wget 2013-03-18 14:57:25 +01:00
Marek Safar a583280e64 Fully resolve extension method argument. Fixes #11213 2013-03-18 10:57:04 +01:00
Marek Safar 46fc054c3f Remove internal continuations from unfinished tasks used in WhenAny, Fixes #11008 2013-03-18 09:33:06 +01:00
Jonathan Shore e6b8be8cba minor fix for bug 9520:
- socket configuration attempts to determine if system supports ipv6
- checks app configuration, but configuration throws exception if called from embedded context
- solution is to put a try/catch guard and fall to an alternative test for ipv6
2013-03-16 11:34:59 -04:00
Martin Baulig efda0d4c62 Revert "Fixes make dist"
This reverts commit 87e95b46ed.

This puts DataContractJsonSerializerSettings.cs back into
mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json.

Let's please not have a single file from this namespace in another
directory, either move the entire System.Runtime.Serialization.Json
stuff into System.Runtime.Serialization or leave it here.
2013-03-15 18:14:44 -04:00
Rodrigo Kumpera 9f438cd066 Properly bzero unaligned small blocks. Fixes #11184. 2013-03-15 16:30:15 -04:00
Marek Safar 23e7149069 Cache implicitly created static delegates 2013-03-15 18:37:59 +01:00
Atsushi Eno 1190937dc1 part of fix bug #10160 - give innerException for some rethrown exception. 2013-03-16 01:19:16 +09:00
Zoltan Varga 9baa7b89b4 Avoid an assert in sdb for compiler generated byref locals. Fixes #11115. 2013-03-15 16:43:41 +01:00
Marek Safar 267f405394 Add new tests 2013-03-15 15:28:50 +01:00
Marek Safar 78fe562f82 Update locations 2013-03-15 15:28:50 +01:00
Marek Safar 663861741f Implement optimization where lambdas can be replaced by direct method-group they are wrapping. Fixes #10663 2013-03-15 15:28:49 +01:00
Marek Safar f2f0ea3f3b Fix column info for symbol file expressions 2013-03-15 15:28:49 +01:00
Jeremie Laval f40da03909 [monodoc] Handle summaries for transient root nodes better. Add unit-tests. 2013-03-15 11:19:03 +00:00
Mark Probst 0d5756714a [sgen] Remove some dead #defines. 2013-03-14 14:46:30 -07:00
Marek Safar d61cc11225 Add new assemblies 2013-03-14 19:09:53 +01:00
Martin Baulig f6fcd8bcd9 Temporarily revert "Add PCL type-forwarders."
This reverts commit 62559a75df.
2013-03-14 13:37:57 -04:00
Martin Baulig 62559a75df Add PCL type-forwarders. 2013-03-14 12:58:36 -04:00
Marek Safar 715d5a5450 Remove redundant lambda wrapper 2013-03-14 17:43:16 +01:00
Marek Safar 87e95b46ed Fixes make dist 2013-03-14 17:42:45 +01:00
Mark Probst 0d3d43f1dd [sgen] Don't call sgen_scan_togglerefs() twice.
In the case where they are called twice, the first call must already have
processed the whole heap.
2013-03-13 16:04:20 -07:00
Mark Probst 792f319464 [sgen] Remove superfluous arguments to finish_gray_stack(). 2013-03-13 16:02:01 -07:00
Martin Baulig 8ea5b572f9 Add type-forwarders for existing assemblies. 2013-03-13 18:07:44 -04:00
Martin Baulig 1abdc24adc Merge pull request #599 from knocte/ntlm_fixes
[Mono.Data.Tds] Stop using Obsoleted NTLM APIs (partial fix for BXC#11122)
2013-03-13 14:35:32 -07:00
Mark Probst 5d4ff596a7 [semaphore] Fix mono_sem_wait() for Darwin, clean up mono_sem_post().
semaphore_wait() never returns -1, but returns KERN_ABORTED if the
call needs to be repeated.  This caused a semaphore wait to sometimes
return in the SGen workers code when it shouldn't, which caused a
mysterious assertion failure.
2013-03-13 13:40:30 -07:00
Martin Baulig eefc9d8998 Implement MonoType.IsConstructedGenericType. 2013-03-13 15:51:34 -04:00
Martin Baulig d6eac67800 Implement IntrospectionExtensions.GetTypeInfo(). 2013-03-13 15:38:18 -04:00
Andres G. Aragoneses 05600e8114 [Mono.Data.Tds] Stop using Obsoleted NTLM APIs (partial fix for BXC#11122)
New NTLM APIs have been pushed recently[1], which made Mono.Data.Tds break
with IOE: Refusing to use legacy-mode LM/NTLM authentication unless
explicitly enabled using DefaultAuthLevel.

This doesn't fix the bug completely, but at least reverts the situation
to the same exception being thrown before the NTLM changes took place.

[1] https://github.com/mono/mono/commit/45745e5123267e8530b87b8dada9a89c6269b383
2013-03-13 19:00:50 +00:00
Miguel de Icaza e0e560630a Progress<T> (ActioN<T>) constructor now also initializes the context 2013-03-13 14:48:39 -04:00
Martin Baulig 8c2389d8d0 Put back MethodInfo.CreateDelegate() and fix DynamicMethod. 2013-03-13 14:19:05 -04:00
Zoltan Varga 9efd73982c Don't set the visibility of the type_info_ symbols in the LLVM backend. Fixes #11076. 2013-03-13 18:02:50 +01:00
Zoltan Varga 73bef43451 Revert part of 9ec4d6984f since it breaks DynamicMethods. 2013-03-13 17:44:44 +01:00
Marek Safar 4dc3ba8eba Try to fix statement expression location. Fixes #10306 2013-03-13 16:50:28 +01:00
Jérémie Laval 112da01bdc [monodoc] Handle global `root:' url 2013-03-13 14:25:46 +00:00
Marek Safar 046b7a22c8 Resolve switch block without fake sections blocks. Fixes #10781 2013-03-13 12:08:13 +01:00
Martin Baulig 988f522b36 Put back unsupported EventWaitHandle and Mutex constructors. 2013-03-12 22:13:39 -04:00
Martin Baulig 2c8d10572e Oops, fix the mobile build. 2013-03-12 21:42:27 -04:00
Mark Probst d27cd5f56f [sgen] Gather a histogram of layouts of scanned objects.
With this information we can implement more efficient GC descriptors.
2013-03-12 18:33:26 -07:00
Martin Baulig 54f7c82d2b DataContractSerializer changes for .NET 4.5.
* Move System.Runtime.Serialization.Json from System.ServiceModel.Web.dll
  into System.Runtime.Serialization.dll on the mobile profile.

* Add DataContractJsonSerializerSettings and DataContractSerializerSettings..
2013-03-12 21:15:56 -04:00
Martin Baulig d54fac4349 Minor .NET 4.5 API fixes. 2013-03-12 21:15:56 -04:00
Martin Baulig 67cdf2848c Add System.WeakReference<T>. 2013-03-12 21:15:56 -04:00
Martin Baulig b53cdf8749 System.Threading.SemaphoreSlim.WaitAsync(). 2013-03-12 21:15:56 -04:00
Martin Baulig 03bb7b498a System.Threading.{Semaphore|EventWaitHandle|Mutex}.TryOpenExisiting(). 2013-03-12 21:15:55 -04:00
Martin Baulig 9cdbbbd234 Update aspnetwebstack to e77b12e.
This is just the single commit:
https://github.com/mono/aspnetwebstack/commit/e77b12e6cc5ed260a98447f609e887337e44e299
2013-03-12 21:14:41 -04:00
Zoltan Varga 7906336bdc Fix some DISABLE_JIT problems. 2013-03-13 01:52:34 +01:00
Jonathan Pryor 35390cd03a [mdoc] Build with -platform:x86
Works around: http://connect.microsoft.com/VisualStudio/feedback/details/635365

The problem is that 64-bit .NET has a bug:
RuntimeHelpers.InitializeArray() throws ArgumentException for certain
array creation constructs that mcs likes to emit. Cecil uses
RuntimeHelpers.InitializeArray() to get the data, which throws, and
everyone becomes very sad:

	Running mdoc "update" "--debug" ...
	mdoc: System.TypeInitializationException: The type initializer for 'Mono.Cecil.Metadata.TableHeap' threw an exception. ---> System.ArgumentException: Value does not fall within the expected range.
	   at System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray(Array array, RuntimeFieldHandle fldHandle)
	   at Mono.Cecil.Metadata.TableHeap..cctor()
	   --- End of inner exception stack trace ---
	   at Mono.Cecil.Metadata.TableHeap..ctor(Section section, UInt32 start, UInt32 size)
	   at Mono.Cecil.PE.ImageReader.ReadMetadataStream(Section section)
	   at Mono.Cecil.PE.ImageReader.ReadMetadata()
	   at Mono.Cecil.PE.ImageReader.ReadImage()
	   at Mono.Cecil.PE.ImageReader.ReadImageFrom(Stream stream)
	   at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters parameters)
	   at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
	   at Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName, ReaderParameters parameters)
	   at Mono.Documentation.MDocUpdater.LoadAssembly(String name)
	   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
	   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
	   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
	   at Mono.Documentation.MDocUpdater.Run(IEnumerable`1 args)
	   at Mono.Documentation.MDoc.Run(String[] args)
	   at Mono.Documentation.MDoc.Main(String[] args)

The "fix" is to not use the 64-bit runtime, and instead explicitly
require the 32-bit runtime by using -platform:x86.
2013-03-12 20:07:40 -04:00
Zoltan Varga 26068dd156 Enable ContextTest on mt. 2013-03-12 23:30:51 +01:00
Rodrigo Kumpera 54ab0bf56c Wrap MonoVTable::remote into a pair of accessors to make it easy to have code linked out. 2013-03-12 18:22:08 -04:00
Rodrigo Kumpera 143d99ea98 Wrap MonoClass::is_com_object into a pair of accessors to make it easy to have code linked out. 2013-03-12 18:22:07 -04:00
Martin Baulig 9ec4d6984f Implement new .NET 4.5 Reflection APIs. 2013-03-12 18:07:53 -04:00
Martin Baulig 9f1535ea23 Add System.ComponentModel.Composition.4.5 to the mobile build. 2013-03-12 18:07:53 -04:00
Martin Baulig 804acc091c Fix System.ComponentModel.DataErrorsChangedEventArgs API. 2013-03-12 18:07:53 -04:00
Martin Baulig f86e2a1025 Add System.ComponentModel.DataAnnotations to the mobile build. 2013-03-12 18:07:52 -04:00
Rodrigo Kumpera 3dcc728b8c Small cleanup on runtime shutdown to move more code to the same spot and reduce duplication. 2013-03-12 17:43:57 -04:00
Rodrigo Kumpera 4df4b7a47a Merge pull request #505 from roji/shutdown_flow
Fixed threadpool+ProcessExit problem in shutdown flow
2013-03-12 14:25:47 -07:00
Martin Baulig dfc1434f41 Add stubs for some new .NET 4.0/4.5 WCF APIs. 2013-03-12 17:23:01 -04:00
Martin Baulig 35992e86c7 System.Runtime.Serialization.DateTimeFormat 2013-03-12 17:23:00 -04:00
Martin Baulig b38fcbcf2a BigInteger.Parse/TryParse() overloads for .NET 4.0. 2013-03-12 17:23:00 -04:00
Martin Baulig 55b8eda927 System.Progress 2013-03-12 17:23:00 -04:00
Martin Baulig dc4eae8d17 Add System.Text.RegularExpressions.Regex timeout APIs. 2013-03-12 17:23:00 -04:00
Martin Baulig 3fee2dd792 Trivial API additions. 2013-03-12 17:22:59 -04:00
Martin Baulig 7a5d090d7d Missing WebUtility methods. 2013-03-12 17:22:59 -04:00
Martin Baulig 3016218856 HttpWebRequest/Response API fixes for .NET 4.5. 2013-03-12 17:22:59 -04:00
Martin Baulig 171c946ecd Add System.IO.Compression.FileSystem stubs. 2013-03-12 17:22:59 -04:00
Martin Baulig 77df2f0865 Misc .NET 4.5 / PCL APIs. 2013-03-12 17:22:58 -04:00
Michael Hutchinson 9aee5e22ba [xbuild] It's safe to pass /debug:pdbonly to mcs now 2013-03-12 16:43:07 -04:00
Zoltan Varga 392632ff30 Implement OP_LCONV_TO_I4 using OP_SEXT_I4 instead of OP_LSHR_IMM(0). Fixes #11058. 2013-03-12 21:32:09 +01:00
Sebastien Pouliot 68ebec2787 Remove MonoTouch specific code that is now handled without reflection 2013-03-12 16:04:43 -04:00
Marek Safar 42d7bdbea4 Remove dependency on generated file 2013-03-12 15:43:13 +01:00
Jeremie Laval 2785b65688 [monodoc] Parse and display mastersummary.xml on root:/ ECMA urls 2013-03-12 13:42:40 +00:00
Jeremie Laval e9a5cb19b1 [monodoc] Cleanups 2013-03-12 13:42:12 +00:00
Mark Probst 06b2ab0a7c [tests] In GC descriptor tests script, optionally generate huge nested if. 2013-03-11 16:51:01 -07:00
Rodrigo Kumpera 8a6a647e00 Optimize mono_gc_bzero and mono_gc_memmove to closely match native performance.
* gc.c (mono_gc_memmove): Doing naive word copy turned out to be several times
	slower than optimized memmove.Doing optimized memmove is a hellbent problem
	because each target (x86, amd64, arm, etc) have multiple implementations based
	on which CPU you're currently running on.

	Given we're not ready to suck in ten thousand lines of assembly for the benefit
	of a few targets a better solution is needed.

	The problem we face is due to implementations that don't perform word stores
	on the word aligned parts of the destination. This does break things for us
	as the CLI environment disallows word tearing for normal operations.

	The solution is then to work around the silliness of the known implementations
	that basically handle any sorts of misalignment badly. To do so we ensure that
	we only call memmove with a word aligned destination and a word multiple size.

	This should be enough for OSX, Android, linux and iOS on x86, amd64 and ARM.
2013-03-11 18:45:55 -04:00
Zoltan Varga dde2c39880 Re-enable some tests on mt which seem to work now. 2013-03-11 22:16:46 +01:00
Zoltan Varga db4e50a08d Export inst_is_gsharedvt_sharable () so it is usable by other parts of the JIT. 2013-03-11 21:07:34 +01:00
Duncan Mak 35d3a47008 Bump version to 3.0.8 2013-03-11 14:56:25 -04:00
Zoltan Varga 1a441364a6 Add a 'dwarfdebug' AOT option to emit DWARF debug info even if the 'nodebug' AOT option is used. 2013-03-11 15:29:33 +01:00
Miguel de Icaza 9e3e69451a Merge pull request #597 from kamalaboulhosn/master
Translate errno for EHOSTDOWN to WSAEHOSTDOWN
2013-03-11 07:18:40 -07:00
Kamal Aboul-Hosn d046ae0b30 Added translation for EHOSTDOWN errno 2013-03-09 18:10:39 -05:00
Zoltan Varga 6fc1c8daee Disable some tests failing on mt due to #10539/#10552. 2013-03-09 01:13:24 +01:00
Marek Safar c198db637b Correctly type fixed buffer wrapper type. Fixes #10803 2013-03-08 23:46:27 +01:00
Marek Safar 92a6488c89 Clone shared members list before operators merging. Fixes #10967 2013-03-08 23:46:26 +01:00
Miguel de Icaza e133d105a8 Merge pull request #469 from symform/symform-better-drive-type-check
When detecting drive type it is possible that a path might be mounted mo...
2013-03-08 17:09:36 -05:00
Miguel de Icaza be4686b9d9 Merge pull request #594 from Adeath56/patch-1
System.Web.dll : NullReferenceException on GetItemInternal() after a Session.Abandon()
2013-03-08 16:37:28 -05:00
Miguel de Icaza e7758ec891 Merge pull request #595 from UCIS/master
Fixed handling of modifier keys in KeyEventArgs constructor (bug #6707)
2013-03-08 13:25:47 -08:00
Marek Safar 7c704df8ae Move rarely used NamedDataSlot to its own type to cut few dependencies 2013-03-08 17:40:03 +01:00
Marek Safar a10f7b72ac Fix failing test 2013-03-08 15:56:58 +01:00
Marek Safar 23918afbec Fix constant folding fox null string constants. Fixes #10821 2013-03-08 15:47:44 +01:00
Marek Safar 64f2ea441a Use faster string comparers 2013-03-08 15:47:44 +01:00
Marek Safar e7006d8e39 Use faster invariant conversion 2013-03-08 15:47:44 +01:00
Marek Safar 6643562a1e Use generics list 2013-03-08 15:47:43 +01:00
Marek Safar 292b757ede Use faster string checks 2013-03-08 15:47:43 +01:00
Marek Safar dbbd71c5e5 Remove Collection dependency from ReadOnlyCollection 2013-03-08 15:47:43 +01:00
Jb Evain 37fe2b7e43 Add generated Makefile.am to gitignore 2013-03-08 15:25:19 +01:00
Jb Evain 3e7d7a37f4 Add mdbrebase generated script to gitignore 2013-03-08 15:25:19 +01:00
Sebastien Pouliot 54099c8732 TypeFromCLSID is not available when build with FULL_AOT_RUNTIME (e..g iOS) 2013-03-08 09:17:57 -05:00
Sebastien Pouliot 5422c5a9d3 Adjust OptionalCalendars test so it will work when the linker is enabled 2013-03-08 09:16:33 -05:00
Zoltan Varga 0889f6af72 Avoid loading AOT modules for ref-only assemblies. 2013-03-08 03:02:58 +01:00
Zoltan Varga 514fcd7920 Fix the mobile build. 2013-03-08 02:36:04 +01:00
Zoltan Varga c1466ee2ff Fix the mobile mscorlib build. 2013-03-08 02:33:29 +01:00
Zoltan Varga 565e78a45c Avoid a crash if the Volatile class is linked away. 2013-03-08 02:33:28 +01:00
Zoltan Varga d33e025bde Add full-aot support for Volatile.Read<T>/Write<T> (). 2013-03-08 02:33:28 +01:00
Zoltan Varga a1aa0ca2cb Fix the encoding of runtime-invoke wrappers in AOT. Add support for gsharedvt delegate begin/end-invoke wrappers to full AOT. 2013-03-08 02:33:27 +01:00
Zoltan Varga 7c47e18e66 Remove an inexistent icall added by mistake by 0ff40ae70a. 2013-03-08 02:33:27 +01:00
Rodrigo Kumpera 690b080504 Make the build .gitignore rule absolute. It didn't like mcs/build/. 2013-03-07 18:06:26 -05:00
Rodrigo Kumpera 861811b3fb Move some MOBILE bits under DISABLE_REMOTING as a remoting enabled runtime will need them for
basic functionality.
2013-03-07 17:46:04 -05:00
Rodrigo Kumpera e46ddbb3fc Monotouch has builds with -DISABLE_REMOTING. 2013-03-07 17:44:28 -05:00
Rodrigo Kumpera 46b4beca67 Add a bunch of dummy fields to Assembly under MOBILE to match the native layout. 2013-03-07 16:09:35 -05:00
Rodrigo Kumpera ce100e6f5a Replace a useless g_assert with a g_error that actually gives us some information. 2013-03-07 16:09:35 -05:00
Rodrigo Kumpera c3fd562d4e Make sure to unlock InternalThread::synch_cs when we fail to suspend the thread during shutdown.
This should fix both crashes seen during Environment.Exit by xbuild and possibly deadlocks.
2013-03-07 16:09:34 -05:00
Rodrigo Kumpera 7b4a395f24 Make sure all functions in the hot path of eg_utf8_to_utf16_general are inlined.
This gives a 33% performance boost on a micro benchmark just triggering a call
to mono_string_new.
2013-03-07 16:09:34 -05:00
Marek Safar 2082ed2247 Fixes mobile build 2013-03-07 18:30:58 +01:00
Marek Safar a4915d561e Update mobile tests 2013-03-07 16:34:24 +01:00
Marek Safar 93e31cbc63 Ignore SynchronizationAttribute on MT 2013-03-07 16:34:23 +01:00
Marek Safar 02482bef43 Fix binary serialization on mobile 2013-03-07 16:34:23 +01:00
Zoltan Varga 96cf539ade Fix a typo introduced by c808ced1e2. 2013-03-07 16:26:30 +01:00
Zoltan Varga dea604078b Make begin-invoke/end-invoke wrappers for generic delegates like Func/Action generic, similarly to 8eae1a7d72. 2013-03-07 16:26:30 +01:00
Marek Safar 4f0f577826 Remove confusing trailing dot 2013-03-07 09:31:48 +01:00
Marek Safar 686160f09d Actually iterate returned array 2013-03-07 09:31:48 +01:00
Marek Safar 6d132a7c23 Remove generated file dependency to make fresh checkout tests work out of box 2013-03-07 09:31:47 +01:00
Marek Safar c461f2fafa Merge pull request #596 from madewokherd/typefromclsid
corlib: Implement System.Type.GetTypeFromCLSID.
2013-03-06 23:44:40 -08:00
Jonathan Pryor 2d37d81770 [xbuild] Replace string.ToLower() comparison with OrdinalIgnoreCase comparison
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=10946

The scenario is the "turkish-i problem": Have an MSBuild Task Assembly
which calls ITaskItem.GetMetadata("Identity") (like, oh, the
Xamarin.Android build system...). Run in a Turkish locale (tr-TR), and
things fail badly:

	Error executing task AndroidComputeResPaths: System.ArgumentException: Invalid reserved metadata name
	  at Mono.XBuild.Utilities.ReservedNameUtils.GetReservedMetadata (System.String itemSpec, System.String metadataName, IDictionary metadata) [0x00000] in <filename unknown>:0
	  at Microsoft.Build.Utilities.TaskItem.GetMetadata (System.String metadataName) [0x00000] in <filename unknown>:0
	  at Xamarin.Android.Tasks.AndroidComputeResPaths.Execute () [0x00000] in <filename unknown>:0
	  at Microsoft.Build.BuildEngine.TaskEngine.Execute () [0x00000] in <filename unknown>:0
	  at Microsoft.Build.BuildEngine.BuildTask.Execute () [0x00000] in <filename unknown>:0

Wat? Well, in tr-TR, "Identity".ToLower() is "ıdentity", which
doesn't match match anything in GetReservedMetadata()'s `switch`
statement, so it throws an ArgumentException. *BOOM*.

So, if you need a culture-invariant comparison, USE IT.

Related: We could have just s/ToLower/ToLowerInvariant/g, which would
have fixed the problem, but would still result in lots of string
temporaries that aren't really necessary. Use the appropriate
string.Compare() or string.Equals() methods instead to avoid the
string temporary as well.
2013-03-06 22:42:08 -05:00
Zoltan Varga 0ff40ae70a Implement Volatile.Read/Write<T> and Interlocked.MemoryBarrier (). 2013-03-07 02:41:46 +01:00
Zoltan Varga 3127206654 Add stubs for some NET 4.5 ThreadLocal ctors/methods. 2013-03-07 02:14:11 +01:00
Zoltan Varga c808ced1e2 Clean up the code which handles prepending _ to global symbol names on MACH by doing it in aot-compiler.c instead of the image writer. 2013-03-07 02:00:51 +01:00
Mark Probst 18d7a36fdd [sgen] Just warn, don't abort, on invalid MONO_GC_PARAM or MONO_GC_DEBUG options. 2013-03-06 15:41:35 -08:00
Vincent Povirk a164fda839 corlib: Implement System.Type.GetTypeFromCLSID.
This commit is licensed as MIT/X11.
2013-03-06 16:13:25 -06:00
Jeffrey Stedfast d9ae8c5b02 [Mono.Debugger.Soft] Made the receiver thread a background thread and gave it a name 2013-03-06 16:00:07 -05:00
Mark Probst 8ae1296fef [sgen] Allow empty parameters in MONO_GC_PARAMS and MONO_GC_DEBUG.
This allows easy appending/prepending, like so:

    export MONO_GC_PARAMS="major=marksweep-conc,$MONO_GC_PARAMS"
2013-03-06 11:28:03 -08:00
Zoltan Varga bdeb52e8f5 Fix some ARM assembly in MONO_CONTEXT_GET_CURRENT (). 2013-03-06 20:20:13 +01:00
Zoltan Varga 2ed4fd9690 Make the JIT icall wrappers for opcode emulation jit icalls call the C icall function directly on MT. 2013-03-06 19:32:00 +01:00
Zoltan Varga 6285a057a2 Modify the way calls to icalls are made from the icall wrappers. Previously, the address to call was encoded in an OP_PCONST, and various pieces of code looked up the value in the jit icall table to see if it was an icall address. With the new approach, the fact that this is an icall address is explicit through the JIT. 2013-03-06 19:32:00 +01:00
Zoltan Varga 6bf5817d5a Fix AOT on osx+amd64. 2013-03-06 19:32:00 +01:00
Ivo Smits ceaa9a7fd7 Fixed handling of modifier keys in KeyEventArgs constructor (bug #6707) 2013-03-06 17:32:54 +01:00
Mark Probst 583e8679de Merge pull request #593 from Cynede/master
Python 3 compatibility in gen-descriptor-tests.py
2013-03-06 08:16:28 -08:00
Marek Safar 0526659302 Disable more security context tests on mobile 2013-03-06 15:50:22 +01:00
Marek Safar 683e97e66e Use more specific types 2013-03-06 15:49:46 +01:00
Heather fbc8ec4829 use floor division // instead of / because in python 3 / returns float, // works in python 2 too 2013-03-06 15:19:52 +04:00
Heather 199cc4f8c7 python 3 compatibility in gen-descriptor-tests.py 2013-03-06 15:19:52 +04:00
Marek Safar 8deca1782e Optimize Activator path used by new() constraint to run less code 2013-03-06 11:18:04 +01:00
Marek Safar 69daa56ade Fix exception test text 2013-03-06 11:18:04 +01:00
Marek Safar 80d342ff75 Add test from Jb Evain to test biner with user method types 2013-03-06 11:18:04 +01:00
Marek Safar 4687d8e1e9 Activator cannot be used to create default instances of user types 2013-03-06 11:18:03 +01:00
Mark Probst fbf13e8dab [sgen] Unify non-concurrent and concurrent M&S. 2013-03-05 14:08:42 -08:00
Mark Probst 8a1eca2e78 [tests] Init Random with defined value in GC descriptor tests.
So we can reproduce bugs and compare time/space if we want.
2013-03-05 12:55:42 -08:00
Duncan Mak 333f692e26 Bump version number to 3.0.7. 2013-03-05 13:15:04 -05:00
Zoltan Varga ddc2a6234f Change the linkage of the type_info symbols generated by the LLVM backend, since using LLVMPrivateLinkage causes LLVM to generate assembly which is not allowed by clang. Fixes #10811. 2013-03-05 17:34:58 +01:00
Marek Safar 77c429eeba Don't mark unused interface methods. Fixes #10866 2013-03-05 17:05:32 +01:00
Marek Safar 768c9e65de Remove redundant culture info from string concatenations 2013-03-05 17:05:31 +01:00
Atsushi Eno 7890e1e824 [rx] Add missing AssemblyInfos. 2013-03-06 00:56:35 +09:00
Atsushi Eno cd6dc32e0b Add Assembly version attributes to hopefully fix bug #10002. 2013-03-05 23:57:39 +09:00
Marek Safar 7950d8b97d Update binder primitive conversion to match .net 2013-03-05 15:03:38 +01:00
Marek Safar 4e095429f9 Tweaks to Enum::FormatName to make it faster/smaller 2013-03-05 15:03:38 +01:00
Marek Safar bc53976c90 Type.FilterAttribute accepts int criteria only 2013-03-05 15:03:38 +01:00
Jeremie Laval 3445a890ea [monodoc] Make the help source test pass since the current errors are due to known limitations. 2013-03-05 10:54:01 +00:00
Jeremie Laval b01c154588 [monodoc] Cache intermediary result for legacy Nodes property. Add test. 2013-03-05 10:37:40 +00:00
Jeremie Laval 0dfa3ba87e [monodoc] Change new API for Nodes to be IList for future-proofing 2013-03-05 10:27:07 +00:00
Marek Safar f8d9023673 Fixes build 2013-03-05 09:25:50 +01:00
Marek Safar 3234d835a4 Fix wrong usage of ConstructoInfo::Invoke 2013-03-05 09:18:22 +01:00
Martin Baulig 4e88ebd997 Add to EXTRA_DIST. 2013-03-04 19:21:32 -05:00
Duncan Mak 629258db07 Add gc-descriptors to SUBDIRS. 2013-03-04 18:03:41 -05:00
Rodrigo Kumpera 1c359f9d1d Fix cominterop. 2013-03-04 17:52:01 -05:00
Rodrigo Kumpera d64a99e420 Fix marshal.c DISABLE_JIT on device. 2013-03-04 16:08:22 -05:00
Miguel de Icaza a8ab27270a Merge pull request #577 from UCIS/patch-2
Fix serialization of DateTime struct for MS compatibility
2013-03-04 13:01:39 -08:00
Marek Safar c0c48eb810 Make internal abstract methods virtual to fix MethodBase subclassing. 2013-03-04 21:52:22 +01:00
Martin Baulig a2c70a3d89 Runtime assembly mapping for PCL. 2013-03-04 14:57:08 -05:00
Zoltan Varga 1cd10c9d51 Dist the Makefile.am.in files. Fixes #10874. 2013-03-04 20:46:21 +01:00
Mark Probst 3bc4723971 [sgen] Disable parallel M&S in combination with split nursery.
It crashes at least sgen-weakref-test.exe, and there's more important stuff to
attend to.
2013-03-04 11:23:16 -08:00
Mark Probst a43535af4b Merge branch 'feature-descriptor-tests' 2013-03-04 10:47:49 -08:00
Mark Probst f78581ec95 [tests] Test valuetype GC descriptors, too. 2013-03-04 10:47:29 -08:00
Mark Probst a4f864a34c [tests] Optional big-switch version of GC descriptor test.
This takes ages to compile with mcs.  See bug #10781.
2013-03-04 10:47:29 -08:00
Mark Probst e5c6a4bd25 [tests] Test for GC descriptors - first draft.
This runs for a long time and potentially uses lots of memory.  It's not integrated
in the test suite and must be run manually.
2013-03-04 10:47:28 -08:00
Martin Baulig 879250e505 Misc PCL-related API fixes. 2013-03-04 12:40:21 -05:00
Mark Probst 3a87e57712 Merge pull request #586 from awinters-fvs/awinters/sgen-los-sizeof-fix
[sgen] marksweep-conc 64-bit pointer arithmetic fix for segfault
2013-03-04 08:39:48 -08:00
Rodrigo Kumpera 6963d216c5 Merge pull request #589 from qhalid/master
Xamarin Bug 10879: Use of mono-sgen causes mono path detection fallback
2013-03-04 08:32:21 -08:00
Chris Ball 444146bc86 Prevent path fallback for mono-sgen and pedump
Test updated to allow "mono-sgen" and "pedump" binaries to "walk" the parent
directory to discover the install location of the mono runtime in the same
manner as the "mono" binary.
2013-03-04 17:16:42 +01:00
Miguel de Icaza e8be3702fc Merge pull request #585 from mk8/master
Bug 10233 fix proposal for Socket.BeginSendFIle
2013-03-04 08:13:10 -08:00
Miguel de Icaza 3f0709d1e3 Merge pull request #588 from Daniel15/bug-10872
Fix bug #10872 (Expires and Last-Modified headers should use two-digit days)
2013-03-04 08:12:23 -08:00
Daniel Lo Nigro 94fda9450f Use standard RFC1123 ("R") format specifier for Expires and Last-Modified headers. Fixes Xamarin bug #10872 2013-03-04 22:13:10 +11:00
Marek Safar c36e553fa0 Add missing target checks to ConstructorInfo::Invoke 2013-03-04 11:29:24 +01:00
Marek Safar 998e88ce1a Use Activator instead of InvokeMember with incomplete target value 2013-03-04 11:27:22 +01:00
Marek Safar b5fe12cbc3 Remove unused icall 2013-03-04 10:06:25 +01:00
Marek Safar b26fc714dd Manually remove code which is disabled but compiler cannot remove automatically. 2013-03-04 09:14:08 +01:00
Marek Safar 65d96594f5 Use local invoke method instead of doing double virtual call dispatch 2013-03-03 22:23:48 +01:00
Marek Safar 57735a0aba Use faster array cloning 2013-03-03 22:22:21 +01:00
Marek Safar ea8879d7bf Maintain only single version of ordinal string comparers 2013-03-02 22:24:26 +01:00
Vincent Povirk 3a44c65b03 Ignore the gdiplus dllmap on Windows. 2013-03-02 13:54:47 -06:00
Marek Safar a08a39ffe6 Don't clone internally used era values 2013-03-02 18:56:31 +01:00
Marek Safar 6c083808ce Use faster/smaller versions for some string comparisons 2013-03-02 18:56:31 +01:00
Alex Rønne Petersen 12a0479340 metadata/gc.c: Fix a warning when casting MonoInternalThread->tid. 2013-03-02 10:40:22 +01:00
Torello Querci 8691f6d8d1 Client Socket close added 2013-03-02 08:31:14 +01:00
awinters-fvs d83533bc78 Subtract sizeof LOSObject instead of LOSObject*
On 64-bit mono with marksweep-conc enabled, sgen_los_pin_object()
would mistakenly set the cardtable_mod_union pointer field to 1
due to the incorrect pointer math in sgen_los_header_for_object()
2013-03-01 17:13:14 -08:00
Zoltan Varga 348755d3b1 Fix the generation of stelemref wrappers in full-aot mode. Some wrappers were not generated with the previous approach. Fixes #10826. 2013-03-02 01:27:46 +01:00
Rodrigo Kumpera c8b1c2b3a7 Erase the type of more fields so we can link away a few more types. 2013-03-01 18:58:35 -05:00
Rodrigo Kumpera 07a220c61c Mobile should not have the COM types set. 2013-03-01 18:58:35 -05:00
Zoltan Varga 616f8f6604 Fix the protocol version check in the TypeMirror.IsInitialized property. 2013-03-02 00:55:42 +01:00
Zoltan Varga 703dcd84c6 Add an IsInitialized property to TypeMirror which returns whenever the type initializer has ran. 2013-03-02 00:53:06 +01:00
Sebastien Pouliot be43ee1da2 Reduce XML processing time (GetAttribute was returning String.Empty, not null) 2013-03-01 16:38:42 -05:00
Zoltan Varga f25263db7a Fix the lookup of some ctors in exception.c. Fixes #10774. 2013-03-01 22:33:17 +01:00
Marek Safar 1d8669c5c5 Clean up test encoding 2013-03-01 22:08:56 +01:00
Marek Safar c0790868bc Throw exception instead of creating invalid object when remoting is disabled 2013-03-01 22:06:34 +01:00
Zoltan Varga d6b05a8304 Remove the unmaintained and incomplete alpha backend. 2013-03-01 20:27:07 +01:00
Marek Safar 28ddbf1429 Build correct version of System.Net for non-mobile profile 2013-03-01 18:55:49 +01:00
Marek Safar 256ac6135d Default to expression contextual keywords for repl 2013-03-01 18:39:52 +01:00
Rodrigo Kumpera b078850ed0 Fix cross compilation under DISABLE_REMOTING 2013-03-01 12:25:58 -05:00
Rodrigo Kumpera 8b1a6afc56 Don't check for TransparentProxies on mobile as they don't work. 2013-03-01 11:32:34 -05:00
Rodrigo Kumpera e2d2459f30 RemotingServices::IsTransparentProxy doesn't work on mobile. 2013-03-01 11:32:12 -05:00
Marek Safar 7a1ad27ff0 Disable failing socket test 2013-03-01 17:13:24 +01:00
Rodrigo Kumpera c8e286a93b Bring back ActivationServices::AllocateUninitializedClassInstance as this is used by the serialization machinery and we need it to work on mobile. 2013-03-01 11:11:26 -05:00
Rodrigo Kumpera b492a88007 Fix again object::GetType () 2013-03-01 10:55:25 -05:00
Rodrigo Kumpera abe9dc6206 Revert "Fix object::GetType when remoting is enabled."
This reverts commit 93e2d1dc48.
2013-03-01 10:54:09 -05:00
Rodrigo Kumpera 93e2d1dc48 Fix object::GetType when remoting is enabled. 2013-03-01 10:52:03 -05:00
Marek Safar a4c61d97f6 Fix ReadOnlyDictionary public api 2013-03-01 16:10:34 +01:00
Marek Safar dd4cc7ca66 Tests update for mobile profile 2013-03-01 15:31:25 +01:00
Torello Querci 0624fa42f1 Fix for bug 10233 about Socket.BeginSendFile 2013-03-01 14:30:04 +01:00
Marek Safar 59af20df27 Merge pull request #584 from LogosBible/bug10789-resubmit
System.Text.Decoder throws ArgumentOutOfRangeException when it should no...
2013-03-01 05:11:23 -08:00
Martin Potter 643d8b8b3a System.Text.Decoder throws ArgumentOutOfRangeException when it should not. Fixes Bug #10789
Similar to previously reported bug #6404, according to the documentation at http://msdn.microsoft.com/en-us/library/h6w985hz.aspx, System.Text.Encoder throws ArgumentOutOfRangeExceptions when it should not. From the documentation, an ArgumentOutOfRangeException should be thrown when:

charIndex, charCount, byteIndex, or byteCount is less than zero.
-or-
The length of chars - charIndex is less than charCount.
-or-
The length of bytes - byteIndex is less than byteCount.

To reproduce, run the following code:

int charsUsed, bytesUsed;
bool completed;
byte[] bytes = new byte[4096];
char[] chars = new char[4096];
System.Text.Encoding.UTF8.GetDecoder().Convert(bytes, 0, 0, chars, 4096, 0, false, out bytesUsed, out charsUsed, out completed);

Expected:

The code runs, charsUsed equals zero, bytesUsed equals zero and completed is true.

Actual:

Mono throws an ArgumentOutOfRangeException for charIndex.

There are also other behavioral differences between Mono and Microsoft's implementation for the GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) method, such as:

byte[] bytes = new byte[4096];
char[] chars = new char[10];
int charactersWritten = System.Text.Encoding.UTF8.GetDecoder().GetChars(bytes, 0, 0, chars, 10, false);

On Mono, this results in an ArgumentOutOfRangeException for charIndex, where for Microsoft charactersWritten = 0.

Similarly:

byte[] bytes = new byte[4096];
char[] chars = new char[10];
int charactersWritten = System.Text.Encoding.UTF8.GetDecoder().GetChars(bytes, 0, 4096, chars, 10, false);

On Mono, this results in the same ArgumentOutOfRangeException for charIndex, where Microsoft throws and ArgumentException. since "chars does not have enough capacity from charIndex to the end of the array to accommodate the resulting characters."
2013-03-01 05:05:34 -08:00
Marek Safar d47a9f2655 Merge pull request #583 from TalAloni/master
Make x64 compilation work out of the box
2013-03-01 01:18:38 -08:00
TalAloni 1df6dc98e5 Make x64 compilation work out of the box
Change the default projects that are compiled for x64
2013-03-01 11:13:38 +02:00
Marek Safar 5aa7859bd6 Merge pull request #581 from TalAloni/master
System.IO.Path bugfix
2013-02-28 23:31:03 -08:00
Marek Safar 971be4d9b3 Merge pull request #579 from LogosBible/bug10788
UTF8Decoder.GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) can w...
2013-02-28 23:27:31 -08:00
TalAloni 9a59023366 Added tests to PathTest.cs 2013-03-01 09:04:11 +02:00
Miguel de Icaza 311684d140 When serializing floats and doubles, use the InvariantCulture, so that floats are always stored in Json format, not the locale-specific format; As reported on irc 2013-02-28 23:09:50 -05:00
Zoltan Varga 8575b06a0e Implement a fast version of mono_get_lmf_addr () on ARM by inlining the call to pthread_getspecific () into the managed to native wrappers. 2013-03-01 05:01:19 +01:00
Zoltan Varga 53d6f3c150 Add some support for calling JIT icalls directly in full-aot mode. 2013-03-01 04:09:03 +01:00
TalAloni 19baf6c162 Update Path.cs
Fixed Path.GetDirectoryName() bug when path is in the following form: 'C:filename'
2013-03-01 02:47:07 +02:00
Martin Potter 7ca2aa01d7 UTF8Decoder.GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) can write past end of char[]. Fixes Bug#10788
UTF8Decoder.GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) eventually calls into UTF8Encoding.InternalGetChars, which does not perform any bounds checking on the passed in char* until after the first byte > 0x80 is encountered. For instance:

byte[] bytes = new byte[4096];
char[] chars = new char[10];
int charactersWritten = System.Text.Encoding.UTF8.GetDecoder().GetChars(bytes,
0, 4096, chars, 9, false);

will result in no errors and charactersWritten = 4096.
2013-02-28 16:26:02 -08:00
Zoltan Varga 0b96436216 Fix the handling of unresolved pinvoke methods in full-aot mode. 2013-03-01 00:23:10 +01:00
Martin Baulig 6717d6a6e3 Add System.Collections.ObjectModel.ReadOnlyDictionary. 2013-02-28 18:04:12 -05:00
Zoltan Varga cba753f832 Avoid the str pc,[r0]! instruction in MONO_CONTEXT_GET_CURRENT () which is not allowed by recent gcc versions. 2013-02-28 23:42:44 +01:00
Martin Baulig 670abe568d Really fix the build :-) 2013-02-28 17:30:46 -05:00
Zoltan Varga e972e43e83 Fix the build. 2013-02-28 23:28:27 +01:00
Zoltan Varga dc94b16c6e Fix MONO_CONTEXT_GET_CURRENT () clobbering a register before using it on ARM. 2013-02-28 23:27:43 +01:00
Duncan Mak 0135862f84 Try to fix the build.
Include the MonoTrampoline definition inside the DISABLE_REMOTING block.
2013-02-28 17:20:59 -05:00
Zoltan Varga d3a017fba7 Emit an explicit null check for some calls made out from gshared code. 2013-02-28 23:19:57 +01:00
Rodrigo Kumpera 8a9fe55822 Merge branch 'mono-disable-remoting' 2013-02-28 15:07:37 -05:00
Zoltan Varga 9c9f9687f5 Remove an unused argument from mini_add_method_trampoline (). 2013-02-28 21:06:24 +01:00
Rodrigo Kumpera 4a59194ee0 The runtime no longer need the remoting types under DISABLE_REMOTING. 2013-02-28 15:00:00 -05:00
Rodrigo Kumpera b36302a275 Rework castclass and isinst OPs to ignore transparent proxies under DISABLE_REMOTING. 2013-02-28 15:00:00 -05:00
Rodrigo Kumpera 839bed6b85 Disable most remoting code under DISABLE_REMOTING.
When remoting is disabled we don't export most of the code needed for it.
	This includes JIT suppport, marshalling support (no remoting related wrappers),
	transparent proxies won't proxy and, finally, ContextBound/MarshalByRef objects
	will no longer be special.
2013-02-28 15:00:00 -05:00
Rodrigo Kumpera 33c4f54a02 Hide marshalbyref and contextbound properties under accessors so we can easily configure them out. 2013-02-28 14:55:18 -05:00
Rodrigo Kumpera 2641b95392 Add configure option to disable remoting.
Disabling remoting includes type proxies, x-domain communication and makes COM unusable.
2013-02-28 14:55:18 -05:00
Zoltan Varga a7599c836b Fix gsharedvt delegate invokes from gsharedvt code. 2013-02-28 20:54:35 +01:00
Rodrigo Kumpera 0146859e63 Merge pull request #537 from madewokherd/ccwmarshal
cominterop: Free IMarshal interface with the CCW.
2013-02-28 11:49:46 -08:00
Atsushi Eno 79d5d39dae [mkbundle] add explicit --style option to specify output style for as. 2013-03-01 03:40:58 +09:00
Marek Safar 1d453c29e2 Remove ArrayList dependency 2013-02-28 16:59:09 +01:00
Marek Safar e93bb32168 Use generic comparer 2013-02-28 16:58:40 +01:00
Marek Safar a336b58fdc Use faster versions of string comparers 2013-02-28 15:42:55 +01:00
Marek Safar 277f4d7ab3 Remove culture info from simple string concatenation formating 2013-02-28 15:42:55 +01:00
Marek Safar ad5ed89038 Remove static constructor from HashSet 2013-02-28 15:42:55 +01:00
Zoltan Varga d669e4e8fc Add static rgctx trampolines in calls from gshared to gsharedvt code if needed. 2013-02-28 15:01:28 +01:00
Rodrigo Kumpera f91630e1a2 Ignore activationAttributes and never try to create a proxy under MOBILE. 2013-02-28 08:35:42 -05:00
Marek Safar e75e3a0a48 Don't build windows code paths on mobile profiles 2013-02-28 10:56:02 +01:00
Marek Safar 13d9a0f334 Fix compiler warnings 2013-02-28 09:19:47 +01:00
Marek Safar e25fa38a28 Don't add Array::BinarySearch dependency for unreachable code 2013-02-28 09:19:47 +01:00
Marek Safar 788e0e94af Use faster running on windows check 2013-02-28 09:19:46 +01:00
Marek Safar 1d2e9b0359 Merge pull request #576 from UCIS/patch-1
Fix ISerializable implementation in mcs/class/corlib/System/OperatingSystem.cs
2013-02-27 23:48:52 -08:00
Ivo Smits 5d2b57474e Fix serialization of DateTime struct for MS compatibility
Microsoft uses the UInt64 for the serialized dateData field.
Microsoft also uses Convert.ToUInt64 to convert the serialized
value to UInt64, which results in an overflow exception when
deserializing a DateTime serialized by mono.

Suggested change may break compatibility with previous versions
of mono, but should work with the Microsoft implementation.
2013-02-28 02:27:40 +01:00
Ivo Smits aefeb5f8fa Update mcs/class/corlib/System/OperatingSystem.cs
"The ISerializable interface implies a constructor with the signature constructor (SerializationInfo information, StreamingContext context)."
from http://msdn.microsoft.com/en-us/library/system.runtime.serialization.iserializable.aspx
2013-02-28 02:18:42 +01:00
Sebastien Pouliot 42c8d96762 Refactor to make it possible for the linker to remove, by default, less used Calendar types from applications 2013-02-27 20:11:10 -05:00
Sebastien Pouliot 36ce2f7982 Fix typo in test name (confusing) 2013-02-27 20:11:10 -05:00
Mark Probst 872cff99fd [sgen] Remove SCAN_OBJECT_ACTION - dead code. 2013-02-27 15:24:07 -08:00
Mark Probst de4d1effb3 Merge branch 'feature-remove-ssb' 2013-02-27 15:14:15 -08:00
Mark Probst d0ee020c47 [sgen] Remove unnecessary entries from remembered set function table. 2013-02-27 15:04:56 -08:00
Mark Probst a3371764a9 [sgen] Remove SSB write barrier. 2013-02-27 15:04:56 -08:00
Mark Probst 00b951e0e1 [tests] Make finalizer-wait.cs less prone to pinning. 2013-02-27 15:03:57 -08:00
Marek Safar 173ddd23a1 Add missing file 2013-02-27 23:21:04 +01:00
Rolf Bjarne Kvinge 2158f57208 Change g_log (and friends) to print to stderr. Fixes #10577.
Stdout is block buffered somewhere (and fflushing 'stdout' doesn't
fix it, only fflushing all streams works), and takes forever to
show up in any output.
2013-02-27 23:06:40 +01:00
Marek Safar bb05074a9f Replace some hashtables with dictionaries 2013-02-27 22:58:32 +01:00
Marek Safar a157be7bcb Fix Type and Module name filters to match 2013-02-27 22:58:32 +01:00
Marek Safar cfe97bf3a5 Share more common code 2013-02-27 22:58:31 +01:00
Mark Probst 8708924702 [sgen] Cementing bugfix for concurrent M&S.
We have to pin cemented objects at the finishing collection pause, too.  If we don't,
we don't scan them, and if they reference major objects that aren't referenced
elsewhere, we don't mark those major objects, and we break.
2013-02-27 13:29:51 -08:00
Mark Probst b36d7ed735 [sgen] Fix names of descriptor types in describe_ptr(). 2013-02-27 13:29:51 -08:00
Mark Probst 246d0e2b96 [sgen] Fix build of sgen-grep-binprot. 2013-02-27 13:29:51 -08:00
Mark Probst c649666953 [sgen] Binary protocol entries for scanning objects and vtypes. 2013-02-27 13:29:50 -08:00
Zoltan Varga 1406545a9f Fix the build. 2013-02-27 20:36:47 +01:00
Zoltan Varga 4756cbdd1c Fix the calculation of TARGET_IOS/OSX in configure. Fixes #10726. 2013-02-27 19:53:53 +01:00
Marek Safar 20e40c448c Fix space in makefile 2013-02-27 14:57:15 +01:00
Atsushi Eno 5d13979d85 fix collation/normalization resource builder up to complete build.
Then there are some resource value differences that likely needs other
fixes. But since some people seem to have changed some tests "to match
.NET" that actually changed the behavior, it won't recover the working
state. The resource generator generates "almost compatible" resource,
but won't be perfect.
2013-02-27 22:46:27 +09:00
Marek Safar 58ab8540ec Fixes make dist 2013-02-27 14:20:22 +01:00
Marek Safar 1ff548cb12 Update for mobile profile 2013-02-27 14:08:38 +01:00
Atsushi Eno 76af46a676 Fix monodroid build. 2013-02-27 17:51:56 +09:00
Atsushi Eno beefa7d320 Fix possible NRE caused by null XmlResolver settings. 2013-02-27 16:50:54 +09:00
Marek Safar 241d34dd7c Revert wrong ikvm update from 10ebeb32e1 2013-02-27 08:48:31 +01:00
Alan McGovern 8691ffa0c9 GetDisplayName should either be internal or public 2013-02-27 00:39:09 +00:00
Alan McGovern ef40541b14 Really make GetDisplayName public in MOBILE only
The wrong 'public' was ifdef'ed in the last commit
2013-02-27 00:32:54 +00:00
Duncan Mak 5f980f0b8d Revert "Bump version to 3.0.7."
This reverts commit 7874bc4045.
2013-02-26 18:44:26 -05:00
Duncan Mak 7874bc4045 Bump version to 3.0.7. 2013-02-26 17:36:35 -05:00
Duncan Mak b46e59ee55 Make GetDisplayName public in MOBILE only.
The previous change, which made GetDisplayName always public, broke this
advertised technique for detecting Mono:

http://stackoverflow.com/questions/8413922/programmatically-determining-mono-runtime-version
2013-02-26 17:36:35 -05:00
Duncan Mak cb454b4817 Remove trailing whitespace. 2013-02-26 17:36:35 -05:00
Rodrigo Kumpera 10ebeb32e1 Fix the hppa removal. 2013-02-26 17:25:50 -05:00
Marek Safar 99b72a868b Fix failing tests 2013-02-26 23:19:34 +01:00
Marek Safar c3cdc206bd Update ikvm 2013-02-26 22:57:36 +01:00
Zoltan Varga 9433fb45d8 Allow 'ios' as the os part of the target triple on ARM. 2013-02-26 22:43:53 +01:00
Marek Safar d0320c11a4 Build all resource test types 2013-02-26 22:29:32 +01:00
Zoltan Varga ca029f6f76 Remove the unmaintained and incomplete hppa backend. 2013-02-26 22:08:41 +01:00
Marek Safar 9dd1d2f32a Fix ambiguous type in test 2013-02-26 21:40:36 +01:00
Marek Safar b8ceff9bf8 Fix make dist 2013-02-26 21:26:33 +01:00
Zoltan Varga 78808ee784 Revert "Add beginnings of support for calling JIT icalls directly in full-aot mode."
This reverts commit 09354d2feb.

Revert this for now as it breaks MT.
2013-02-26 20:21:55 +01:00
Duncan Mak 7f938cc7a1 Bump version to 3.0.6 2013-02-26 13:22:11 -05:00
Marek Safar aff6d0592c Mobile tests update 2013-02-26 17:17:22 +01:00
Marek Safar 762b050917 Merge tests from mobile branch 2013-02-26 16:28:36 +01:00
Marek Safar a3b985b3c0 Don't add compiler generated assembly attributes to satellite assemblies 2013-02-26 16:27:58 +01:00
Marek Safar caeba062fd Test clean up 2013-02-26 14:47:39 +01:00
Marek Safar cc55ffec90 Fixes build 2013-02-26 14:47:07 +01:00
Marek Safar 101a454dfa Fix mobile test 2013-02-26 10:37:02 +01:00
Marek Safar 93c35ffe14 Fix more compiler warnings 2013-02-26 10:37:02 +01:00
Marek Safar 510f20d376 Fix failing mobile tests 2013-02-26 10:37:01 +01:00
Mark Probst 62c93fdae3 [sgen] Fix small bitmap descriptor bug with large objects.
Objects larger than 64k whose references still fit within a small bitmap
would overflow the size bit field within the descriptor.
2013-02-25 16:33:39 -08:00
Zoltan Varga 84ec6ef7a0 Fix the DISABLE_JIT build. 2013-02-25 23:12:38 +01:00
Zoltan Varga b7ffcc62ae Fix the DISABLE_JIT build. 2013-02-25 22:59:30 +01:00
Zoltan Varga 09354d2feb Add beginnings of support for calling JIT icalls directly in full-aot mode. 2013-02-25 22:35:49 +01:00
Marek Safar 4bc748b49d Fixes failing tests 2013-02-25 22:10:45 +01:00
Marek Safar 7ebf04f546 Remove another duplicate type 2013-02-25 21:53:55 +01:00
Marek Safar a98054a9f3 Fixes build 2013-02-25 21:53:46 +01:00
Marek Safar 8e4f05388e Better error message 2013-02-25 21:53:23 +01:00
Marek Safar 5aeeb9cf7b Fix few warnings 2013-02-25 19:10:09 +01:00
Marek Safar 0647a5d16b Remove duplicated files from system.dll (saves about 100kb) 2013-02-25 19:10:09 +01:00
Marek Safar 10cdbcbb43 Remove unused variable 2013-02-25 19:10:08 +01:00
Mark Probst ee035e3eb4 Make Mono.Runtime public on mobile. Make GetDisplayName() public. 2013-02-25 09:50:57 -08:00
Zoltan Varga 2f84b362ab Merge pull request #571 from igotti-google/jt2
Generic jumptables support (needed for ARM NaCl port),
2013-02-25 07:12:30 -08:00
Nikolay Igotti a8bd364cf9 Moved all jumptables code to mini/ directory. 2013-02-25 17:41:40 +04:00
Marek Safar feb5080d23 Optimize parameters handling to do much less allocation 2013-02-25 14:11:04 +01:00
Marek Safar 0eb3bdce83 Add static to static like type 2013-02-25 14:11:03 +01:00
Marek Safar d4fb0b0e4e Clean up params binder 2013-02-25 14:11:03 +01:00
Marek Safar 02e0ddfe44 Expand params arguments only when not binding directly parameter types. Fixes #10551 2013-02-25 14:11:03 +01:00
Marek Safar 31de3d39ae Fix loading of documentation XML fragments to use source file and not process path 2013-02-25 14:11:02 +01:00
Marek Safar 2ae71b7729 New test 2013-02-25 14:11:02 +01:00
Marek Safar f5662fa38f Add magic token for path replacement 2013-02-25 14:11:02 +01:00
Marek Safar 57ac5830e5 Fix error message to match others 2013-02-25 14:11:01 +01:00
Jérémie Laval 6431a69e79 [System] Add System.Net.WebSockets to the build 2013-02-24 20:48:18 +01:00
Jérémie Laval 3bc8c42183 [System] Add stub for System.Net.WebSockets 2013-02-24 20:34:34 +01:00
Miguel de Icaza 19298dc0a0 Merge pull request #573 from mrieker/master
tasklets.c: update used stack size
2013-02-23 18:23:34 -08:00
Stephen McConnel f6dfc59b82 Fix Xamarin bug 7594.
@(DocFileItem) is an output of CoreCompile, not an input.  (This bug still
exists in the current sources in the mono git repository.)
2013-02-23 18:35:22 -05:00
Zoltan Varga 24810d5a82 Store the domain where an exception event happened to avoid an assert if single stepping is started from that location. 2013-02-23 21:26:26 +01:00
[email protected] 0c102a1e6f tasklets.c: update used stack size
was allowing case of stack_used_size < num_bytes to
slip by so restore function wasn't restoring all bytes
2013-02-23 14:55:35 -05:00
Zoltan Varga eed19f9f77 Fix a regression introduced by the gsharedvt changes. Delegate invokes to gshared methods using a non-generic delegate type would crash. Fixes #10513. 2013-02-23 20:00:02 +01:00
Jack Pappas fe506dd7c4 Use IPPROTO_TCP instead of SOL_TCP for cross-platform compatibility. 2013-02-23 00:24:14 -05:00
Jack Pappas 2a42e4b294 Remove #ifdefs so ss_flags is always set to zero.
Removed the #ifdefs which used a different value for 'ss_flags' on Linux.
According to the POSIX standard, the SS_ONSTACK flag can never be used as input to the 'sigaltstack' function -- it can only be set by the 'sigaltstack' function itself, and tested after the function returns.
2013-02-22 21:06:25 -05:00
Rodrigo Kumpera be4ae1dbb8 Erasure the type of some fields in AppDomain so the linker can remove their types. 2013-02-22 20:11:17 -05:00
Rodrigo Kumpera 21789cb4c3 The runtime doesn't raise AccessViolationException. 2013-02-22 20:11:17 -05:00
Mark Probst 0a858d2584 Merge branch 'feature-concurrent-evacuation' 2013-02-22 16:35:00 -08:00
Mark Probst 2ad5ce46f4 [gc] Mono.Runtime method for enabling/disabling synchronous collections. 2013-02-22 16:26:54 -08:00
Mark Probst da6773d659 [sgen] Do non-concurrent GC to evacuate when the need arises. 2013-02-22 16:26:54 -08:00
Mark Probst 0a578ac2e7 [sgen] Evacuation for concurrent mark (during forced collections). 2013-02-22 16:26:53 -08:00
Mark Probst ba49b2ceeb [sgen] Make synchronous collections with marksweep-conc more standard.
Before, to do a synchronous collection with marksweep-conc we would start a
concurrent collection and then wait for it to finish.  To integrate evacuation with
marksweep-conc we need synchronous collections to work like they do with the
non-concurrent collectors.
2013-02-22 16:26:53 -08:00
Mark Probst 13f410f4e5 [sgen] Remove concurrent_cementing argument to sgen_add_to_global_remset().
Since it doesn't need to pass it on to sgen_cement_lookup_or_register() it's not
needed anymore.
2013-02-22 16:26:53 -08:00
Mark Probst 9fb356fd6a [sgen] Remove redundant argument to sgen_cement_lookup_or_register().
It can figure out whether a concurrent collection is running on its own.
2013-02-22 16:26:53 -08:00
Mark Probst 4c512cb316 [sgen] Fix a misplaced #ifdef.
This disabled some debugging stuff on platforms not
supporting DTrace.
2013-02-22 16:26:53 -08:00
Mark Probst cb78c782e9 [sgen] Remove obsolete argument to clear_unreachable_ephemerons(). 2013-02-22 16:26:52 -08:00
Rodrigo Kumpera 1643364ee8 Disable the native method-builder under DISABLE_JIT.
* method-builder.c: Disable all code related to producing IL under DISABLE_JIT.
	This has the side effect of crippling wrapper debugging on device, but given this
	feature (IL debugging of wrappers) has almost no users, we're ok.
2013-02-22 16:38:12 -05:00
Rodrigo Kumpera 7396c0a75d Remove 3 types from mono_defaults that were no longer used. 2013-02-22 16:38:12 -05:00
Sebastien Pouliot 3fd5d6bf8c On OSX and iOS use CommonCrypto/Digest for the runtime requirement on SHA1 and MD5. 2013-02-22 16:30:40 -05:00
Miguel de Icaza 7899d2f452 Merge pull request #554 from deplinenoise/ppc_fixes
PPC build fixes
2013-02-22 13:25:21 -08:00
Miguel de Icaza dd5e72a46f Merge pull request #556 from jack-pappas/ipproto-patch
Added checks for BSD-compliant protocol constants.
2013-02-22 13:22:36 -08:00
Miguel de Icaza 6578e675d6 Merge pull request #557 from jack-pappas/gacutil-patch
Fixed gacutil so assemblies with the ".exe" extension can be uninstalled.
2013-02-22 13:22:12 -08:00
Miguel de Icaza 5fbc1cd095 Merge pull request #560 from duboisj/master
Allow cross-compilation on Mac OS X host to Windows target.
2013-02-22 13:07:11 -08:00
Miguel de Icaza dd6251e6f8 Merge pull request #561 from akoeplinger/bufferless-fix
System.Web: Fixed bugs in HttpRequest.GetBufferlessInputStream()
2013-02-22 12:44:17 -08:00
Marek Safar f0ad346fb6 Mobile tests update 2013-02-22 21:41:19 +01:00
Marek Safar 2e9d9f91be Remove old workaround 2013-02-22 21:41:18 +01:00
Marek Safar 4bf37f4389 Add missing api 2013-02-22 21:41:18 +01:00
Sebastien Pouliot 7576b68413 Use an internal call (to an existing function) so it allow dropping SHA1 (and dependencies) when linking applications. Saves 2kb on (unstripped) mscorlib and 4kb on the final binary (release). 2013-02-22 13:36:01 -05:00
Sebastien Pouliot 2162983f67 Do a lighter check for public keys in the mobile profile. It's faster and also quite smaller, once linked. That saves 67kb on (unstripped) mscorlib and 110kb on the final binary (release). 2013-02-22 13:03:50 -05:00
Marek Safar 3ecc81b720 Merge pull request #569 from knocte/fix_cairo_profile_versions_problem
[Cairo] Fix mono-cairo.pc file to not hardcode 2.0 profile
2013-02-22 05:45:06 -08:00
Nikolay Igotti 2027600204 No need for indirection in exception checkers. 2013-02-22 14:24:27 +04:00
Marek Safar cf650fb3fb Update 4.5 bcl solution files 2013-02-21 17:25:06 +01:00
Nikolay Igotti b5ff0f2a63 Fixed max instruction lengths. 2013-02-21 18:22:42 +04:00
Nikolay Igotti 8f7a7a74e6 Generic jumptables support (needed for ARM NaCl port),
and ARM port support for that.
Code submitted under MIT/X11 license.
2013-02-21 18:03:30 +04:00
Marek Safar 5af8f50a84 Update to mdbdump to print more mdb details 2013-02-21 14:39:02 +01:00
Marek Safar 6c06b7d204 Optmize some empty array allocations 2013-02-21 14:38:30 +01:00
Marek Safar c132a3c3b0 Fix BinaryReader.ReadChars() no longer recursively calls BinaryReader.Read(). Patch based on tomspilman pull request #559 2013-02-21 12:42:06 +01:00
Marek Safar 17e055b95f Merge pull request #568 from devlead/patch-1
Added missing properties available in .Net 4.5
2013-02-21 00:46:45 -08:00
Mattias Karlsson ddc0ddef4a Misunderstood styling feedback
My bad should have looked at the excellent README in /mcs/class/README.
2013-02-21 09:08:39 +01:00
Andres G. Aragoneses f7f522d26c [Cairo] Fix mono-cairo.pc file to not hardcode 2.0 profile
Fixes BXC#10484.
2013-02-21 00:52:08 +00:00
Mattias Karlsson 6dc257da35 Fixed code style brace same line & remove space before brace 2013-02-21 01:06:02 +01:00
Marek Safar 16dc448b34 Compile more await identifiers. Fixes part of #10314 2013-02-20 21:58:56 +01:00
Marek Safar b6844cbcf6 Disable failing test until I have mental strength to fight with stupid jay again 2013-02-20 21:57:29 +01:00
Marek Safar 305be6aa18 Fix contextual keywords parsting. Fixes part of #10314 2013-02-20 15:57:40 +01:00
Mattias Karlsson 3145ca96ce Added missing properties available in .Net 4.5 2013-02-20 14:39:37 +01:00
Marek Safar 5079328f9d Capture temporary local variables in async context. Fixes #10341 2013-02-20 11:16:23 +01:00
Jeremie Laval fb38f2fba8 [monodoc] Fix test compilation 2013-02-20 10:07:43 +00:00
Sebastien Pouliot aeff8ec420 Skip SDK and product assemblies when preserving https 2013-02-19 21:12:41 -05:00
Sebastien Pouliot 7b7efbd2ce Fix expected value (for System.Security.Cryptography.AesManaged.FeedbackSize) to make test pass 2013-02-19 21:12:41 -05:00
Marek Safar e34b166d2d Report correct error message when lambda body contains common error later than at first error hit 2013-02-19 23:07:21 +01:00
Rodrigo Kumpera e81e2f206d Fix DISABLE_JIT for unstripped builds. 2013-02-19 16:29:31 -05:00
Marek Safar 4baf6588e7 Emit correct this reference when using async lambdas from another lambda with this reference only 2013-02-19 22:08:18 +01:00
Sebastien Pouliot 26308ff874 Do not initialize (and mark) nested types if they were not already marked. Avoid adding unused nested types in linked assemblies 2013-02-19 15:30:22 -05:00
Mark Probst e772f6bf46 [sgen] In the MONO_GC_PARAMS usage, show marksweep-conc as well. 2013-02-19 11:00:47 -08:00
Mark Probst 7a3f4e217b [sgen] Don't mark objects on promotion.
This was too conservative and the only reason we needed is because we
had bugs that were partially obscured by this code.
2013-02-19 11:00:47 -08:00
Duncan Mak 2d244d6e9e Bump version to 3.0.5 2013-02-19 13:30:05 -05:00
Jeffrey Stedfast 802e5cdcba [Mono.Debugger.Soft] Added ColumnNumber property to StackFrame 2013-02-19 12:19:21 -05:00
Zoltan Varga 8ece8c9b72 Fix non-aot support for gsharedvt. 2013-02-19 18:13:40 +01:00
Zoltan Varga 3108f76b13 Avoid deadce on OP_INEG since it sets the condition codes, and the OP_LNEG decomposition depends on this on x86. Fixes #10320. 2013-02-19 15:24:24 +01:00
Zoltan Varga b4fd5d2755 Fix sdb tests. 2013-02-19 14:56:36 +01:00
Zoltan Varga 0d8e4fd1c2 Fix sdb tests hanging, some of them still fail. 2013-02-19 12:48:17 +01:00
Zoltan Varga b0d089e5c7 Rework the gsharedvt trampoline code to use an ios abi compatible frame. 2013-02-19 12:26:56 +01:00
Marek Safar 8332a60b8a Better fix for valid il code for conditional expression of two casted interfaces 2013-02-19 11:56:59 +01:00
Rodrigo Kumpera 16bcbac7b2 More DISABLE_JIT work. 2013-02-18 18:09:43 -05:00
Rodrigo Kumpera 6eff5f18ab Fix the disable check. 2013-02-18 18:09:42 -05:00
Rodrigo Kumpera 6f5426a684 Kill lots of code under DISABLE_JIT and DISABLE_VERIFIER. 2013-02-18 18:09:42 -05:00
Rodrigo Kumpera bd5933c9bf Mention the verifier --enable-minimal switch. 2013-02-18 18:09:42 -05:00
Rodrigo Kumpera 94baf5685b Stub the implementation of MarshalByRef to help the linker kill some remoting code. 2013-02-18 18:09:42 -05:00
Marek Safar eb949bf826 Emit valid il code for conditional expression of two casted interfaces 2013-02-18 23:29:32 +01:00
Zoltan Varga f918007ba8 Get rid of mono_aot_wrapper_name (), it is no longer used. 2013-02-18 22:22:10 +01:00
Jeffrey Stedfast 9731ba29ff [Mono.Debugger.Soft] Mark StepFilter with [Flags] 2013-02-18 16:20:24 -05:00
Marek Safar b23a6104ce Build debugger tests with disabled code optimizations 2013-02-18 19:17:42 +01:00
Zoltan Varga 56e2918ad6 Fix the ARM build. 2013-02-18 18:02:14 +01:00
Rodrigo Kumpera 9b9cfb6145 Fix building sgen test suite. 2013-02-18 11:21:30 -05:00
Marek Safar abea8aca23 Make ExpressionVisitor visible in mobile 3.5 profile 2013-02-18 16:35:35 +01:00
Marek Safar 146a289d36 Fix failing test 2013-02-18 11:48:39 +01:00
Zoltan Varga 31522aa90a Implement support for unlimited number of gsharedvt arg trampolines. 2013-02-17 19:33:02 +01:00
Zoltan Varga b340bf5936 Implement a general version of the rgctx fetch trampolines, which receives the slot as an extra argument. This is needed in the full-aot case, as classes with many generic methods can use more than 128 rgctx slots. 2013-02-17 18:38:53 +01:00
Zoltan Varga f42f378945 Fix the handling of dynamic imt arguments in mono_arch_emit_imt_argument () on ARM by emitting an extra OP_MOVE for them, as with all other arguments. 2013-02-17 18:37:56 +01:00
Marek Safar 8e318f410b Break direct TPL dependency from stream classes 2013-02-16 13:15:52 +01:00
Zoltan Varga 6476b11f34 Make full-aot uses mixed vt/ref instances when full gsharedvt instances cannot be used because of generic parameter constraints. 2013-02-16 11:38:20 +01:00
Duncan Mak cebebfda5c Fix the build.
Mono.Documentation/webdoc.cs(199,87): warning CS0618: `Monodoc.Node.Nodes' is obsolete: `Use ChildNodes'
Mono.Documentation/webdoc.cs(199,87): error CS0266: Cannot implicitly convert type `System.Collections.ArrayList' to `System.Collections.Generic.IEnumerable<Monodoc.Node>'. An explicit conversion exists (are you missing a cast?)
Mono.Documentation/webdoc.cs(199,87): error CS1662: Cannot convert `lambda expression' to delegate type `System.Func<Monodoc.Node,System.Collections.Generic.IEnumerable<Monodoc.Node>>' because some of the return types in the block are not implicitly convertible to the delegate return type
Mono.Documentation/webdoc.cs(199,40): error CS1928: Type `Monodoc.Node' does not contain a member `TraverseDepthFirst' and the best extension method overload `Mono.Rocks.ObjectRocks.TraverseDepthFirst<Monodoc.Node,Monodoc.Node>(this Monodoc.Node, System.Func<Monodoc.Node,Monodoc.Node>, System.Func<Monodoc.Node,System.Collections.Generic.IEnumerable<Monodoc.Node>>)' has some invalid arguments
Mono.Rocks/ObjectRocks.cs(72,38): (Location of the symbol related to previous error)
Compilation failed: 3 error(s), 1 warnings
2013-02-15 18:08:46 -05:00
Marek Safar 23a47db274 Enable stricter verifier checks to uncover more codegen bugs 2013-02-15 23:03:47 +01:00
Jérémie Laval f430e86f7f [monodoc] Re-add now obsolete ArrayList-based Node property and use ChildNodes as the new generic property name 2013-02-15 21:38:37 +00:00
Duncan Mak bdbfaee74f Fix file casing. 2013-02-15 16:35:05 -05:00
Duncan Mak 519f5f4e0d Fix casing for documentation.cs. 2013-02-15 15:11:47 -05:00
Rodrigo Kumpera e2457f51a7 Handle a gc moving string_dummy. 2013-02-15 13:50:54 -05:00
Rodrigo Kumpera 0a2b28137b Boehm doesn't need the pinning root for threads.
* threads.c: Boehm doesn't need the pinning for each thread as it doesn't
	move objects and those objects are reachable through the thread hashtable.

	This fixes a crash on mobile that has a very small number of root slots.
2013-02-15 13:50:54 -05:00
Duncan Mak d811c08ecb [ef] Fix casing for coordinatorfactory.cs. 2013-02-15 13:13:32 -05:00
Miguel de Icaza 14f0405443 Revert "[HttpWebRequest] Avoid using the threadpool for synchronous requests"
This reverts commit b190db44cb.

The reason is:

"The HttpWebRequests tests are not enough"

"A quick review of the code shows that the code is taking a lock, while
calling a function that retries connections (which in turn takes another
important lock --for the socket--) which might casue a stack overflow
if someone calls SetWriteStream"

"This also will make the opereation sync when calling Begin/End"

"Finally, this is a patch that improves the use of the threadpool, but
the threadpool still will end up exhausted"

Probably best to just increase the number of threads?
2013-02-15 11:11:58 -05:00
Miguel de Icaza 6e54963a8e Revert "[WebConnection] Use just one delegate to init the connection"
This reverts commit 4367f8c04a.

This is needed before I revert b190db44cb
which Gonzalo studied and determine shoudl be removed
2013-02-15 11:11:58 -05:00
Marek Safar 915b61a66d Mobile tests update 2013-02-15 16:35:41 +01:00
Marek Safar 2dd23de00f Update after EF bump 2013-02-15 16:28:58 +01:00
Marek Safar c8d21410d1 Fix casing of few files 2013-02-15 15:55:14 +01:00
Marek Safar ae3b539087 Add .gitignore 2013-02-15 12:08:21 +01:00
Marek Safar 5f80f22712 Update EntityFramework. Fixes #10296 2013-02-15 12:05:03 +01:00
Marek Safar 2222a8e3f4 Mutate type parameters of hoisted base proxy method in captured context 2013-02-15 12:05:03 +01:00
Marek Safar 9b9a7e2889 Fix more conditional ambiguity parser issues 2013-02-15 12:05:03 +01:00
Marek Safar 895e7f47c3 Add System.ComponentModel.DataAnnotations/MinLengthAttribute.cs 2013-02-15 12:05:02 +01:00
Zoltan Varga 59fdcc8cf7 Add full-aot support for 4 dimensional arrays. Fixes #10275. 2013-02-15 08:54:52 +01:00
Zoltan Varga cf0bc265c4 Fix some PPC cross-compilation problems reported in #10076. 2013-02-15 08:26:51 +01:00
Zoltan Varga 1b343f32a6 Implement gsharedvt support for constrained calls to Object.GetHashCode (). 2013-02-15 01:24:41 +01:00
Rodrigo Kumpera afd1b3b8c6 Fix a race in the posix suspend code that would lead to a crash.
* mono-threads-posix.c: If we get the suspend signal while the thread
	is detaching, we end up with a non null thread info but a null jit info.
	This leads to thread_state_init_from_sigctx returning false. The
	solution on this case is not to crash, but to tell the suspender
	that the current suspend attempt failed.

	Fixes an intermittent crash on the linux bots.
2013-02-14 18:39:32 -05:00
Mark Probst ab1fd9bde6 [sgen] Fix GC handle table resize for SGen. Fixes #10127.
SGen doesn't honor mono_gc_disable(), so the code was racy.
2013-02-14 14:40:10 -08:00
Mark Probst 0b06efb775 [gc] Remove mono_gc_disable/enable().
We don't use it anymore, and SGen doesn't honor it anyway.
2013-02-14 13:49:11 -08:00
Mark Probst 77b16536ee [sgen] Binary protocol for disappearing link updates. 2013-02-14 13:49:11 -08:00
Mark Probst c5f97d9b7a [sgen] Fix mono_gc_weak_link_get (). 2013-02-14 13:49:10 -08:00
Rodrigo Kumpera 28d3d29fa3 finalizer-wait and critical-finalizer tests are sgen only, don't try under boehm. test now run more tests. 2013-02-14 16:17:04 -05:00
Rodrigo Kumpera bba04fb4e5 Remove a stale comment. 2013-02-14 14:28:58 -05:00
Rodrigo Kumpera c85e445332 Enabled a bunch of tests that should now work. 2013-02-14 13:56:31 -05:00
Rodrigo Kumpera bcaafe3113 Fix a test for compiler context. Compiler Context is dead but that test can still be used. 2013-02-14 12:16:14 -05:00
Rodrigo Kumpera f3e4eb1181 Fix the test driver regex to detect tests that have two components. Increase timeout of gc tests from 2 to 5 minutes. 2013-02-14 12:09:37 -05:00
Zoltan Varga a8e69d69f7 Fix mono_patch_info_equal () for MONO_PATCH_INFO_GSHAREDVT_CALL. 2013-02-14 15:46:01 +01:00
Marek Safar f0f4f4ae51 More mobile tests update 2013-02-14 13:06:49 +01:00
Marek Safar 90e491cd23 Optimize custom attributes check to build less pseudo custom attributes 2013-02-14 13:06:49 +01:00
Rodrigo Kumpera 459e17ea09 Rewrite the sgen test driver to make it easy to add configuration and have digestible output. 2013-02-13 18:04:02 -05:00
Rodrigo Kumpera 94965024ba Make it so we can pass test and binary names in the same parameter so we can distinguish them when running with multiple configurations. 2013-02-13 18:04:02 -05:00
Rodrigo Kumpera b25daddc3b Capturing runtime test output on wrench is an epic bucket of fail. So change the driver to dump it inline when running on wrench. 2013-02-13 18:04:02 -05:00
Atsushi Eno be167fd166 Fix bug #10271: our imported resource name was wrong. 2013-02-14 04:07:38 +09:00
Marek Safar 2ac65e29f7 Merge pull request #562 from grumpydev/TypeConverterFix
TypeConverter.IsValid fix
2013-02-13 08:28:33 -08:00
Alexander Köplinger ebbe9b571d System.Web: Fixed bugs in HttpRequest.GetBufferlessInputStream() 2013-02-13 05:18:11 -08:00
Zoltan Varga adbc424242 Allow more constrained call cases when using gsharedvt. Allow usage of the ldvirtftn opcode. 2013-02-13 14:03:14 +01:00
Atsushi Eno 19eac76e6e Fix regression in XmlSchemaValidator (bug #10245): collection misoperation due to parameter renaming. 2013-02-13 21:13:27 +09:00
Zoltan Varga fec98f5f01 Set ainfo->size on ARM for arguments passed on the stack, the gsharedvt code depends on this. 2013-02-13 12:22:54 +01:00
Zoltan Varga 5bd49c7721 Move the creation of gsharedvt wrappers/trampolines to a new helper function mini_get_gsharedvt_wrapper (), and use that everywhere. Add caching to avoid running out of gsharedvt arg trampolines. 2013-02-13 10:42:36 +01:00
Zoltan Varga 5bab9ec53b Avoid AOT errors if gsharedvt is not enabled. 2013-02-13 08:57:20 +01:00
Zoltan Varga 077d89fc12 Add an --enable-minimal option to disable support for multiple appdomains. 2013-02-13 08:44:45 +01:00
Mark Probst e764c82a63 [sgen] Fix a GC descriptor bug. Fixes case 23400.
This affects arrays of all structs of which the last reference field
is at offset 16*sizeof(mword).
2013-02-12 19:43:50 -08:00
Rodrigo Kumpera 18044f8079 This was removed by accident when chopping MOONLIGHT code out. 2013-02-12 19:08:29 -05:00
Rodrigo Kumpera 1a078f585a Fix the shared_area logic to have it enabled by default. 2013-02-12 17:28:12 -05:00
Rodrigo Kumpera 98a18b62f8 Add MONO_DISABLE_SHARED_AREA to the man page. 2013-02-12 16:36:42 -05:00
Rodrigo Kumpera b293b730ee Make it possible to disable shared_are with the MONO_DISABLE_SHARED_AREA env var. 2013-02-12 16:33:40 -05:00
Rodrigo Kumpera 0c2b19bf01 Fix shared_area fallback implementations to not leak memory. 2013-02-12 16:32:58 -05:00
Rodrigo Kumpera 7d1c207c62 Use the fast shared_area lookup code everywhere. The targets that don't need it don't compile it in. 2013-02-12 16:31:15 -05:00
Marek Safar d6af35c68f Fix more mobile tests 2013-02-12 20:02:07 +01:00
Josh DuBois 9fa235bc34 Include <stdint.h> to allow cross-compilation from OS X.
Cross-compiling mono on an OS X host for a Windows target using
mingw-w64 fails because of undefined __int64 types in a couple of places.

Including <stdint.h> fixes this and allows the OS X host to cross-compile
a Windows mono.

It probably sounds like an obscure use-case, but the wine-mono
project does just this, so ability to cross-compile for Windows on OS X
is crucial to being able to build wine-mono on a Mac.
2013-02-12 11:59:29 -06:00
Marek Safar 81c5020bea Possible fix for #10206 2013-02-12 15:01:05 +01:00
Jeremie Laval d90ef8a022 [monodoc] Add missing HelpSource set in Legacy mode 2013-02-12 13:41:32 +00:00
Marek Safar c1437f237f Fix TaskCreationOptions.AttachedToParent to avoid NRE on TaskCreationOptions.DenyChildAttach and deadlock on Wait 2013-02-12 14:25:58 +01:00
Marek Safar 65518ad2ca RunSynchronously cannot be used with continuation 2013-02-12 14:25:58 +01:00
Marek Safar cff9f25510 Merge pull request #558 from mkorkalo/master
[I18N] Fix ByteEncoding crashes when using EncoderFallback
2013-02-12 04:20:09 -08:00
Jeremie Laval 1791319770 [monodoc] Legacy Tree inheriting Node 2013-02-12 11:49:34 +00:00
Jeremie Laval 82321e2428 [monodoc] Re-add more legacy settings 2013-02-12 11:49:34 +00:00
Zoltan Varga 06cebd93ee Use direct method addresses in the unbox trampoline table as well on ios. 2013-02-12 12:24:27 +01:00
Marek Safar 8063eb0963 Remove broken profile files 2013-02-12 10:19:10 +01:00
Marek Safar e53a27a22c Remove unused file 2013-02-12 09:46:39 +01:00
Zoltan Varga cefcf37a2a Fix an assert in the gsharedvt code. 2013-02-12 07:41:15 +01:00
Miguel de Icaza aee1c0e645 ServicePoint: Use DateTime.UtcNow internally, which avoids looking up the timezone every minute 2013-02-12 00:48:15 -05:00
Miguel de Icaza 6dd912abf7 Remove temporary file 2013-02-12 00:41:29 -05:00
Zoltan Varga 663b53f63d Fix support for MONO_PATCH_INFO_GSHAREDVT_CALL in mono_patch_info_dup_mp (). 2013-02-12 06:38:17 +01:00
Zoltan Varga 139c0a3307 Add gsharedvt support for unbox.any. 2013-02-12 06:26:00 +01:00
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Rodrigo Kumpera f378e23a3f Since NET_2_1 implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:41:51 -05:00
Rodrigo Kumpera b8f81467e0 Remove moonlight from the build system. 2013-02-11 17:18:58 -05:00
Rodrigo Kumpera 8752d92528 Kill MOONLIGHT from System.Xml. 2013-02-11 16:03:40 -05:00
Rodrigo Kumpera 054957354b Kill MOONLIGHT from System.Xaml. 2013-02-11 16:03:39 -05:00
Rodrigo Kumpera 8732e2dfd7 Kill the MOONLIGHT define from System.Xml.Linq. 2013-02-11 16:03:38 -05:00
Rodrigo Kumpera dba5f60e67 Remove moonlight sources in corlib that were only used by moonlight. 2013-02-11 16:03:37 -05:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Rodrigo Kumpera 438e0d8b92 Remove TypeConverter_2_1 that was only used by moonlight. 2013-02-11 13:01:11 -05:00
Rodrigo Kumpera 5007c14d62 Kill the MOONLIGHT define in System. 2013-02-11 13:01:11 -05:00
Rodrigo Kumpera a0d28b2587 Kill the MOONLIGHT define in System.ServiceModel. 2013-02-11 13:01:11 -05:00
Rodrigo Kumpera de71901cf8 Kill the MOONLIGHT define in System.ServiceModel.Web. 2013-02-11 13:01:10 -05:00
Rodrigo Kumpera 9b9effd98a Kill the MOONLIGHT define in System.Runtime.Serialization. 2013-02-11 13:01:10 -05:00
Rodrigo Kumpera 486ee8d8f4 Kill the MOONLIGHT define in System.Core. 2013-02-11 13:01:10 -05:00
Rodrigo Kumpera 43c14ca5af Kill the MOONLIGHT define in Mono.Security. 2013-02-11 13:01:09 -05:00
Rodrigo Kumpera 67a8e58349 Remove silly SL limitation workaround in Mono.CompilerServices.SymbolWriter.dll 2013-02-11 13:01:09 -05:00
Rolf Bjarne Kvinge aa9f6984b9 Prefix aot symbols with something to prevent them from accidentally become a local symbol (i.e. prefixed with L) 2013-02-11 17:08:19 +01:00
Jack Pappas a8ef572972 Fixed IsSwitch to check for files ending in '.exe'.
Removed checks for all-uppercase extensions in Uninstall.
2013-02-11 10:33:15 -05:00
Zoltan Varga 7fdf9cb82a Fix the ARM build. 2013-02-11 16:10:47 +01:00
Marek Safar b494111aed Fix duplicate warning on obsolete GetEnumerator 2013-02-11 14:57:19 +01:00
Marek Safar ed9dc87369 Add obsolete attribute 2013-02-11 13:48:01 +01:00
Marek Safar 9e32c5fbd5 Add guard against recursive base class with generic interfaces. Fixes #10196 2013-02-11 13:39:24 +01:00
Marek Safar 6cc18cd797 Implement FilterUIHintAttribute 2013-02-11 13:33:17 +01:00
Mikko Korkalo eb71faeaef renamed test 2013-02-11 09:34:11 +02:00
Mikko Korkalo 1c00ba5543 improved encoder tests for I18N.MidEast 2013-02-11 09:28:08 +02:00
Mikko Korkalo 1ed1fcdde6 re-generated codepages with new ucm2cp.c: removed dotnet 1.0 support for cleaner code 2013-02-11 09:26:26 +02:00
Mikko Korkalo 66a26049aa changed ucm2cp.c to generate less changes, also removed NET < 2.0 support 2013-02-11 09:25:04 +02:00
Jack Pappas c7cd3864d0 Formatting changes to adhere to existing code style. 2013-02-10 19:53:08 -05:00
Mikko Korkalo 880c341fe4 Tests for MidEast encodings (stub, only turkish and generic handlefallback tests) 2013-02-11 01:48:53 +02:00
Mikko Korkalo 77eb88801e regenerated encoder classes with a patched ucm2cp.c with proper EncoderFallback support 2013-02-11 01:48:53 +02:00
Mikko Korkalo ac42aaea2e ucm2cp.c: generate codepage classes with proper EncoderFallback support 2013-02-11 01:48:53 +02:00
Andreas Fredriksson 8b3f25b841 Fix PPC link error on mono/mini due to missing symbol. 2013-02-10 13:57:18 -08:00
Andreas Fredriksson ab5e9cd6b9 Prefer __sync_bool_compare_and_swap() over PPC inline asm.
Debian's GCC 4.4 in particular does not compile the PPC assembly.
2013-02-10 13:55:52 -08:00
Jack Pappas 037aa53c69 Fixed the way assemblies are located when uninstalling so .exe assemblies can be uninstalled from the GAC. 2013-02-10 16:50:04 -05:00
Miguel de Icaza ae25155bdf System.Web: Implenent 4.0 HttpRequest.GetBufferlessInputStream, implemented blind, without access to the real ASP.NET to verify, but should be correct 2013-02-10 15:13:49 -05:00
Jérémie Laval bbe4ba0426 [monodoc] Rework version number inclusion in .tree files to be backward compatible with previous Mono version. 2013-02-10 19:44:52 +00:00
Steven Robbins 46420e6f50 Fixed formatting 2013-02-10 11:59:56 +00:00
Steven Robbins 7fcbd002a8 Added test for In32 IsValid 2013-02-12 14:59:50 +00:00
Steven Robbins f05d1c1ab9 Fixed issue with TypeConverter.IsValid always returning true
Now returns true if null and true if the type passed in can be
converted to, and the conversion itself didn't throw an exception.

If the type cannot be converted to, or the conversion threw, then
it returns false.
2013-02-12 14:54:38 +00:00
Martin Baulig c6b3111495 [System.Security]: Fix broken NTLM nunit tests. 2013-02-10 12:38:45 +01:00
Martin Baulig ff1e088df6 Fix the build. 2013-02-10 12:07:25 +01:00
Jack Pappas d89924d802 Added checks for BSD-compliant protocol constants.
Fixed the checks for a couple of Linux-specific constants so they work correctly (they included the wrong header).
Added a check for the Linux-specific constant IP_PMTUDISC_DO; this'll be used with IP_MTU_DISCOVER in a future patch to make Linux sockets match BSD/OSX/Windows behavior.
2013-02-09 21:40:48 -05:00
Jack Pappas cc991feac7 Swap the condition -- instead of checking for OS X and assuming anything else uses the Linux behavior, check for Linux and let other platforms use the default POSIX behavior. This allows sigaltstack to be used on BSD variants.
This change has been tested (with the standard test suite) on FreeBSD 9.1 (i386, amd64) and Ubuntu 12.04.1 (i386).
2013-02-09 19:38:08 -05:00
Miguel de Icaza 909bedb4a9 Merge pull request #475 from pruiz/xamarin-bug-7408
Implemented UrlAuthorizationModule.CheckUrlAccessForPrincipal(...) (fixes xamarin bug #7408)
2013-02-09 14:24:45 -08:00
Miguel de Icaza 73277ab4af Merge pull request #524 from pruiz/mvc-allowhtml-fix
Fixes xamarin-bug #8965: AllowHtmlAttribute ignored throwing exception on POST using ASP.NET mvc3
2013-02-09 14:21:58 -08:00
Miguel de Icaza 0f8da45878 Merge pull request #546 from QuickJack/master
Fixes a problem in Mono's ASP.NET Menu Control
2013-02-09 12:32:50 -08:00
Miguel de Icaza 06779c6d95 Merge pull request #547 from jack-pappas/patch-1
Organized .gitignore and added new patterns.
2013-02-09 12:32:18 -08:00
Miguel de Icaza 8ffeebe537 C# Evaluator, Terse syntax fix.
The terse syntax added a semicolon automatically, but that also meant
that things lik:

	csharp> for (int i = 0; i < 10; i++)

Would never get a continuation for partial input, since the semicolon
woudl make that a valid block.

Fix that by first trying to add a block at the end, if that works, then
we know we want to continue, otherwise we insert the semicolon.
2013-02-09 15:30:55 -05:00
Marek Safar 21b51635c4 Add missing flags 2013-02-09 13:46:51 +01:00
Marek Safar ff813f658b Don't report user operator error during probing user conversions. Fixes #10170, #10171 2013-02-09 13:46:51 +01:00
Zoltan Varga eb0d7efc9e Add helper functions to avoid the if (cfg->generic_sharing_context) context_used= idiom in the JIT code. 2013-02-09 05:36:03 +01:00
Zoltan Varga eaa0679503 Pass the original call signature too to the code handling MONO_METHOD_MONO_RGCTX_INFO_METHOD_GSHAREDVT_OUT_TRAMPOLINE, it was previously using oti->data for that, but that might not equal the original called method in all cases. 2013-02-09 05:19:55 +01:00
Rodrigo Kumpera bb01b02d35 Raise an exception for user types under FULL_AOT_RUNTIME instead of crashing. 2013-02-08 15:12:07 -05:00
Marek Safar 1fff2451d1 Add explicit interface GetType implementation to avoid object::GetType become proxy. Fixes #10148 2013-02-08 18:33:36 +01:00
Rodrigo Kumpera ba1e20cf64 Merge pull request #551 from jack-pappas/sgen-patch
Fix thread stack initialization on BSD platforms.
2013-02-08 08:57:49 -08:00
Marek Safar 4f97ce2690 Add test which is now working 2013-02-08 16:15:47 +01:00
Marek Safar 07964f0505 Fix type inference for methodgroup arguments where one of methodgroup delegate parameter is generic type with dependant type parameter. 2013-02-08 16:15:46 +01:00
Marek Safar 8c2167d52c Merge pull request #550 from knocte/master
[HttpWebRequest] Avoid using the threadpool for synchronous requests
2013-02-08 06:50:27 -08:00
Andres G. Aragoneses 4367f8c04a [WebConnection] Use just one delegate to init the connection
As suggested by Marek Safar, using WaitCallback without the threadpool
is just fine, so revert back to using one delegate.
2013-02-08 14:36:50 +00:00
Jack Pappas 7cf0039dad Fix thread stack initialization on BSD platforms. 2013-02-08 08:16:35 -05:00
Atsushi Eno acdf48cf71 fix bug #6653: change xs component validation logic regarding recursion check.
Originally this implementation checked recursion based on RELAX NG-inspired
algorithm explained at http://www.thaiopensource.com/relaxng/simplify.html.

This works only for "simple" syntax, which premises that every <element> is
defined under top-level <define> element. XML Schema doesn't follow this
and could result in infinite loop like reported.

The latest REC-xmlschema-1 denotes the explicit rule on illegal recursion
on 3.8.6 (Model Group Correct) as:

2 Circular groups are disallowed. That is, within the {particles} of a group there must not be at any depth a particle whose {term} is the group itself.

... so, I simply replaced the checker with simple Stack.

(oh, and for old Stack I haven't bothered to replace non-generic collection
everywhere. XSD is as dead as System.Collection.)
2013-02-08 20:19:14 +09:00
Marek Safar ab381541cf Improved warning reporting for missing await 2013-02-08 11:25:20 +01:00
Marek Safar e52c1227e4 Merge pull request #544 from svick/missing-awaits
Added missing awaits to StreamWriter
2013-02-08 02:22:21 -08:00
Atsushi Eno 740d826912 fix mobile build (from 6b4c3f0). 2013-02-08 17:05:31 +09:00
Atsushi Eno 7b326bd96c bump rx to official 2.1 release. 2013-02-08 16:53:22 +09:00
Atsushi Eno 42fb6205ac bump rx repo (mostly for mobiles) 2013-02-08 16:41:54 +09:00
Rodrigo Kumpera 8343dbe179 Add a test case for #10122. 2013-02-07 19:22:14 -05:00
Rodrigo Kumpera fc3c31dcc3 When encoding a memberref to a field of a generic instance we must use the type of the GTD. Fixes #10122
* reflection.c (mono_image_get_fieldref_token): We must encode the memberref using the GTD type so
	we can distinguish between the following two:

		class Foo<T> {
			T t;
			int t;
		}

	The above two fields for the instance Foo<int> must be encoded as "!0 Foo<int>:t" and "int Foo<int>:t"
	respectively. The CLR does both structural and nominal matching on memberref resolution, so we must be
	strict.

	The previous fix removed tried to work-around a crash in the generic instance case due to the field
	type been null. This now happens because field types are lazily loaded and must always be looked up
	using mono_field_get_type. The original code code was not and so broken.
2013-02-07 19:22:14 -05:00
Andres G. Aragoneses b190db44cb [HttpWebRequest] Avoid using the threadpool for synchronous requests
The code path for synchronous requests was the same as the one for
asynchronous ones: the threadpool. It's actually not needed in this
case because the thread is going to wait anyway, so there's no need
to use the threadpool.

This helps in scenarios in which SOA is heavily used:
- The process is hosted under xsp/mono-fastcgi/... which use the threadpool
too.
- If the requests generate other requests to other REST services, the
usage of the threadpool in these cases may interfere with the usage of
the threadpool by xsp/mono-fastcgi/...
- The thread that is serving a request shouldn't request another thread
for a blocking operation, preventing the use of that thread by other
possible incoming requests.

This commit is contributed under the terms of MIT/X11 licence.

(It doesn't cause any breakage in the System test suite.)
2013-02-07 21:25:34 +00:00
Jack Pappas b84709d9b6 Organized the .gitignore. Added patterns for temporary and user-specific files
generated by development tools. Added patterns to ignore binaries when projects
in mcs/ are compiled.
2013-02-07 14:36:42 -05:00
Marek Safar 78318771d5 Update csproj files 2013-02-07 16:34:23 +01:00
Marek Safar 425d8ff709 Fix public token property for mobile 2013-02-07 16:34:22 +01:00
Marek Safar 0cfac7034d Fix mscorlib public key token constant for mobile profile 2013-02-07 16:34:22 +01:00
Marek Safar afa79435aa Update for mobile profile 2013-02-07 16:34:21 +01:00
Marek Safar 96d058749d Update csproj generator to work on mac 2013-02-07 16:34:21 +01:00
Rolf Bjarne Kvinge 136f537cad [mkbundle] Reorder parenthesis to malloc the right amount 2013-02-07 16:10:06 +01:00
Marek Safar 6b4c3f0d72 Merge pull request #472 from MelanieT/spmanager_fix
Fix ServicePointManager.DefaultConnectionLimit to work as specified.
2013-02-07 07:05:41 -08:00
Martin 684292834c Update mcs/class/System.Web/System.Web.UI.WebControls/Menu.js 2013-02-07 15:43:29 +01:00
Zoltan Varga 92c3260777 Fix the handling of non-virtual calls made out of gsharedvt methods, we need to add both an out and an in wrapper instead of just an in wrapper. 2013-02-07 06:04:40 +01:00
Zoltan Varga 05a374c1cd Fix the lookup of aot unbox trampolines for gsharedvt methods. 2013-02-07 06:04:11 +01:00
Zoltan Varga c4808eff1a Allow gsharedvt methods to be used in place of gshared methods if the latter is not found in full-aot mode. Add gsharedvt trampolines for delegates invoke wrappers. 2013-02-07 04:46:43 +01:00
Zoltan Varga dca8d506c3 Add AOT support for generic delegate-invoke wrappers. 2013-02-06 22:03:00 +01:00
Zoltan Varga 8eae1a7d72 Make delegate-invoke wrappers for generic delegates like Func/Action generic, i.e. instead of creating a non-generic wrapper for the inflated Invoke method, create generic wrapper for the generic Invoke method, and inflate it with the type arguments of the delegate type. This works better with full aot. 2013-02-06 22:02:59 +01:00
Jeffrey Stedfast 26de2a8a22 [Microsoft.Portable.CSharp.targets] Fixed to not override the compiler
The old hack is no longer needed in Mono 3.0
2013-02-06 15:21:14 -05:00
Rodrigo Kumpera d51df48da7 Move the mobile profile to the new 4.5 world. 2013-02-06 14:05:45 -05:00
Rodrigo Kumpera b6413aacdb Use system resgen to avoid the System.Windows.Forms dependency. 2013-02-06 14:05:45 -05:00
Atsushi Eno 35ae8ff4c3 [mdoc] sometimes doc xmls have no Type element... 2013-02-07 02:23:45 +09:00
Petr Onderka 8ee32e8c0e Added missing awaits to StreamWriter 2013-02-06 11:19:11 +01:00
Zoltan Varga 37c67e8cc5 Fix the build. 2013-02-06 11:11:20 +01:00
Atsushi Eno ba26046224 Revert previous revert to old rx.
Desktop rx should be up to date. mcs and runtime needs to be fixed for mobile.
2013-02-06 18:44:59 +09:00
Zoltan Varga 1b0f375df0 Add support for the calli opcode in gsharedvt methods, by passing the call address to the gsharedvt trampoline in the rgctx trampoline. Move the dummy definitions of the arch specific gsharedvt functions to mini.c. 2013-02-05 23:46:48 +01:00
Rodrigo Kumpera c5fbaf7ed3 Lift the input/output match restriction as we now properly loop over just the file list. 2013-02-05 16:25:42 -05:00
Rodrigo Kumpera fe4bd38cfc Revert "Lift the input/output match restriction as we now properly loop over just the file list."
This reverts commit 2fb94ec744.
2013-02-05 16:24:58 -05:00
Rodrigo Kumpera 2fb94ec744 Lift the input/output match restriction as we now properly loop over just the file list. 2013-02-05 16:20:48 -05:00
Zoltan Varga a09e21f46c Remove some debug spew. 2013-02-05 21:01:17 +01:00
Zoltan Varga 42de90e66e Revert an accidental change which enabled gsharedvt for calli opcodes. 2013-02-05 20:55:29 +01:00
Zoltan Varga b2667eaffe Fix the non-gsharedvt build. 2013-02-05 20:54:15 +01:00
Zoltan Varga 16be172742 Fix the build. 2013-02-05 20:49:05 +01:00
Zoltan Varga fa15ab7315 Pass signatures instead of methods to mono_arch_get_gsharedvt_call_info (). 2013-02-05 20:28:42 +01:00
Zoltan Varga 471be11342 Emit the IReadOnly helper wrappers as well when using full-aot. 2013-02-05 20:28:41 +01:00
Rodrigo Kumpera a202966a31 Call jay from the same directory of the source file to avoid broken #line directives. 2013-02-05 12:05:21 -05:00
Marek Safar 8841204439 Implement use of __refvalue as an lvalue. Fixes #10034 2013-02-05 10:31:48 +01:00
Rodrigo Kumpera 905dceaacf Rewrite mdbrebase to use Mono.CompilerServices.SymbolWriter instead of cecil.
* mdbrebase.cs: Cecil did not produce reliable results and was pretty
	slow because it needed to parse the actual assemblies. This can now
	completely avoid it.
2013-02-04 19:18:06 -05:00
Rodrigo Kumpera e2e35b4f2c Expose some Mono.CompilerServices.SymbolWriter internal APIs so it's possible to build a mdb file from another one. 2013-02-04 19:18:06 -05:00
Marek Safar 0e6393ec6c Looup in currect folder before additional paths to match csc. 2013-02-04 21:12:51 +01:00
Zoltan Varga 8465f13e8a Add some support for wrappers which are generic instances. 2013-02-04 20:36:46 +01:00
Rodrigo Kumpera a736dee9e1 Make sure assembly ordering matches MS by always appending. Fixes #10004. 2013-02-04 13:51:28 -05:00
Rodrigo Kumpera 7c493f1aa9 Merge pull request #543 from knocte/master
[System.Reflection.Emit] Store dynamic assemblies after the static ones
2013-02-04 10:41:26 -08:00
Marek Safar 6e49ec8919 Check modifier keys in windows console driver too. Fixes #9091. 2013-02-04 16:51:53 +01:00
Marek Safar ae02cc2113 Close open namespace container when error recovery fails. Fixes #9167 2013-02-04 16:51:53 +01:00
Zoltan Varga 1e5565b72a Reset constrained_call in the gsharedvt code path as well. 2013-02-04 02:29:33 +01:00
Zoltan Varga 6317682290 Fix an assert which can be hit in gsharedvt mode. Fix a warning. 2013-02-04 00:21:51 +01:00
Zoltan Varga fb68c67d61 Implement gsharedvt support for constrained calls to Object:ToString (). 2013-02-03 21:06:48 +01:00
Andres G. Aragoneses df4a73d70f [System.Reflection.Emit] Store dynamic assemblies after the static ones
AssemblyBuilder class was adding generated dynamic assemblies at the
beginning of the list of the assemblies of the current domain, instead
of at the end.

This not only is not the behaviour of MS.NET but was inconsistent to
previous calls to the CurrentDomain.GetAssemblies() method, which would
return assemblies in different positions.

If code was relying on the order of these assemblies being returned (i.e.
to find the first type in the loaded assemblies that conforms to certain
requirements), it would result in unexpected behaviour if used along with
frameworks that mock/stub types on the fly, such as RhinoMocks, FakeItEasy
or other Castle.DynamicProxy-based ones.

This fixes BXC#10004:
https://bugzilla.xamarin.com/show_bug.cgi?id=10004

Patch contributed under the terms of MIT/X11 licence.
2013-02-03 19:12:25 +00:00
Mark Probst 56a6ae2bd0 [sgen] Fix hazard pointer free deadlock problem. Fixes #9828.
The hazard pointer code, which assists in lock free algorithms, tries
to free some data it had to keep around (because other threads were
still using it) whenever it is invoked.  Obviously, the code that frees
data must never lock, or else the code that uses hazard pointers might
lock, as well.

The JIT info table pointer code uses malloc/free to allocate its memory,
so its free function uses free(), which might lock.  Even worse, it takes
the domain lock.  (The JIT info table is lock-free for readers, not for writers,
which explains why it uses hazard pointers.)

To solve the problem we separate hazard pointers into those whose free
functions might lock, and those who will not, and we provide the information
on whether we're currently in a context where locking is permissible.  If it isn't,
no free function which might lock must be called.  To make sure they are
called eventually we try to free a few after restarting the world in SGen, at
which point locking is allowed.
2013-02-02 16:52:40 -08:00
Mark Probst 22d18ea249 Remove a dead function. 2013-02-02 10:54:57 -08:00
Mark Probst 1c1f1f098f [sgen] Make sure there's never a JIT info table without chunks.
It seems possible that a JIT info table could reach a state where it
contains only tombstones, i.e., is empty, at which point adding an
entry to it will cause an overflow, which would allocate a new table
without any chunks in it.  This fixes that.
2013-02-02 10:54:57 -08:00
Zoltan Varga 3f188ac733 Emit a separate copy of the gsharedvt trampoline in full-aot mode so the in/out trampolines show up differently in stack traces. 2013-02-02 04:14:34 +01:00
Zoltan Varga 231b94103b Enable gsharedvt for newobj+valuetypes. 2013-02-01 23:08:23 +01:00
Zoltan Varga bc107f0e8f Add a test for #4737. 2013-02-01 20:02:55 +01:00
Rodrigo Kumpera 76daf8f682 Dep track BCL sources extension files. 2013-02-01 13:54:37 -05:00
Marek Safar 185743cacd Rewrite of async StreamReader/StreamWritter operations to not fail on subsequent async call. Fixes #9761 2013-02-01 18:29:54 +01:00
Marek Safar 6347323f5f Recover from invalid lambdas uses as arguments. Fixes #9949 2013-02-01 10:06:37 +01:00
Marek Safar 9bb4c26081 Merge pull request #541 from dlech/master
[Fix] System.Security.SecureString.ReadAt(int), includes NUnit test
2013-02-01 00:33:26 -08:00
David Lechner f26842327d fix System.Security.SecurString.ReadAt(int), includes NUnit test 2013-01-31 21:12:56 -06:00
Rodrigo Kumpera 710e7cc35a Add new tool to the spec file. 2013-01-31 19:46:36 -05:00
Rodrigo Kumpera 17b3cd53bf Add new mdbrebase tool that lets you change the prefix of its source files. 2013-01-31 17:58:06 -05:00
Marek Safar 1c47612b58 Mark ObservableCollection.Reentrant serializable 2013-01-31 15:56:21 +01:00
Marek Safar db504e5942 Better CS0201 error location. Fixes #9885 2013-01-31 14:28:52 +01:00
Marek Safar f950c833fb Delegate dynamic parameters do not involve dynamic dispatch when matched on signature. Fixes #9854 2013-01-31 13:59:19 +01:00
Marek Safar 7ae364c9c3 Emit field initializers when the ctor has dynamic arguments. Fixes #9683 2013-01-31 12:32:06 +01:00
Marek Safar c7b3142f7a Object and collection initializers cannot be used to instantiate a delegate. 2013-01-31 12:32:06 +01:00
Zoltan Varga 7c2496cbe6 Emit unbox trampolines for all methods of vtypes in full-aot mode, since they are needed when calling these methods through delegates. 2013-01-30 23:05:18 +01:00
Zoltan Varga eaaa919f9f Remove a gsharedvt check which is no longer needed. 2013-01-30 23:01:41 +01:00
Zoltan Varga d24b7071cc Remove a check from mono_arch_find_imt_method () which can fail if the caller is the gsharedvt trampoline. 2013-01-30 23:01:41 +01:00
Zoltan Varga 7302d78313 Fix a special case in mono_method_get_vtable_slot () where method->slot can still be uninitialized even after mono_class_setup_vtable (). 2013-01-30 23:01:41 +01:00
Rodrigo Kumpera b2370b7ed4 Add support for alternate source files to be used on extension-less builds. 2013-01-30 15:17:40 -05:00
Rodrigo Kumpera e5fba9d04a Revert "Revert "Fix the Mono.Security.dll monotouch build.""
This reverts commit b691ca8371.

The original fix is required to build the monotouch profile.
2013-01-30 12:27:08 -05:00
Marek Safar 8ae1e29a87 Member lookup on type parameters has different ambiguity rules. Fixes #9776 2013-01-30 17:50:49 +01:00
Marek Safar 82bfae8a22 Better error message for missing using clause in alias scope. Fixes #9813 2013-01-30 15:55:59 +01:00
Marek Safar 845eb4b8ba Fix duplicate inaccessible error message 2013-01-30 15:55:58 +01:00
Marek Safar 5a76c3e532 Exclude operators from member access lookup 2013-01-30 15:55:58 +01:00
Zoltan Varga 8dca6d7a4d Pass the caller method address to mono_class_fill_runtime_generic_context () as well. 2013-01-30 02:39:52 +01:00
Zoltan Varga 62695470c2 Compute the MonoGenericSharingContext from the caller of the rgctx fetch trampoline instead of the context, since the latter contains the types used by the instantiation while we need the types used to compile the gsharedvt method. Fix gsharedvt support in CEE_BOX. 2013-01-30 02:07:19 +01:00
Jeffrey Stedfast 6e3e95a49f [Mono.Debugger.Soft] Flushed out TypeMirror.CSharpName a bit. 2013-01-29 17:04:38 -05:00
Atsushi Eno d763c6242f [xsd] compare attribute string values for enums in normalized form. Fixes bug #9835. 2013-01-30 00:25:35 +09:00
Atsushi Eno 13b3194009 fix rx revision. 2013-01-29 18:47:52 +09:00
Atsushi Eno b691ca8371 Revert "Fix the Mono.Security.dll monotouch build."
This reverts commit 34c53fcc44.
2013-01-29 18:41:39 +09:00
Atsushi Eno c1fe3fb643 fix mobile build. 2013-01-29 18:25:09 +09:00
Zoltan Varga 0889c26fee Remove a gsharedvt limitation when a non-virtual method is called using callvirt. 2013-01-29 06:12:12 +01:00
Miguel de Icaza 505a1e2bae [mscorlib/mobile] Encoding.Default is always UTF8 in mobile, strip out all the code that brings the encoding system 2013-01-28 20:48:59 -05:00
Miguel de Icaza a15cfbe9f0 Add Contributing Guidelines 2013-01-28 20:45:03 -05:00
Zoltan Varga 390f1a3841 Emit proper unwind info for the gsharedvt trampoline in full-aot mode. Fix gsharedvt support in mono_aot_plt_resolve (). Add a 'no-instantiations' AOT option to avoid the generation of generic instances, to allow better testing of the gsharedvt code. 2013-01-29 02:01:17 +01:00
Rodrigo Kumpera 565f072a9a Fix the [monodroid] build. 2013-01-28 18:55:01 -05:00
Rodrigo Kumpera b33c56dfe0 Improve our native crash experience.
* mini-exceptions.c (mono_invoke_unhandled_exception_hook): Print something
	even if we fail to produce a backtrace.

	* mini-exceptions.c (mono_handle_native_sigsegv): Use exit on android
	since abort triggers another segv. Always Print the fatal native error
	even on "special" targets that have no backtrace symbols support.
2013-01-28 12:12:24 -05:00
Rodrigo Kumpera 99d71eb6e9 Move mono_runtime_printf_err to use critical level as error results in an abort. 2013-01-28 12:12:23 -05:00
Rodrigo Kumpera 50f1c0025f Make mono_print_unhandled_exception resilient to nested exceptions.
* object.c (mono_print_unhandled_exception): Ensure that nested exceptions are
	properly catch not leading to a stack overflow of recursive fail.
2013-01-28 12:12:23 -05:00
Rodrigo Kumpera 5005c6f3fb Use a non RT signal on Android since its userland is not very keep to it.
* threads.c: On Android we now use SIGUNUSED instead of RT2 since bionic
	exposes a 32bits sigset_t which cannot accommodate signals in the RT range.

	The alternative would be to directly syscall the kernel and use the RT range,
	but that would mean patch all functions that deal with sigset_t to use a wrapper.
	So, given the effort/result of it on this case. It makes more sense to just
	use an unused signal for that.

	The linux kernel has 2 syscall APIs for signals, the regular one and the rt
	variant. EG, we have sys_sigprocmask and sys_rt_sigprocmask.

	The regular one works with 32bits sigset_t while the rt_ variant deals with
	64bits (128bits on mips) sigset_t. This is, I believe, largely due to legacy
	support for old glibc when they added support for RT signals in a very very
	distant past - before the kernel git epoch.

	Said that, bionic, for some reason, decided to go with the old one. Android's
	kernel has full support for RT signals, which makes the whole thing even more
	interesting. I could not figure out why it ended up like that, probably some
	historical accident that was never noticed.

	Current bionic (Jelly Bean 4.2.1) function that operate on sigset_t don't
	perform any bounds check which, when using signal 33, leads to memory corruption.
	On our case it leads to stack corruption and random crashes.
2013-01-28 11:27:18 -05:00
Jeremie Laval 0ad6ffdeca [monodoc] Backport XSL changes that were made after branching 2013-01-28 11:51:25 +00:00
Jeremie Laval d41cbc4c83 [monodoc] Backport 463b5912ce 2013-01-28 11:51:25 +00:00
Alan McGovern c439e141dd [monodoc] Delete some crufty duplicate files 2013-01-28 10:22:14 +00:00
Zoltan Varga 846552f1f8 Implement support for virtual generic calls from gsharedvt methods. 2013-01-28 03:32:56 +01:00
Mark Probst c67fa57557 [sgen] Fix internal allocator DTrace probes commit. 2013-01-27 23:19:55 +01:00
Mark Probst 0da32f0bcb [sgen] Finish concurrent collection before clearing a domain. 2013-01-27 11:49:18 +01:00
Marek Safar a18f41155c Merge pull request #539 from pnewhook/master
replaced link in README to old build system with monkeywrench
2013-01-26 13:41:10 -08:00
pnewhook 6187192337 fixed broken link to automated build in README 2013-01-26 11:51:08 -02:00
Mark Probst 85b33433e4 [sgen] DTrace probes for internal allocations. 2013-01-26 12:53:26 +01:00
Martin Baulig 10fa0cd338 [Mono.Security]: Change NTLM domain policy.
There has been a bug report where a Microsoft Server 2008 RC2 does
not accept the domain name that it sent back in the Type2Message's
TargetInfo / Domain Name field.

Therefor, we're now using the domain name from the `NetworkCredential' -
this is also what's initialy being sent to the server in the
`Type1Message`.
2013-01-26 07:12:14 +01:00
Zoltan Varga b2f5a191b7 Fix a regression introduced by 7ca90f152d. 2013-01-26 05:42:54 +01:00
Rodrigo Kumpera 34c53fcc44 Fix the Mono.Security.dll monotouch build. 2013-01-25 15:42:42 -05:00
Jeremie Laval 332b86bf85 [monodoc] Handle a bit better backtick generic URLs
Not ideal but since these guys are rarely used, better to fix the generator producing them.
2013-01-25 17:37:48 +00:00
Jeremie Laval c7d5104412 [monodoc] Fix test compilation/run 2013-01-25 17:10:37 +00:00
Zoltan Varga 88dc6c2f52 Add some debugging code to sdb to help track down #9783. 2013-01-25 18:00:04 +01:00
Jeremie Laval 2eb93d0261 [monodoc] Support image with uncompiled sources 2013-01-25 16:27:38 +00:00
Jeremie Laval 8eb50752d2 [monodoc] Remove now useless parser instance 2013-01-25 16:27:38 +00:00
Jeremie Laval a70c18316e [monodoc] Slightly alter the new API to pass around a real context dict rather than embedding it in the IDs. 2013-01-25 16:27:37 +00:00
Jeremie Laval 11acc7f19a [monodoc] Refactor more code from ecma-provider to the common EcmaDoc 2013-01-25 16:27:37 +00:00
Jeremie Laval 3d81d4f248 [monodoc] Create a null cache when using parameterless HelpSource ctor 2013-01-25 16:27:37 +00:00
Jeremie Laval 71c16a49d2 [monodoc] Don't explode when treating invalid XML document 2013-01-25 16:27:36 +00:00
Jeremie Laval c0eee20f48 [monodoc] Refactor path handling in index/search index routines 2013-01-25 16:27:36 +00:00
Jeremie Laval 3bcb7a7f27 [monodoc] Protect searchable index creation from badly formated ECMA document 2013-01-25 16:27:36 +00:00
Jeremie Laval c747a9121e [monodoc] Try get images through a simple storage call by default 2013-01-25 16:27:35 +00:00
Zoltan Varga d1d46b1203 Avoid generating seq points in native-to-managed wrappers as they can be hit before a thread is attached to the JIT. Fixes #8338. 2013-01-25 17:22:22 +01:00
Zoltan Varga d7981e280a Remove emit_gsharedvt_call (), use mono_emit_calli () instead. Small cleanups to the call handling code in mono_method_to_ir (). 2013-01-25 16:48:07 +01:00
Zoltan Varga 7ca90f152d Rework the call handling code in mono_method_to_ir () to remove some code duplication. 2013-01-25 14:59:22 +01:00
Zoltan Varga c063d6afe6 Avoid a newline in a mono_trace () call, it already adds one. 2013-01-25 00:37:21 +01:00
Mark Probst e31fa7e881 [sgen] Stress test for cementing. 2013-01-24 23:57:08 +01:00
Mark Probst 5991a350cd [sgen] DTrace probe for cementing objects. 2013-01-24 23:47:06 +01:00
Zoltan Varga 020292a1e1 Fix the calculation of MONO_RGCTX_INFO_VALUE_SIZE for reference types. Enable gsharedvt for the LDFTN opcode. 2013-01-24 16:36:35 +01:00
Zoltan Varga c00e43f643 Include the -gsharedvt.c files when MONO_EXTENSIONS is defined to make development easier. 2013-01-24 16:36:34 +01:00
Atsushi Eno f6093bbb3b Revert "update rx to the latest rx-oss-v1.1 build."
This reverts commit 924ab25739.

Conflicts:
	external/rx
	mcs/class/build-rx-dll-sources.sh
	mcs/class/project_template_android.txt
	mcs/class/project_template_ios.txt
2013-01-24 16:41:44 +09:00
Vincent Povirk d25a61eebd cominterop: Free IMarshal interface with the CCW.
This commit is licensed under MIT/X11.
2013-01-23 14:15:39 -06:00
Mark Probst 05b1cf3399 Merge branch 'feature-perpetual-pinning' 2013-01-23 13:04:56 +01:00
Mark Probst ebe9f327b6 [sgen] Run SGen tests with marksweep-conc and split nursery. 2013-01-23 13:04:26 +01:00
Mark Probst bd9a040809 [sgen] Fix an assertion that triggered with simple nursery, marksweep-conc and cementing. 2013-01-23 13:04:26 +01:00
Mark Probst 6c1f4abca4 [sgen] Better explanation for scanning whole nursery with split/concurrent. 2013-01-23 13:04:26 +01:00
Mark Probst e0843b8358 [sgen] Move cementing parameters to sgen-conf.h. 2013-01-23 13:04:25 +01:00
Mark Probst abcb1ba5c2 [sgen] Comment on the cement modulo hash. 2013-01-23 13:04:25 +01:00
Mark Probst d4446a3145 [sgen] Use SGEN_ASSERT for cementing assertions. 2013-01-23 13:04:25 +01:00
Mark Probst f301261a78 [sgen] Make cementing work with split nursery. 2013-01-23 13:04:24 +01:00
Mark Probst 66bb9affc2 [sgen] Whole heap check can only lookup, not change the cementing hash. 2013-01-23 13:04:24 +01:00
Mark Probst a20102b48a [sgen] Shadow cementing table to allow cementing during concurrent major collections. 2013-01-23 13:04:24 +01:00
Mark Probst 9ba2ee8ee9 [sgen] Fix whole heap check for cementing. 2013-01-23 13:04:23 +01:00
Mark Probst c2d8b165af [sgen] Option for disabling cementing. 2013-01-23 13:04:23 +01:00
Mark Probst 2042d554ae [sgen] Binary protocol for global remsets not only for SSB. 2013-01-23 13:04:22 +01:00
Mark Probst bfdbb54ea7 [sgen] Binary protocol for cementing. 2013-01-23 13:04:22 +01:00
Mark Probst 982cc370d8 [sgen] Cementing
For some workloads nursery collections are very slow because we have
pinned objects that are referenced from many major heap objects,
causing us to do excessive remset processing.

Cementing detects those objects and pins them perpetually (until the
next major collection) so we don't have to keep remsets for them.

See

  http://schani.wordpress.com/2012/12/18/sgen-write-barrier/
2013-01-23 13:04:22 +01:00
Mark Probst bebf249a2b [I18N] Assertions to prevent a buffer overrun.
The overrun bug (#9578) is still there, but at least now it's not triggered.
2013-01-23 12:46:41 +01:00
Atsushi Eno 5dce6febfa on Mac, android projects don't deal well with backslash paths unlike iOS projcts... 2013-01-23 19:25:49 +09:00
Atsushi Eno 429645dcae update rx with ios project file builder workaround for file path/backslash issue. 2013-01-23 19:07:01 +09:00
Atsushi Eno a94eb3e558 update rx mobile build templates and revision. 2013-01-23 18:27:36 +09:00
Atsushi Eno 21a0545e93 update rx (mobile builds). 2013-01-23 03:30:27 +09:00
Atsushi Eno 5f06c83814 fix monotouch build here to get rx MT build. 2013-01-23 01:23:04 +09:00
Atsushi Eno 3cab9c5a2f update source generator. 2013-01-23 00:26:38 +09:00
Atsushi Eno 46617b13d2 bump rx. 2013-01-23 00:17:26 +09:00
Atsushi Eno 924ab25739 update rx to the latest rx-oss-v1.1 build. 2013-01-22 19:21:48 +09:00
Martin Baulig 42b6eb5115 [WCF]: .NET 4.0 API fixes. 2013-01-22 00:11:47 +01:00
Jérémie Laval 2f3b9c5641 [build] Don't try to include 4.5 assembly 2013-01-21 21:51:01 +00:00
Martin Baulig ecff71ad9c [WCF]: Add configuration support to ServiceContractGenerator.
* Implement ServiceContractGenerator.GenerateBinding() and
  GenerateServiceEndpoint().

* Fix Namespace logic in ServiceContractGenerator.

* MetadataTests/ImportTests.cs: Add BasicHttp_Config() and
  BasicHttp_Config2().

Fix commit message of eb285f121c.
2013-01-21 21:11:14 +01:00
Zoltan Varga 498d9cb822 Fix an assert in mini_emit_stobj () when sgen+gsharedvt are used together. 2013-01-21 21:06:22 +01:00
Martin Baulig eb285f121c Merge branch 'master' into baulig 2013-01-21 20:56:20 +01:00
Martin Baulig 25a087aabd [WCF]: Fix BasicHttpBinding.TextEncoding's default value.
Multiple 'BasicHttpBinding' instances should have the same default
value for 'TextEncoding'.
2013-01-21 20:24:29 +01:00
Martin Baulig 96073dd1ad [WCF]: Implement some missing System.ServiceModel.Configuration APIs. 2013-01-21 20:24:21 +01:00
Martin Baulig e3ad9bbaec [WCF]: Minor NetTcpBinding fixes. 2013-01-21 19:27:22 +01:00
Martin Baulig 6805b32a1a [WCF]: Import ServiceEndpoint.Address for all bindings. 2013-01-21 19:25:40 +01:00
Jeremie Laval ad039844e8 [build] Fix RPM build (normally) 2013-01-21 18:06:30 +00:00
Zoltan Varga a00ec2a85f Fix the build. 2013-01-21 16:58:16 +01:00
Zoltan Varga 9283acc21b Fix the build. 2013-01-21 15:58:20 +01:00
Zoltan Varga dc5e9e4d08 Add a hack to allow us to wait for the finalizer thread to exit using pthread_join (). This avoids some shutdown crashes, since WaitForSingleEx () would only wait for the thread's exit event to be signalled, the thread would continue to run. Hopefully fixes #4389. 2013-01-21 15:36:09 +01:00
Marek Safar 6e9243f1ed Add accidentally removed string conversion 2013-01-21 09:18:05 +01:00
Zoltan Varga c4f55dd5cc Fix the build. 2013-01-20 13:11:30 +01:00
Zoltan Varga c4ce9fdcaa Load the -gshared.c files from the mono-extensions module. 2013-01-20 13:02:19 +01:00
Zoltan Varga f457a01416 Disable the check for inflating types with typedbyref arguments so gsharedvt works again. 2013-01-20 13:02:18 +01:00
Zoltan Varga e0b0a7ced8 Implement support for interface calls from gsharedvt methods. 2013-01-20 13:02:18 +01:00
Zoltan Varga 824782b608 Fix the DISABLE_JIT build on ARM. 2013-01-20 13:02:17 +01:00
Zoltan Varga 12a9ef6bca Avoid creating instantiations which violate method constraints. 2013-01-20 13:02:17 +01:00
Zoltan Varga 210153fc5e Print methods which cannot be gsharedvt compiled when using --aot=print-skipped. 2013-01-20 13:02:17 +01:00
Zoltan Varga 7d369ace4c Fix some LLVM problems. 2013-01-20 13:02:16 +01:00
Zoltan Varga b1f3e79d8b Add gsharedvt tests. 2013-01-20 13:02:16 +01:00
Zoltan Varga bd60adfe8b Add AOT support for gsharedvt. 2013-01-20 13:02:16 +01:00
Zoltan Varga c0cd311a15 Implement ARM backend support for gsharedvt. 2013-01-20 13:02:15 +01:00
Zoltan Varga 137dfdf1fe Implement x86 backend support for gsharedvt. 2013-01-20 13:02:15 +01:00
Zoltan Varga 4f0280a587 Fix the build. 2013-01-20 13:02:15 +01:00
Zoltan Varga 3ccadbd6ed Fix the setting of gsharedvt_supported when using the embedding interface. 2013-01-20 13:02:14 +01:00
Zoltan Varga cb8c39501c Allow the usage CEE_MONO opcodes in gsharedvt code. 2013-01-20 13:02:14 +01:00
Zoltan Varga 23ffff1d90 Disable LLVM for gsharedvt methods. 2013-01-20 13:02:14 +01:00
Zoltan Varga d0b97d4bd5 Fix the DISABLE_JIT build. 2013-01-20 13:02:13 +01:00
Zoltan Varga 0af166b025 Add minimal gsharedvt support to the tracing code. 2013-01-20 13:02:13 +01:00
Zoltan Varga d6969c1a25 Print more detailed information about call instructions in mono_print_ins (). 2013-01-20 13:02:12 +01:00
Zoltan Varga f57b23eff7 Add gsharedvt support to the JIT and to the trampoline code. 2013-01-20 13:02:12 +01:00
Zoltan Varga 3a4c1eeb38 Add gsharedvt support functions to the generic sharing code. 2013-01-20 13:02:12 +01:00
Zoltan Varga 9d718a2068 Make MonoGenericSharingContext store whenever type arguments are valuetypes or not. 2013-01-20 13:02:11 +01:00
Zoltan Varga dffd11db94 Add a few new rgctx info types. 2013-01-20 13:02:11 +01:00
Zoltan Varga 34b1c9dbaa Add two wrappers which are used to transition between normal and gsharedvt code. 2013-01-20 13:02:11 +01:00
Zoltan Varga 3132de21cc Add new GSHAREDVT optimization flag. 2013-01-20 13:02:10 +01:00
Mark Probst a06b47e612 [sgen] Make concurrent mark work with the split nursery. 2013-01-19 12:40:13 +01:00
Rodrigo Kumpera 7db1495394 Silence a lot of warnings on linux. 2013-01-18 17:28:41 -05:00
Rodrigo Kumpera ef55cb377f [sgen] Fix the fixed-heap + parallel configuration. We did not init vt before checking it. 2013-01-18 17:27:46 -05:00
Marek Safar d91bdcab02 Add new test 2013-01-18 15:30:53 +01:00
Atsushi Eno ad59e17ef2 [rx] dummy content in Test directory is required (for "make test") 2013-01-18 22:33:35 +09:00
Atsushi Eno f7ecc33415 Fix monodroid build (and likely monotouch too). 2013-01-18 21:10:49 +09:00
Atsushi Eno a9ea7617f4 bump internal rx revision. 2013-01-18 19:43:14 +09:00
Marek Safar 874f3cb07c Merge pull request #534 from alesliehughes/master
Int32Rect operator==,!= and add PropertyValueCollection Property
2013-01-18 01:34:54 -08:00
Alistair Leslie-Hughes 892a17b27c Add Missing Property PropertyValueCollection.PropertyName 2013-01-18 20:14:33 +11:00
Alistair Leslie-Hughes b39661fb4c Implement Int32Rect operator ==, operator != 2013-01-18 20:14:26 +11:00
Marek Safar b8e5c27bfe Merge pull request #530 from jmp75/visualstudio-build
First iteration to improve the build process using Visual Studio
2013-01-18 00:31:07 -08:00
Marek Safar 24a7d0058c Merge pull request #532 from alesliehughes/master
AxHost Changes
2013-01-18 00:28:01 -08:00
Alistair Leslie-Hughes 37f035beac throw NotSupportException when not on windows 2013-01-18 18:33:53 +11:00
Alistair Leslie-Hughes 5f764016d8 Create ActiveX object 2013-01-18 18:33:52 +11:00
Alistair Leslie-Hughes 51601c8bcb Implement AxHost.InvalidActiveXStateException 2013-01-18 18:33:52 +11:00
Atsushi Eno eaf26a5c4d mobile csproj generator needed a lot of fixes to generate buildable projects... 2013-01-18 15:40:25 +09:00
Rodrigo Kumpera 222cec4b25 [sgen]Rework the ephemeron code to not rely on object ranges and make sure it works with split nursery.
* sgen-gc.c (sgen_is_object_alive): Extract sgen_major_is_object_alive function.

	* sgen-gc.c: Add sgen_is_object_alive_for_current_gen and sgen_is_object_alive_and_on_current_collection
	functions that handle old objects during nursery collections as either all live or all dead.

	* sgen-gc.c (sgen_object_is_live): Use sgen_is_object_alive_and_on_current_collection which is more
	robust, handling to-space nurseries and pinned/evacuated old gen objects. Bridge now works with those.

	* sgen-gc.c: Get rid of heap range for the ephemeron functions and use sgen_is_object_alive_for_current_gen
	which produces the same result, which is treat all old gen objects as alive during a minor collection.

	* sgen-gc.c (clear_unreachable_ephemerons): Don't add remsets for elements on arrays they are not really needed
	since we scan all ephemerons on all collections.
2013-01-17 15:56:38 -05:00
Rodrigo Kumpera decb1b862c [sgen] Cleanup, remove object ranges for finalization and weak link code, they no longer are needed. 2013-01-17 15:18:09 -05:00
Rodrigo Kumpera db563fce46 Add test for #9590. 2013-01-17 14:29:43 -05:00
Rodrigo Kumpera 9d20055a71 A weak link target is zeroed before we unregister it. Avoid a race condition if we suspend in the middle. Fixes #9590
* sgen-fin-weak-hash.c: A mutator thread unregistering a weak link does zero it before staging the
	request for unregister. This is done without holding any GC lock, which means it can be stopped at any
	point in between.

	Storing zero breaks because REVEAL_POINTER xors the value resulting in an invalid pointer and code walking
	the weak table tries to poke that pointer. Encoding hidden zero (IOW -1) does not work either because we range
	check those values and for the major collection we pass (0, ~0) as the valid range.
2013-01-17 14:29:43 -05:00
Atsushi Eno fa58a07046 [rx] add missing project file generator helper files. 2013-01-18 04:23:41 +09:00
Atsushi Eno fade2ea19b update rx import source builder to build csproj files for mobile profiles too. 2013-01-18 03:59:58 +09:00
Marek Safar bc9310d661 Make Is64BitProcess internal to avoid mobile define 2013-01-17 17:57:11 +01:00
Mark Probst db374b70a8 [sgen] Remove the copying major collector.
This probably isn't even working anymore, and it's not useful anymore.
2013-01-17 00:04:18 +01:00
Jérémie Laval b69f908447 Revert "Make monodoc 4.5 only it has no 4.0 specific api". It's intentional that monodoc has a 4.0 compiled version too.
Some project (namely MonoDevelop) depends on a 4.0 monodoc.dll version.

This reverts commit 3fa0abaca8.
2013-01-16 22:13:14 +00:00
Rodrigo Kumpera 7f99bbcd26 Remove tracking link hashtables no longer used by boehm. 2013-01-16 16:10:47 -05:00
Rodrigo Kumpera 2815591667 Boehm now supports long links.
* gc.c: mono_gc_weak_link_remove must now take a bool to signal if it's
	a tracking or non tracking link. This is due to a limitation in how tracking
	links are implemented in boehm in that it cannot discover the kind on its own.

	* gc.c:
	* boehm-gc.c: Remove all tracking link hacks now that boehm has proper support
	for it.
2013-01-16 16:10:47 -05:00
Rodrigo Kumpera 5a1eeba27e Add long links support to Boehm.
* gc.h: Added parts of boehm 7.3a long link API.

	* finalize.c (GC_finalize): Implemented long link support by adapting
	code from boehm 7.3a.
	The idea is to have two table of links, one for regular and another
	for the long links. Regular links are processed before finalization
	and the long ones right after. The bulk of the changes are abstracting
	the disappearing link hashtable into a data structure so we can have
	two of them.

	Boehm code came from github.com/ivmai/bdwgc.git. Authors of the
	relevant changes are Zach Saw and Ivan Maidanski.
2013-01-16 16:10:46 -05:00
Marek Safar 3fa0abaca8 Make monodoc 4.5 only it has no 4.0 specific api 2013-01-16 17:21:13 +01:00
Marek Safar 35ad04a4d5 Change is_number parsing to peak instead of putting back to avoid double putback. Fixes #9559 2013-01-16 17:13:15 +01:00
Rodrigo Kumpera 31149787c2 Check if the thread suspend correctly. Fixes shutdown race in mono testsuite. 2013-01-15 19:46:02 -05:00
Zoltan Varga b8a640bde4 Wait for the finalizer thread to actually exit before shutting down. Fixes #4389. 2013-01-16 00:31:13 +01:00
Zoltan Varga 56275bc16b Remove some special case code from mono_image_get_fieldref_token () which no longer seems to be needed. Fixes #9531. 2013-01-14 22:15:12 +01:00
Jeremie Laval b3e08eaa1c [monodoc] Move to /class instead of /tools and re-enable compilation for 4.0 profile. 2013-01-14 18:03:14 +00:00
Zoltan Varga 339ce5ac68 Make pdb2mdb handle the 0xfeefee MS line number convention. Fixes #5249. 2013-01-14 18:53:49 +01:00
Marek Safar c3bd798a58 Inflate explicit interface implementation generic method parameters in correct context. Fixes #9443 2013-01-14 17:00:19 +01:00
Zoltan Varga 5a85b0600d Check source files without path as well when using MOD_KIND_SOURCE_FILE_ONLY modifiers in sdb. 2013-01-14 15:36:22 +01:00
Marek Safar 1ffec2cf0f Rework how defined interfaces are expanded. Fixes #9429 and few more corner cases. 2013-01-14 11:17:23 +01:00
Marek Safar 616e0f715c Use Length instead of Count 2013-01-14 11:17:23 +01:00
Marek Safar c255f2eb0f Do expansion of generic interfaces members without recursion 2013-01-14 11:17:22 +01:00
Marek Safar d8fac80b47 Report less cascading errors 2013-01-14 11:17:22 +01:00
Marek Safar 2e6197cb37 Fix stack overflow when reporting circular type errors 2013-01-14 11:17:22 +01:00
Mark Probst 1cda198511 [sgen] Bugfix: Don't lose global remsets with the split nursery. 2013-01-14 01:28:42 +01:00
Jean-Michel Perraud 9c01a8335f FIX: doubling up on curly braces around GUIDs in the solution files
Ongoing work to handle the PrebuiltSystem alias and to figure out what to do where no prior matching assembly name exists
2013-01-13 19:52:33 +11:00
Sebastien Pouliot 0582b8d6b4 Add support for [LinkSafe] attribute 2013-01-12 19:15:26 -05:00
Mark Probst d505a810d9 [sgen] Flag in minor collector struct for whether it's split or not.
We need this flag later to make split nursery work with
concurrent mark.
2013-01-12 16:35:06 +01:00
Mark Probst 29c2497017 [sgen] Only protocol/DTrace pinning when we actually pin. 2013-01-12 16:32:57 +01:00
Zoltan Varga 535e76a058 Add beginnings of a managed IL disassembler which uses Mono.Cecil. Not yet part of the build. 2013-01-12 13:04:05 +01:00
Jean-Michel Perraud 3796c282fe Add changes to the main Makefile.am, not only Makefile which is not versioned 2013-01-12 12:52:33 +11:00
Martin Baulig 8673afe412 [WCF]: Make HttpTransportSecurity's .ctor public on mobile. 2013-01-12 01:26:18 +01:00
Martin Baulig 52845b784b [WCF]: .NET 4.0 API fixes. 2013-01-12 00:58:39 +01:00
Martin Baulig 7704c1af72 [WCF]: BasicHttpBinding API changes for .NET 4.5
Add missing mobile conditionals that were missing in commit 8e4dc61.
2013-01-12 00:58:39 +01:00
Rodrigo Kumpera 3a26c32f1b Avoid overflow in SortedList binary search for huge instances. Fixes #4328. 2013-01-11 16:42:36 -05:00
Rodrigo Kumpera 089ab9c975 DirectoryInfo should update its internal values when MoveTo is called. Fixes #7653. 2013-01-11 16:23:37 -05:00
Mark Probst 2403954f9b [sgen] DTrace probe for when a GC is requested. 2013-01-11 18:11:57 +01:00
Mark Probst bc73f7a909 [sgen] Don't report that we need a major collection while one is in progress.
This caused us to stop the world unnecessarily during concurrent
collections, only to realize that nothing needed to be done.
2013-01-11 18:11:02 +01:00
Rodrigo Kumpera eb125e2c9a Correctly handle clock going back in time when caching datetime and timezone information. Fixes #8504.
* DateTime.cs:
	* TimeZone.cs: The caching code should take into account the possibility of the clock
	going back in time.
2013-01-11 11:24:39 -05:00
Zoltan Varga a820d72b95 Add beginnings of a tool to dump the contents of .mdb files. Currently, only the line number tables are dumped. Not yet part of the build. 2013-01-11 14:40:39 +01:00
Mark Probst d363b01e07 [sgen] MONO_GC_DEBUG option for checking mark bit consistency. 2013-01-11 13:32:46 +01:00
Mark Probst 5ec162413f [sgen] Bugfix: Actually sweep blocks when doing concurrent mark. 2013-01-11 13:32:45 +01:00
Mark Probst d68c1cddea [sgen] Add a missing binary protocol call. 2013-01-11 13:32:44 +01:00
Mark Probst 40459e7bce [sgen] Bugfix: When scanning mod table, follow major->major references. 2013-01-11 13:32:44 +01:00
Mark Probst e9ebfeb760 [sgen] More information in describe_ptr(), and unify with describe_pointer(). 2013-01-11 13:32:43 +01:00
Mark Probst 6d4aac5358 [sgen] Binary protocol entry for card scanning. 2013-01-11 13:32:36 +01:00
Atsushi Eno 0438680b67 [msbuild] Fix import set to expected path when invalid imports are allowed.
It was failing to resolve <Import> to correct path because it allowed
invalid imports too early in Import.ForEachExtensionPathTillFound().

It is due to Project.AddSingleImport() that checks if invalid imports
can be ignored by load setting. But simply removing this check results
in regressions in nunit tests that fails to report required invalid imports.

This bug was one of the blockers to build fsharp-droid from xbuild:
https://github.com/fahadsuhaib/fsharp-droid
2013-01-11 20:43:53 +09:00
Zoltan Varga b81dfbe1cf Applied patch from Tal Aloni <[email protected]>. Fix building with VS2010. 2013-01-11 11:50:26 +01:00
Zoltan Varga 444a0138ac Allow array fields with marshal descriptions in can_marshal_struct (), so PtrToStructure/StructureToPtr wrappers are generated for them when using full-aot. Fixes #9408. 2013-01-11 11:06:50 +01:00
Rodrigo Kumpera 4dc7925783 MOBILE now builds with 4.0 enabled but its version remains 2.0.5.0.
* Consts.cs.in: We must check for mobile before 4.0 to make sure
	we don't end up with a 4.0.0.0 mobile BCL.
2013-01-10 18:13:15 -05:00
Jean-Michel Perraud 009f6521b3 minor refactor for solution files names generation 2013-01-11 09:55:57 +11:00
Rodrigo Kumpera 56d9663bb2 Merge pull request #517 from getsometoast/master
[System.Data.SqlClient] Support for "Connection Lifetime" parameter
2013-01-10 09:28:22 -08:00
Jean-Michel Perraud 81ad8b58bb Document the Visual Studio csproj and .sln generation, tidy up/fixes. Getting ready for a pull request. 2013-01-10 10:58:15 +11:00
Jean-Michel Perraud 1d63c5debc Merge remote-tracking branch 'upstream/master' 2013-01-10 10:53:17 +11:00
Rodrigo Kumpera f197c5c9cd [corlib] Handle overflow correctly in Timer to avoid spinning. Fixes #8782
* Timer.cs: Very long timers can lead to timeout values that are
	bigger than Int32.MaxValue, leading to a negative value and us
	spinning.
2013-01-09 16:30:38 -05:00
Rodrigo Kumpera 50e8cc4c25 [bcl] Add 4.0 and 4.5 defines to monodroid's bcl. 2013-01-09 15:26:13 -05:00
Rodrigo Kumpera 525bc3e468 [bcl] Build System.Data.Services.Client monodroid profile in the same way we do the monotouch one. 2013-01-09 15:26:13 -05:00
Rodrigo Kumpera 451f968eec [profiler]Explicitly include <sys/syscall.h> when using perf on linux.
* proflog.c: We include it to fix mobile builds as the definition was missing otherwise.
2013-01-09 15:26:13 -05:00
Duncan Mak 9bdc0df449 Bump mono to 3.0.4 2013-01-09 13:17:50 -05:00
Jonathan Pryor 6c5d76dd4c LockFile() should error with ERROR_INVALID_PARAMETER on overflow
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=9411

What was happening was that this code:

	var file = new FileStream (...);
	file.Lock (0, long.MaxValue);

was failing on Android (a non-large file platform):

	System.IO.IOException: Lock violation on path...

The fact that it errored is correct. The problem is that the error
isn't particularly helpful and is misleading; WHY is there a lock
violation? There isn't a lock violation; the parameters are
invalid.

Why are the parameters invalid? Because `long.MaxValue` was used as
the `length`, which resulted in an `off_t` value of -1 [0] for the
file lock length, which fcntl(2) (rightfully!) errored on.

Update _wapi_lock_file_region()/LockFile() to check for negative
values and set ERROR_INVALID_PARAMETER when invalid values are used.
This will cause an "IOException: Invalid parameter" message, instead
of an "IOException: Lock violation on path" message, which is
considerably more useful.

Related: we noticed that the generation of `offset` and `length` in
LockFile()'s !HAVE_LARGE_FILE_SUPPORT region are incorrect, e.g. this
is broken:

	length = length_low;

Assume a `file.Lock(0, 0x100000000L)` invocation. After splitting,
offset_high will be 0x1 and offset_low will be 0x0, so length is 0x0,
which is not semantically correct (it's not at all what the developer
requested!), yet it would result in a successful fcntl(2) call
(because length_high is ignored).

Add an explicit check for length_high and offset_high when
HAVE_LARGE_FILE_SUPPORT isn't set and error out if they're > 0, which
will catch this case.

[0]: fcntl(2) uses off_t for file offset and file lock length,
and off_t is a signed type:

	http://www.unix.org/version2/whatsnew/lfs.html#2.2.2.6
	> The types blkcnt_t and off_t are defined as extended signed integral types.
2013-01-09 11:59:09 -05:00
Lluis Sanchez d3fdb925ec Fix bug 9193 - XmlSerialization not properly deserializing a List 2013-01-09 13:54:47 +01:00
Lluis Sanchez 0c2e8c9455 Add some unit tests for bug 9193 2013-01-09 13:43:56 +01:00
Atsushi Eno 8b53e0c13a update rx (now includes mobile test solutions that should build). 2013-01-09 21:31:05 +09:00
Zoltan Varga 2cde8a7269 Fix the check for autoheader in eglib/autogen.sh and libgc/autogen.sh too. 2013-01-09 13:16:42 +01:00
Zoltan Varga 7fbe0a0feb Avoid an assert if seq points are not found for a method in compute_frame_info (). 2013-01-09 13:07:18 +01:00
Zoltan Varga e63ddd2450 Fix the check for autoheader in autogen.sh. 2013-01-09 11:34:41 +01:00
Zoltan Varga 052ba601f3 Remove automake macros obsoleted by automake 1.13. Fixes #9324. 2013-01-08 23:29:31 +01:00
Marek Safar 39c48d5e83 Remove NET_2_1 default (broken) context 2013-01-08 17:27:19 +01:00
Marek Safar cd4d381b68 Guid value fix 2013-01-08 10:23:02 +01:00
Marek Safar c3f11d07d3 Run On*Completed events on original context 2013-01-08 10:23:01 +01:00
Sebastien Pouliot 558b532f5f Accept Version == 0 as valid (just like 1) when verifying a counter signature. Fix bug #8401 2013-01-07 11:53:00 -05:00
per202 7a343244aa solution and VS project file generation improvements. Get solutions that include assemblies related to a particular profile, and their dependencies. Currently at a stage where most of the System.* for .NET 2.0 compile (although the assemblies end up targeting v4.0 runtime) 2013-01-07 23:15:16 +11:00
Zoltan Varga 5d08f48763 Use a separate field for avoiding recursion in setup_fields () instead of size_inited, since size_inited is used by mono_class_instance_size () to check whenever instance_size was inited, leading to races. Fixes #8905. 2013-01-07 09:25:48 +01:00
Sebastien Pouliot 888e197619 Add several tests to cover CFB mode. Some are currently disabled (CFB >8 or PaddingMode != None/Zeros) for RijndaelManaged 2013-01-06 20:08:04 -05:00
Sebastien Pouliot b26f53d9df Fix several, but not all, cases where CFB does not work with Rijndael and AES. ref: bug #9247 2013-01-06 20:08:03 -05:00
Sebastien Pouliot 92accdef67 Aes.Create returns, by default, an instance of AesCryptoServiceProvider, not AesManaged (more important now than before wrt CFB support) 2013-01-06 20:08:03 -05:00
Sebastien Pouliot 1ef4fa1c1f Fix CFB for AesCryptoServiceProvider (only CFB8 worked, 16-64 did not) and move the different CFB implementation to Rijndael's transform (since it's the only implementation 'working' this way. 2013-01-06 20:08:02 -05:00
Sebastien Pouliot 59f97064d8 Revert "Fix CFB mode for Rijndael when data is not a multiple of block size"
This reverts commit e094d3dc0c.
2013-01-06 20:08:02 -05:00
Sebastien Pouliot ff506d45fb Remove NotWorking from some tests (that works now) 2013-01-06 20:08:02 -05:00
Sebastien Pouliot 5181eb820d SymmetricAlgorithm.FeedbackSize must be a multiple of 8 (bits) 2013-01-06 20:08:01 -05:00
Mark Probst c8894c7c63 [sgen] Pass the reference, not just its location, to sgen_add_to_global_remset().
We need this for cementing.
2013-01-06 16:36:11 +01:00
Marek Safar c8d2439d35 Update after array interfaces change 2013-01-05 17:57:39 +01:00
Marek Safar a26a1f8487 Ignore more mt tests 2013-01-05 10:41:08 +01:00
Marek Safar 53ed5b98ba Fix version number in 2.0 profile 2013-01-05 10:41:08 +01:00
Zoltan Varga 25ff420550 Don't swallow the loader error if a field type cannot be loaded. Fixes #8903. 2013-01-05 10:36:25 +01:00
Zoltan Varga a9707f7c0d Fix the previous change. 2013-01-05 07:42:01 +01:00
per202 06821ecafa Add a file with ivsual studio settings with (trying to conform to) the Mono coding guildelines
Format genproj.cs to the Mono coding guildelines
2013-01-05 17:37:19 +11:00
Zoltan Varga a61206dd50 Fix support for large offsets in the OP_CALL_MEMBASE opcodes on arm. Fixes #9087. 2013-01-05 07:00:52 +01:00
Zoltan Varga b8cae9d56a Make arrays implement IReadOnlyList<T> and IReadOnlyCollection<T> in net 4.5. Bump corlib version. Fixes #8934. 2013-01-05 02:36:32 +01:00
Rodrigo Kumpera f46a51a006 [bcl] Add System.Net.Http to the mobile build.
* AssemblyInfo.cs: System.Net.Http.dll needs internal visibility into System.dll so
	grant it on all targets but dying silverlight.
2013-01-04 18:41:56 -05:00
Rodrigo Kumpera d831b70270 [runtime]When loading a signature fails with a loader error, properly convert it to a MonoError. 2013-01-04 17:27:28 -05:00
Rodrigo Kumpera b3f29317dc [runtime] Add a function that properly convert a loader error into a MonoError.
mono-error.c: Add mono_error_set_from_loader_error to consume a loader error
	and fill in the supplied MonoError. This both simplifies and enriches all conversions
	we do due around the runtime.
2013-01-04 17:27:28 -05:00
Marek Safar 2dc7491e4e Update test names 2013-01-04 19:31:42 +01:00
Marek Safar abe15e8a0f Don't crash on C# invalid DefaultParameterValue 2013-01-04 18:36:33 +01:00
Marek Safar 4d3cd7695d Remove duplicate method 2013-01-04 16:03:05 +01:00
Marek Safar 75282f7504 Add new test 2013-01-04 16:03:04 +01:00
Marek Safar b84230f498 Fix default parameters of nested generic types. 2013-01-04 16:03:04 +01:00
Marek Safar 457f67e055 Add missing check for conditional attributes. Fixes #9225 2013-01-04 16:03:03 +01:00
Marek Safar 1a78f9362a Use more of GetValueOrDefault 2013-01-04 16:03:03 +01:00
per202 fc9380df56 Initial work to make the mono csproj files mroe readily compilable in Visual Studio. This is work finally following up on my offer in http://lists.ximian.com/pipermail/mono-devel-list/2012-May/038908.html. 2013-01-04 18:21:54 +11:00
Rolf Bjarne Kvinge 64d372269e Add API to get more data from a managed exception's stack trace.
This is used by crash reporting to report the stack trace of the exception
when the exception was thrown (for unhandled exceptions), instead of the
stack trace when the unhandled exception hook is called (which may be
different because finally clauses may have executed altering the intial
stack state).
2013-01-04 00:05:26 +01:00
Rolf Bjarne Kvinge ef98732a5e [mkbundle] Remove broken win32 code. 2013-01-04 00:05:26 +01:00
Rodrigo Kumpera bd6518a10e Autoconf incorrectly detects strndup getpwuid_r on iOS. Avoid that at configure time. 2013-01-03 16:14:13 -05:00
Rodrigo Kumpera 14ce41ee04 Add iOS/OSX detection to eglib. 2013-01-03 16:10:01 -05:00
Sebastien Pouliot 6597227b23 Aes[Managed|CryptoServiceProvider] have a few more differences with RjindaelManaged. Narrow that gap a bit. 2013-01-03 15:12:05 -05:00
Zoltan Varga 432cf361be Add a missing quote to autogen.sh 2013-01-03 19:14:54 +01:00
Zoltan Varga 78dff99a7e Fix OP_LCONV_TO_R_UN_2 on x86+aot. Fixes #9186. 2013-01-03 18:53:44 +01:00
Marek Safar f8384a1e3b Duplicate less mscorlib code in System.Core 2013-01-03 18:40:02 +01:00
Marek Safar b347bb5ba4 Bump ikvm 2013-01-03 18:40:02 +01:00
Marek Safar fa6cb47af9 Generate better stack trace for exception from async context 2013-01-03 18:40:01 +01:00
Marek Safar 966ddd523b Ignore empty stack frames when printing stack trace from previous location 2013-01-03 18:40:01 +01:00
Marek Safar 5b177dfc0a Run async continuation without allocating temporary hoisting classes. 2013-01-03 18:40:01 +01:00
Marek Safar 8d95b42b23 Remove unused class 2013-01-03 18:40:01 +01:00
Atsushi Eno 7689ac2e54 implement some SettingValueElement members to suppress nunit test regressions. 2013-01-04 02:14:22 +09:00
Alan McGovern ceb6ee0641 [Microsoft.Build.Tasks] Fix a regression when replacing readonly files
We should not delete the destination file if it is readonly as that would
mean all readonly files would be treated as if they were not readonly.

Fixes a failing test.
2013-01-03 16:27:39 +00:00
Mark Probst a50dd6eb59 Fix build.
Hopefully.
2013-01-03 16:37:12 +01:00
Mark Probst cd4ab9f824 [sgen] Don't force synchronous collection unless requested by the user. 2013-01-03 12:13:59 +01:00
Mark Probst 5540d80fd6 [boehm] DTrace probes for Boehm. 2013-01-03 12:13:59 +01:00
Mark Probst 85b8bd1f70 [sgen] More dtrace probes. 2013-01-03 12:13:58 +01:00
Mark Probst 5e7bb4679b [sgen] Give a warning when precise stack mark is requested but not supported. 2013-01-03 12:13:57 +01:00
Zoltan Varga 19a0358029 Avoid creating unbox wrappers in mono_delegate_ctor_with_method (), it is done later by the JIT in mono_delegate_trampoline (). 2013-01-03 06:57:08 +01:00
Zoltan Varga f1a6f6346d Fix support for AOT modules with more than 240 assembly dependencies. Fixes #9118. 2013-01-03 05:47:10 +01:00
Rodrigo Kumpera e37a3a7494 Metadata's Makefile.am.in can now be patched by the extension module as well. 2013-01-02 17:54:38 -05:00
Mark Probst 47a1bec326 [sgen] Pass value of reference to major mark function, too.
The major mark function assumes that the reference to process
 is not NULL.  Its caller checks that it isn't, but the mark function loads
the reference again.  In the concurrent case this is a bug, because
the mutator might have changed the reference between the loads.
2013-01-02 22:20:13 +01:00
Marek Safar c941f33683 Update compiler tests 2013-01-02 18:19:29 +01:00
Marek Safar a26e157547 Add missing ConfigureAwait 2013-01-02 18:19:29 +01:00
Marek Safar 83f76846a0 Add argument name to ArgumentOutOfRangeException 2013-01-02 18:19:28 +01:00
Alan McGovern 94b9fe7482 [Microsoft.Build.Tasks] Delete files before copying the new one over
Handle the case where a process has mmap'ed one of the binaries which
we are trying to copy over. In this scenario we must delete the file
first otherwise we will 'corrupt' the data in memory.

Fixes bug https://bugzilla.xamarin.com/show_bug.cgi?id=9146
2013-01-02 16:19:10 +00:00
Zoltan Varga 9abcad0826 Avoid an assert which is hit when a 3.0 runtime loads a 2.10 corlib. Fixes #9137. 2013-01-02 14:52:41 +01:00
Mark Probst a698567979 [sgen] Don't just allow concurrent collections on nursery collections.
Some workloads allocate mainly large objects, so if we just trigger
major collections on nursery collections we never actually collect.
2013-01-01 21:53:03 +01:00
Martin Baulig 5892855775 [System.Configuration]: Fix IsModified() logic for complex elements. 2012-12-29 01:25:48 +01:00
Pablo Ruiz Garcia 43451a70bf Two small typo fixes. 2012-12-26 14:30:51 +01:00
Marek Safar 717a34fa27 Merge pull request #527 from Daniel15/bug-9133
Fix Xamarin bug #9133 - Routes should be case insensitive
2012-12-26 01:43:27 -08:00
Daniel Lo Nigro eb76e79bd9 Fix Xamarin bug #9133 - Routes should be case insensitive. 2012-12-26 13:24:26 +11:00
Sebastien Pouliot 0f2995e95e Exclude LogicalCallContext as the required remoting infrastucture not available on MonoTouch 2012-12-23 12:45:27 -05:00
Marek Safar e2d5d75233 Merge pull request #526 from Daniel15/bug-9116
Fix Xamarin bug #9116
2012-12-23 00:49:03 -08:00
Daniel Lo Nigro b52f3f5468 Fix bug 9116 (https://bugzilla.xamarin.com/show_bug.cgi?id=9116)
Need to use .Equals() for comparison instead of the "!=" operator, as != will do a reference comparison in the case of boxed value types.
2012-12-23 16:20:40 +11:00
Atsushi Eno 44df02f2d3 update rx revision (only in our own branch, mostly for mobile changes). 2012-12-22 22:02:59 +09:00
Zoltan Varga dd313a91bc Keep objects returned by sdb alive during suspensions to avoid ObjectCollectedExceptions during debugging. Fixes #1446, #2246 and #6918. 2012-12-22 05:31:45 +01:00
Martin Baulig ea2f2cde42 [WCF]: Fix MessageEncoder.IsContentTypeSupported().
Use the internal 'Channels.ContentType' class to parse the
content type, make then comparision case-insensitive and ignore
missing parameters.
2012-12-22 05:14:26 +01:00
Martin Baulig cd8ca2f658 [corlib] Fix ASCIIEncoding with custom DecoderFallback.
Only pass one single byte to DecoderFallback.Fallback(),
throw if there's not enough space in the char array.
2012-12-22 05:14:25 +01:00
Rodrigo Kumpera 5cc07f4ebb Add MONO_WRAPPER_UNBOX to mono_marshal_method_from_wrapper. 2012-12-21 18:44:56 -05:00
Zoltan Varga 787938f1f6 Fix support for delegates+unbox trampolines in full-aot mode. 2012-12-21 23:05:06 +01:00
Jérémie Laval 6b623dc42c [monodoc] More forgotten dist files 2012-12-21 16:12:37 +01:00
Marek Safar dbb9f0f134 Merge pull request #525 from Arakis/patch-1
Update mcs/class/System/System.Media/AudioData.cs
2012-12-21 05:47:57 -08:00
Sebastian Loncar 146be1e0f0 Update mcs/class/System/System.Media/AudioData.cs
Since this line is commented out:
int block_align = buffer [idx++] | (buffer [idx++] << 8);
you will ran into a "bits per sample" exception.
Adding the two increpements (idx+=2) will solve it.
2012-12-21 11:58:30 +01:00
Jérémie Laval 770c5fa063 [monodoc] Fix test directory 2012-12-21 11:30:12 +01:00
Martin Baulig 0b57238424 [System.Configuration]: SaveMode and UserLevel.
* Configuration.Save() and SaveAs() now honors the
  `ConfigurationSaveMode' argument.

* Check whether the file has been modified prior to saving.

* Fix ConfigurationUserLevel inheritance.

* Implement ConfigurationElement.IsModified().

* New ConfigurationSaveTest.cs test:

  - load a custom section using different parent configuration
    files using ExeConfigurationFileMap and different
    ConfigurationUserLevel values.

  - save configuration using different ConfigurationSaveMode
    arguments and different inherited parent configurations.

* ExeConfigurationFileMapTest.cs: Add error checks for missing
  required filenames.

* New TestUtil.cs helper class:

  - RunWithTempFile() and RunWithTempFiles() helper functions.
  - DotNetVersion, ThisDllName and ThisConfigFileName properties,
    moving all the #ifdef's into one central place.
2012-12-21 10:20:18 +01:00
Martin Baulig 9addbeda8e Add missing .gitignore. 2012-12-21 08:15:50 +01:00
Martin Baulig 5a21a16bf4 Add the now auto-generated Makefile.am to .gitignore. 2012-12-21 06:30:55 +01:00
Jérémie Laval 07534115fa [monodoc] Add EcmaUrlParser.jay to EXTRA_DIST 2012-12-21 00:36:39 +01:00
Jérémie Laval 9de99c3a76 [monodoc] Fix dist 2012-12-20 21:07:18 +01:00
Jérémie Laval 44b2b4a82c [mdoc] Use monodoc improved API 2012-12-20 20:35:13 +01:00
Jérémie Laval 483cd5ea50 [monkeydoc] Add missing sources 2012-12-20 20:35:12 +01:00
Jérémie Laval 52d4213a26 [monkeydoc] More renaming 2012-12-20 20:35:12 +01:00
Jérémie Laval 11a92a74e5 [monkeydoc] Replace monodoc by monkeydoc 2012-12-20 20:35:12 +01:00
Jérémie Laval b2fa5b3d7c [monkeydoc] Change namespace base from MonkeyDoc to Monodoc. 2012-12-20 20:35:11 +01:00
Jérémie Laval 6bfd3ba49b [monkeydoc] Fix reference recursion 2012-12-20 20:35:11 +01:00
Jérémie Laval 36e1835acf [monkeydoc] Add more legacy methods 2012-12-20 20:35:11 +01:00
Jérémie Laval f14ecc4eb2 [runtime/docs] Update toc 2012-12-20 20:35:10 +01:00
Jérémie Laval 3ba6045b60 [monkeydoc] Add back several legacy members in their own class for maximum compatibility 2012-12-20 20:35:10 +01:00
Jérémie Laval 47191139be [monkeydoc] Restore XHTML provider generation 2012-12-20 20:35:10 +01:00
Jérémie Laval b90647e380 [monkeydoc] Let XHTML have its node sorted by .Element rather than .Caption 2012-12-20 20:35:10 +01:00
Jérémie Laval ccb7307408 [monkeydoc] Close FileStream early in when adding man pages. 2012-12-20 20:35:09 +01:00
Jérémie Laval ba09292a91 [monkeydoc] When encountering an old tree, we force nodes to be re-sorted as they are instantiated to make sure the later match machinery works. 2012-12-20 20:35:09 +01:00
Jérémie Laval 1c177d3905 [monkeydoc] Use StringComparison.Ordinal to match element 2012-12-20 20:35:09 +01:00
Jérémie Laval ed413baf00 [monkeydoc] Introduce support for versioned tree and gracefully handle old trees. 2012-12-20 20:35:09 +01:00
Jérémie Laval a52765382e [monkeydoc] Early return if no proper fallback index was found in MatchNode 2012-12-20 20:35:08 +01:00
Jonathan Pryor 99a6d83c0b [corlib] Optimize System.Nullable<T>.GetValueOrDefault().
Optimize System.Nullable<T>.GetValueOrDefault().

See discussion at:
	http://ericlippert.com/2012/12/20/nullable-micro-optimizations-part-one/

	If a variable of nullable value type is initialized with the
	default constructor then the [has_value] field will be its
	default value, false, and the value field will be default(T).

Since we know that Nullable<T>.value will be the default value when
the default constructor has executed, we can return it directly
instead of checking the has_value field.
2012-12-20 12:09:05 -05:00
Neale Ferguson 2d917005cc Correct the count so we deserialize properly 2012-12-19 16:06:15 -05:00
James Lewis 48426d0d78 Merge pull request #1 from knocte/master
Unbreak API and other nitpicks
2012-12-19 09:40:24 -08:00
Andres G. Aragoneses 3932b5c1c9 [Mono.Data.Tds] Add Obsolete constructors to unbreak the API
As Miguel points out, this assembly could be used by other people outside
Mono, so let's not break the API and make these constructors pass a 0
default connection lifetime (in this case the connection lives forever as
it used to happen before bringing connection lifetime support).
2012-12-19 11:12:44 +00:00
Jérémie Laval 9ded66cd9a fixup! [monkeydoc] Rename to use proper casing 2012-12-19 12:10:46 +01:00
Jérémie Laval a1a334ac68 [monkeydoc] Rename to use proper casing 2012-12-19 12:09:13 +01:00
Andres G. Aragoneses 5b1748a00a [System.Data.SqlClient] Use DEFAULT_CONNECTIONLIFETIME const in the code
We had created the constant for the pull request but we were not actually
using it, oops!
2012-12-19 11:08:47 +00:00
Jérémie Laval aa725aaeff [monkeydoc] Add forgotten test 2012-12-19 11:25:23 +01:00
Jérémie Laval e8073ab34f [monkey] Fix test dir casing 2012-12-19 11:25:02 +01:00
Jérémie Laval bab925aeef [monkeydoc] New test requires System.Xml 2012-12-18 18:43:39 +01:00
Jérémie Laval 85ade8ce0c [monkeydoc] Add RawGenerator to allow to retrieve the content of a documentation archive (in whatever initial format they are).
This allow to provide similar behavior than GetEcmaXml but in a cross-help source way and integrated into our generation pipeline.
2012-12-18 18:42:18 +01:00
Jérémie Laval dcefcc040f [monkeydoc] Add RenderUrl overload without out parameters 2012-12-18 18:41:02 +01:00
Jérémie Laval ba492c8b7d [monkeydoc] Fix regression, use a global counter to avoid duplicate entry in .zip. 2012-12-18 18:40:27 +01:00
Jérémie Laval fe1208ad94 [monkeydoc] Fix regression in processing non-existent entry in index.xml files 2012-12-18 18:39:56 +01:00
Jérémie Laval dcb75f7cc3 [monkeydoc] Add trimmed-down overrides to GetHelpSourceAndIdForUrl 2012-12-18 13:46:45 +01:00
Jérémie Laval b2ef2339e9 [monkeydoc] Null out helpSource if the hint was wrong. 2012-12-18 13:46:23 +01:00
Jérémie Laval 12dcacffa7 [monkeydoc] Add an extra optional HelpSource parameter to RenderUrl and GetHelpSourceAndIdForUrl to provide a hint to where to start matching. 2012-12-18 10:43:55 +01:00
Jérémie Laval 81604367ed [monkeydoc] Log parameter status when an error occurs in the HTML generator 2012-12-18 10:43:55 +01:00
Jérémie Laval 914875b996 [monkeydoc] Protect GetIndex and GetSearchIndex and make them returns null if somethings goes wrong. 2012-12-18 10:43:55 +01:00
Jérémie Laval f7e62f66b3 [monkeydoc] Instantiate both app and library configuration 2012-12-18 10:43:55 +01:00
Jérémie Laval 490cabde34 [monkeydoc] s/docDir/docPath/ 2012-12-18 10:43:54 +01:00
Jérémie Laval ac6bad62f8 [monkeydoc] Temp API for adding uncompiled sources, should be done differently 2012-12-18 10:43:54 +01:00
Zoltan Varga fa003a41b9 Revert "Add an instance_size_inited flag to MonoClass to signal whenever instance_size has been initialized. The size_inited flag which was used for this purpose cannot be used since it is set earlier for recursion detection. Fixes #8905."
This reverts commit fe4327e651.
2012-12-17 23:16:05 +01:00
Zoltan Varga fe4327e651 Add an instance_size_inited flag to MonoClass to signal whenever instance_size has been initialized. The size_inited flag which was used for this purpose cannot be used since it is set earlier for recursion detection. Fixes #8905. 2012-12-17 23:09:13 +01:00
Zoltan Varga b373bf0cfb Fix a regression introduced by e14ff38a54. Fixes #8904. 2012-12-16 21:39:31 +01:00
Alan McGovern 7818d339e5 [System.IO.Packaging] Disable some failing tests again
All the failing tests are disabled now.
2012-12-16 16:39:45 +00:00
Pablo Ruiz Garcia a0395f9c77 [System.IO.Packaging] Fix incorrect conversion of relative uris to absolute uris
Fixed loading of PackagePart relationships to avoid (incorrect) conversion of
relative target uris into absolute. (fixes xamarin bug #6602)
2012-12-16 16:23:27 +00:00
Pablo Ruiz Garcia cdc71ff394 Fixes xamarin-bug #8965: AllowHtmlAttribute ignored throwing exception on POST using ASP.NET mvc3
Mono's implementation of Microsoft.Web.Infrastructure was incorrectly
applying validation over 'unvalidated collections' cause HttpRequest's
internal collection is being replaced by a new LazyWebROCollection
which internally performs validation inside it's Get() methods.

However, ValidationUtility.GetUnvalidatedCollections(..) should not
perform validation, as this is what MVC (when using AllowHtmlAttribute)
expects.

See: https://bugzilla.xamarin.com/show_bug.cgi?id=8965
License: This patch is under MIT/X11 license.
2012-12-16 08:43:50 +01:00
Marek Safar 743e879293 Fix compiler warnings 2012-12-15 12:46:59 +01:00
Marek Safar dfae4bf027 Generate CodeSnippetTypeMember with correct separators. Fixes #8927 2012-12-15 12:46:59 +01:00
Rodrigo Kumpera df224238c4 We must locally cache array since it can shrink from the outside and cause FastCopy to corrupt the heap. 2012-12-14 21:16:48 -05:00
Rodrigo Kumpera 84f51f8c4d We can't use UnsageStore in List<> since broken user code that doesn't sync right will cause heap corruption. 2012-12-14 21:16:48 -05:00
Jeremie Laval 7a0e74c854 [monkeydoc] Add ecma uncompiled source support back and some nice refactoring with it. 2012-12-14 17:14:52 +00:00
Mark Probst e68803f7ae [sgen] Don't allow concurrent M&S with split nursery.
This breaks the sgen-domain-unload test in a very unreproducible way.
This is not very high priority, so I'm disabling the combination for now.
2012-12-14 12:19:13 +01:00
Mark Probst f6c4420d09 [sgen] Fix race conditions in worker thread start/stop. 2012-12-14 12:19:08 +01:00
Jeremie Laval 2de527b89f [monkeydoc] Reenable index creation for ecma-provider 2012-12-13 17:20:09 +00:00
Jeremie Laval ec1f3fd93c [monkeydoc] Precache member access per name 2012-12-13 17:20:09 +00:00
Jeremie Laval 703d1806a9 [monkeydoc] Disable xhtml-provider PopulateIndex as it was doing nothing 2012-12-13 17:20:09 +00:00
Rodrigo Kumpera e2eb38f1a6 Merge pull request #523 from metanest/freebsd_libinotify_spike2
inotify lib in FreeBSD is in /usr/local, check is only in FreeBSD
2012-12-13 08:58:22 -08:00
Jeremie Laval ef4f4c97d9 [monkeydoc] Configurable caching 2012-12-13 12:00:01 +00:00
Jeremie Laval aca0a95311 [monkeydoc] Regen monkeydoc.dll.config when the .in changes 2012-12-13 12:00:00 +00:00
Jeremie Laval 56efd4cd4f [monkeydoc] Sanitize settings 2012-12-13 12:00:00 +00:00
Jeremie Laval e6f39837a7 [monkeydoc] Bring index and lucene index into the modern age 2012-12-13 11:59:35 +00:00
Jeremie Laval 4b991705e8 [monkeydoc] Restore handling of MonoMac/MonoTouch export in Lucene index 2012-12-13 11:59:35 +00:00
KISHIMOTO, Makoto 610cd991c9 * inotify lib in FreeBSD is in /usr/local
* libinotify check only FreeBSD
2012-12-13 15:02:25 +09:00
Rodrigo Kumpera 6e959483fb Add a monotouch Mono.Security source file. 2012-12-12 18:17:01 -05:00
Rodrigo Kumpera a14e9e5650 Simple Automake concatenation is not enough to do all the evil things.
* autogen.sh: Automake does support adding files to the list of program
	sources using += but has no -= to remove them. This means that it's
	not possible to replace a source file at all.

	Given that, the only option is to patch automake. Call an external
	script that apply the whole patch queue instead of doing it there.
2012-12-12 17:53:45 -05:00
Rodrigo Kumpera e77323cbdc Kill this failed attemp at automake configuration extension. 2012-12-12 17:53:14 -05:00
Rodrigo Kumpera 4107ed8891 Add 6 sgen configurations with ssb to our test suite. 2012-12-12 11:25:24 -05:00
Atsushi Eno 594a21614b Now this somehow needed fix, resulted in invalid two-lines-joined-into-one-line output... 2012-12-12 11:25:24 -05:00
Sebastien Pouliot 955db5d7b0 Match the existing name for Aes implementation for source/binary compatibility 2012-12-12 11:25:23 -05:00
Sebastien Pouliot e11a0fe084 Adjust System.Core and Mono.Security builds to use MonoTouch's CommonCrypto source files 2012-12-12 11:25:23 -05:00
Rodrigo Kumpera 4b04e2d4fd Merge pull request #522 from kosumosu/master
Fix for bug #2907 XML "choice" not correclty processed during deserialization
2012-12-12 08:24:33 -08:00
Marek Safar d1dc58ce28 Bump ikvm module 2012-12-12 16:00:57 +01:00
Marek Safar ac7a10f199 Don't use IteratorStateMachineAttribute it makes us csc incompatible 2012-12-12 16:00:57 +01:00
Marek Safar fedd89bf5c Import caller attributes from referenced assemblies. Fixes #8829 2012-12-12 16:00:56 +01:00
Jeremie Laval 51a377bf46 [monkeydoc] Sanitize namespace/path names 2012-12-12 13:47:58 +00:00
Mark Probst 7340b8ffeb [sgen] Try to fix Win32 build. 2012-12-12 11:45:24 +01:00
Roman Zavalov d491eb18e4 Fixed Choice ordered read bug #2907 2012-12-12 12:33:26 +04:00
Jérémie Laval af4194f3ca [monkeydoc] Optimize Lucene index creation in ecma-provider by avoiding allocation and generic string matching 2012-12-11 22:37:03 +00:00
Jérémie Laval 3916cb1cfd [monkeydoc] Add back Lucene search creation for ecma-provider, switching from manually generated XPath to XLinq. 2012-12-11 22:37:03 +00:00
Jérémie Laval f0496b1a78 [monkeydoc] Correctly compute internal id 2012-12-11 22:37:03 +00:00
Jérémie Laval 30619d3335 [monkeydoc] Correctly append kind caption to types 2012-12-11 22:37:03 +00:00
Jérémie Laval dc958e8bfc [monkeydoc] Set things right 2012-12-11 22:37:02 +00:00
Jérémie Laval 6146f6aa5c [monkeydoc] Use HelpSource's name to compute the cache key 2012-12-11 22:37:02 +00:00
Jérémie Laval 7a2214a101 [doc] Disable mono-tracing as an documented API in TOC as it's not generated anymore. 2012-12-11 22:37:02 +00:00
Rodrigo Kumpera 3674b1167f Revert "Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes"
This reverts commit 8bb9b4409d, reversing
changes made to a5dd9d6910.
2012-12-11 15:42:12 -05:00
Atsushi Eno 3737cdde8c Fix reactive.pc file name in rpm spec. 2012-12-12 04:03:23 +09:00
Rodrigo Kumpera 467f15ff9e Automake can't handle missing conditional includes. Shell script our way out.
* autogen.sh: The extension module conditional include can't be done from automake
	given this wonderful piece of engineering can't handle missing conditional includes
	in any sane way. So what we do is to include them at autogen.sh time.

	* Makefile.am.in: This puppy now needs to be pre-processed before all the automake
	shinning glory kicks in.
2012-12-11 13:33:27 -05:00
Mark Probst 2a9c5e6448 [sgen] Fix SGen tests.
Concurrent sweep is gone, and concurrent M&S is in.
2012-12-11 18:27:47 +01:00
Jérémie Laval f881fee754 [build] Update Lucene.net submodule to use mono org URL 2012-12-11 13:07:15 +01:00
Atsushi Eno 30eeb52803 oops, forgot to bring reactive.pc back after some attempts to fix master build. 2012-12-11 17:31:00 +09:00
Marek Safar 68f576b397 Merge pull request #519 from Youscribe/execution_context_call
add LogicalCallContext to ExecutionContext
2012-12-11 00:28:25 -08:00
Marek Safar 2e0fbe4eb6 Merge pull request #521 from DavidS/stub-ServiceInstaller-4-0
ServiceInstaller: add DelayedAutoStart property for NET_4_0
2012-12-11 00:03:43 -08:00
Atsushi Eno 716bcd92bd fix build so far. 2012-12-11 15:46:02 +09:00
Atsushi Eno 3330034e6e Add Reactive Extensions as installed libs, take 2 (with fixed rpmspec this time). 2012-12-11 15:34:19 +09:00
David Schmitt d0ab8de454 ServiceInstaller: add DelayedAutoStart property for NET_4_0 2012-12-11 07:28:39 +01:00
Rodrigo Kumpera c99f71cd84 Introduce hooks for parallel build scripts.
* configure.in: Add new configure option that allows a parallel set of
	build scripts to contribute to the current one.

	* mono/mini/Makefile.am: Include the parallel build scripts when generating
	Makefiles.

	* mcs/build/gensources.sh:
	* mcs/build/library.make: Probe for parallel source lists when building the
	class libs.
2012-12-10 18:09:25 -05:00
Paolo Molaro b0e9fb6f6f Introduce support for unlimited trampolines.
With this new code there is no longer an AOT compiler limit on the number of
trampolines, as they are allocated at runtime as necessary on iOS systems.
We use iOS's ability to remap a page to a different address in memory
and we replicate the trampolines we generate in the binary file to a
location in memory near a writable page where the trampolines can find the
specific runtime data needed (basically building writable constant pools).
On a big app like bcltests, this saves more than 900KB of binary size.
There is still the option to use the old code, by passing the "nopagetrampolines"
option tp the AOT compiler (the new code is the default).
2012-12-10 17:26:02 -05:00
Sebastien Pouliot 98df353e11 Simplify a bit FULL_AOT_RUNTIME build wrt use of CommonCrypto. Ref: assistly #9858 2012-12-10 17:26:02 -05:00
Yann ROBIN 5c2e8d62de fix code according to mono coding guidelines 2012-12-10 22:37:38 +01:00
Yann ROBIN d9679bb798 fix code according to mono coding guidelines 2012-12-10 20:55:14 +01:00
Mark Probst ae21cb13b7 [sgen] Build fix. 2012-12-10 18:50:58 +01:00
Jonathan Pryor 463b5912ce [monodoc] Look for docs in LocalApplicationData
Problem: At present, the MonoTouch installer merges MonoTouch
documentation "stubs" with the locally installed iOS documentation,
and installs them into
/Library/Frameworks/Mono.framework/External/monodoc. Since this
directory isn't world writable, you need to be root to do it.

Previously this wasn't a major problem ("just" run the updater as
root), but Apple is now suggesting the use of a setuid binary to do
this instead of privilege escalation:

	http://blog.neteril.org/blog/2012/12/06/a-better-monomac-privilege-elevation/

The problem is that setuid binaries are notoriously difficult to write
properly, and have a large number of ways to be exploited. This is bad.

To avoid this, we instead want to stick the merged documentation into
the per-user directory, which means the updater does NOT need to run
as root, we don't need to write the documentation to a protected
directory, and the security concerns are significantly saner.

This in turn means that monodoc.dll needs to be able to look for docs
in a per-user directory, thus this patch:

Update monodoc.dll to look for documentation in the directory:

	Path.Combine (
			Environment.GetFolderPath (Environment.SpecialFolder.LocalApplicationData),
			"monodoc")

(On OS X/Unix, this is ~/.local/share/monodoc.)

This is a per-user directory, writable by the user.
2012-12-10 12:15:57 -05:00
Mark Probst d7c9ef01e2 [sgen] Mention marksweep-conc in the man page. 2012-12-09 15:02:54 +01:00
Mark Probst 29c6b7ad88 [sgen] Debugging code to check gray queue section's states. 2012-12-09 15:02:54 +01:00
Mark Probst 2bb9200269 [sgen] Just pass one struct around, instead of scan_func, copy_func and queue. 2012-12-09 15:02:54 +01:00
Mark Probst 1df43bc563 [sgen] Use SGEN_ATOMIC_ADD instead of doing it by hand. 2012-12-09 15:02:53 +01:00
Mark Probst 48aff561c8 [sgen] Define all dummy DTrace macros. 2012-12-09 15:02:53 +01:00
Mark Probst 9b2c7fbab4 [sgen] A few assertions. 2012-12-09 15:02:53 +01:00
Mark Probst f197b29255 [sgen] Start the workers before pinning when concurrent. 2012-12-09 15:02:53 +01:00
Mark Probst 3e475ee4ef [sgen] Disable redirection to distribute queue after workers have stopped. 2012-12-09 15:02:52 +01:00
Mark Probst 5a49f2afe8 [sgen] Fix weak tracking links in concurrent mark.
This was broken because nursery objects were not marked pinned
at the time references were checked, so they were considered dead
and the links were nulled.

We solve this by not unpinning them in the finishing nursery collection
but instead leaving them pinned during the finish-up of the major
collection and unpinning them afterwards.
2012-12-09 15:02:52 +01:00
Mark Probst f01b12b0a8 Make weak links initialized to NULL before calling mono_gc_weak_link_add().
This has no effect, but the weak link DTrace probes don't get uninitialized
pointers anymore.
2012-12-09 15:02:52 +01:00
Mark Probst 5842ec6784 [sgen] DTrace probes for finalisers and weak links. 2012-12-09 15:02:51 +01:00
Mark Probst 52d490b011 [sgen] Remove workers_gc_thread_data.
It's not used anymore.
2012-12-09 15:02:51 +01:00
Mark Probst 1382657aed [sgen] Number of major objects marked in concurrent DTrace probes.
Can be enabled/disabled via #define in sgen-conf.h.  Disabled by default
because it's a small performance hit.
2012-12-09 15:02:51 +01:00
Mark Probst 08cbcd7f02 [sgen] Remove debugging printfs. 2012-12-09 15:02:50 +01:00
Mark Probst fc38f4addb [sgen] Handle all blocks without mod union tables, not just the small object ones. 2012-12-09 15:02:50 +01:00
Mark Probst 427fed970c [sgen] Handle major object remembers happening outside of nursery collections. 2012-12-09 15:02:49 +01:00
Mark Probst 7f1fe0af68 [sgen] Option to disable lazy sweep in MONO_GC_PARAMS. 2012-12-09 15:02:49 +01:00
Mark Probst c27e6ad4d2 [sgen] Don't try to wake up workers before they've been started.
We enqueue gray objects before starting the workers, so queue section redirection
can also happen before.  Don't crash with an assertion.
2012-12-09 15:02:49 +01:00
Mark Probst 92a3746bc2 [sgen] Remove stupid old concurrent sweep. 2012-12-09 15:02:48 +01:00
Mark Probst 74cfb3bc2d [sgen] Sweep blocks in cardtable scans only if there are marked cards in the block. 2012-12-09 15:02:48 +01:00
Mark Probst 9a33aea8f5 [sgen] Don't try to wait for workers unless we're concurrent and/or parallel. 2012-12-09 15:02:48 +01:00
Mark Probst 48f06fb906 [sgen] More information in sweep and world restart DTrace probes.
Pass to the sweep probes whether a full sweep (including memset and resetting
mark bitmaps) was performed.

Pass to the world restart probes the oldest generation collected during
the pause.
2012-12-09 15:02:48 +01:00
Mark Probst 3f011fdb1d [sgen] Fix locking of the worker distribute gray queue.
The worker distribute gray queue is written to by the main GC thread
and read from by the worker thread(s) for work distribution.  Locking it is
therefore necessary, but we weren't doing it properly.

Previously I implemented optional locking for gray queues, but that's a
bad idea because it makes the enqueue fast path slower.  Now gray queues
are back to non-locking, but we have a new queue type, the section gray
queue, which is only accessible on a gray queue section granularity, not
on an individual object granularity, like regular gray queues.  Performance
there is not as critical, so locking is no problem.
2012-12-09 15:02:47 +01:00
Mark Probst bd8d79a442 [sgen] Remove gray queue balance.
Old, unmaintained debugging stuff.
2012-12-09 15:02:47 +01:00
Mark Probst bd5b216df9 [sgen] DTrace probes for sweep begin/end and concurrent start/finish begin/end. 2012-12-09 15:02:47 +01:00
Mark Probst 76087cedea [sgen] Workers dequeue from the distribute gray queue directly.
Previously we manually fed the workers, only restarting the world
when the distribute gray queue was empty, which neglected most of the
benefit of concurrent collection.  Now we use locking for the queue and
let workers drain it while the world runs again.

If the locking turns out to be a bottleneck we could implement a lock-free
queue.
2012-12-09 15:02:46 +01:00
Mark Probst 2230f884de [sgen] Always allocate objects with a vtable. 2012-12-09 15:02:46 +01:00
Mark Probst 0654f84b19 [sgen] DTrace probes for world stop/restart. 2012-12-09 15:02:46 +01:00
Mark Probst 5753461d10 [sgen] Only scan marked objects when processing the mod union card table. 2012-12-09 15:02:45 +01:00
Mark Probst c981dc348a [sgen] Make nursery-is-clean check a MONO_GC_DEBUG option. 2012-12-09 15:02:45 +01:00
Mark Probst 3698b640a7 [sgen] Debugging checks on gray object enqueues.
Have an optional (compile-time #define) hook in gray object queues to
check references whenever they are enqueued.  Currently we only check
that we never enqueue nursery pointers in the concurrent collector.
2012-12-09 15:02:45 +01:00
Mark Probst 9ac2055950 [sgen] Never enqueue nursery pointers for the concurrent collector.
The concurrent collector must never touch the nursery because it can change
during nursery collections.  During the initial scan we process all pinned objects
in the nursery.  This must be done non-concurrently.
2012-12-09 15:02:44 +01:00
Mark Probst 210297b9e9 [sgen] Major collection concurrent with nursery collections. 2012-12-09 15:02:44 +01:00
Mark Probst 0cf5e18538 [sgen] Separate binary protocol entries for collection begin and end. 2012-12-09 15:02:44 +01:00
Mark Probst 905f5ebd3e [sgen] Objects promoted during concurrent collections must be marked, too. 2012-12-09 15:02:44 +01:00
Mark Probst 375a834c2e [sgen] Clear nursery fragments before whole heap check. 2012-12-09 15:02:43 +01:00
Mark Probst 74ce6bc4e9 [sgen] Enqueue objects allocated during minor collections for concurrent. 2012-12-09 15:02:43 +01:00
Mark Probst 96e2165248 [sgen] Pass scan function to sgen_drain_gray_stack(). 2012-12-09 15:02:43 +01:00
Mark Probst 25a7dd975e [sgen] Handle forwarded objects better in describe_ptr(). 2012-12-09 15:02:42 +01:00
Mark Probst 98ead14dcb [sgen] Do concurrent collection concurrently.
Finish before the next collection.
2012-12-09 15:02:42 +01:00
Mark Probst 62972f9afb [sgen] Allocate job data dynamically. 2012-12-09 15:02:42 +01:00
Mark Probst 90b12cb672 [sgen] Scan cardtable mod union when finishing up major collection. 2012-12-09 15:02:41 +01:00
Mark Probst 1608f51dc6 [sgen] Do another copy/mark pass when finishing up concurrent collection. 2012-12-09 15:02:41 +01:00
Mark Probst e6d9e4852b [sgen] Assert that concurrent mark never pins major objects. 2012-12-09 15:02:41 +01:00
Mark Probst 6cee7b2af0 [sgen] Factor out major copying and marking from roots, waiting for workers. 2012-12-09 15:02:41 +01:00
Mark Probst 080ad6960c [sgen] Don't check the value for nursery in the concurrent wbarrier. 2012-12-09 15:02:40 +01:00
Mark Probst 92e13c8ea9 [sgen] Mod-union card tables. 2012-12-09 15:02:39 +01:00
Mark Probst b34b63d811 [sgen] Don't pin when doing concurrent collections.
The mutator can't handle the pin bit, and the concurrent collector
doesn't move objects out of the nursery, so pinning is neither
required nor allowed.
2012-12-09 15:02:39 +01:00
Mark Probst 3ad812890e [sgen] Reset pinning early in concurrent collector.
The concurrent collector doesn't do anything with pinning data, and
pinning must be reset for intervening minor collections.
2012-12-09 15:02:39 +01:00
Mark Probst 75d67460c5 [sgen] Separate function for finishing major collections. 2012-12-09 15:02:39 +01:00
Mark Probst eac6f71ef0 [sgen] Only allow the card table wbarrier for concurrent collections. 2012-12-09 15:02:38 +01:00
Mark Probst f2e6475788 [sgen] Some nursery stuff isn't necessary for concurrent mark.
Concurrent mark requires that it's preceded by a nursery collection,
so we don't need to do some stuff again.
2012-12-09 15:02:38 +01:00
Mark Probst b4e344f639 [sgen] Separate mark for concurrent collector. Not concurrent yet. 2012-12-09 15:02:38 +01:00
Mark Probst a094ccef9e [sgen] Concurrent flag for major collectors. 2012-12-09 15:02:37 +01:00
Mark Probst 09dc67f94e [sgen] Mark/pin large objects in the LOS header, not the vtable word.
This is necessary for the concurrent collector because we are not
allowed to change the vtable pointer while the mutator is running.
2012-12-09 15:02:37 +01:00
Mark Probst 00247178da [sgen] Split major collection into startup and work.
Startup is everything that's done to feed the workers.  The rest is
waiting for the workers to finish, and sweep/cleanup.
2012-12-09 15:02:37 +01:00
Mark Probst 1e2f69a405 [sgen] Tiny code cleanup. 2012-12-09 15:02:36 +01:00
Mark Probst f8db1aaa7a [sgen] Remove superfluous fields from LOSObject. 2012-12-09 15:02:36 +01:00
Mark Probst 22428cc3d6 [sgen] Mark unused gray queue as invalid.
For parallel collections we don't use the main thread's gray queue, so
assert in case there's something enqueued.
2012-12-09 15:02:36 +01:00
Mark Probst bea08c8c43 Properly (?) fix TimeZoneInfo.cs build.
I'm just taking a wild guess that this is the proper fix.  Please review.
2012-12-09 15:00:06 +01:00
Rodrigo Kumpera 6f85c913aa Fix System.Core/System.TimeZoneInfo build under basic profile. 2012-12-07 17:57:34 -05:00
Rodrigo Kumpera 7e51317a2f [sgen]Improve fatal OOM messaging to include the requested amount. 2012-12-07 17:21:21 -05:00
Miguel de Icaza 01ea58cbd4 Merge pull request #487 from mayerwin/patch-1
Update mcs/class/System.Core/System/TimeZoneInfo.cs
2012-12-07 13:59:03 -08:00
Miguel de Icaza 107e44e461 Merge pull request #496 from nicolas-raoul/unit-test-for-issue2907
Unit test for issue2907
2012-12-07 13:58:25 -08:00
Miguel de Icaza 8bb9b4409d Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
Fix for issue 2907: XML "choice" not correctly processed during deserialization
2012-12-07 13:57:58 -08:00
Yann ROBIN 2238ba7dc0 add LogicalCallContext to ExecutionContext
Save LogicalCallContext when Capture is called

Restore LogicalCallContext on Run.

see msdn for behavior of ExecutionContext http://msdn.microsoft.com/en-us/library/h84136b2.aspx
2012-12-07 17:36:24 +01:00
Zoltan Varga a5dd9d6910 Treat valuetype arguments precisely during precise stack marking. 2012-12-07 16:58:20 +01:00
Atsushi Eno 47b3bb2eb2 Fix mobile builds. 2012-12-07 18:05:57 +09:00
Martin Baulig 5841893129 Add missing '#if NET_4_5'. 2012-12-07 01:34:01 +01:00
Rodrigo Kumpera 19fd5c416d Enable MOBILE mmap support under ios-simulator. Fixes #8786. 2012-12-06 12:31:52 -05:00
Martin Baulig c1b505c0ca [WCF]: Implement and improve missing WsdlExporter pieces.
* We now export simple <wsp:Policy>, currently supporting only
  those elements that WsdlImporter can import.

  WsdlImporter:
  https://github.com/mono/mono/commit/cdc98dba1b83341c25a1daab4ae7c217d4961ad1

* Implement `MetadataExporter.Errors' and use it for error
  reporting.

* Fixed WsdlExporter's caching to correclty deal with duplicate
  ExportContract() and ExportEndpoint() calls.

* Emit <soap12:operation> depending on the binding's MessageVersion.
  (FIXME: I didn't implement soap faults yet).

* MetadataTests: Check whether the policy elements are correct.

* MetadataTests: Add test containing simple [OperationContract] method
  for http and net.tcp; checks the <soap:operation> / <soap12:operation>
  elements.

* New test to check WsdlExporter's behavior regarding duplicate
  contracts and endpoints.

* ConnectionOrientedTransportBindingElement.cs, CustomBindingTests.cs,
  HttpTransportBindingElementTest.cs: Added test for custom message
  encodings.
2012-12-05 23:58:12 +01:00
Rodrigo Kumpera ca6f897e93 Bump mono to 3.0.3 2012-12-05 15:38:34 -05:00
Zoltan Varga 7f23a0c1f3 Revert dfa9220e8b. 2012-12-05 18:35:41 +01:00
technomage 956841a964 [Mono] TimeZoneInfo.FindSystemTimeZoneById returns null
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=7966

If we cannot find the requiested time zone we should throw a
TimeZoneNotFoundException rather than returning null.
2012-12-05 14:24:17 +00:00
James Lewis 859d71d005 [System.Data.SqlClient] Support for "Connection Lifetime" parameter
Adding support for "Connection Lifetime" parameter in connection strings.
This is especially fundamental in this scenario:
- Pooling is ON because the app is in constant reception of requests.
- Loadbalancer is switched to point to a new database.
- Mono needs to discard the connections that are too old (marked by lifetime)
in order to create new ones, that will connect to the new DB.

It includes a unit test in Mono.Data.Tds testing assembly.

Patch contributed under the terms by the X11/MIT license, by:
 James Lewis <[email protected]>
 Andres G. Aragoneses <[email protected]>
2012-12-05 12:29:41 +00:00
Shay Rojansky 850f2f4124 Fixes threadpool+ProcessExit problem
The threadpool was being shutdown too early, before the ProcessExit event was fired.
This led to bugs such as NLog not shutting down
(http://nlog-project.org/2011/10/30/using-nlog-with-mono.html).
2012-11-18 22:14:00 +02:00
Shay Rojansky a2e54923bb Runtime test to reproduce threadpool+ProcessExit issue
Do make test-process-exit to run
2012-11-18 22:13:42 +02:00
Nicolas Raoul b826dc791d do not check order sequence if option /order was not used 2012-11-06 10:34:15 +09:00
Nicolas Raoul 9cb3d84611 Merge remote-tracking branch 'upstream/master' into fix-for-issue2907-with-no-formatting-changes 2012-11-06 10:12:27 +09:00
Nicolas Raoul 504e922ed8 Merged into single file, added assertions 2012-11-05 17:01:35 +09:00
Nicolas Raoul 97bd61a804 Unit test for issue 2907, from Josef Semmler's attachment at https://bugzilla.xamarin.com/show_bug.cgi?id=2907#c2 2012-11-05 15:01:27 +09:00
Nicolas Raoul f72fc52f07 Fix for issue 2907. I took Roman Zavalov's patch at https://bugzilla.xamarin.com/show_bug.cgi?id=2907#c10 and reverted the numerous formatting changes that were obscuring the real changes, hopefully making the diff clearer 2012-11-02 16:26:47 +09:00
mayerwin 10eadfdd38 Update mcs/class/System.Core/System/TimeZoneInfo.cs
Implementing missing ConvertTime with DateTimeOffset.
2012-10-27 21:35:56 +08:00
Pablo Ruiz Garcia 77798d7ecb Implemented UrlAuthorizationModule.CheckUrlAccessForPrincipal(...) (fixes xamarin bug #7408) 2012-10-05 18:49:48 +02:00
Melanie Thielker 9605c20c97 Fix ServicePointManager to accept the DefaultConnectionLimit property being
set as per the .NET spec.
2012-09-30 18:46:38 +02:00
Peter Collingbourne 6c620c74f3 X11: improve handling of WS_EX_TOPMOST
Currently, WS_EX_TOPMOST is handled by making the window transient-for
the root window.  I was unable to find any documentation that indicated
that this would have the desired effect.  Instead, use SetTopmost to
set _NET_WM_STATE to _NET_WM_STATE_ABOVE, per EWMH.

Also, use XMapRaised to raise topmost windows to the top of the stack
when mapped, as a last ditch effort to support window managers that
do not respect _NET_WM_STATE, such as xmonad.

This fixes an issue I encountered when running a winforms application
in xmonad, whereby drop down menus would fail to re-open if windows
had been re-arranged after the menu was first opened (in reality,
the menu was hiding behind the form).
2012-04-09 02:22:37 +01:00
Peter Collingbourne 2f04977242 Cause MenuDeactivate event to be delivered when appropriate
This is achieved by moving the FireMenuDeactivate call to
MenuStrip.Dismiss and causing it to be called in a couple of places
where it ought to be.
2012-04-02 05:52:21 +01:00
4629 changed files with 212109 additions and 448403 deletions

No files matched your search

+121 -40
View File
@@ -1,41 +1,122 @@
/Makefile
/Makefile.in
/_tmpinst
/aclocal.m4
/autom4te.cache
/config.cache
/config.guess
/config.h
/config.h.in
/config.h.in
/config.log
/config.status
/config.sub
/configure
/libtool
/ltconfig
/ltmain.sh
/mono-*.tar.*
/*.pc
/mono.spec
/mono-core.spec
/semantic.cache
/mono.h
/stamp-h
/stamp-h.in
/stamp-h1
/tmpinst-dir.stamp
/missing
/compile
/depcomp
/install-sh
/doltlibtool
/doltcompile
/libtool.m4
/ltoptions.m4
/ltsugar.m4
/lt~obsolete.m4
/ltversion.m4
*~
##############################################################################
# General
##############################################################################
# OS junk files
[Tt]humbs.db
*.DS_Store
# Visual Studio / MonoDevelop
*.[Oo]bj
*.exe
*.dll
*.pdb
*.user
*.aps
*.pch
*.vspscc
*.vssscc
*_i.c
*_p.c
*.ncb
*.suo
*.csproj.user
*.tlb
*.tlh
*.bak
*.[Cc]ache
*.ilk
*.log
*.lib
*.sbr
*.sdf
*.opensdf
*.resources
*.res
ipch/
obj/
[Bb]in
[Dd]ebug*/
[Rr]elease*/
Ankh.NoLoad
*.gpState
# Tooling
_ReSharper*/
*.resharper
[Tt]est[Rr]esult*
# NuGet packages
!.nuget/*
[Pp]ackages/*
![Pp]ackages/repositories.config
# Temporary Files
~.*
~$*
# Autotools-generated files
/Makefile
Makefile.in
aclocal.m4
autom4te.cache
/build/
config.cache
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
configure.scan
depcomp
install-sh
libtool
ltmain.sh
missing
mkinstalldirs
releases
stamp-h
stamp-h1
stamp-h.in
*~
*.swp
*.o
.deps
# Libtool
libtool.m4
lt~obsolete.m4
ltoptions.m4
ltsugar.m4
ltversion.m4
# Dolt (libtool replacement)
doltlibtool
doltcompile
# pkg-config
*.pc
# Emacs
semantic.cache
# gtags
GPATH
GRTAGS
GSYMS
GTAGS
##############################################################################
# Mono-specific patterns
##############################################################################
.dirstamp
compile
mono.h
mono-*.tar.*
mono.spec
mono-core.spec
tmpinst-dir.stamp
+1 -1
View File
@@ -21,4 +21,4 @@
url = git://github.com/mono/ikvm-fork.git
[submodule "external/Lucene.Net"]
path = external/Lucene.Net
url = git://github.com/apache/lucene.net.git
url = git://github.com/mono/lucene.net.git
+49
View File
@@ -0,0 +1,49 @@
Guidelines
==========
When contributing to the Mono project, please follow the [Mono Coding
Guidelines][1]. We have been using a coding style for many years,
please make your patches conform to these guidelines.
[1] http://www.mono-project.com/Coding_Guidelines
Etiquette
=========
In general, we do not accept patches that merely shuffle code around,
split classes in multiple files, reindent the code or are the result
of running a refactoring tool on the source code. This is done for
three reasons: (a) we have our own coding guidelines; (b) Some modules
are imported from upstream sources and we want to respect their coding
guidelines and (c) it destroys valuable history that is often used to
investigate bugs, regressions and problems.
License
=======
The Mono project uses the MIT X11, GNU LGPL version 2 and the Apache
License 2.0. We also imported some Microsoft code licensed under the
open source Microsoft Public License.
Different parts of Mono use different licenses. The actual details of
which licenses are used for which parts are detailed on the LICENSE
file in this directory.
When contributing code, make sure that your contribution falls under
the appropriate license. For example, contributions to code licensed
under MIT X11 code, should be MIT X11 code.
The Runtime is a special case. The code is dual licensed by Xamarin
under both the GNU LGPL v2 license and is also available under
commercial terms. For the runtime, you should either sign an
agreement that grants Xamarin the rights to relicense your code under
other licenses other than the LGPL v2 or your contribution must be
made as an MIT X11 license which grants us the same rights, but
involves no paperwork.
Submitting Patches
==================
When Submitting patches to the dual-licensed portions, please specify
on the commit the license that the code is under.
+14 -34
View File
@@ -1,6 +1,5 @@
ACLOCAL_AMFLAGS = -I m4
MOONLIGHT_SUBDIRS = $(libgc_dir) eglib/src mono
MONOTOUCH_SUBDIRS = $(libgc_dir) eglib/src mono
if CROSS_COMPILING
@@ -12,16 +11,12 @@ else
if ONLY_MONOTOUCH
SUBDIRS = $(MONOTOUCH_SUBDIRS) runtime
else
if ONLY_MOONLIGHT
SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
else
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = m4 po libgc eglib mono ikvm-native support data runtime scripts man samples tools msvc docs
endif
endif
endif
all: update_submodules
@@ -32,6 +27,7 @@ update_submodules:
.PHONY: update_submodules
EXTRA_DIST= \
README.md \
LICENSE \
autogen.sh \
build-mingw32.sh \
@@ -92,31 +88,6 @@ mcs-do-compiler-tests:
bootstrap-world: compiler-tests
$(MAKE) install
if MOONLIGHT
moon-do-build: config.h
@list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
case "x$$subdir" in \
xmono ) target="moon-do-build";; \
* ) target="all";; \
esac; \
echo "Making $$target in $$subdir"; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
done;
(cd runtime && $(MAKE) $(AM_MAKEFLAGS) moon-do-build)
moon-do-clean:
@list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
case "x$$subdir" in \
xmono ) target="moon-do-clean";; \
* ) target="clean";; \
esac; \
echo "Making $$target in $$subdir"; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
done;
(cd runtime && $(MAKE) $(AM_MAKEFLAGS) moon-do-clean)
endif
if INSTALL_MONOTOUCH
monotouch-do-build: config.h
@list='$(MONOTOUCH_SUBDIRS)'; for subdir in $$list; do \
@@ -161,6 +132,8 @@ win32setup:
update-csproj:
-rm msvc/scripts/order
-rm msvc/scripts/order.xml
-rm -rf msvc/scripts/inputs
-mkdir msvc/scripts/inputs
(cd runtime; make V=1 extra_targets=csproj-local)
@@ -169,16 +142,23 @@ package-inputs:
echo '<root>' >> msvc/scripts/order.xml
for i in `cat msvc/scripts/order`; do \
set `echo $$i | sed -e 's/:/ /' -e 's/.input//'`; \
cat msvc/scripts/inputs/$$2.input | \
cat msvc/scripts/inputs/$$2.input | sed -e 's/\\\\/\\/g' -e 's/\\/\\\\/g' | \
(echo " <project dir=\"$$1\" library=\"$$2\">"; \
read boot; echo " <boot>$$boot</boot>"; \
read mcs; echo " <mcs>$$mcs</mcs>"; \
read flags; echo " <flags>$$flags</flags>"; \
read output; echo " <output>$$output</output>"; \
read built; echo " <built_sources>$$built</built_sources>"; \
read built; echo " <built_sources>`echo $$built | sed 's/\\\/\\\\/g'`</built_sources>"; \
read libou; echo " <library_output>$$libou</library_output>"; \
read fx_ver; echo " <fx_version>$$fx_ver</fx_version>"; \
read profile; echo " <profile>$$profile</profile>"; \
read resp; echo " <response>$$resp</response>"; \
echo " </project>") >> msvc/scripts/order.xml; \
echo " </project>") >> msvc/scripts/order.xml; \
done
echo "</root>" >> msvc/scripts/order.xml
# Update llvm version in configure.in to the output of $LLVM_DIR/bin/llvm-config --version
update-llvm-version:
if test "x$$LLVM_DIR" = "x"; then echo "Set the make variable LLVM_DIR to the directory containing the LLVM installation."; exit 1; fi
REV=`$(LLVM_DIR)/bin/llvm-config --version` && sed -e "s,expected_llvm_version=.*,expected_llvm_version=\"$$REV\"," < configure.in > tmp && mv tmp configure.in && echo "Version set to $$REV."
-593
View File
@@ -1,593 +0,0 @@
This is Mono.
1. Installation
2. Using Mono
3. Directory Roadmap
4. git submodules maintenance
1. Compilation and Installation
===============================
a. Build Requirements
---------------------
On Itanium, you must obtain libunwind:
http://www.hpl.hp.com/research/linux/libunwind/download.php4
On Solaris, make sure that you used GNU tar to unpack this package, as
Solaris tar will not unpack this correctly, and you will get strange errors.
On Solaris, make sure that you use the GNU toolchain to build the software.
Optional dependencies:
* libgdiplus
If you want to get support for System.Drawing, you will need to get
Libgdiplus. This library in turn requires glib and pkg-config:
* pkg-config
Available from: http://www.freedesktop.org/Software/pkgconfig
* glib 2.4
Available from: http://www.gtk.org/
* libzlib
This library and the development headers are required for compression
file support in the 2.0 profile.
b. Building the Software
------------------------
If you obtained this package as an officially released tarball,
this is very simple, use configure and make:
./configure --prefix=/usr/local
make
make install
Mono supports a JIT engine on x86, SPARC, SPARCv9, S/390,
S/390x, AMD64, ARM and PowerPC systems.
If you obtained this as a snapshot, you will need an existing
Mono installation. To upgrade your installation, unpack both
mono and mcs:
tar xzf mcs-XXXX.tar.gz
tar xzf mono-XXXX.tar.gz
mv mono-XXX mono
mv mcs-XXX mcs
cd mono
./autogen.sh --prefix=/usr/local
make
The Mono build system is silent for most compilation commands.
To enable a more verbose compile (for example, to pinpoint
problems in your makefiles or your system) pass the V=1 flag to make, like this:
make V=1
c. Building the software from GIT
---------------------------------
If you are building the software from GIT, make sure that you
have up-to-date mcs and mono sources:
If you are an anonymous user:
git clone git://github.com/mono/mono.git
If you are a Mono contributors with read/write privileges:
git clone [email protected]:mono/mono.git
Then, go into the mono directory, and configure:
cd mono
./autogen.sh --prefix=/usr/local
make
For people with non-standard installations of the auto* utils and of
pkg-config (common on misconfigured OSX and windows boxes), you could get
an error like this:
./configure: line 19176: syntax error near unexpected token `PKG_CHECK_MODULES(BASE_DEPENDENCIES,' ...
This means that you need to set the ACLOCAL_FLAGS environment var
when invoking autogen.sh, like this:
ACLOCAL_FLAGS="-I $acprefix/share/aclocal" ./autogen.sh --prefix=/usr/loca
where $acprefix is the prefix where aclocal has been installed.
This will automatically go into the mcs/ tree and build the
binaries there.
This assumes that you have a working mono installation, and that
there's a C# compiler named 'mcs', and a corresponding IL
runtime called 'mono'. You can use two make variables
EXTERNAL_MCS and EXTERNAL_RUNTIME to override these. e.g., you
can say
make EXTERNAL_MCS=/foo/bar/mcs EXTERNAL_RUNTIME=/somewhere/else/mono
If you don't have a working Mono installation
---------------------------------------------
If you don't have a working Mono installation, an obvious choice
is to install the latest released packages of 'mono' for your
distribution and running autogen.sh; make; make install in the
mono module directory.
You can also try a slightly more risky approach: this may not work,
so start from the released tarball as detailed above.
This works by first getting the latest version of the 'monolite'
distribution, which contains just enough to run the 'mcs'
compiler. You do this with:
# Run the following line after ./autogen.sh
make get-monolite-latest
This will download and automatically gunzip and untar the
tarball, and place the files appropriately so that you can then
just run:
make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/gmcs.exe
And that will use the files downloaded by 'make get-monolite-latest.
Testing and Installation
------------------------
You can run (part of) the mono and mcs testsuites with the command:
make check
All tests should pass.
If you want more extensive tests, including those that test the
class libraries, you need to re-run 'configure' with the
'--enable-nunit-tests' flag, and try
make -k check
Expect to find a few testsuite failures. As a sanity check, you
can compare the failures you got with
http://go-mono.com/tests/displayTestResults.php
You can now install mono with:
make install
You can verify your installation by using the mono-test-install
script, it can diagnose some common problems with Mono's install.
Failure to follow these steps may result in a broken installation.
d. Configuration Options
------------------------
The following are the configuration options that someone
building Mono might want to use:
--with-sgen=yes,no
Generational GC support: Used to enable or disable the
compilation of a Mono runtime with the SGen garbage collector.
On platforms that support it, after building Mono, you
will have both a mono binary and a mono-sgen binary.
Mono uses Boehm, while mono-sgen uses the Simple
Generational GC.
--with-gc=[boehm, included, sgen, none]
Selects the default Boehm garbage collector engine to
use, the default is the "included" value.
included:
This is the default value, and its
the most feature complete, it will allow Mono
to use typed allocations and support the
debugger.
It is essentially a slightly modified Boehm GC
boehm:
This is used to use a system-install Boehm GC,
it is useful to test new features available in
Boehm GC, but we do not recommend that people
use this, as it disables a few features.
none:
Disables the inclusion of a garbage
collector.
--with-tls=__thread,pthread
Controls how Mono should access thread local storage,
pthread forces Mono to use the pthread APIs, while
__thread uses compiler-optimized access to it.
Although __thread is faster, it requires support from
the compiler, kernel and libc. Old Linux systems do
not support with __thread.
This value is typically pre-configured and there is no
need to set it, unless you are trying to debug a
problem.
--with-sigaltstack=yes,no
Experimental: Use at your own risk, it is known to
cause problems with garbage collection and is hard to
reproduce those bugs.
This controls whether Mono will install a special
signal handler to handle stack overflows. If set to
"yes", it will turn stack overflows into the
StackOverflowException. Otherwise when a stack
overflow happens, your program will receive a
segmentation fault.
The configure script will try to detect if your
operating system supports this. Some older Linux
systems do not support this feature, or you might want
to override the auto-detection.
--with-static_mono=yes,no
This controls whether `mono' should link against a
static library (libmono.a) or a shared library
(libmono.so).
This defaults to yes, and will improve the performance
of the `mono' program.
This only affects the `mono' binary, the shared
library libmono.so will always be produced for
developers that want to embed the runtime in their
application.
--with-xen-opt=yes,no
The default value for this is `yes', and it makes Mono
generate code which might be slightly slower on
average systems, but the resulting executable will run
faster under the Xen virtualization system.
--with-large-heap=yes,no
Enable support for GC heaps larger than 3GB.
This value is set to `no' by default.
--enable-small-config=yes,no
Enable some tweaks to reduce memory usage and disk footprint at
the expense of some capabilities. Typically this means that the
number of threads that can be created is limited (256), that the
maxmimum heap size is also reduced (256 MB) and other such limitations
that still make mono useful, but more suitable to embedded devices
(like mobile phones).
This value is set to `no' by default.
--with-ikvm-native=yes,no
Controls whether the IKVM JNI interface library is
built or not. This is used if you are planning on
using the IKVM Java Virtual machine with Mono.
This defaults to `yes'.
--with-profile4=yes,no
Whether you want to build the 4.x profile libraries
and runtime.
It defaults to `yes'.
--with-moonlight=yes,no
Whether you want to generate the Silverlight/Moonlight
libraries and toolchain in addition to the default
(1.1 and 2.0 APIs).
This will produce the `smcs' compiler which will reference
the Silverlight modified assemblies (mscorlib.dll,
System.dll, System.Code.dll and System.Xml.Core.dll) and turn
on the LINQ extensions for the compiler.
--with-moon-gc=boehm,sgen
Select the GC to use for Moonlight.
boehm:
Selects the Boehm Garbage Collector, with the same flags
as the regular Mono build. This is the default.
sgen:
Selects the new SGen Garbage Collector, which provides
Generational GC support, using the same flags as the
mono-sgen build.
This defaults to `boehm'.
--with-libgdiplus=installed,sibling,<path>
This is used to configure where should Mono look for
libgdiplus when running the System.Drawing tests.
It defaults to `installed', which means that the
library is available to Mono through the regular
system setup.
`sibling' can be used to specify that a libgdiplus
that resides as a sibling of this directory (mono)
should be used.
Or you can specify a path to a libgdiplus.
--disable-shared-memory
Use this option to disable the use of shared memory in
Mono (this is equivalent to setting the MONO_DISABLE_SHM
environment variable, although this removes the feature
completely).
Disabling the shared memory support will disable certain
features like cross-process named mutexes.
--enable-minimal=LIST
Use this feature to specify optional runtime
components that you might not want to include. This
is only useful for developers embedding Mono that
require a subset of Mono functionality.
The list is a comma-separated list of components that
should be removed, these are:
aot:
Disables support for the Ahead of Time
compilation.
attach:
Support for the Mono.Management assembly and the
VMAttach API (allowing code to be injected into
a target VM)
com:
Disables COM support.
debug:
Drop debugging support.
decimal:
Disables support for System.Decimal.
full_messages:
By default Mono comes with a full table
of messages for error codes. This feature
turns off uncommon error messages and reduces
the runtime size.
generics:
Generics support. Disabling this will not
allow Mono to run any 2.0 libraries or
code that contains generics.
jit:
Removes the JIT engine from the build, this reduces
the executable size, and requires that all code
executed by the virtual machine be compiled with
Full AOT before execution.
large_code:
Disables support for large assemblies.
logging:
Disables support for debug logging.
pinvoke:
Support for Platform Invocation services,
disabling this will drop support for any
libraries using DllImport.
portability:
Removes support for MONO_IOMAP, the environment
variables for simplifying porting applications that
are case-insensitive and that mix the Unix and Windows path separators.
profiler:
Disables support for the default profiler.
reflection_emit:
Drop System.Reflection.Emit support
reflection_emit_save:
Drop support for saving dynamically created
assemblies (AssemblyBuilderAccess.Save) in
System.Reflection.Emit.
shadow_copy:
Disables support for AppDomain's shadow copies
(you can disable this if you do not plan on
using appdomains).
simd:
Disables support for the Mono.SIMD intrinsics
library.
ssa:
Disables compilation for the SSA optimization
framework, and the various SSA-based
optimizations.
--enable-llvm
--enable-loadedllvm
This enables the use of LLVM as a code generation engine
for Mono. The LLVM code generator and optimizer will be
used instead of Mono's built-in code generator for both
Just in Time and Ahead of Time compilations.
See the http://www.mono-project.com/Mono_LLVM for the
full details and up-to-date information on this feature.
You will need to have an LLVM built that Mono can link
against,
The --enable-loadedllvm variant will make the llvm backend
into a runtime-loadable module instead of linking it directly
into the main mono binary.
--enable-big-arrays
This enables the use arrays whose indexes are larger
than Int32.MaxValue.
By default Mono has the same limitation as .NET on
Win32 and Win64 and limits array indexes to 32-bit
values (even on 64-bit systems).
In certain scenarios where large arrays are required,
you can pass this flag and Mono will be built to
support 64-bit arrays.
This is not the default as it breaks the C embedding
ABI that we have exposed through the Mono development
cycle.
--enable-parallel-mark
Use this option to enable the garbage collector to use
multiple CPUs to do its work. This helps performance
on multi-CPU machines as the work is divided across CPUS.
This option is not currently the default as we have
not done much testing with Mono.
--enable-dtrace
On Solaris and MacOS X builds a version of the Mono
runtime that contains DTrace probes and can
participate in the system profiling using DTrace.
--disable-dev-random
Mono uses /dev/random to obtain good random data for
any source that requires random numbers. If your
system does not support this, you might want to
disable it.
There are a number of runtime options to control this
also, see the man page.
--enable-nacl
This configures the Mono compiler to generate code
suitable to be used by Google's Native Client:
http://code.google.com/p/nativeclient/
Currently this is used with Mono's AOT engine as
Native Client does not support JIT engines yet.
2. Using Mono
=============
Once you have installed the software, you can run a few programs:
* runtime engine
mono program.exe
* C# compiler
mcs program.cs
* CIL Disassembler
monodis program.exe
See the man pages for mono(1), mint(1), monodis(1) and mcs(2)
for further details.
3. Directory Roadmap
====================
docs/
Technical documents about the Mono runtime.
data/
Configuration files installed as part of the Mono runtime.
mono/
The core of the Mono Runtime.
metadata/
The object system and metadata reader.
mini/
The Just in Time Compiler.
dis/
CIL executable Disassembler
cli/
Common code for the JIT and the interpreter.
io-layer/
The I/O layer and system abstraction for
emulating the .NET IO model.
cil/
Common Intermediate Representation, XML
definition of the CIL bytecodes.
interp/
Interpreter for CLI executables (obsolete).
arch/
Architecture specific portions.
man/
Manual pages for the various Mono commands and programs.
samples/
Some simple sample programs on uses of the Mono
runtime as an embedded library.
scripts/
Scripts used to invoke Mono and the corresponding program.
runtime/
A directory that contains the Makefiles that link the
mono/ and mcs/ build systems.
../olive/
If the directory ../olive is present (as an
independent checkout) from the Mono module, that
directory is automatically configured to share the
same prefix than this module gets.
4. Git submodules maintenance
=============================
Read documentation at http://mono-project.com/Git_Submodule_Maintenance
+535
View File
@@ -0,0 +1,535 @@
Mono is a software platform designed to allow developers to easily create cross platform applications.
Mono is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime.
1. [Installation](#compilation-and-installation)
2. [Using Mono](#using-mono)
3. [Directory Roadmap](#directory-roadmap)
4. [Git submodules maintenance](#git-submodules-maintenance)
5. [Reporting bugs](#reporting-bugs)
Compilation and Installation
============================
a. Build Requirements
---------------------
* On Itanium, you must obtain libunwind: http://www.hpl.hp.com/research/linux/libunwind/download.php4
* On Solaris
1. Make sure that you used GNU tar to unpack this package, as
Solaris tar will not unpack this correctly, and you will get strange errors.
2. Make sure that you use the GNU toolchain to build the software.
3. Optional dependencies
* libgdiplus - Required for System.Drawing. This library in turn requires glib and pkg-config
* pkg-config - Available at: http://www.freedesktop.org/Software/pkgconfig
* glib 2.4 - Available at: http://www.gtk.org/
* libzlib - This library and the development headers are required for compression
file support in the 2.0 profile.
b. Building the Software
------------------------
If you obtained this package as an officially released tarball,
this is very simple, use configure and make:
`./configure --prefix=/usr/local ; make ; make install`
Mono supports a JIT engine on x86, SPARC, SPARCv9, S/390,
S/390x, AMD64, ARM and PowerPC systems.
If you obtained this as a snapshot, you will need an existing
Mono installation. To upgrade your installation, unpack both
mono and mcs:
tar xzf mcs-XXXX.tar.gz
tar xzf mono-XXXX.tar.gz
mv mono-XXX mono
mv mcs-XXX mcs
cd mono
./autogen.sh --prefix=/usr/local
make
The Mono build system is silent for most compilation commands.
To enable a more verbose compile (for example, to pinpoint
problems in your makefiles or your system) pass the V=1 flag to make, like this:
` make V=1`
c. Building the software from GIT
---------------------------------
If you are building the software from GIT, make sure that you
have up-to-date mcs and mono sources:
* If you are an anonymous user: `git clone git://github.com/mono/mono.git`
* If you are a Mono contributor with read/write privileges: `git clone [email protected]:mono/mono.git`
Then, go into the mono directory, and configure:
cd mono
./autogen.sh --prefix=/usr/local
make
For people with non-standard installations of the auto* utils and of
pkg-config (common on misconfigured OSX and windows boxes), you could get
an error like this:
`./configure: line 19176: syntax error near unexpected token 'PKG_CHECK_MODULES(BASE_DEPENDENCIES,' ...`
This means that you need to set the ACLOCAL_FLAGS environment variable
when invoking autogen.sh, like this: `ACLOCAL_FLAGS="-I $acprefix/share/aclocal" ./autogen.sh --prefix=/usr/local`
where $acprefix is the prefix where aclocal has been installed.
This will automatically go into the mcs/ tree and build the
binaries there.
This assumes that you have a working mono installation, and that
there's a C# compiler named 'mcs', and a corresponding IL
runtime called 'mono'. You can use two make variables
EXTERNAL_MCS and EXTERNAL_RUNTIME to override these. e.g., you
can say:
`make EXTERNAL_MCS=/foo/bar/mcs EXTERNAL_RUNTIME=/somewhere/else/mono`
If you don't have a working Mono installation
---------------------------------------------
If you don't have a working Mono installation, an obvious choice
is to install the latest released packages of 'mono' for your
distribution and running `autogen.sh; make; make install` in the
mono module directory.
You can also try a slightly more risky approach: this may not work,
so start from the released tarball as detailed above.
This works by first getting the latest version of the 'monolite'
distribution, which contains just enough to run the 'mcs'
compiler. You do this with:
# Run the following line after ./autogen.sh
make get-monolite-latest
This will download and automatically gunzip and untar the
tarball, and place the files appropriately so that you can then
just run: `make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/gmcs.exe`
That will use the files downloaded by 'make get-monolite-latest.
Testing and Installation
------------------------
You can run *(part of)* the mono and mcs test suites with the command: `make check`.
All tests should pass.
If you want more *extensive* tests, including those that test the
class libraries, you need to re-run 'configure' with the
'--enable-nunit-tests' flag, and try: `make -k check`
Expect to find a few test suite failures. As a sanity check, you
can compare the failures you got with
`https://wrench.mono-project.com/Wrench/`
You can now install mono with: `make install`
You can verify your installation by using the mono-test-install
script, it can diagnose some common problems with Mono's install.
Failure to follow these steps may result in a broken installation.
d. Configuration Options
------------------------
The following are the configuration options that someone
building Mono might want to use:
* `--with-sgen=yes,no` - Generational GC support: Used to enable or disable the
compilation of a Mono runtime with the SGen garbage collector.
* On platforms that support it, after building Mono, you
will have both a mono binary and a mono-sgen binary.
Mono uses Boehm, while mono-sgen uses the Simple
Generational GC.
* `--with-gc=[boehm, included, sgen, none]` - Selects the default Boehm garbage
collector engine to use.
* *included*: (*slighty modified Boehm GC*)
This is the default value, and its
the most feature complete, it will allow Mono
to use typed allocations and support the
debugger.
* *boehm*:
This is used to use a system-install Boehm GC,
it is useful to test new features available in
Boehm GC, but we do not recommend that people
use this, as it disables a few features.
* *none*:
Disables the inclusion of a garbage collector.
* This defaults to `included`.
* `--with-tls=__thread,pthread`
* Controls how Mono should access thread local storage,
pthread forces Mono to use the pthread APIs, while
__thread uses compiler-optimized access to it.
* Although __thread is faster, it requires support from
the compiler, kernel and libc. Old Linux systems do
not support with __thread.
* This value is typically pre-configured and there is no
need to set it, unless you are trying to debug a problem.
* `--with-sigaltstack=yes,no`
* **Experimental**: Use at your own risk, it is known to
cause problems with garbage collection and is hard to
reproduce those bugs.
* This controls whether Mono will install a special
signal handler to handle stack overflows. If set to
`yes`, it will turn stack overflows into the
StackOverflowException. Otherwise when a stack
overflow happens, your program will receive a
segmentation fault.
* The configure script will try to detect if your
operating system supports this. Some older Linux
systems do not support this feature, or you might want
to override the auto-detection.
* `--with-static_mono=yes,no`
* This controls whether `mono` should link against a
static library (libmono.a) or a shared library
(libmono.so).
* This defaults to `yes`, and will improve the performance
of the `mono` program.
* This only affects the `mono' binary, the shared
library libmono.so will always be produced for
developers that want to embed the runtime in their
application.
* `--with-xen-opt=yes,no` - Optimize code for Xen virtualization.
* It makes Mono generate code which might be slightly
slower on average systems, but the resulting executable will run
faster under the Xen virtualization system.
* This defaults to `yes`.
* `--with-large-heap=yes,no` - Enable support for GC heaps larger than 3GB.
* This defaults to `no`.
* `--enable-small-config=yes,no` - Enable some tweaks to reduce memory usage
and disk footprint at the expense of some capabilities.
* Typically this means that the number of threads that can be created
is limited (256), that the maximum heap size is also reduced (256 MB)
and other such limitations that still make mono useful, but more suitable
to embedded devices (like mobile phones).
* This defaults to `no`.
* `--with-ikvm-native=yes,no` - Controls whether the IKVM JNI interface library is
built or not.
* This is used if you are planning on
using the IKVM Java Virtual machine with Mono.
* This defaults to `yes`.
* `--with-profile4=yes,no` - Whether you want to build the 4.x profile libraries
and runtime.
* This defaults to `yes`.
* `--with-moonlight=yes,no`
* Whether you want to generate the Silverlight/Moonlight
libraries and toolchain in addition to the default
(1.1 and 2.0 APIs).
* This will produce the `smcs` compiler which will reference
the Silverlight modified assemblies (mscorlib.dll,
System.dll, System.Code.dll and System.Xml.Core.dll) and turn
on the LINQ extensions for the compiler.
* `--with-moon-gc=boehm,sgen` - Select the GC to use for Moonlight.
* *boehm*:
Selects the Boehm Garbage Collector, with the same flags
as the regular Mono build. This is the default.
* *sgen*:
Selects the new SGen Garbage Collector, which provides
Generational GC support, using the same flags as the
mono-sgen build.
* This defaults to `boehm`.
* `--with-libgdiplus=installed,sibling,<path>` - Configure where Mono
searches for libgdiplus when running System.Drawing tests.
* It defaults to `installed`, which means that the
library is available to Mono through the regular
system setup.
* `sibling' can be used to specify that a libgdiplus
that resides as a sibling of this directory (mono)
should be used.
* Or you can specify a path to a libgdiplus.
* `--disable-shared-memory`
* Use this option to disable the use of shared memory in
Mono (this is equivalent to setting the MONO_DISABLE_SHM
environment variable, although this removes the feature
completely).
* Disabling the shared memory support will disable certain
features like cross-process named mutexes.
* `--enable-minimal=LIST`
* Use this feature to specify optional runtime
components that you might not want to include. This
is only useful for developers embedding Mono that
require a subset of Mono functionality.
* The list is a comma-separated list of components that
should be removed, these are:
* `aot`:
Disables support for the Ahead of Time compilation.
* `attach`:
Support for the Mono.Management assembly and the
VMAttach API (allowing code to be injected into
a target VM)
* `com`:
Disables COM support.
* `debug`:
Drop debugging support.
* `decimal`:
Disables support for System.Decimal.
* `full_messages`:
By default Mono comes with a full table
of messages for error codes. This feature
turns off uncommon error messages and reduces
the runtime size.
* `generics`:
Generics support. Disabling this will not
allow Mono to run any 2.0 libraries or
code that contains generics.
* `jit`:
Removes the JIT engine from the build, this reduces
the executable size, and requires that all code
executed by the virtual machine be compiled with
Full AOT before execution.
* `large_code`:
Disables support for large assemblies.
* `logging`:
Disables support for debug logging.
* `pinvoke`:
Support for Platform Invocation services,
disabling this will drop support for any
libraries using DllImport.
* `portability`:
Removes support for MONO_IOMAP, the environment
variables for simplifying porting applications that
are case-insensitive and that mix the Unix and Windows path separators.
* `profiler`:
Disables support for the default profiler.
* `reflection_emit`:
Drop System.Reflection.Emit support
* `reflection_emit_save`:
Drop support for saving dynamically created
assemblies (AssemblyBuilderAccess.Save) in
System.Reflection.Emit.
* `shadow_copy`:
Disables support for AppDomain's shadow copies
(you can disable this if you do not plan on
using appdomains).
* `simd`:
Disables support for the Mono.SIMD intrinsics
library.
* `ssa`:
Disables compilation for the SSA optimization
framework, and the various SSA-based optimizations.
* `--enable-llvm`
* `--enable-loadedllvm`
* This enables the use of LLVM as a code generation engine
for Mono. The LLVM code generator and optimizer will be
used instead of Mono's built-in code generator for both
Just in Time and Ahead of Time compilations.
* See the http://www.mono-project.com/Mono_LLVM for the
full details and up-to-date information on this feature.
* You will need to have an LLVM built that Mono can link
against.
* The --enable-loadedllvm variant will make the LLVM backend
into a runtime-loadable module instead of linking it directly
into the main mono binary.
* `--enable-big-arrays` - Enable use of arrays with indexes larger
than Int32.MaxValue.
* By default Mono has the same limitation as .NET on
Win32 and Win64 and limits array indexes to 32-bit
values (even on 64-bit systems).
* In certain scenarios where large arrays are required,
you can pass this flag and Mono will be built to
support 64-bit arrays.
* This is not the default as it breaks the C embedding
ABI that we have exposed through the Mono development
cycle.
* `--enable-parallel-mark`
* Use this option to enable the garbage collector to use
multiple CPUs to do its work. This helps performance
on multi-CPU machines as the work is divided across CPUS.
* This option is not currently the default as we have
not done much testing with Mono.
* `--enable-dtrace`
* On Solaris and MacOS X builds a version of the Mono
runtime that contains DTrace probes and can
participate in the system profiling using DTrace.
* `--disable-dev-random`
* Mono uses /dev/random to obtain good random data for
any source that requires random numbers. If your
system does not support this, you might want to
disable it.
* There are a number of runtime options to control this
also, see the man page.
* `--enable-nacl`
* This configures the Mono compiler to generate code
suitable to be used by Google's Native Client:
http://code.google.com/p/nativeclient/
* Currently this is used with Mono's AOT engine as
Native Client does not support JIT engines yet.
Using Mono
==========
Once you have installed the software, you can run a few programs:
* `mono program.exe` runtime engine
* `mcs program.cs` C# compiler
* `monodis program.exe` CIL Disassembler
See the man pages for mono(1), mint(1), monodis(1) and mcs(2)
for further details.
Directory Roadmap
=================
* `docs/` - Technical documents about the Mono runtime.
* `data/` - Configuration files installed as part of the Mono runtime.
* `mono/` - The core of the Mono Runtime.
* `metadata/` - The object system and metadata reader.
* `mini/` - The Just in Time Compiler.
* `dis/` - CIL executable Disassembler
* `cli/` - Common code for the JIT and the interpreter.
* `io-layer/` - The I/O layer and system abstraction for
emulating the .NET IO model.
* `cil/` - Common Intermediate Representation, XML
definition of the CIL bytecodes.
* `interp/` - Interpreter for CLI executables (obsolete).
* `arch/` - Architecture specific portions.
* `man/` - Manual pages for the various Mono commands and programs.
* `samples/` -Some simple sample programs on uses of the Mono
runtime as an embedded library.
* `scripts/` - Scripts used to invoke Mono and the corresponding program.
* `runtime/` - A directory that contains the Makefiles that link the
mono/ and mcs/ build systems.
* `../olive/`
* If the directory ../olive is present (as an
independent checkout) from the Mono module, that
directory is automatically configured to share the
same prefix than this module gets.
Git submodules maintenance
==========================
Read documentation at http://mono-project.com/Git_Submodule_Maintenance
Reporting bugs
==============
To submit bug reports, please use Xamarin's Bugzilla:
https://bugzilla.xamarin.com/
Please use the search facility to ensure the same bug hasn't already
been submitted and follow our guidelines on how to make a good bug
report:
http://mono-project.com/Bugs#How_to_make_a_good_bug_report
+2 -2
View File
@@ -23,13 +23,13 @@ if test x$GCC != xyes; then
fi
case $host in
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*)
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*|x86_64-apple-darwin*)
pic_options='-fPIC'
;;
?86-pc-cygwin*|i?86-pc-cygwin*)
pic_options='-DDLL_EXPORT'
;;
i?86-apple-darwin*)
i?86-apple-darwin*|arm-apple-darwin*)
pic_options='-fno-common'
;;
*)
+23 -2
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
# Run this to generate all the initial makefiles, etc.
# Ripped off from GNOME macros version
@@ -102,6 +102,27 @@ if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
fi
fi
#
# Plug in the extension module
#
has_ext_mod=false
for PARAM; do
if test "$PARAM" = "--enable-extension-module" ; then
has_ext_mod=true
fi
done
if test x$has_ext_mod = xtrue; then
pushd ../mono-extensions/scripts
sh ./prepare-repo.sh || exit 1
popd
else
cat mono/mini/Makefile.am.in > mono/mini/Makefile.am
cat mono/metadata/Makefile.am.in > mono/metadata/Makefile.am
fi
echo "Running aclocal -I m4 -I . $ACLOCAL_FLAGS ..."
aclocal -Wnone -I m4 -I . $ACLOCAL_FLAGS || {
echo
@@ -113,7 +134,7 @@ aclocal -Wnone -I m4 -I . $ACLOCAL_FLAGS || {
exit 1
}
if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
if grep "^AC_CONFIG_HEADERS" configure.in >/dev/null; then
echo "Running autoheader..."
autoheader || { echo "**Error**: autoheader failed."; exit 1; }
fi
+495 -201
View File
File diff suppressed because it is too large. Load diff
File renamed without changes.
File renamed without changes.
File renamed without changes.
+4 -4
View File
@@ -12,7 +12,7 @@ EXTRA_DIST = \
mono.pc.in mono-2.pc.in monosgen-2.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in \
mono-lineeditor.pc.in system.web.extensions_1.0.pc.in system.web.extensions.design_1.0.pc.in\
dtrace-prelink.sh mono.web.pc.in system.web.mvc.pc.in system.web.mvc2.pc.in system.web.mvc3.pc.in aspnetwebstack.pc.in \
dtrace-prelink.sh mono.web.pc.in system.web.mvc.pc.in system.web.mvc2.pc.in system.web.mvc3.pc.in aspnetwebstack.pc.in reactive.pc.in \
net_1_1/machine.config \
gdb/mono-gdb.py \
gdb/gdb-python.diff
@@ -28,17 +28,17 @@ endif
if JIT_SUPPORTED
if INTERP_SUPPORTED
pkgconfig_DATA= mono.pc mono-2.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc $(SGENPCFILE)
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc reactive.pc $(SGENPCFILE)
else
pkgconfig_DATA= mono.pc mono-2.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc $(SGENPCFILE)
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc reactive.pc $(SGENPCFILE)
endif
else
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc
endif
DISTCLEANFILES= mono-2.pc mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc $(SGENPCFILE) mono-sgen-gdb.py
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc reactive.pc $(SGENPCFILE) mono-sgen-gdb.py
mono_DATA = config \
browscap.ini
+2 -2
View File
@@ -26,6 +26,6 @@
<dllentry dll="__Internal" name="MoveMemory" target="mono_win32_compat_MoveMemory"/>
<dllentry dll="__Internal" name="ZeroMemory" target="mono_win32_compat_ZeroMemory"/>
</dllmap>
<dllmap dll="gdiplus" target="@prefix@/lib/libgdiplus@libsuffix@" />
<dllmap dll="gdiplus.dll" target="@prefix@/lib/libgdiplus@libsuffix@" />
<dllmap dll="gdiplus" target="@prefix@/lib/libgdiplus@libsuffix@" os="!windows"/>
<dllmap dll="gdiplus.dll" target="@prefix@/lib/libgdiplus@libsuffix@" os="!windows"/>
</configuration>
+1 -1
View File
@@ -6,4 +6,4 @@ includedir=${prefix}/include
Name: Mono.Cairo
Description: Cairo bindings for Mono
Version: @VERSION@
Libs: -r:${prefix}/lib/mono/2.0/Mono.Cairo.dll
Libs: -r:Mono.Cairo
+37
View File
@@ -19,6 +19,32 @@ provider mono {
probe gc__begin (int generation);
probe gc__end (int generation);
probe gc__requested (int generation, uintptr_t requested_size, int wait_to_finish);
probe gc__checkpoint__1 (int generation);
probe gc__checkpoint__2 (int generation);
probe gc__checkpoint__3 (int generation);
probe gc__checkpoint__4 (int generation);
probe gc__checkpoint__5 (int generation);
probe gc__checkpoint__6 (int generation);
probe gc__checkpoint__7 (int generation);
probe gc__checkpoint__8 (int generation);
probe gc__checkpoint__9 (int generation);
probe gc__concurrent__start__begin (int generation);
probe gc__concurrent__start__end (int generation, long long num_major_objects_marked);
probe gc__concurrent__update__finish__begin (int generation, long long num_major_objects_marked);
probe gc__concurrent__update__end (int generation, long long num_major_objects_marked);
probe gc__concurrent__finish__end (int generation, long long num_major_objects_marked);
probe gc__sweep__begin (int generation, int full_sweep);
probe gc__sweep__end (int generation, int full_sweep);
probe gc__world__stop__begin ();
probe gc__world__stop__end ();
probe gc__world__restart__begin (int generation);
probe gc__world__restart__end (int generation);
probe gc__heap__alloc (uintptr_t addr, uintptr_t len);
probe gc__heap__free (uintptr_t addr, uintptr_t len);
@@ -40,6 +66,17 @@ provider mono {
probe gc__major__swept (uintptr_t addr, uintptr_t len);
probe gc__obj__pinned (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name, int generation);
probe gc__finalize__enqueue (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name, int generation, int is_critical);
probe gc__finalize__invoke (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
probe gc__weak__update (uintptr_t ref_addr, uintptr_t old_addr, uintptr_t new_addr, uintptr_t size, char *ns_name, char *class_name, int track);
probe gc__global__remset__add (uintptr_t ref_addr, uintptr_t obj_addr, uintptr_t size, char *ns_name, char *class_name);
probe gc__obj__cemented (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
probe gc__internal__alloc (uintptr_t addr, uintptr_t size, int type);
probe gc__internal__dealloc (uintptr_t add, uintptr_t size, int type);
};
#pragma D attributes Evolving/Evolving/Common provider mono provider
+2 -2
View File
@@ -1,6 +1,6 @@
monodir = $(sysconfdir)/mono/2.0/Browsers
EXTRA_DIST = Compat.browser
EXTRA_DIST = ../../Browsers/Compat.browser
mono_DATA = Compat.browser
mono_DATA = ../../Browsers/Compat.browser
@@ -1,3 +1,2 @@
/Makefile
/Makefile.in
/.deps
+6
View File
@@ -0,0 +1,6 @@
monodir = $(sysconfdir)/mono/4.0/Browsers
EXTRA_DIST = ../../Browsers/Compat.browser
mono_DATA = ../../Browsers/Compat.browser
+1 -1
View File
@@ -1,4 +1,4 @@
SUBDIRS =
SUBDIRS = Browsers
monodir = $(sysconfdir)/mono/4.0
@@ -1,4 +1,2 @@
/Makefile.in
/Makefile
/.deps
/.cvsignore
/Makefile.in
+6
View File
@@ -0,0 +1,6 @@
monodir = $(sysconfdir)/mono/4.5/Browsers
EXTRA_DIST = ../../Browsers/Compat.browser
mono_DATA = ../../Browsers/Compat.browser
+1 -1
View File
@@ -1,4 +1,4 @@
SUBDIRS =
SUBDIRS = Browsers
monodir = $(sysconfdir)/mono/4.5
+4
View File
@@ -0,0 +1,4 @@
Name: Reactive Extensions
Description: Reactive Extensions
Version: @VERSION@
Libs: -r:@prefix@/lib/mono/4.5/System.Reactive.Interfaces.dll -r:@prefix@/lib/mono/4.5/System.Reactive.Core.dll -r:@prefix@/lib/mono/4.5/System.Reactive.Linq.dll -r:@prefix@/lib/mono/4.5/System.Reactive.PlatformServices.dll -r:@prefix@/lib/mono/4.5/System.Reactive.Providers.dll -r:@prefix@/lib/mono/4.5/System.Reactive.Debugger.dll -r:@prefix@/lib/mono/4.5/System.Reactive.Experimental.dll -r:@prefix@/lib/mono/4.5/System.Reactive.Runtime.Remoting.dll
+1
View File
@@ -307,6 +307,7 @@ mono_gc_out_of_memory
mono_gc_wbarrier_arrayref_copy
mono_gc_wbarrier_generic_nostore
mono_gc_wbarrier_generic_store
mono_gc_wbarrier_generic_store_atomic
mono_gc_wbarrier_object_copy
mono_gc_wbarrier_set_arrayref
mono_gc_wbarrier_set_field
+1
View File
@@ -307,6 +307,7 @@ mono_gc_out_of_memory
mono_gc_wbarrier_arrayref_copy
mono_gc_wbarrier_generic_nostore
mono_gc_wbarrier_generic_store
mono_gc_wbarrier_generic_store_atomic
mono_gc_wbarrier_object_copy
mono_gc_wbarrier_set_arrayref
mono_gc_wbarrier_set_field
+181 -181
View File
@@ -1,10 +1,10 @@
<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:monodoc="http://www.go-mono.org/xml/monodoc">
<head/>
<body>
<object type="text/site properties">
<param name="Auto Generated" value="No"/>
</object>
<head><title>Mono API</title></head>
<body>
<object type="text/site properties">
<param name="Auto Generated" value="No"/>
</object>
<ul>
<li>
<object type="text/sitemap">
@@ -12,182 +12,182 @@
<param name="Local" value="DoesNotExist"/>
</object>
</li>
<ul>
<li>
<object type="text/sitemap">
<param name="Name" value="Assemblies"/>
<param name="Local" value="deploy/mono-api-assembly.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Images"/>
<param name="Local" value="deploy/mono-api-image.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Objects"/>
<param name="Local" value="deploy/mono-api-object.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Strings"/>
<param name="Local" value="deploy/mono-api-string.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Methods"/>
<param name="Local" value="deploy/mono-api-methods.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Classes"/>
<param name="Local" value="deploy/mono-api-class.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Code Generation"/>
<param name="Local" value="deploy/mono-api-codegen.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Decimal Representation"/>
<param name="Local" value="deploy/mono-api-decimal.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Application Domains"/>
<param name="Local" value="deploy/mono-api-domains.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Dynamic Code Generation"/>
<param name="Local" value="deploy/mono-api-dynamic-codegen.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Exceptions"/>
<param name="Local" value="deploy/mono-api-exc.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="GC Handles"/>
<param name="Local" value="deploy/mono-api-gchandle.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Garbage Collection"/>
<param name="Local" value="deploy/mono-api-gc.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Embedding Mono"/>
<param name="Local" value="deploy/mono-api-embedding.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Just in Time Compiler"/>
<param name="Local" value="deploy/mono-api-jit.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Marshalling"/>
<param name="Local" value="deploy/mono-api-marshal.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Metadata access"/>
<param name="Local" value="deploy/mono-api-metadata.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Profiler"/>
<param name="Local" value="deploy/mono-api-profiler.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Reflection"/>
<param name="Local" value="deploy/mono-api-reflection.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Threading API"/>
<param name="Local" value="deploy/mono-api-threads.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Tracing"/>
<param name="Local" value="deploy/mono-api-trace.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="JIT Counters"/>
<param name="Local" value="deploy/mono-api-counters.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Types"/>
<param name="Local" value="deploy/mono-api-type.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Common Types"/>
<param name="Local" value="deploy/mono-api-types.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Security API calls"/>
<param name="Local" value="deploy/mono-api-security.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Portable Windows Layer"/>
<param name="Local" value="deploy/mono-api-wapi.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Debugging API"/>
<param name="Local" value="deploy/mono-api-debug.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Utility Functions"/>
<param name="Local" value="deploy/mono-api-utils.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Unsorted"/>
<param name="Local" value="deploy/mono-api-unsorted.html"/>
</object>
</li>
</ul>
<li>
<object type="text/sitemap">
<param name="Name" value="Assemblies"/>
<param name="Local" value="deploy/mono-api-assembly.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Images"/>
<param name="Local" value="deploy/mono-api-image.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Objects"/>
<param name="Local" value="deploy/mono-api-object.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Strings"/>
<param name="Local" value="deploy/mono-api-string.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Methods"/>
<param name="Local" value="deploy/mono-api-methods.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Classes"/>
<param name="Local" value="deploy/mono-api-class.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Code Generation"/>
<param name="Local" value="deploy/mono-api-codegen.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Decimal Representation"/>
<param name="Local" value="deploy/mono-api-decimal.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Application Domains"/>
<param name="Local" value="deploy/mono-api-domains.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Dynamic Code Generation"/>
<param name="Local" value="deploy/mono-api-dynamic-codegen.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Exceptions"/>
<param name="Local" value="deploy/mono-api-exc.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="GC Handles"/>
<param name="Local" value="deploy/mono-api-gchandle.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Garbage Collection"/>
<param name="Local" value="deploy/mono-api-gc.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Embedding Mono"/>
<param name="Local" value="deploy/mono-api-embedding.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Just in Time Compiler"/>
<param name="Local" value="deploy/mono-api-jit.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Marshalling"/>
<param name="Local" value="deploy/mono-api-marshal.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Metadata access"/>
<param name="Local" value="deploy/mono-api-metadata.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Profiler"/>
<param name="Local" value="deploy/mono-api-profiler.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Reflection"/>
<param name="Local" value="deploy/mono-api-reflection.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Threading API"/>
<param name="Local" value="deploy/mono-api-threads.html"/>
</object>
</li>
<!--
<li>
<object type="text/sitemap">
<param name="Name" value="Tracing"/>
<param name="Local" value="deploy/mono-api-trace.html"/>
</object>
</li>
-->
<li>
<object type="text/sitemap">
<param name="Name" value="JIT Counters"/>
<param name="Local" value="deploy/mono-api-counters.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Types"/>
<param name="Local" value="deploy/mono-api-type.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Common Types"/>
<param name="Local" value="deploy/mono-api-types.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Security API calls"/>
<param name="Local" value="deploy/mono-api-security.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Portable Windows Layer"/>
<param name="Local" value="deploy/mono-api-wapi.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Debugging API"/>
<param name="Local" value="deploy/mono-api-debug.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Utility Functions"/>
<param name="Local" value="deploy/mono-api-utils.html"/>
</object>
</li>
<li>
<object type="text/sitemap">
<param name="Name" value="Unsorted"/>
<param name="Local" value="deploy/mono-api-unsorted.html"/>
</object>
</li>
</ul>
</body>
</html>
+1 -1
View File
@@ -29,7 +29,7 @@ i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
?86-pc-cygwin*|i?86-pc-cygwin*)
pic_options='-DDLL_EXPORT'
;;
i?86-apple-darwin*)
i?86-apple-darwin*|arm-apple-darwin*)
pic_options='-fno-common'
;;
*)
+1 -1
View File
@@ -113,7 +113,7 @@ aclocal -I m4 $ACLOCAL_FLAGS || {
exit 1
}
if grep "^AM_CONFIG_HEADER" configure.ac >/dev/null; then
if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
echo "Running autoheader..."
autoheader || { echo "**Error**: autoheader failed."; exit 1; }
fi
+35 -2
View File
@@ -10,7 +10,7 @@ AC_CANONICAL_SYSTEM
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar no-dist-gzip foreign])
AM_CONFIG_HEADER([config.h])
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
@@ -100,6 +100,25 @@ i*86-*-darwin*)
;;
esac
target_osx=no
target_ios=no
if test "x$platform_darwin" = "xyes"; then
AC_TRY_COMPILE([#include "TargetConditionals.h"],[
#if TARGET_IPHONE_SIMULATOR == 1 || TARGET_OS_IPHONE == 1
#error fail this for ios
#endif
return 0;
], [
AC_DEFINE(TARGET_OSX,1,[The JIT/AOT targets OSX])
target_osx=yes
], [
AC_DEFINE(TARGET_IOS,1,[The JIT/AOT targets iOS])
target_ios=yes
])
AC_DEFINE(TARGET_MACH,1,[The JIT/AOT targets Apple platforms])
fi
AC_SUBST(ORDER)
AC_SUBST(CFLAGS)
AC_SUBST(PATHSEP)
@@ -115,7 +134,21 @@ AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
AC_CHECK_FUNCS(strndup strlcpy stpcpy getpwuid_r strtok_r rewinddir vasprintf)
AC_CHECK_FUNCS(strlcpy stpcpy strtok_r rewinddir vasprintf)
#
# Mono currently supports 10.6, but strndup is not available prior to 10.7; avoiding
# the detection of strndup on OS X so Mono built on 10.7+ still runs on 10.6. This can be
# removed once support for 10.6 is dropped.
#
# iOS detection of strndup and getpwuid_r is faulty for some reason so let's simply avoid it
#
if test x$target_osx = xyes; then
AC_CHECK_FUNCS(getpwuid_r)
elif test x$target_ios = xno; then
AC_CHECK_FUNCS(strndup getpwuid_r)
fi
AM_CONDITIONAL(NEED_VASPRINTF, test x$have_vasprintf = x )
AM_ICONV()
AC_SEARCH_LIBS(sqrtf, m)
-3
View File
@@ -37,9 +37,6 @@ typedef signed @GSIZE@ gssize;
#endif
#if defined (__native_client__)
#define sem_trywait(x) sem_wait(x)
#define sem_timedwait(x,y) sem_wait(x)
#define getdtablesize() (32768)
#undef G_BREAKPOINT
#define G_BREAKPOINT()
#endif
+10
View File
@@ -154,6 +154,15 @@ g_file_open_tmp (const gchar *tmpl, gchar **name_used, GError **error)
gchar *
g_get_current_dir (void)
{
#ifdef __native_client__
char *buffer;
if ((buffer = g_getenv("NACL_PWD"))) {
buffer = g_strdup(buffer);
} else {
buffer = g_strdup(".");
}
return buffer;
#else
int s = 32;
char *buffer = NULL, *r;
gboolean fail;
@@ -172,4 +181,5 @@ g_get_current_dir (void)
* so we return the buffer here since it has a pointer to the valid string
*/
return buffer;
#endif
}
+1
View File
@@ -61,6 +61,7 @@ int mkstemp (char *tmp_template)
fd = _wopen( utf16_template, _O_BINARY | _O_CREAT /*| _O_TEMPORARY*/ | _O_EXCL, _S_IREAD | _S_IWRITE);
}
/* FIXME: this will crash if utf16_template == NULL */
sprintf (tmp_template + strlen (tmp_template) - 6, "%S", utf16_template + wcslen (utf16_template) - 6);
g_free (utf16_template);
+68 -31
View File
@@ -34,6 +34,13 @@
#endif
#include <errno.h>
#ifdef _MSC_VER
#define FORCE_INLINE(RET_TYPE) __forceinline RET_TYPE
#else
#define FORCE_INLINE(RET_TYPE) inline RET_TYPE __attribute__((always_inline))
#endif
#define UNROLL_DECODE_UTF8 0
#define UNROLL_ENCODE_UTF8 0
@@ -61,7 +68,7 @@ static int encode_utf16be (gunichar c, char *outbuf, size_t outleft);
static int decode_utf16le (char *inbuf, size_t inleft, gunichar *outchar);
static int encode_utf16le (gunichar c, char *outbuf, size_t outleft);
static int decode_utf8 (char *inbuf, size_t inleft, gunichar *outchar);
static FORCE_INLINE (int) decode_utf8 (char *inbuf, size_t inleft, gunichar *outchar);
static int encode_utf8 (gunichar c, char *outbuf, size_t outleft);
static int decode_latin1 (char *inbuf, size_t inleft, gunichar *outchar);
@@ -167,14 +174,34 @@ gsize
g_iconv (GIConv cd, gchar **inbytes, gsize *inbytesleft,
gchar **outbytes, gsize *outbytesleft)
{
size_t inleft, outleft;
gsize inleft, outleft;
char *inptr, *outptr;
gunichar c;
int rc = 0;
#ifdef HAVE_ICONV
if (cd->cd != (iconv_t) -1)
return iconv (cd->cd, inbytes, inbytesleft, outbytes, outbytesleft);
if (cd->cd != (iconv_t) -1) {
/* Note: gsize may have a different size than size_t, so we need to
remap inbytesleft and outbytesleft to size_t's. */
size_t *outleftptr, *inleftptr;
size_t n_outleft, n_inleft;
if (inbytesleft) {
n_inleft = *inbytesleft;
inleftptr = &n_inleft;
} else {
inleftptr = NULL;
}
if (outbytesleft) {
n_outleft = *outbytesleft;
outleftptr = &n_outleft;
} else {
outleftptr = NULL;
}
return iconv (cd->cd, inbytes, inleftptr, outbytes, outleftptr);
}
#endif
if (outbytes == NULL || outbytesleft == NULL) {
@@ -480,7 +507,7 @@ encode_utf16le (gunichar c, char *outbuf, size_t outleft)
}
}
static int
static FORCE_INLINE (int)
decode_utf8 (char *inbuf, size_t inleft, gunichar *outchar)
{
unsigned char *inptr = (unsigned char *) inbuf;
@@ -633,7 +660,7 @@ gchar *
g_convert (const gchar *str, gssize len, const gchar *to_charset, const gchar *from_charset,
gsize *bytes_read, gsize *bytes_written, GError **err)
{
size_t outsize, outused, outleft, inleft, grow, rc;
gsize outsize, outused, outleft, inleft, grow, rc;
char *result, *outbuf, *inbuf;
gboolean flush = FALSE;
gboolean done = FALSE;
@@ -669,7 +696,7 @@ g_convert (const gchar *str, gssize len, const gchar *to_charset, const gchar *f
else
rc = g_iconv (cd, NULL, NULL, &outbuf, &outleft);
if (rc == (size_t) -1) {
if (rc == (gsize) -1) {
switch (errno) {
case E2BIG:
/* grow our result buffer */
@@ -828,7 +855,7 @@ g_unichar_to_utf8 (gunichar c, gchar *outbuf)
return n;
}
static int
static FORCE_INLINE (int)
g_unichar_to_utf16 (gunichar c, gunichar2 *outbuf)
{
gunichar c2;
@@ -894,7 +921,7 @@ eg_utf8_to_utf16_general (const gchar *str, glong len, glong *items_read, glong
size_t inleft;
char *inptr;
gunichar c;
int n;
int u, n;
g_return_val_if_fail (str != NULL, NULL);
@@ -903,6 +930,7 @@ eg_utf8_to_utf16_general (const gchar *str, glong len, glong *items_read, glong
g_set_error (err, G_CONVERT_ERROR, G_CONVERT_ERROR_FAILED, "Conversions with embedded nulls must pass the string length");
return NULL;
}
len = strlen (str);
}
@@ -910,29 +938,18 @@ eg_utf8_to_utf16_general (const gchar *str, glong len, glong *items_read, glong
inleft = len;
while (inleft > 0) {
if ((n = decode_utf8 (inptr, inleft, &c)) < 0) {
if (errno == EILSEQ) {
g_set_error (err, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
"Illegal byte sequence encounted in the input.");
} else if (items_read) {
/* partial input is ok if we can let our caller know... */
break;
} else {
g_set_error (err, G_CONVERT_ERROR, G_CONVERT_ERROR_PARTIAL_INPUT,
"Partial byte sequence encountered in the input.");
}
if (items_read)
*items_read = inptr - str;
if (items_written)
*items_written = 0;
return NULL;
} else if (c == 0 && !include_nuls)
if ((n = decode_utf8 (inptr, inleft, &c)) < 0)
goto error;
if (c == 0 && !include_nuls)
break;
outlen += g_unichar_to_utf16 (c, NULL);
if ((u = g_unichar_to_utf16 (c, NULL)) < 0) {
errno = EILSEQ;
goto error;
}
outlen += u;
inleft -= n;
inptr += n;
}
@@ -950,7 +967,8 @@ eg_utf8_to_utf16_general (const gchar *str, glong len, glong *items_read, glong
while (inleft > 0) {
if ((n = decode_utf8 (inptr, inleft, &c)) < 0)
break;
else if (c == 0 && !include_nuls)
if (c == 0 && !include_nuls)
break;
outptr += g_unichar_to_utf16 (c, outptr);
@@ -961,6 +979,25 @@ eg_utf8_to_utf16_general (const gchar *str, glong len, glong *items_read, glong
*outptr = '\0';
return outbuf;
error:
if (errno == EILSEQ) {
g_set_error (err, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
"Illegal byte sequence encounted in the input.");
} else if (items_read) {
/* partial input is ok if we can let our caller know... */
} else {
g_set_error (err, G_CONVERT_ERROR, G_CONVERT_ERROR_PARTIAL_INPUT,
"Partial byte sequence encountered in the input.");
}
if (items_read)
*items_read = inptr - str;
if (items_written)
*items_written = 0;
return NULL;
}
gunichar2 *
+3 -39
View File
@@ -28,46 +28,12 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <config.h>
#include <glib.h>
#include <gmodule.h>
#if defined(__native_client__)
GModule *
g_module_open (const gchar *file, GModuleFlags flags)
{
printf("dlopen() not supported on Native Client.\n");
return NULL;
}
gboolean
g_module_symbol (GModule *module, const gchar *symbol_name, gpointer *symbol)
{
return FALSE;
}
const gchar*
g_module_error(void)
{
return "dlopen not supported on Native Client.";
}
gboolean
g_module_close (GModule *module)
{
return FALSE;
}
gchar*
g_module_build_path (const gchar *directory, const gchar *module_name)
{
return NULL;
}
#else
#ifdef G_OS_UNIX
#if defined(G_OS_UNIX) && defined(HAVE_DLFCN_H)
#include <dlfcn.h>
/* For Linux and Solaris, need to add others as we port this */
@@ -322,5 +288,3 @@ g_module_build_path (const gchar *directory, const gchar *module_name)
return g_strdup_printf ("%s%s" LIBSUFFIX, lib_prefix, module_name);
}
#endif /* __native_client__ */
+1
View File
@@ -141,6 +141,7 @@ g_module_error (void)
TCHAR* buf = NULL;
DWORD code = GetLastError ();
/* FIXME: buf must not be NULL! */
FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER, NULL,
code, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), buf, 0, NULL);
+14 -1
View File
@@ -147,11 +147,24 @@ g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format,
if (vasprintf (&msg, format, args) < 0)
return;
#ifdef G_OS_WIN32
printf ("%s%s%s\n",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
msg);
#else
#if MONOTOUCH
FILE *target = stderr;
#else
FILE *target = stdout;
#endif
fprintf (target, "%s%s%s\n",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
msg);
#endif
free (msg);
if (log_level & fatal){
fflush (stdout);
+1 -2
View File
@@ -235,9 +235,8 @@ g_string_truncate (GString *string, gsize len)
g_return_val_if_fail (string != NULL, string);
/* Silent return */
if (len < 0 || len >= string->len) {
if (len >= string->len)
return string;
}
string->len = len;
string->str[len] = 0;
+1 -1
+1 -1
Vendored
+1 -1
Submodule external/rx updated: 7c59a20c72...17e8477b2c.
+5
View File
@@ -95,6 +95,11 @@
JNIEXPORT int JNICALL ikvm_msync(void* address, jint size)
{
#if defined(__native_client__) && defined(USE_NEWLIB)
g_assert_not_reached ();
return -1;
#else
return msync(address, size, MS_SYNC);
#endif
}
#endif
+1 -1
View File
@@ -29,7 +29,7 @@ i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
?86-pc-cygwin*|i?86-pc-cygwin*)
pic_options='-DDLL_EXPORT'
;;
i?86-apple-darwin*)
i?86-apple-darwin*|arm-apple-darwin*)
pic_options='-fno-common'
;;
*)
+1 -1
View File
@@ -969,7 +969,7 @@ word n;
}
# endif
expansion_slop = WORDS_TO_BYTES(min_words_allocd()) + 4*MAXHINCR*HBLKSIZE;
if (GC_last_heap_addr == 0 && !((word)space & SIGNB)
if ((GC_last_heap_addr == 0 && !((word)space & SIGNB))
|| (GC_last_heap_addr != 0 && GC_last_heap_addr < (ptr_t)space)) {
/* Assume the heap is growing up */
GC_greatest_plausible_heap_addr =
+1 -1
View File
@@ -99,7 +99,7 @@ aclocal $ACLOCAL_FLAGS || {
exit 1
}
if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
if grep "^AC_CONFIG_HEADERS" configure.in >/dev/null; then
echo "Running autoheader..."
autoheader || { echo "**Error**: autoheader failed."; exit 1; }
fi
+16
View File
@@ -217,6 +217,22 @@ case "$host" in
esac
AM_CONDITIONAL(POWERPC_DARWIN,test x$powerpc_darwin = xtrue)
# Check if the GCC builtin __sync_bool_compare_and_swap is available.
# It is preferred in gc_locks.h for PPC as GCC 4.4 has a problem with the inline assembly there.
AC_MSG_CHECKING(for __sync_bool_compare_and_swap)
AC_TRY_COMPILE([],[
volatile unsigned int foo = 0;
int main(int argc, char** argv) {
unsigned int r1 = __sync_bool_compare_and_swap(&foo, 0, 1);
return 0;
}
], [
AC_MSG_RESULT(yes)
AC_DEFINE(HAS___SYNC_BOOL_COMPARE_AND_SWAP)
], [
AC_MSG_RESULT(no)
])
AC_MSG_CHECKING(for xlc)
AC_TRY_COMPILE([],[
#ifndef __xlC__
+5 -5
View File
@@ -26,7 +26,7 @@
* None of this is safe with dlclose and incremental collection.
* But then not much of anything is safe in the presence of dlclose.
*/
#if defined(__linux__) && !defined(_GNU_SOURCE)
#if (defined(__linux__) || defined(__native_client__)) && !defined(_GNU_SOURCE)
/* Can't test LINUX, since this must be define before other includes */
# define _GNU_SOURCE
#endif
@@ -54,7 +54,7 @@
#if !defined(SUNOS4) && !defined(SUNOS5DL) && !defined(IRIX5) && \
!defined(MSWIN32) && !defined(MSWINCE) && \
!(defined(ALPHA) && defined(OSF1)) && \
!defined(HPUX) && !(defined(LINUX) && defined(__ELF__)) && \
!defined(HPUX) && !((defined(LINUX) || defined(NACL)) && defined(__ELF__)) && \
!defined(RS6000) && !defined(SCO_ELF) && !defined(DGUX) && \
!(defined(FREEBSD) && defined(__ELF__)) && \
!(defined(OPENBSD) && (defined(__ELF__) || defined(M68K))) && \
@@ -91,7 +91,7 @@
# define ELFSIZE ARCH_ELFSIZE
#endif
#if defined(LINUX) && defined(__ELF__) || defined(SCO_ELF) || \
#if (defined(LINUX) || defined(NACL)) && defined(__ELF__) || defined(SCO_ELF) || \
(defined(FREEBSD) && defined(__ELF__)) || defined(DGUX) || \
(defined(OPENBSD) && defined(__ELF__)) || \
(defined(NETBSD) && defined(__ELF__)) || defined(HURD)
@@ -297,7 +297,7 @@ void GC_register_dynamic_libraries()
# endif /* !USE_PROC ... */
# endif /* SUNOS */
#if defined(LINUX) && defined(__ELF__) || defined(SCO_ELF) || \
#if (defined(LINUX) || defined(NACL)) && defined(__ELF__) || defined(SCO_ELF) || \
(defined(FREEBSD) && defined(__ELF__)) || defined(DGUX) || \
(defined(OPENBSD) && defined(__ELF__)) || \
(defined(NETBSD) && defined(__ELF__)) || defined(HURD)
@@ -394,7 +394,7 @@ GC_bool GC_register_main_static_data()
/* For glibc 2.2.4+. Unfortunately, it doesn't work for older */
/* versions. Thanks to Jakub Jelinek for most of the code. */
# if defined(LINUX) /* Are others OK here, too? */ \
# if (defined(LINUX) || defined(NACL)) /* Are others OK here, too? */ \
&& (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
|| (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
+162 -69
View File
@@ -46,7 +46,7 @@ struct hash_chain_entry {
unsigned GC_finalization_failures = 0;
/* Number of finalization requests that failed for lack of memory. */
static struct disappearing_link {
struct disappearing_link {
struct hash_chain_entry prolog;
# define dl_hidden_link prolog.hidden_key
/* Field to be cleared. */
@@ -54,15 +54,23 @@ static struct disappearing_link {
# define dl_set_next(x,y) (x) -> prolog.next = (struct hash_chain_entry *)(y)
word dl_hidden_obj; /* Pointer to object base */
} **dl_head = 0;
};
static signed_word log_dl_table_size = -1;
/* Binary log of */
/* current size of array pointed to by dl_head. */
/* -1 ==> size is 0. */
struct dl_hashtbl_s {
struct disappearing_link **head;
signed_word log_size;
word entries;
};
/* Forward decls. */
static int GC_register_disappearing_link_inner(struct dl_hashtbl_s *dl_hashtbl, GC_PTR * link, GC_PTR obj);
static int GC_unregister_disappearing_link_inner(struct dl_hashtbl_s *dl_hashtbl, GC_PTR * link);
static struct dl_hashtbl_s GC_dl_hashtbl = {
/* head */ NULL, /* log_size */ -1, /* entries */ 0 };
static struct dl_hashtbl_s GC_ll_hashtbl = { NULL, -1, 0 };
word GC_dl_entries = 0; /* Number of entries currently in disappearing */
/* link table. */
static struct finalizable_object {
struct hash_chain_entry prolog;
@@ -87,7 +95,10 @@ word GC_fo_entries = 0;
void GC_push_finalizer_structures GC_PROTO((void))
{
GC_push_all((ptr_t)(&dl_head), (ptr_t)(&dl_head) + sizeof(word));
GC_push_all((ptr_t)(&GC_ll_hashtbl.head),
(ptr_t)(&GC_ll_hashtbl.head) + sizeof(word));
GC_push_all((ptr_t)(&GC_dl_hashtbl.head),
(ptr_t)(&GC_dl_hashtbl.head) + sizeof(word));
GC_push_all((ptr_t)(&fo_head), (ptr_t)(&fo_head) + sizeof(word));
GC_push_all((ptr_t)(&GC_finalize_now),
(ptr_t)(&GC_finalize_now) + sizeof(word));
@@ -158,7 +169,19 @@ signed_word * log_size_ptr;
GC_PTR * link;
GC_PTR obj;
# endif
{
return GC_register_disappearing_link_inner(&GC_dl_hashtbl, link, obj);
}
# if defined(__STDC__) || defined(__cplusplus)
static int GC_register_disappearing_link_inner(struct dl_hashtbl_s *dl_hashtbl, GC_PTR * link,
GC_PTR obj)
# else
static int GC_register_disappearing_link_inner(dl_hashtbl, link, obj)
struct dl_hashtbl_s *dl_hashtbl
GC_PTR * link;
GC_PTR obj;
# endif
{
struct disappearing_link *curr_dl;
int index;
@@ -171,26 +194,26 @@ signed_word * log_size_ptr;
DISABLE_SIGNALS();
LOCK();
# endif
if (log_dl_table_size == -1
|| GC_dl_entries > ((word)1 << log_dl_table_size)) {
if (dl_hashtbl -> log_size == -1
|| dl_hashtbl -> entries > ((word)1 << dl_hashtbl -> log_size)) {
# ifndef THREADS
DISABLE_SIGNALS();
# endif
GC_grow_table((struct hash_chain_entry ***)(&dl_head),
&log_dl_table_size);
GC_grow_table((struct hash_chain_entry ***)(&dl_hashtbl -> head),
&dl_hashtbl -> log_size);
# ifdef CONDPRINT
if (GC_print_stats) {
GC_printf1("Grew dl table to %lu entries\n",
(unsigned long)(1 << log_dl_table_size));
(unsigned long)(1 << dl_hashtbl -> log_size));
}
# endif
# ifndef THREADS
ENABLE_SIGNALS();
# endif
}
index = HASH2(link, log_dl_table_size);
curr_dl = dl_head[index];
for (curr_dl = dl_head[index]; curr_dl != 0; curr_dl = dl_next(curr_dl)) {
index = HASH2(link, dl_hashtbl -> log_size);
curr_dl = dl_hashtbl -> head[index];
for (curr_dl = dl_hashtbl -> head[index]; curr_dl != 0; curr_dl = dl_next(curr_dl)) {
if (curr_dl -> dl_hidden_link == HIDE_POINTER(link)) {
curr_dl -> dl_hidden_obj = HIDE_POINTER(obj);
# ifdef THREADS
@@ -221,9 +244,9 @@ signed_word * log_size_ptr;
}
new_dl -> dl_hidden_obj = HIDE_POINTER(obj);
new_dl -> dl_hidden_link = HIDE_POINTER(link);
dl_set_next(new_dl, dl_head[index]);
dl_head[index] = new_dl;
GC_dl_entries++;
dl_set_next(new_dl, dl_hashtbl -> head[index]);
dl_hashtbl -> head[index] = new_dl;
dl_hashtbl -> entries++;
# ifdef THREADS
UNLOCK();
ENABLE_SIGNALS();
@@ -237,6 +260,17 @@ signed_word * log_size_ptr;
int GC_unregister_disappearing_link(link)
GC_PTR * link;
# endif
{
return GC_unregister_disappearing_link_inner(&GC_dl_hashtbl, link);
}
# if defined(__STDC__) || defined(__cplusplus)
static int GC_unregister_disappearing_link_inner(struct dl_hashtbl_s *dl_hashtbl, GC_PTR * link)
# else
static int GC_unregister_disappearing_link_inner(dl_hashtbl, link)
struct dl_hashtbl_s *dl_hashtbl;
GC_PTR * link;
# endif
{
struct disappearing_link *curr_dl, *prev_dl;
int index;
@@ -244,17 +278,17 @@ signed_word * log_size_ptr;
DISABLE_SIGNALS();
LOCK();
index = HASH2(link, log_dl_table_size);
index = HASH2(link, dl_hashtbl->log_size);
if (((unsigned long)link & (ALIGNMENT-1))) goto out;
prev_dl = 0; curr_dl = dl_head[index];
prev_dl = 0; curr_dl = dl_hashtbl -> head[index];
while (curr_dl != 0) {
if (curr_dl -> dl_hidden_link == HIDE_POINTER(link)) {
if (prev_dl == 0) {
dl_head[index] = dl_next(curr_dl);
dl_hashtbl -> head[index] = dl_next(curr_dl);
} else {
dl_set_next(prev_dl, dl_next(curr_dl));
}
GC_dl_entries--;
dl_hashtbl -> entries--;
UNLOCK();
ENABLE_SIGNALS();
# ifdef DBG_HDRS_ALL
@@ -273,6 +307,28 @@ out:
return(0);
}
# if defined(__STDC__) || defined(__cplusplus)
int GC_register_long_link(GC_PTR * link, GC_PTR obj)
# else
int GC_register_long_link(link, obj)
GC_PTR * link;
GC_PTR obj;
# endif
{
return GC_register_disappearing_link_inner(&GC_ll_hashtbl, link, obj);
}
# if defined(__STDC__) || defined(__cplusplus)
int GC_unregister_long_link(GC_PTR * link)
# else
int GC_unregister_long_link(link)
GC_PTR * link;
# endif
{
return GC_unregister_disappearing_link_inner(&GC_ll_hashtbl, link);
}
/* Possible finalization_marker procedures. Note that mark stack */
/* overflow is handled by the caller, and is not a disaster. */
GC_API void GC_normal_finalize_mark_proc(p)
@@ -512,23 +568,37 @@ finalization_mark_proc * mp;
}
#ifndef NO_DEBUGGING
static void GC_dump_finalization_links(struct dl_hashtbl_s *dl_hashtbl)
{
struct disappearing_link *curr_dl;
ptr_t real_ptr, real_link;
size_t dl_size = dl_hashtbl->log_size == -1 ? 0 :
1 << dl_hashtbl->log_size;
int i;
for (i = 0; i < dl_size; i++) {
for (curr_dl = dl_hashtbl -> head[i]; curr_dl != 0;
curr_dl = dl_next(curr_dl)) {
real_ptr = (ptr_t)REVEAL_POINTER(curr_dl -> dl_hidden_obj);
real_link = (ptr_t)REVEAL_POINTER(curr_dl -> dl_hidden_link);
GC_printf2("Object: %lx, link: %lx\n", real_ptr, real_link);
}
}
}
void GC_dump_finalization()
{
struct disappearing_link * curr_dl;
struct finalizable_object * curr_fo;
ptr_t real_ptr, real_link;
int dl_size = (log_dl_table_size == -1 ) ? 0 : (1 << log_dl_table_size);
ptr_t real_ptr;
int fo_size = (log_fo_table_size == -1 ) ? 0 : (1 << log_fo_table_size);
int i;
GC_printf0("Disappearing links:\n");
for (i = 0; i < dl_size; i++) {
for (curr_dl = dl_head[i]; curr_dl != 0; curr_dl = dl_next(curr_dl)) {
real_ptr = (ptr_t)REVEAL_POINTER(curr_dl -> dl_hidden_obj);
real_link = (ptr_t)REVEAL_POINTER(curr_dl -> dl_hidden_link);
GC_printf2("Object: 0x%lx, Link:0x%lx\n", real_ptr, real_link);
}
}
GC_printf0("Disappearing (short) links:\n");
GC_dump_finalization_links(&GC_dl_hashtbl);
GC_printf0("Disappearing long links:\n");
GC_dump_finalization_links(&GC_ll_hashtbl);
GC_printf0("Finalizers:\n");
for (i = 0; i < fo_size; i++) {
for (curr_fo = fo_head[i]; curr_fo != 0; curr_fo = fo_next(curr_fo)) {
@@ -539,20 +609,15 @@ void GC_dump_finalization()
}
#endif
/* Called with world stopped. Cause disappearing links to disappear, */
/* and invoke finalizers. */
void GC_finalize()
static void GC_make_disappearing_links_disappear(struct dl_hashtbl_s *dl_hashtbl)
{
struct disappearing_link * curr_dl, * prev_dl, * next_dl;
struct finalizable_object * curr_fo, * prev_fo, * next_fo;
ptr_t real_ptr, real_link;
register int i;
int dl_size = (log_dl_table_size == -1 ) ? 0 : (1 << log_dl_table_size);
int fo_size = (log_fo_table_size == -1 ) ? 0 : (1 << log_fo_table_size);
/* Make disappearing links disappear */
int dl_size = (dl_hashtbl -> log_size == -1 ) ? 0 : (1 << dl_hashtbl -> log_size);
for (i = 0; i < dl_size; i++) {
curr_dl = dl_head[i];
curr_dl = dl_hashtbl -> head[i];
prev_dl = 0;
while (curr_dl != 0) {
real_ptr = (ptr_t)REVEAL_POINTER(curr_dl -> dl_hidden_obj);
@@ -561,12 +626,12 @@ void GC_finalize()
*(word *)real_link = 0;
next_dl = dl_next(curr_dl);
if (prev_dl == 0) {
dl_head[i] = next_dl;
dl_hashtbl -> head[i] = next_dl;
} else {
dl_set_next(prev_dl, next_dl);
}
GC_clear_mark_bit((ptr_t)curr_dl);
GC_dl_entries--;
dl_hashtbl -> entries--;
curr_dl = next_dl;
} else {
prev_dl = curr_dl;
@@ -574,6 +639,50 @@ void GC_finalize()
}
}
}
}
static void GC_remove_dangling_disappearing_links(struct dl_hashtbl_s *dl_hashtbl)
{
struct disappearing_link * curr_dl, * prev_dl, * next_dl;
ptr_t real_ptr, real_link;
register int i;
int dl_size = (dl_hashtbl -> log_size == -1 ) ? 0 : (1 << dl_hashtbl -> log_size);
for (i = 0; i < dl_size; i++) {
curr_dl = dl_hashtbl -> head[i];
prev_dl = 0;
while (curr_dl != 0) {
real_link = GC_base((ptr_t)REVEAL_POINTER(curr_dl -> dl_hidden_link));
if (real_link != 0 && !GC_is_marked(real_link)) {
next_dl = dl_next(curr_dl);
if (prev_dl == 0) {
dl_hashtbl -> head[i] = next_dl;
} else {
dl_set_next(prev_dl, next_dl);
}
GC_clear_mark_bit((ptr_t)curr_dl);
dl_hashtbl -> entries--;
curr_dl = next_dl;
} else {
prev_dl = curr_dl;
curr_dl = dl_next(curr_dl);
}
}
}
}
/* Called with world stopped. Cause disappearing links to disappear, */
/* and invoke finalizers. */
void GC_finalize()
{
struct finalizable_object * curr_fo, * prev_fo, * next_fo;
ptr_t real_ptr;
register int i;
int fo_size = (log_fo_table_size == -1 ) ? 0 : (1 << log_fo_table_size);
/* Make non-tracking disappearing links disappear */
GC_make_disappearing_links_disappear(&GC_dl_hashtbl);
/* Mark all objects reachable via chains of 1 or more pointers */
/* from finalizable objects. */
GC_ASSERT(GC_mark_state == MS_NONE);
@@ -644,27 +753,11 @@ void GC_finalize()
}
/* Remove dangling disappearing links. */
for (i = 0; i < dl_size; i++) {
curr_dl = dl_head[i];
prev_dl = 0;
while (curr_dl != 0) {
real_link = GC_base((ptr_t)REVEAL_POINTER(curr_dl -> dl_hidden_link));
if (real_link != 0 && !GC_is_marked(real_link)) {
next_dl = dl_next(curr_dl);
if (prev_dl == 0) {
dl_head[i] = next_dl;
} else {
dl_set_next(prev_dl, next_dl);
}
GC_clear_mark_bit((ptr_t)curr_dl);
GC_dl_entries--;
curr_dl = next_dl;
} else {
prev_dl = curr_dl;
curr_dl = dl_next(curr_dl);
}
}
}
GC_remove_dangling_disappearing_links(&GC_dl_hashtbl);
/* Make long links disappear and remove dangling ones. */
GC_make_disappearing_links_disappear(&GC_ll_hashtbl);
GC_remove_dangling_disappearing_links(&GC_ll_hashtbl);
}
#ifndef JAVA_FINALIZATION_NOT_NEEDED
@@ -889,8 +982,8 @@ void GC_print_finalization_stats()
struct finalizable_object *fo = GC_finalize_now;
size_t ready = 0;
GC_printf2("%lu finalization table entries; %lu disappearing links\n",
GC_fo_entries, GC_dl_entries);
GC_printf3("%lu finalization table entries; %lu/%lu short/long disappearing links alive\n",
GC_fo_entries, (unsigned long)GC_dl_hashtbl.entries, (unsigned long)GC_ll_hashtbl.entries);
for (; 0 != fo; fo = fo_next(fo)) ++ready;
GC_printf1("%lu objects are eligible for immediate finalization\n", ready);
}
+8
View File
@@ -61,6 +61,7 @@
/* Win64 isn't really supported yet, but this is the first step. And */
/* it might cause error messages to show up in more plausible places. */
/* This needs basetsd.h, which is included by windows.h. */
#include <stdint.h>
typedef unsigned __int64 GC_word;
typedef __int64 GC_signed_word;
#endif
@@ -600,6 +601,8 @@ GC_API GC_PTR GC_debug_realloc_replacement
# define GC_END_STUBBORN_CHANGE(p) GC_debug_end_stubborn_change(p)
# define GC_GENERAL_REGISTER_DISAPPEARING_LINK(link, obj) \
GC_general_register_disappearing_link(link, GC_base(obj))
# define GC_REGISTER_LONG_LINK(link, obj) \
GC_register_long_link(link, GC_base(obj))
# define GC_REGISTER_DISPLACEMENT(n) GC_debug_register_displacement(n)
# else
# define GC_MALLOC(sz) GC_malloc(sz)
@@ -622,6 +625,8 @@ GC_API GC_PTR GC_debug_realloc_replacement
# define GC_END_STUBBORN_CHANGE(p) GC_end_stubborn_change(p)
# define GC_GENERAL_REGISTER_DISAPPEARING_LINK(link, obj) \
GC_general_register_disappearing_link(link, obj)
# define GC_REGISTER_LONG_LINK(link, obj) \
GC_register_long_link(link, obj)
# define GC_REGISTER_DISPLACEMENT(n) GC_register_displacement(n)
# endif
/* The following are included because they are often convenient, and */
@@ -761,6 +766,9 @@ GC_API int GC_unregister_disappearing_link GC_PROTO((GC_PTR * /* link */));
/* Undoes a registration by either of the above two */
/* routines. */
GC_API int GC_register_long_link GC_PROTO((GC_PTR * /* link */, GC_PTR obj));
GC_API int GC_unregister_long_link GC_PROTO((GC_PTR * /* link */));
/* Returns !=0 if GC_invoke_finalizers has something to do. */
GC_API int GC_should_invoke_finalizers GC_PROTO((void));
+20 -28
View File
@@ -223,41 +223,25 @@
# define GC_CLEAR_DEFINED
# endif /* ALPHA */
# ifdef ARM32
# ifdef __native_client__
# define MASK_REGISTER(reg, cond) "bic" cond " " reg ", " reg ", #0xc0000000\n"
# define NACL_ALIGN() ".align 4\n"
# else
# define MASK_REGISTER(reg, cond)
# define NACL_ALIGN()
# endif
inline static int GC_test_and_set(volatile unsigned int *addr) {
#if defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7__)
int ret, tmp;
__asm__ __volatile__ (
"1:\n"
"ldrex %0, [%3]\n"
"strex %1, %2, [%3]\n"
"teq %1, #0\n"
"bne 1b\n"
: "=&r" (ret), "=&r" (tmp)
: "r" (1), "r" (addr)
: "memory", "cc");
return ret;
#else
int oldval;
/* SWP on ARM is very similar to XCHG on x86. Doesn't lock the
* bus because there are no SMP ARM machines. If/when there are,
* this code will likely need to be updated. */
/* See linuxthreads/sysdeps/arm/pt-machine.h in glibc-2.1 */
__asm__ __volatile__("swp %0, %1, [%2]"
: "=&r"(oldval)
: "r"(1), "r"(addr)
: "memory");
return oldval;
#endif
return (int) __sync_lock_test_and_set (addr, 1);
}
# define GC_TEST_AND_SET_DEFINED
inline static void GC_clear(volatile unsigned int *addr) {
#ifdef HAVE_ARMV6
/* Memory barrier */
__asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" : : "r" (0) : "memory");
#endif
__sync_synchronize ();
*(addr) = 0;
}
# define GC_CLEAR_DEFINED
# undef NACL_ALIGN
# undef MASK_REGISTER
# endif /* ARM32 */
# ifdef CRIS
inline static int GC_test_and_set(volatile unsigned int *addr) {
@@ -475,6 +459,9 @@
inline static GC_bool GC_compare_and_exchange(volatile GC_word *addr,
GC_word old, GC_word new_val)
{
# if HAS___SYNC_BOOL_COMPARE_AND_SWAP
return __sync_bool_compare_and_swap(addr, old, new_val);
# else
unsigned long result, dummy;
__asm__ __volatile__(
"1:\tldarx %0,0,%5\n"
@@ -491,12 +478,16 @@
: "r" (new_val), "r" (old), "2"(addr)
: "cr0","memory");
return (GC_bool) result;
# endif
}
# else
/* Returns TRUE if the comparison succeeded. */
inline static GC_bool GC_compare_and_exchange(volatile GC_word *addr,
GC_word old, GC_word new_val)
{
# if HAS___SYNC_BOOL_COMPARE_AND_SWAP
return __sync_bool_compare_and_swap(addr, old, new_val);
# else
int result, dummy;
__asm__ __volatile__(
"1:\tlwarx %0,0,%5\n"
@@ -513,6 +504,7 @@
: "r" (new_val), "r" (old), "2"(addr)
: "cr0","memory");
return (GC_bool) result;
# endif
}
# endif
# endif /* !GENERIC_COMPARE_AND_SWAP */
+43 -36
View File
@@ -67,12 +67,18 @@
/* Determine the machine type: */
# if defined(__native_client__)
# define NACL
# define I386
# define mach_type_known
# if !defined(__portable_native_client__) && !defined(__arm__)
# define I386
# define mach_type_known
# else
/* Here we will rely upon arch-specific defines. */
# endif
# endif
# if defined(__arm__) || defined(__thumb__)
# define ARM32
# if !defined(LINUX) && !defined(NETBSD) && !defined(DARWIN)
# if defined(NACL)
# define mach_type_known
# elif !defined(LINUX) && !defined(NETBSD) && !defined(DARWIN)
# define NOSYS
# define mach_type_known
# endif
@@ -928,6 +934,30 @@
# endif
# endif
# ifdef NACL
# define OS_TYPE "NACL"
# if defined(__GLIBC__)
# define DYNAMIC_LOADING
# endif
# define DATASTART ((ptr_t)0x10020000)
extern int _end[];
# define DATAEND (_end)
# ifdef STACK_GRAN
# undef STACK_GRAN
# endif /* STACK_GRAN */
# define STACK_GRAN 0x10000
# define HEURISTIC1
# define USE_MMAP
# define USE_MUNMAP
# define USE_MMAP_ANON
# ifdef USE_MMAP_FIXED
# undef USE_MMAP_FIXED
# endif
# define GETPAGESIZE() 65536
# define MAX_NACL_GC_THREADS 1024
# endif
# ifdef VAX
# define MACH_TYPE "VAX"
# define ALIGNMENT 4 /* Pointers are longword aligned by 4.2 C compiler */
@@ -1204,33 +1234,6 @@
# define HEAP_START DATAEND
# endif /* USE_MMAP */
# endif /* DGUX */
# ifdef NACL
# define OS_TYPE "NACL"
extern int etext[];
//# define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff))
# define DATASTART ((ptr_t)0x10000000)
extern int _end[];
# define DATAEND (_end)
# ifdef STACK_GRAN
# undef STACK_GRAN
# endif /* STACK_GRAN */
# define STACK_GRAN 0x10000
# define HEURISTIC1
# ifdef USE_MMAP
# undef USE_MMAP
# endif
# ifdef USE_MUNMAP
# undef USE_MUNMAP
# endif
# ifdef USE_MMAP_ANON
# undef USE_MMAP_ANON
# endif
# ifdef USE_MMAP_FIXED
# undef USE_MMAP_FIXED
# endif
# define GETPAGESIZE() 65536
# define MAX_NACL_GC_THREADS 1024
# endif
# ifdef LINUX
# ifndef __GNUC__
/* The Intel compiler doesn't like inline assembly */
@@ -1908,12 +1911,12 @@
# define OS_TYPE "LINUX"
# define LINUX_STACKBOTTOM
# define DYNAMIC_LOADING
extern int __data_start[];
extern int __data_start[] __attribute__((weak));
# define DATASTART ((ptr_t)(__data_start))
extern int _end[];
# define DATAEND (_end)
# define CACHE_LINE_SIZE 256
# define GETPAGESIZE() 4096
extern int _end[] __attribute__((weak));
# define DATAEND (_end)
# define CACHE_LINE_SIZE 256
# define GETPAGESIZE() 4096
# endif
# endif
@@ -1925,8 +1928,12 @@
# endif
# ifdef ARM32
# define CPP_WORDSZ 32
# if defined( NACL )
# define MACH_TYPE "NACL"
# else
# define MACH_TYPE "ARM32"
# endif
# define CPP_WORDSZ 32
# define ALIGNMENT 4
# ifdef NETBSD
# define OS_TYPE "NETBSD"
@@ -13,7 +13,12 @@ struct thread_stop_info {
/* the instrumented function uses any callee saved registers, they may */
/* be pushed to the stack much earlier. Also, on amd64 'push' puts 8 */
/* bytes on the stack even though our pointers are 4 bytes. */
#ifdef __arm__
/* For ARM we save r4-r8, r10-r12, r14 */
#define NACL_GC_REG_STORAGE_SIZE 9
#else
#define NACL_GC_REG_STORAGE_SIZE 20
#endif
ptr_t reg_storage[NACL_GC_REG_STORAGE_SIZE];
#endif
};
+12
View File
@@ -1003,7 +1003,11 @@ long a, b, c, d, e, f;
buf[1024] = 0x15;
(void) sprintf(buf, format, a, b, c, d, e, f);
if (buf[1024] != 0x15) ABORT("GC_printf clobbered stack");
#ifdef NACL
WRITE(GC_stdout, buf, strlen(buf));
#else
if (WRITE(GC_stdout, buf, strlen(buf)) < 0) ABORT("write to stdout failed");
#endif
}
void GC_err_printf(format, a, b, c, d, e, f)
@@ -1015,13 +1019,21 @@ long a, b, c, d, e, f;
buf[1024] = 0x15;
(void) sprintf(buf, format, a, b, c, d, e, f);
if (buf[1024] != 0x15) ABORT("GC_err_printf clobbered stack");
#ifdef NACL
WRITE(GC_stderr, buf, strlen(buf));
#else
if (WRITE(GC_stderr, buf, strlen(buf)) < 0) ABORT("write to stderr failed");
#endif
}
void GC_err_puts(s)
GC_CONST char *s;
{
#ifdef NACL
WRITE(GC_stderr, s, strlen(s));
#else
if (WRITE(GC_stderr, s, strlen(s)) < 0) ABORT("write to stderr failed");
#endif
}
#if defined(LINUX) && !defined(SMALL_CONFIG)
+1 -1
View File
@@ -22,7 +22,7 @@
# include "private/gc_priv.h"
map_entry_type * GC_invalid_map = 0;
static max_valid_offset = 0;
static word max_valid_offset = 0;
/* Invalidate the object map associated with a block. Free blocks */
/* are identified by invalid maps. */
+44 -24
View File
@@ -24,13 +24,13 @@
#endif
#ifdef NACL
int nacl_park_threads_now = 0;
volatile int __nacl_thread_suspension_needed = 0;
pthread_t nacl_thread_parker = -1;
int nacl_thread_parked[MAX_NACL_GC_THREADS];
int nacl_thread_used[MAX_NACL_GC_THREADS];
int nacl_thread_parking_inited = 0;
int nacl_num_gc_threads = 0;
volatile int nacl_thread_parked[MAX_NACL_GC_THREADS];
volatile int nacl_thread_used[MAX_NACL_GC_THREADS];
volatile int nacl_thread_parking_inited = 0;
volatile int nacl_num_gc_threads = 0;
pthread_mutex_t nacl_thread_alloc_lock = PTHREAD_MUTEX_INITIALIZER;
__thread int nacl_thread_idx = -1;
__thread GC_thread nacl_gc_thread_self = NULL;
@@ -471,7 +471,7 @@ static void pthread_stop_world()
GC_printf1("pthread_stop_world: num_threads %d\n", nacl_num_gc_threads - 1);
#endif
nacl_thread_parker = pthread_self();
nacl_park_threads_now = 1;
__nacl_thread_suspension_needed = 1;
while (1) {
#define NACL_PARK_WAIT_NANOSECONDS 100000
@@ -513,31 +513,49 @@ static void pthread_stop_world()
#define NACL_STORE_REGS() \
do { \
asm("push %rbx");\
asm("push %rbp");\
asm("push %r12");\
asm("push %r13");\
asm("push %r14");\
asm("push %r15");\
asm("mov %%esp, %0" : "=m" (nacl_gc_thread_self->stop_info.stack_ptr));\
__asm__ __volatile__ ("push %rbx");\
__asm__ __volatile__ ("push %rbp");\
__asm__ __volatile__ ("push %r12");\
__asm__ __volatile__ ("push %r13");\
__asm__ __volatile__ ("push %r14");\
__asm__ __volatile__ ("push %r15");\
__asm__ __volatile__ ("mov %%esp, %0" : "=m" (nacl_gc_thread_self->stop_info.stack_ptr));\
memcpy(nacl_gc_thread_self->stop_info.reg_storage, nacl_gc_thread_self->stop_info.stack_ptr, NACL_GC_REG_STORAGE_SIZE * sizeof(ptr_t));\
asm("add $48, %esp");\
asm("add %r15, %rsp");\
__asm__ __volatile__ ("naclasp $48, %r15");\
} while (0)
#elif __i386__
#define NACL_STORE_REGS() \
do { \
asm("push %ebx");\
asm("push %ebp");\
asm("push %esi");\
asm("push %edi");\
asm("mov %%esp, %0" : "=m" (nacl_gc_thread_self->stop_info.stack_ptr));\
__asm__ __volatile__ ("push %ebx");\
__asm__ __volatile__ ("push %ebp");\
__asm__ __volatile__ ("push %esi");\
__asm__ __volatile__ ("push %edi");\
__asm__ __volatile__ ("mov %%esp, %0" : "=m" (nacl_gc_thread_self->stop_info.stack_ptr));\
memcpy(nacl_gc_thread_self->stop_info.reg_storage, nacl_gc_thread_self->stop_info.stack_ptr, NACL_GC_REG_STORAGE_SIZE * sizeof(ptr_t));\
asm("add $16, %esp");\
__asm__ __volatile__ ("add $16, %esp");\
} while (0)
#elif __arm__
#define NACL_STORE_REGS() \
do { \
__asm__ __volatile__ ( \
".align 4\n\t" \
"bic %0, %0, #0xc0000000\n\t" \
"str sp, [%0]\n\t" \
"bic %1, %1, #0xc0000000\n\t" \
"stm %1, {r4-r8,r10-r12,lr}\n\t" \
: \
: "r" (&nacl_gc_thread_self->stop_info.stack_ptr), \
"r"(nacl_gc_thread_self->stop_info.reg_storage) \
: "memory"); \
} while (0)
#else
#error "Please port NACL_STORE_REGS"
#endif
void nacl_pre_syscall_hook()
@@ -550,6 +568,8 @@ void nacl_pre_syscall_hook()
}
}
void __nacl_suspend_thread_if_needed();
void nacl_post_syscall_hook()
{
/* Calling __nacl_suspend_thread_if_needed() right away should guarantee we don't mutate the GC set. */
@@ -560,7 +580,7 @@ void nacl_post_syscall_hook()
}
void __nacl_suspend_thread_if_needed() {
if (nacl_park_threads_now) {
if (__nacl_thread_suspension_needed) {
pthread_t self = pthread_self();
int local_dummy = 0;
/* Don't try to park the thread parker. */
@@ -579,7 +599,7 @@ void __nacl_suspend_thread_if_needed() {
nacl_gc_thread_self->stop_info.stack_ptr = (ptr_t)(&local_dummy);
}
nacl_thread_parked[nacl_thread_idx] = 1;
while (nacl_park_threads_now)
while (__nacl_thread_suspension_needed)
; /* spin */
nacl_thread_parked[nacl_thread_idx] = 0;
@@ -689,7 +709,7 @@ static void pthread_start_world()
# if DEBUG_THREADS
GC_printf0("World starting\n");
# endif
nacl_park_threads_now = 0;
__nacl_thread_suspension_needed = 0;
if (GC_notify_event)
GC_notify_event (GC_EVENT_POST_START_WORLD);
#endif /* NACL */
+24 -8
View File
@@ -687,10 +687,10 @@ void GC_mark_thread_local_free_lists(void)
static struct GC_Thread_Rep first_thread;
#ifdef NACL
extern int nacl_thread_parked[MAX_NACL_GC_THREADS];
extern int nacl_thread_used[MAX_NACL_GC_THREADS];
extern int nacl_thread_parking_inited;
extern int nacl_num_gc_threads;
extern volatile int nacl_thread_parked[MAX_NACL_GC_THREADS];
extern volatile int nacl_thread_used[MAX_NACL_GC_THREADS];
extern volatile int nacl_thread_parking_inited;
extern volatile int nacl_num_gc_threads;
extern pthread_mutex_t nacl_thread_alloc_lock;
extern __thread int nacl_thread_idx;
extern __thread GC_thread nacl_gc_thread_self;
@@ -699,10 +699,20 @@ extern void nacl_pre_syscall_hook();
extern void nacl_post_syscall_hook();
extern void nacl_register_gc_hooks(void (*pre)(), void (*post)());
#include <stdio.h>
struct nacl_irt_blockhook {
int (*register_block_hooks)(void (*pre)(void), void (*post)(void));
};
extern size_t nacl_interface_query(const char *interface_ident,
void *table, size_t tablesize);
void nacl_initialize_gc_thread()
{
int i;
nacl_register_gc_hooks(nacl_pre_syscall_hook, nacl_post_syscall_hook);
static struct nacl_irt_blockhook gc_hook;
pthread_mutex_lock(&nacl_thread_alloc_lock);
if (!nacl_thread_parking_inited)
{
@@ -710,6 +720,10 @@ void nacl_initialize_gc_thread()
nacl_thread_used[i] = 0;
nacl_thread_parked[i] = 0;
}
// TODO: replace with public 'register hook' function when
// available from glibc
nacl_interface_query("nacl-irt-blockhook-0.1", &gc_hook, sizeof(gc_hook));
gc_hook.register_block_hooks(nacl_pre_syscall_hook, nacl_post_syscall_hook);
nacl_thread_parking_inited = 1;
}
GC_ASSERT(nacl_num_gc_threads <= MAX_NACL_GC_THREADS);
@@ -942,6 +956,7 @@ int GC_segment_is_thread_stack(ptr_t lo, ptr_t hi)
/* Return the number of processors, or i<= 0 if it can't be determined. */
int GC_get_nprocs()
{
#ifndef NACL
/* Should be "return sysconf(_SC_NPROCESSORS_ONLN);" but that */
/* appears to be buggy in many cases. */
/* We look for lines "cpu<n>" in /proc/stat. */
@@ -971,6 +986,9 @@ int GC_get_nprocs()
}
close(f);
return result;
#else /* NACL */
return sysconf(_SC_NPROCESSORS_ONLN);
#endif
}
#endif /* GC_LINUX_THREADS */
@@ -1362,12 +1380,10 @@ int WRAP_FUNC(pthread_join)(pthread_t thread, void **retval)
}
#ifdef NACL
/* Native Client doesn't support pthread cleanup functions, */
/* so wrap pthread_exit and manually cleanup the thread. */
/* TODO: remove, NaCl glibc now supports pthread cleanup functions. */
void
WRAP_FUNC(pthread_exit)(void *status)
{
GC_thread_exit_proc(0);
REAL_FUNC(pthread_exit)(status);
}
#endif
+1 -1
View File
@@ -165,7 +165,7 @@ void (*GC_is_valid_displacement_print_proc) GC_PROTO((GC_PTR)) =
pdispl = HBLKDISPL(p);
map_entry = MAP_ENTRY((hhdr -> hb_map), pdispl);
if (map_entry == OBJ_INVALID
|| sz > MAXOBJBYTES && (ptr_t)p >= (ptr_t)h + sz) {
|| (sz > MAXOBJBYTES && (ptr_t)p >= (ptr_t)h + sz)) {
goto fail;
}
return(p);
+1 -1
View File
@@ -24,7 +24,7 @@ AC_DEFUN([AM_PO_SUBDIRS],
[
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
AC_REQUIRE([AC_PROG_INSTALL])dnl
AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
AC_REQUIRE([AM_NLS])dnl
dnl Release version of the gettext macros. This is used to ensure that
+1 -1
View File
@@ -124,7 +124,7 @@ gcc-mingw and as packages.
Assembler command. The default is "as".
.TP
.I "CC"
C compiler command. The default is "cc" under Linux and "gcc -mno-cygwin"
C compiler command. The default is "cc" under Linux and "gcc"
under Windows.
.TP
.I "MONO_BUNDLED_OPTIONS"
+63 -22
View File
@@ -3,10 +3,11 @@
.\" Copyright 2003 Ximian, Inc.
.\" Copyright 2004-2011 Novell, Inc.
.\" Copyright 2011-2012 Xamarin Inc
.\" Copyright 2013 7digital Media Ltd.
.\" Author:
.\" Miguel de Icaza ([email protected])
.\"
.TH Mono "Mono 2.11"
.TH Mono "Mono 3.0"
.SH NAME
mono \- Mono's ECMA-CLI native code generator (Just-in-Time and Ahead-of-Time)
.SH SYNOPSIS
@@ -144,6 +145,12 @@ Defaults to 128.
.I nodebug
Instructs the AOT compiler to not output any debugging information.
.TP
.I dwarfdebug
Instructs the AOT compiler to emit DWARF debugging information. When
used together with the nodebug option, only DWARF debugging
information is emitted, but not the information that can be used at
runtime.
.TP
.I nrgctx-trampolines=[number]
When compiling in full aot mode, the generic sharing trampolines must be precreated
in the AOT image. You can add additional method trampolines with this argument.
@@ -411,7 +418,7 @@ the global assembly cache is always trusted.
.TP
\fB--server\fR
Configures the virtual machine to be better suited for server
operations (currently, a no-op).
operations (currently, allows a heavier threadpool initialization).
.TP
\fB--verify-all\fR
Verifies mscorlib and assemblies in the global
@@ -564,7 +571,8 @@ itself, and not typically of interest to runtime users or developers.
\fB--break method\fR
Inserts a breakpoint before the method whose name is `method'
(namespace.class:methodname). Use `Main' as method name to insert a
breakpoint on the application's main method.
breakpoint on the application's main method. You can use it also with
generics, for example "System.Collections.Generic.Queue`1:Peek"
.TP
\fB--breakonex\fR
Inserts a breakpoint on exceptions. This allows you to debug your
@@ -891,6 +899,18 @@ above locations. If you don't want the mapping to be performed you can set this
variable in your environment before starting the application and no action will
be taken.
.TP
\fBMONO_ASPNET_WEBCONFIG_CACHESIZE\fR
Mono has a cache of ConfigSection objects for speeding up WebConfigurationManager
queries. Its default size is 100 items, and when more items are needed, cache
evictions start happening. If evictions are too frequent this could impose
unnecessary overhead, which could be avoided by using this environment variable
to set up a higher cache size (or to lower memory requirements by decreasing it).
.TP
\fBMONO_CAIRO_DEBUG_DISPOSE\fR
If set, causes Mono.Cairo to collect stack traces when objects are allocated,
so that the finalization/Dispose warnings include information about the
instance's origin.
.TP
\fBMONO_CFG_DIR\fR
If set, this variable overrides the default system configuration directory
($PREFIX/etc). It's used to locate machine.config file.
@@ -946,6 +966,12 @@ This is can also be enabled by default by passing the
.Sp
This is the default from mono 2.8 onwards.
.TP
\fBMONO_DISABLE_SHARED_AREA\fR
Unix only: If set, disable usage of shared memory for exposing
performance counters. This means it will not be possible to both
externally read performance counters from this processes or read
those of external processes.
.TP
\fBMONO_DNS\fR
When set, enables the use of a fully managed DNS resolver instead of the
regular libc functions. This resolver performs much better when multiple
@@ -1045,11 +1071,10 @@ program but will obviously use more memory. The default nursery size
.TP
\fBmajor=\fIcollector\fR
Specifies which major collector to use. Options are `marksweep' for
the Mark&Sweep collector, `marksweep-par' for parallel Mark&Sweep,
`marksweep-fixed' for Mark&Sweep with a fixed heap,
`marksweep-fixed-par' for parallel Mark&Sweep with a fixed heap and
`copying' for the copying collector. The Mark&Sweep collector is the
default.
the Mark&Sweep collector, `marksweep-conc' for concurrent Mark&Sweep,
`marksweep-par' for parallel Mark&Sweep, `marksweep-fixed' for
Mark&Sweep with a fixed heap, and `marksweep-fixed-par' for parallel
Mark&Sweep with a fixed heap. The Mark&Sweep collector is the default.
.TP
\fBmajor-heap-size=\fIsize\fR
Sets the size of the major heap (not including the large object space)
@@ -1063,15 +1088,6 @@ Once the heap size gets larger than this size, ignore what the default
major collection trigger metric says and only allow four nursery size's
of major heap growth between major collections.
.TP
\fBwbarrier=\fIwbarrier\fR
Specifies which write barrier to use. Options are `cardtable' and
`remset'. The card table barrier is faster but less precise, and only
supported for the Mark&Sweep major collector on 32 bit platforms. The
default is `cardtable' if it is supported, otherwise `remset'. The cardtable
write barrier is faster and has a more stable and usually smaller
memory footprint. If the program causes too much pinning during
thread scan, it might be faster to enable remset.
.TP
\fBevacuation-threshold=\fIthreshold\fR
Sets the evacuation threshold in percent. This option is only available
on the Mark&Sweep major collectors. The value must be an
@@ -1081,11 +1097,11 @@ less than this percentage, it will do a copying collection for that block
type in the next major collection, thereby restoring occupancy to close
to 100 percent. A value of 0 turns evacuation off.
.TP
\fB(no-)concurrent-sweep\fR
Enables or disables concurrent sweep for the Mark&Sweep collector. If
enabled, the sweep phase of the garbage collection is done in a thread
concurrently with the application. Concurrent sweep is disabled by
default.
\fB(no-)lazy-sweep\fR
Enables or disables lazy sweep for the Mark&Sweep collector. If
enabled, the sweep phase of the garbage collection is done piecemeal
whenever the need arises, typically during nursery collections. Lazy
sweeping is enabled by default.
.TP
\fBstack-mark=\fImark-mode\fR
Specifies how application threads should be scanned. Options are
@@ -1135,6 +1151,11 @@ Specifies the required age of an object must reach inside the nursery before
been promoted to the old generation. This only can only be used with the
split minor collector.
Valid values are integers between 1 and 14. Default is 2.
.TP
\fB(no-)cementing\fR
Enables or disables cementing. This can dramatically shorten nursery
collection times on some benchmarks where pinned objects are referred
to from the major heap.
.ne
.RE
.TP
@@ -1169,6 +1190,22 @@ are allocated (clear-at-gc). The consistency check ensures that
there are no major to minor references that are not on the remembered
sets.
.TP
\fBmod-union-consistency-check\fR
Checks that the mod-union cardtable is consistent before each
finishing major collection pause. This check is only applicable to
concurrent major collectors.
.TP
\fBcheck-mark-bits\fR
Checks that mark bits in the major heap are consistent at the end of
each major collection. Consistent mark bits mean that if an object is
marked, all objects that it had references to must also be marked.
.TP
\fBcheck-nursery-pinned\fR
After nursery collections, and before starting concurrent collections,
check whether all nursery objects are pinned, or not pinned -
depending on context. Does nothing when the split nursery collector
is used.
.TP
\fBxdomain-checks\fR
Performs a check to make sure that no references are left to an
unloaded AppDomain.
@@ -1591,6 +1628,10 @@ for example, to see managed frame names on gdb backtraces.
Enables the maximum JIT verbosity for the specified method. This is
very helpfull to diagnose a miscompilation problems of a specific
method.
.TP
\fBMONO_VERBOSE_HWCAP\fR
If set, makes the JIT output information about detected CPU features
(such as SSE, CMOV, FCMOV, etc) to stdout.
.SH VALGRIND
If you want to use Valgrind, you will find the file `mono.supp'
useful, it contains the suppressions for the GC which trigger
-3
View File
@@ -7,7 +7,6 @@ SUBDIRS := build jay mcs class nunit24 ilasm tools tests errors docs
basic_SUBDIRS := build jay mcs class
build_SUBDIRS := build class mcs class/aot-compiler tools
net_2_0_SUBDIRS := build class nunit24 ilasm tools tests errors docs
moonlight_raw_SUBDIRS := build class
monodroid_SUBDIRS := build class
monotouch_SUBDIRS := build class
monotouch_runtime_SUBDIRS := build class
@@ -108,12 +107,10 @@ _boot_ = all clean install
$(_boot_:%=profile-do--net_4_5--%): profile-do--net_4_5--%: profile-do--build--%
$(_boot_:%=profile-do--net_4_0--%): profile-do--net_4_0--%: profile-do--build--%
$(_boot_:%=profile-do--net_3_5--%): profile-do--net_3_5--%: profile-do--net_2_0--%
$(_boot_:%=profile-do--moonlight--%): profile-do--moonlight--%: profile-do--moonlight_raw--%
$(_boot_:%=profile-do--monodroid--%): profile-do--monodroid--%: profile-do--build--%
$(_boot_:%=profile-do--monotouch--%): profile-do--monotouch--%: profile-do--build--%
$(_boot_:%=profile-do--monotouch_runtime--%): profile-do--monotouch_runtime--%: profile-do--build--%
$(_boot_:%=profile-do--mobile--%): profile-do--mobile--%: profile-do--build--%
$(_boot_:%=profile-do--moonlight_raw--%): profile-do--moonlight_raw--%: profile-do--build--%
$(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--build--%
$(_boot_:%=profile-do--build--%): profile-do--build--%: profile-do--basic--%
-1
View File
@@ -19,7 +19,6 @@ PROFILES = \
basic \
build \
net_2_0 \
moonlight_raw \
net_3_5 \
net_4_0 \
net_4_5
+15 -8
View File
@@ -39,7 +39,13 @@ static class Consts
public const string MonoProduct = "Mono Common Language Infrastructure";
public const string MonoCopyright = "(c) Various Mono authors";
#if NET_4_5
#if NET_2_1
// Versions of .NET Framework for Silverlight 4.0
public const string FxVersion = "2.0.5.0";
public const string VsVersion = "9.0.0.0"; // unused, but needed for compilation
public const string FxFileVersion = "4.0.50524.0";
public const string VsFileVersion = "9.0.50727.42"; // unused, but needed for compilation
#elif NET_4_5
public const string FxVersion = "4.0.0.0";
public const string FxFileVersion = "4.0.30319.17020";
@@ -62,12 +68,6 @@ static class Consts
public const string VsVersion = "8.0.0.0";
public const string FxFileVersion = "3.0.4506.648";
public const string VsFileVersion = "6.0.6001.17014";
#elif NET_2_1
// Versions of .NET Framework for Silverlight 4.0
public const string FxVersion = "2.0.5.0";
public const string VsVersion = "9.0.0.0"; // unused, but needed for compilation
public const string FxFileVersion = "4.0.50524.0";
public const string VsFileVersion = "9.0.50727.42"; // unused, but needed for compilation
#elif NET_2_0
// Versions of .NET Framework 2.0 RTM
public const string FxVersion = "2.0.0.0";
@@ -82,6 +82,12 @@ static class Consts
#error No profile symbols defined.
#endif
#if MOBILE
const string PublicKeyToken = "7cec85d7bea7798e";
#else
const string PublicKeyToken = "b77a5c561934e089";
#endif
//
// Use these assembly name constants to make code more maintainable.
//
@@ -94,7 +100,7 @@ static class Consts
public const string AssemblyMono_Posix = "Mono.Posix, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=0738eb9f132ed756";
public const string AssemblyMono_Security = "Mono.Security, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=0738eb9f132ed756";
public const string AssemblyMono_Messaging_RabbitMQ = "Mono.Messaging.RabbitMQ, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=0738eb9f132ed756";
public const string AssemblyCorlib = "mscorlib, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b77a5c561934e089";
public const string AssemblyCorlib = "mscorlib, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=" + PublicKeyToken;
public const string AssemblySystem = "System, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b77a5c561934e089";
public const string AssemblySystem_Data = "System.Data, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b77a5c561934e089";
public const string AssemblySystem_Design = "System.Design, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
@@ -114,6 +120,7 @@ static class Consts
public const string AssemblyWindowsBase = "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35";
public const string AssemblyPresentationCore_3_5 = "PresentationCore, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35";
public const string AssemblyPresentationFramework_3_5 = "PresentationFramework, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35";
public const string AssemblySystemServiceModel_3_0 = "System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
#elif NET_2_1
public const string AssemblySystem_Core = "System.Core, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b77a5c561934e089";
#elif NET_2_0
+1 -1
View File
@@ -149,12 +149,12 @@ csproj-local:
config_file=`basename $(PROGRAM) .exe`-$(PROFILE).input; \
echo $(thisdir):$$config_file >> $(topdir)/../msvc/scripts/order; \
(echo $(is_boot); \
echo $(MCS); \
echo $(USE_MCS_FLAGS) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS); \
echo $(PROGRAM); \
echo $(BUILT_SOURCES_cmdline); \
echo $(build_lib); \
echo $(FRAMEWORK_VERSION); \
echo $(PROFILE); \
echo $(response)) > $(topdir)/../msvc/scripts/inputs/$$config_file
+19 -5
View File
@@ -3,6 +3,8 @@
outfile=$1
incfile=$2
excfile=$3
extfile=$4
extexcfile=$5
process_includes_1() {
sed -e '/^[ \t]*$/d' -e '/^[ \t]*#/d' $1 > $2
@@ -31,19 +33,31 @@ rm -f $outfile.makefrag
process_includes $incfile $outfile.inc
if test x$extfile != x -a -f "$extfile"; then
cat $extfile >> $outfile.inc
fi
sort -u $outfile.inc > $outfile.inc_s
rm -f $outfile.inc
if test -z "$excfile"; then
mv $outfile.inc_s $outfile
else
if test -n "$excfile"; then
process_includes $excfile $outfile.exc
fi
sort -u $outfile.exc > $outfile.exc_s
rm -f $outfile.exc
if test -n "$extexcfile"; then
process_includes $extexcfile $outfile.ext_exc
cat $outfile.ext_exc >> $outfile.exc
rm -f $outfile.ext_exc
fi
if test -f $outfile.exc; then
sort -u $outfile.exc > $outfile.exc_s
rm -f $outfile.exc
sort -m $outfile.inc_s $outfile.exc_s | uniq -u > $outfile
rm -f $outfile.inc_s $outfile.exc_s
else
mv $outfile.inc_s $outfile
fi
+24 -4
View File
@@ -17,11 +17,24 @@ PROFILE_excludes = $(wildcard $(PROFILE)_$(LIBRARY).exclude.sources)
sourcefile = $(depsdir)/$(PROFILE)_$(LIBRARY).sources
library_CLEAN_FILES += $(sourcefile)
ifdef EXTENSION_MODULE
EXTENSION_include = $(wildcard $(topdir)/../../mono-extensions/mcs/$(thisdir)/$(PROFILE)_$(LIBRARY).sources)
else
EXTENSION_include = $(wildcard $(PROFILE)_opt_$(LIBRARY).sources)
endif
ifdef EXTENSION_MODULE
EXTENSION_exclude = $(wildcard $(topdir)/../../mono-extensions/mcs/$(thisdir)/$(PROFILE)_$(LIBRARY).exclude.sources)
else
EXTENSION_exclude = $(wildcard $(PROFILE)_opt_$(LIBRARY).exclude.sources)
endif
# Note, gensources.sh can create a $(sourcefile).makefrag if it sees any '#include's
# We don't include it in the dependencies since it isn't always created
$(sourcefile): $(PROFILE_sources) $(PROFILE_excludes) $(topdir)/build/gensources.sh
$(sourcefile): $(PROFILE_sources) $(PROFILE_excludes) $(topdir)/build/gensources.sh $(EXTENSION_include)
@echo Creating the per profile list $@ ...
$(SHELL) $(topdir)/build/gensources.sh $@ $(PROFILE_sources) $(PROFILE_excludes)
$(SHELL) $(topdir)/build/gensources.sh $@ '$(PROFILE_sources)' '$(PROFILE_excludes)' '$(EXTENSION_include)' '$(EXTENSION_exclude)'
endif
PLATFORM_excludes := $(wildcard $(LIBRARY).$(PLATFORM)-excludes)
@@ -47,7 +60,11 @@ else
lib_dir = lib
endif
ifdef LIBRARY_SUBDIR
the_libdir = $(topdir)/class/$(lib_dir)/$(PROFILE)/$(LIBRARY_SUBDIR)/
else
the_libdir = $(topdir)/class/$(lib_dir)/$(PROFILE)/
endif
ifdef LIBRARY_NEEDS_POSTPROCESSING
build_libdir = fixup/$(PROFILE)/
else
@@ -93,16 +110,19 @@ endif
csproj-local: csproj-library csproj-test
# to overcome the issues with circular dependencies, we'll create csprojs with a counter increment.
# This is more amenable for use in VS solutions to reference projects rather than transient dll files in the build process.
csproj-library:
config_file=`basename $(LIBRARY) .dll`-$(PROFILE).input; \
for counter in 1 2 3 4 5 ; do if test -f $(topdir)/../msvc/scripts/inputs/$$config_file ; then config_file=`basename $(LIBRARY) .dll`-$(PROFILE)-$$counter.input; fi ; done ;\
echo $(thisdir):$$config_file >> $(topdir)/../msvc/scripts/order; \
(echo $(is_boot); \
echo $(MCS); \
echo $(USE_MCS_FLAGS) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS); \
echo $(LIBRARY_NAME); \
echo $(BUILT_SOURCES_cmdline); \
echo $(build_lib); \
echo $(FRAMEWORK_VERSION); \
echo $(PROFILE); \
echo $(response)) > $(topdir)/../msvc/scripts/inputs/$$config_file
csproj-test:
@@ -188,12 +208,12 @@ csproj-test:
config_file=`basename $(LIBRARY) .dll`-tests-$(PROFILE).input; \
echo $(thisdir):$$config_file >> $(topdir)/../msvc/scripts/order; \
(echo false; \
echo $(MCS); \
echo $(USE_MCS_FLAGS) -r:$(the_assembly) $(TEST_MCS_FLAGS); \
echo $(test_lib); \
echo $(BUILT_SOURCES_cmdline); \
echo $(test_lib); \
echo $(FRAMEWORK_VERSION); \
echo $(PROFILE); \
echo $(test_response)) > $(topdir)/../msvc/scripts/inputs/$$config_file
endif
+1 -1
View File
@@ -66,7 +66,7 @@ do-profile-check: $(depsdir)/.stamp
else \
echo "*** The compiler '$(BOOTSTRAP_MCS)' doesn't appear to be usable." 1>&2; \
echo "*** You need Mono version 2.4 or better installed to build MCS" 1>&2 ; \
echo "*** Read INSTALL.txt for information on how to bootstrap a Mono installation." 1>&2 ; \
echo "*** Check mono README for information on how to bootstrap a Mono installation." 1>&2 ; \
exit 1; fi; fi
+4 -1
View File
@@ -5,11 +5,14 @@ BOOTSTRAP_PROFILE = build
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
# Use system resgen as we don't want local System.Windows.Forms dependency
RESGEN = resgen2
profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOBILE -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOBILE -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 2.1
NO_INSTALL = yes
+20
View File
@@ -0,0 +1,20 @@
#! -*- makefile -*-
BOOTSTRAP_PROFILE = build
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
# Use system resgen as we don't want local System.Windows.Forms dependency
RESGEN = resgen2
profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -d:MOBILE -d:FULL_AOT_RUNTIME -d:DISABLE_REMOTING -d:DISABLE_COM -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 2.1
NO_TEST = yes
# the tuner takes care of the install
NO_INSTALL = yes
+4 -1
View File
@@ -5,11 +5,14 @@ BOOTSTRAP_PROFILE = build
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
# Use system resgen as we don't want local System.Windows.Forms dependency
RESGEN = resgen2
profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOBILE -d:MONODROID -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -d:MOBILE -d:MONODROID -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 2.1
NO_TEST = yes
+2 -2
View File
@@ -12,9 +12,9 @@ profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -d:MOBILE -d:MONOTOUCH -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -d:MOBILE -d:MONOTOUCH -d:DISABLE_REMOTING -d:DISABLE_COM -d:FULL_AOT_RUNTIME -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 2.1
NO_TEST = yes
# the tuner takes care of the install
NO_INSTALL = yes
NO_INSTALL = yes
+5 -2
View File
@@ -5,15 +5,18 @@ BOOTSTRAP_PROFILE = build
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
# Use system resgen as we don't want local System.Windows.Forms dependency
RESGEN = resgen2
# nuttzing!
profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -d:MOBILE -d:MONOTOUCH -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 4.5
FRAMEWORK_VERSION = 2.1
# This is utility build only
NO_INSTALL = yes
-18
View File
@@ -1,18 +0,0 @@
#! -*- makefile -*-
BOOTSTRAP_PROFILE = build
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
MCS = $(BOOTSTRAP_MCS)
profile-check: $(depsdir)/.stamp
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -lib:$(topdir)/class/lib/moonlight_raw -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOONLIGHT -d:SILVERLIGHT -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)
SN = sn
FRAMEWORK_VERSION = 2.1
NO_TEST = yes
# the tuner takes care of the install
NO_INSTALL = yes
+6
View File
@@ -81,8 +81,14 @@ include $(topdir)/build/config-default.make
ifndef PLATFORM
ifeq ($(OS),Windows_NT)
ifneq ($(V),)
$(info *** Assuming PLATFORM is 'win32'.)
endif
PLATFORM = win32
else
ifneq ($(V),)
$(info *** Assuming PLATFORM is 'linux'.)
endif
PLATFORM = linux
endif
endif
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{6088F0A1-9658-4B71-86DB-8685B9279154}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Accessibility-net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>Accessibility</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,26 +27,27 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Accessibility\IAccessible.cs" />
<Compile Include="Accessibility\IAccessibleHandler.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
</ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="Accessibility\IAccessible.cs" />
<Compile Include="Accessibility\IAccessibleHandler.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -56,22 +56,20 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_2_0\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{EB7444A6-C3E6-4224-BDB0-63CA3B4F2B87}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{3C0E9135-1458-47F6-9076-17FFB1E3E32F}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Accessibility-net_4_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>Accessibility</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,26 +27,27 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Accessibility\IAccessible.cs" />
<Compile Include="Accessibility\IAccessibleHandler.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
</ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="Accessibility\IAccessible.cs" />
<Compile Include="Accessibility\IAccessibleHandler.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -56,22 +56,20 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_0\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_4_0.csproj">
<Project>{3874F10B-9AE4-4A7E-873B-42FFDCE80CB7}</Project>
<Name>corlib\corlib-net_4_0</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{121E7DB9-FC04-46DF-8CF1-18B5A3FEE1B5}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_5</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Accessibility-net_4_5</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>Accessibility</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,26 +27,27 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Accessibility\IAccessible.cs" />
<Compile Include="Accessibility\IAccessibleHandler.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
</ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="Accessibility\IAccessible.cs" />
<Compile Include="Accessibility\IAccessibleHandler.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -56,22 +56,20 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_5\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_4_5.csproj">
<Project>{07C1F58B-9E99-47F8-A847-79EDA5157DA8}</Project>
<Name>corlib\corlib-net_4_5</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{543FE97D-6C85-42C7-9C19-A4106C878F73}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Commons.Xml.Relaxng-net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,62 +27,63 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Commons.Xml\XmlDefaultReader.cs" />
<Compile Include="Commons.Xml.Relaxng\Misc.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatype.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDefaultDatatypes.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngException.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngGrammar.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngMergedProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngNameClass.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPattern.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPatternType.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngReader.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngValidatingReader.cs" />
<Compile Include="Commons.Xml.Relaxng\XsdDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpContentType.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpNameClasses.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpObjects.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpPatterns.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\Util.cs" />
<Compile Include="Commons.Xml.Relaxng.Inference\RelaxngInference.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncTokenizer.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncWriter.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\XmlChar.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlBuiltInValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlCompileContext.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlConfig.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlException.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlFilteredXmlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlRelaxngSupport.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlSimplified.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlStructures.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidatingReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidator.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlXsdSupport.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />
</ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlBuiltInValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlCompileContext.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlConfig.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlException.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlFilteredXmlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlRelaxngSupport.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlSimplified.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlStructures.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidatingReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidator.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlXsdSupport.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpContentType.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpNameClasses.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpObjects.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpPatterns.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\Util.cs" />
<Compile Include="Commons.Xml.Relaxng.Inference\RelaxngInference.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncTokenizer.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncWriter.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\XmlChar.cs" />
<Compile Include="Commons.Xml.Relaxng\Misc.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatype.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDefaultDatatypes.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngException.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngGrammar.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngMergedProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngNameClass.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPattern.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPatternType.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngReader.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngValidatingReader.cs" />
<Compile Include="Commons.Xml.Relaxng\XsdDatatypeProvider.cs" />
<Compile Include="Commons.Xml\XmlDefaultReader.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -92,35 +92,33 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_2_0\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.Xml.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{EB7444A6-C3E6-4224-BDB0-63CA3B4F2B87}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_2_0-2.csproj">
<Project>{79F25FD7-0D76-4526-AF39-1A648649A827}</Project>
<Name>System\System-net_2_0-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_2_0-1.csproj">
<Project>{D9776E38-7673-45F6-BF19-7B77830DF9CA}</Project>
<Name>System.XML\System.Xml-net_2_0-1</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{2F70B549-EA84-4C1D-93C0-05CEA551DDFF}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Commons.Xml.Relaxng-net_4_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,62 +27,63 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Commons.Xml\XmlDefaultReader.cs" />
<Compile Include="Commons.Xml.Relaxng\Misc.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatype.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDefaultDatatypes.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngException.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngGrammar.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngMergedProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngNameClass.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPattern.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPatternType.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngReader.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngValidatingReader.cs" />
<Compile Include="Commons.Xml.Relaxng\XsdDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpContentType.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpNameClasses.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpObjects.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpPatterns.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\Util.cs" />
<Compile Include="Commons.Xml.Relaxng.Inference\RelaxngInference.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncTokenizer.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncWriter.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\XmlChar.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlBuiltInValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlCompileContext.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlConfig.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlException.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlFilteredXmlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlRelaxngSupport.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlSimplified.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlStructures.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidatingReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidator.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlXsdSupport.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />
</ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlBuiltInValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlCompileContext.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlConfig.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlException.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlFilteredXmlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlRelaxngSupport.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlSimplified.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlStructures.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidatingReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidator.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlXsdSupport.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpContentType.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpNameClasses.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpObjects.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpPatterns.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\Util.cs" />
<Compile Include="Commons.Xml.Relaxng.Inference\RelaxngInference.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncTokenizer.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncWriter.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\XmlChar.cs" />
<Compile Include="Commons.Xml.Relaxng\Misc.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatype.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDefaultDatatypes.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngException.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngGrammar.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngMergedProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngNameClass.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPattern.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPatternType.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngReader.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngValidatingReader.cs" />
<Compile Include="Commons.Xml.Relaxng\XsdDatatypeProvider.cs" />
<Compile Include="Commons.Xml\XmlDefaultReader.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -92,35 +92,33 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_0\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.Xml.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_4_0.csproj">
<Project>{3874F10B-9AE4-4A7E-873B-42FFDCE80CB7}</Project>
<Name>corlib\corlib-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_0-2.csproj">
<Project>{8260E24F-1471-4320-AB5B-7CC7B68521E3}</Project>
<Name>System\System-net_4_0-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_4_0-1.csproj">
<Project>{51720A26-B4D9-4B84-8CB5-9CBA57477FBB}</Project>
<Name>System.XML\System.Xml-net_4_0-1</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{0C6297C3-66BE-4FD1-B9B0-057950B32E94}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_5</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Commons.Xml.Relaxng-net_4_5</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,62 +27,63 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Commons.Xml\XmlDefaultReader.cs" />
<Compile Include="Commons.Xml.Relaxng\Misc.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatype.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDefaultDatatypes.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngException.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngGrammar.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngMergedProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngNameClass.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPattern.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPatternType.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngReader.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngValidatingReader.cs" />
<Compile Include="Commons.Xml.Relaxng\XsdDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpContentType.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpNameClasses.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpObjects.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpPatterns.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\Util.cs" />
<Compile Include="Commons.Xml.Relaxng.Inference\RelaxngInference.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncTokenizer.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncWriter.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\XmlChar.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlBuiltInValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlCompileContext.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlConfig.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlException.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlFilteredXmlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlRelaxngSupport.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlSimplified.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlStructures.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidatingReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidator.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlXsdSupport.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />
</ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlBuiltInValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlCompileContext.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlConfig.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlException.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlFilteredXmlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlRelaxngSupport.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlSimplified.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlStructures.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidatingReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidator.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlXsdSupport.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpContentType.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpNameClasses.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpObjects.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpPatterns.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\Util.cs" />
<Compile Include="Commons.Xml.Relaxng.Inference\RelaxngInference.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncTokenizer.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncWriter.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\XmlChar.cs" />
<Compile Include="Commons.Xml.Relaxng\Misc.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatype.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDefaultDatatypes.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngException.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngGrammar.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngMergedProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngNameClass.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPattern.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPatternType.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngReader.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngValidatingReader.cs" />
<Compile Include="Commons.Xml.Relaxng\XsdDatatypeProvider.cs" />
<Compile Include="Commons.Xml\XmlDefaultReader.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -92,35 +92,33 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_5\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.Xml.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_4_5.csproj">
<Project>{07C1F58B-9E99-47F8-A847-79EDA5157DA8}</Project>
<Name>corlib\corlib-net_4_5</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_5-2.csproj">
<Project>{38FCD731-0E11-46F7-A31B-DCBE853AD8D7}</Project>
<Name>System\System-net_4_5-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_4_5-1.csproj">
<Project>{4ED6CCE8-8E8A-4D82-8BCA-3EA4D4203AA4}</Project>
<Name>System.XML\System.Xml-net_4_5-1</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{09A994B6-D73D-4BB1-B0EE-3AB1DFFF2DA1}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699,618,219,169</NoWarn>
<OutputPath>.\</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Commons.Xml.Relaxng-tests-net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>False</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>Commons.Xml.Relaxng_test_net_2_0</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
@@ -28,30 +27,31 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Test\RdpPatternTests.cs" />
<Compile Include="Test\RelaxngDatatypeProviderTests.cs" />
<Compile Include="Test\RelaxngReaderTests.cs" />
<Compile Include="Test\RelaxngValidatingReaderTests.cs" />
<Compile Include="Test\XsdDatatypeTests.cs" />
<Compile Include="Test\RncTests.cs" />
<Compile Include="Test\NvdlValidatingReaderTests.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />
</ItemGroup>
<Compile Include="Test\NvdlValidatingReaderTests.cs" />
<Compile Include="Test\RdpPatternTests.cs" />
<Compile Include="Test\RelaxngDatatypeProviderTests.cs" />
<Compile Include="Test\RelaxngReaderTests.cs" />
<Compile Include="Test\RelaxngValidatingReaderTests.cs" />
<Compile Include="Test\RncTests.cs" />
<Compile Include="Test\XsdDatatypeTests.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -60,40 +60,38 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_2_0\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="./../../class/lib/net_2_0/Commons.Xml.Relaxng.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>./../../class/lib/net_2_0/Commons.Xml.Relaxng.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.Xml.dll</HintPath>
</Reference>
<Reference Include="nunit.framework" />
<Reference Include="..\lib\net_2_0\nunit.framework.dll" />
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{EB7444A6-C3E6-4224-BDB0-63CA3B4F2B87}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\Commons.Xml.Relaxng\Commons.Xml.Relaxng-net_2_0.csproj">
<Project>{543FE97D-6C85-42C7-9C19-A4106C878F73}</Project>
<Name>Commons.Xml.Relaxng\Commons.Xml.Relaxng-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_2_0-2.csproj">
<Project>{79F25FD7-0D76-4526-AF39-1A648649A827}</Project>
<Name>System\System-net_2_0-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_2_0-1.csproj">
<Project>{D9776E38-7673-45F6-BF19-7B77830DF9CA}</Project>
<Name>System.XML\System.Xml-net_2_0-1</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{07D36D76-142D-4C8D-80CD-CA073A31E1DE}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699,618,219,169</NoWarn>
<OutputPath>.\</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Commons.Xml.Relaxng-tests-net_4_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>False</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>Commons.Xml.Relaxng_test_net_4_0</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
@@ -28,30 +27,31 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Test\RdpPatternTests.cs" />
<Compile Include="Test\RelaxngDatatypeProviderTests.cs" />
<Compile Include="Test\RelaxngReaderTests.cs" />
<Compile Include="Test\RelaxngValidatingReaderTests.cs" />
<Compile Include="Test\XsdDatatypeTests.cs" />
<Compile Include="Test\RncTests.cs" />
<Compile Include="Test\NvdlValidatingReaderTests.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />
</ItemGroup>
<Compile Include="Test\NvdlValidatingReaderTests.cs" />
<Compile Include="Test\RdpPatternTests.cs" />
<Compile Include="Test\RelaxngDatatypeProviderTests.cs" />
<Compile Include="Test\RelaxngReaderTests.cs" />
<Compile Include="Test\RelaxngValidatingReaderTests.cs" />
<Compile Include="Test\RncTests.cs" />
<Compile Include="Test\XsdDatatypeTests.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -60,40 +60,38 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_0\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="./../../class/lib/net_4_0/Commons.Xml.Relaxng.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>./../../class/lib/net_4_0/Commons.Xml.Relaxng.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.Xml.dll</HintPath>
</Reference>
<Reference Include="nunit.framework" />
<Reference Include="..\lib\net_4_0\nunit.framework.dll" />
<ProjectReference Include="..\corlib\corlib-net_4_0.csproj">
<Project>{3874F10B-9AE4-4A7E-873B-42FFDCE80CB7}</Project>
<Name>corlib\corlib-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\Commons.Xml.Relaxng\Commons.Xml.Relaxng-net_4_0.csproj">
<Project>{2F70B549-EA84-4C1D-93C0-05CEA551DDFF}</Project>
<Name>Commons.Xml.Relaxng\Commons.Xml.Relaxng-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_0-2.csproj">
<Project>{8260E24F-1471-4320-AB5B-7CC7B68521E3}</Project>
<Name>System\System-net_4_0-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_4_0-1.csproj">
<Project>{51720A26-B4D9-4B84-8CB5-9CBA57477FBB}</Project>
<Name>System.XML\System.Xml-net_4_0-1</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{7694FE57-6BB7-478E-BB4E-C5187167804F}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699,618,219,169</NoWarn>
<OutputPath>.\</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Commons.Xml.Relaxng-tests-net_4_5</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>False</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>Commons.Xml.Relaxng_test_net_4_5</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
@@ -28,30 +27,31 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Test\RdpPatternTests.cs" />
<Compile Include="Test\RelaxngDatatypeProviderTests.cs" />
<Compile Include="Test\RelaxngReaderTests.cs" />
<Compile Include="Test\RelaxngValidatingReaderTests.cs" />
<Compile Include="Test\XsdDatatypeTests.cs" />
<Compile Include="Test\RncTests.cs" />
<Compile Include="Test\NvdlValidatingReaderTests.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />
</ItemGroup>
<Compile Include="Test\NvdlValidatingReaderTests.cs" />
<Compile Include="Test\RdpPatternTests.cs" />
<Compile Include="Test\RelaxngDatatypeProviderTests.cs" />
<Compile Include="Test\RelaxngReaderTests.cs" />
<Compile Include="Test\RelaxngValidatingReaderTests.cs" />
<Compile Include="Test\RncTests.cs" />
<Compile Include="Test\XsdDatatypeTests.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -60,40 +60,38 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_5\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="./../../class/lib/net_4_5/Commons.Xml.Relaxng.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>./../../class/lib/net_4_5/Commons.Xml.Relaxng.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.Xml.dll</HintPath>
</Reference>
<Reference Include="nunit.framework" />
<Reference Include="..\lib\net_4_5\nunit.framework.dll" />
<ProjectReference Include="..\corlib\corlib-net_4_5.csproj">
<Project>{07C1F58B-9E99-47F8-A847-79EDA5157DA8}</Project>
<Name>corlib\corlib-net_4_5</Name>
</ProjectReference>
<ProjectReference Include="..\Commons.Xml.Relaxng\Commons.Xml.Relaxng-net_4_5.csproj">
<Project>{0C6297C3-66BE-4FD1-B9B0-057950B32E94}</Project>
<Name>Commons.Xml.Relaxng\Commons.Xml.Relaxng-net_4_5</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_5-2.csproj">
<Project>{38FCD731-0E11-46F7-A31B-DCBE853AD8D7}</Project>
<Name>System\System-net_4_5-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_4_5-1.csproj">
<Project>{4ED6CCE8-8E8A-4D82-8BCA-3EA4D4203AA4}</Project>
<Name>System.XML\System.Xml-net_4_5-1</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{A98EAB08-7C3E-40CE-898E-3DF9A0939DB5}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/compat/net_2_0</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Compat.ICSharpCode.SharpZipLib-net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>ICSharpCode.SharpZipLib</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,60 +27,61 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2Constants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2InputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2OutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\Adler32.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\Crc32.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\IChecksum.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\StrangeCrc.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipConstants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\InvalidHeaderException.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarArchive.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarBuffer.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarEntry.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarHeader.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Deflater.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterConstants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterEngine.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterHuffman.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterPending.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Inflater.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\InflaterDynHeader.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\InflaterHuffmanTree.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\PendingBuffer.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\DeflaterOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\InflaterInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\OutputWindow.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\StreamManipulator.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipConstants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipEntry.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipFile.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\AssemblyInfo.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\ZipException.cs" />
</ItemGroup>
<Compile Include=".\ICSharpCode.SharpZipLib\AssemblyInfo.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2Constants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2InputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2OutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\Adler32.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\Crc32.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\IChecksum.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\StrangeCrc.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipConstants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\InvalidHeaderException.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarArchive.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarBuffer.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarEntry.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarHeader.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Deflater.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterConstants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterEngine.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterHuffman.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterPending.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Inflater.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\InflaterDynHeader.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\InflaterHuffmanTree.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\PendingBuffer.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\DeflaterOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\InflaterInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\OutputWindow.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\StreamManipulator.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipConstants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipEntry.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipFile.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\ZipException.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -90,30 +90,28 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_2_0\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.Xml.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{EB7444A6-C3E6-4224-BDB0-63CA3B4F2B87}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_2_0-2.csproj">
<Project>{79F25FD7-0D76-4526-AF39-1A648649A827}</Project>
<Name>System\System-net_2_0-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_2_0-1.csproj">
<Project>{D9776E38-7673-45F6-BF19-7B77830DF9CA}</Project>
<Name>System.XML\System.Xml-net_2_0-1</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
+34 -36
View File
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{9E7D403F-232E-4126-ADF8-0897129C037F}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Cscompmgd-net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>cscompmgd</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,29 +27,30 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Microsoft.CSharp\Compiler.cs" />
<Compile Include="Microsoft.CSharp\CompilerError.cs" />
<Compile Include="Microsoft.CSharp\ErrorLevel.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
</ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="Microsoft.CSharp\Compiler.cs" />
<Compile Include="Microsoft.CSharp\CompilerError.cs" />
<Compile Include="Microsoft.CSharp\ErrorLevel.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -59,26 +59,24 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_2_0\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{EB7444A6-C3E6-4224-BDB0-63CA3B4F2B87}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_2_0-2.csproj">
<Project>{79F25FD7-0D76-4526-AF39-1A648649A827}</Project>
<Name>System\System-net_2_0-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
+34 -36
View File
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{DCF7BFCB-23B0-41F0-94A3-0AEFA87EC799}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Cscompmgd-net_4_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>cscompmgd</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,29 +27,30 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Microsoft.CSharp\Compiler.cs" />
<Compile Include="Microsoft.CSharp\CompilerError.cs" />
<Compile Include="Microsoft.CSharp\ErrorLevel.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
</ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="Microsoft.CSharp\Compiler.cs" />
<Compile Include="Microsoft.CSharp\CompilerError.cs" />
<Compile Include="Microsoft.CSharp\ErrorLevel.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -59,26 +59,24 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_0\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_4_0.csproj">
<Project>{3874F10B-9AE4-4A7E-873B-42FFDCE80CB7}</Project>
<Name>corlib\corlib-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_0-2.csproj">
<Project>{8260E24F-1471-4320-AB5B-7CC7B68521E3}</Project>
<Name>System\System-net_4_0-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
+34 -36
View File
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{C67F17EE-7E1C-4B87-B58B-11458749DD70}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_5</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Cscompmgd-net_4_5</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>cscompmgd</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,29 +27,30 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Microsoft.CSharp\Compiler.cs" />
<Compile Include="Microsoft.CSharp\CompilerError.cs" />
<Compile Include="Microsoft.CSharp\ErrorLevel.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
</ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="Microsoft.CSharp\Compiler.cs" />
<Compile Include="Microsoft.CSharp\CompilerError.cs" />
<Compile Include="Microsoft.CSharp\ErrorLevel.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -59,26 +59,24 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_5\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_4_5.csproj">
<Project>{07C1F58B-9E99-47F8-A847-79EDA5157DA8}</Project>
<Name>corlib\corlib-net_4_5</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_5-2.csproj">
<Project>{38FCD731-0E11-46F7-A31B-DCBE853AD8D7}</Project>
<Name>System\System-net_4_5-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{09C1F680-F5E0-421A-9040-D98664AF9895}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699,618,219,169</NoWarn>
<OutputPath>.\</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Cscompmgd-tests-net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>False</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>Cscompmgd_test_net_2_0</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
@@ -28,23 +27,24 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Test\Microsoft.CSharp\CompilerTest.cs" />
</ItemGroup>
<Compile Include="Test\Microsoft.CSharp\CompilerTest.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -53,31 +53,29 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_2_0\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="./../../class/lib/net_2_0/cscompmgd.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>./../../class/lib/net_2_0/cscompmgd.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<Reference Include="nunit.framework" />
<Reference Include="..\lib\net_2_0\nunit.framework.dll" />
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{EB7444A6-C3E6-4224-BDB0-63CA3B4F2B87}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\Cscompmgd\Cscompmgd-net_2_0.csproj">
<Project>{9E7D403F-232E-4126-ADF8-0897129C037F}</Project>
<Name>Cscompmgd\Cscompmgd-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_2_0-2.csproj">
<Project>{79F25FD7-0D76-4526-AF39-1A648649A827}</Project>
<Name>System\System-net_2_0-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{7E92EB42-C1FD-4AE4-AE19-FA7F534FFCA1}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699,618,219,169</NoWarn>
<OutputPath>.\</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Cscompmgd-tests-net_4_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>False</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>Cscompmgd_test_net_4_0</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
@@ -28,23 +27,24 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Test\Microsoft.CSharp\CompilerTest.cs" />
</ItemGroup>
<Compile Include="Test\Microsoft.CSharp\CompilerTest.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -53,31 +53,29 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_0\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="./../../class/lib/net_4_0/cscompmgd.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>./../../class/lib/net_4_0/cscompmgd.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<Reference Include="nunit.framework" />
<Reference Include="..\lib\net_4_0\nunit.framework.dll" />
<ProjectReference Include="..\corlib\corlib-net_4_0.csproj">
<Project>{3874F10B-9AE4-4A7E-873B-42FFDCE80CB7}</Project>
<Name>corlib\corlib-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\Cscompmgd\Cscompmgd-net_4_0.csproj">
<Project>{DCF7BFCB-23B0-41F0-94A3-0AEFA87EC799}</Project>
<Name>Cscompmgd\Cscompmgd-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_0-2.csproj">
<Project>{8260E24F-1471-4320-AB5B-7CC7B68521E3}</Project>
<Name>System\System-net_4_0-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{C7D8B744-96E6-42A0-82C0-C191C686D485}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699,618,219,169</NoWarn>
<OutputPath>.\</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\Cscompmgd-tests-net_4_5</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>False</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>Cscompmgd_test_net_4_5</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
@@ -28,23 +27,24 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Test\Microsoft.CSharp\CompilerTest.cs" />
</ItemGroup>
<Compile Include="Test\Microsoft.CSharp\CompilerTest.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -53,31 +53,29 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_5\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="./../../class/lib/net_4_5/cscompmgd.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>./../../class/lib/net_4_5/cscompmgd.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<Reference Include="nunit.framework" />
<Reference Include="..\lib\net_4_5\nunit.framework.dll" />
<ProjectReference Include="..\corlib\corlib-net_4_5.csproj">
<Project>{07C1F58B-9E99-47F8-A847-79EDA5157DA8}</Project>
<Name>corlib\corlib-net_4_5</Name>
</ProjectReference>
<ProjectReference Include="..\Cscompmgd\Cscompmgd-net_4_5.csproj">
<Project>{C67F17EE-7E1C-4B87-B58B-11458749DD70}</Project>
<Name>Cscompmgd\Cscompmgd-net_4_5</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_5-2.csproj">
<Project>{38FCD731-0E11-46F7-A31B-DCBE853AD8D7}</Project>
<Name>System\System-net_4_5-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{E580684B-ECFC-41D9-9AC7-FDDD0FDBD399}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\CustomMarshalers-net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>CustomMarshalers</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,30 +27,31 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include=".\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumerableToDispatchMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\ExpandoToDispatchExMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumeratorToEnumVariantMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\TypeToTypeInfoMarshaler.cs" />
</ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include=".\Assembly\AssemblyInfo.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumerableToDispatchMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumeratorToEnumVariantMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\ExpandoToDispatchExMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\TypeToTypeInfoMarshaler.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -60,26 +60,24 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_2_0\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{EB7444A6-C3E6-4224-BDB0-63CA3B4F2B87}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_2_0-2.csproj">
<Project>{79F25FD7-0D76-4526-AF39-1A648649A827}</Project>
<Name>System\System-net_2_0-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{974FC570-0B07-4912-A06A-99DF7B82DCF7}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\CustomMarshalers-net_4_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>CustomMarshalers</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,30 +27,31 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include=".\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumerableToDispatchMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\ExpandoToDispatchExMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumeratorToEnumVariantMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\TypeToTypeInfoMarshaler.cs" />
</ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include=".\Assembly\AssemblyInfo.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumerableToDispatchMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumeratorToEnumVariantMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\ExpandoToDispatchExMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\TypeToTypeInfoMarshaler.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -60,26 +60,24 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_0\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_4_0.csproj">
<Project>{3874F10B-9AE4-4A7E-873B-42FFDCE80CB7}</Project>
<Name>corlib\corlib-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_0-2.csproj">
<Project>{8260E24F-1471-4320-AB5B-7CC7B68521E3}</Project>
<Name>System\System-net_4_0-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{417E7FEB-E054-44F0-81FF-A896F4018DC7}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_5</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\CustomMarshalers-net_4_5</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>CustomMarshalers</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,30 +27,31 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include=".\Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumerableToDispatchMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\ExpandoToDispatchExMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumeratorToEnumVariantMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\TypeToTypeInfoMarshaler.cs" />
</ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include=".\Assembly\AssemblyInfo.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumerableToDispatchMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumeratorToEnumVariantMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\ExpandoToDispatchExMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\TypeToTypeInfoMarshaler.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -60,26 +60,24 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_5\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_4_5.csproj">
<Project>{07C1F58B-9E99-47F8-A847-79EDA5157DA8}</Project>
<Name>corlib\corlib-net_4_5</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_5-2.csproj">
<Project>{38FCD731-0E11-46F7-A31B-DCBE853AD8D7}</Project>
<Name>System\System-net_4_5-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
@@ -5,22 +5,21 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
<ProjectGuid>{2D2DDD2D-5AE7-458B-B626-4475D671A7F9}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_5</OutputPath>
<NoStdLib>true</NoStdLib>
<OutputPath>bin\Debug\EntityFramework.SqlServer-net_4_5</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace></RootNamespace>
<RootNamespace>
</RootNamespace>
<AssemblyName>EntityFramework.SqlServer</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- Filter out System.Core added by: Microsoft.NETFramework.props -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
@@ -28,70 +27,78 @@
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AdditionalLibPaths>./../../class/lib/net_4_5</AdditionalLibPaths>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\..\..\external\entityframework\src\SharedAssemblyInfo.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\DbGeographyAdapter.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\DbGeometryAdapter.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Expressions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\GlobalSuppressions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\IDbSpatialValue.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\IDbSpatialValueExtensionMethods.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Properties\AssemblyVersion.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Properties\InternalsVisibleTo.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Properties\Resources.SqlServer.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlDdlBuilder.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\BoolWrapper.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\DmlSqlGenerator.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlTypesAssemblyLoader.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlVersionUtils.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\DbExpressionExtensions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\EdmFunctionExtensions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\MetdataItemExtensions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\FuncExtensions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\IDictionaryExtensions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\ISqlFragment.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\JoinSymbol.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\OptionalColumn.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\Sql8ConformanceChecker.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\Sql8ExpressionRewriter.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SqlBuilder.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SqlFunctionCallHandler.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SqlGenerator.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SqlSelectClauseBuilder.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SqlSelectStatement.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SqlWriter.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\Symbol.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SymbolPair.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SymbolTable.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SymbolUsageManager.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\TopClause.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlProviderManifest.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlProviderServices.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlProviderUtilities.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlSpatialDataReader.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlSpatialServices.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlTypesAssembly.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlVersion.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\PrimitiveTypeExtensions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\RuntimeFailureMethods.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\SqlDataReaderWrapper.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\Throw.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\TypeUsageExtensions.cs" />
</ItemGroup>
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\DbGeographyAdapter.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\DbGeometryAdapter.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Expressions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\GlobalSuppressions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\IDbSpatialValue.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\IDbSpatialValueExtensionMethods.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Properties\AssemblyVersion.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Properties\InternalsVisibleTo.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Properties\Resources.SqlServer.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlAzureDbConfiguration.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlAzureExecutionStrategy.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlAzureRetriableExceptionDetector.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlDdlBuilder.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlExecutionStrategyResolver.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\BoolWrapper.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\DmlSqlGenerator.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\ISqlFragment.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\JoinSymbol.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\OptionalColumn.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\Sql8ConformanceChecker.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\Sql8ExpressionRewriter.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SqlBuilder.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SqlFunctionCallHandler.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SqlGenerator.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SqlSelectClauseBuilder.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SqlSelectStatement.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SqlWriter.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\Symbol.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SymbolPair.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SymbolTable.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\SymbolUsageManager.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlGen\TopClause.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlProviderManifest.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlProviderServices.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlProviderUtilities.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlSpatialDataReader.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlSpatialServices.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlSpatialServicesForConversions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlTypesAssembly.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlTypesAssemblyLoader.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlVersion.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\SqlVersionUtils.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\Check.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\DbExpressionExtensions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\DebugCheck.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\EdmFunctionExtensions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\FuncExtensions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\IDictionaryExtensions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\MetdataItemExtensions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\PrimitiveTypeExtensions.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\SqlDataReaderWrapper.cs" />
<Compile Include="..\..\..\external\entityframework\src\EntityFramework.SqlServer\Utilities\TypeUsageExtensions.cs" />
<Compile Include="..\..\..\external\entityframework\src\SharedAssemblyInfo.cs" />
<Compile Include="..\..\..\external\entityframework\src\SharedAssemblyVersionInfo.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -100,67 +107,66 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
xcopy $(TargetName).* $(ProjectDir)..\lib\net_4_5\ /Y /R /D
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>mscorlib.dll</HintPath>
</Reference>
<Reference Include="System.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.dll</HintPath>
</Reference>
<Reference Include="System.Xml.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.Xml.dll</HintPath>
</Reference>
<Reference Include="System.Core.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.Core.dll</HintPath>
</Reference>
<Reference Include="EntityFramework.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>EntityFramework.dll</HintPath>
</Reference>
<Reference Include="System.Data.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>System.Data.dll</HintPath>
</Reference>
<ProjectReference Include="..\corlib\corlib-net_4_5.csproj">
<Project>{07C1F58B-9E99-47F8-A847-79EDA5157DA8}</Project>
<Name>corlib\corlib-net_4_5</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_5-2.csproj">
<Project>{38FCD731-0E11-46F7-A31B-DCBE853AD8D7}</Project>
<Name>System\System-net_4_5-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_4_5-1.csproj">
<Project>{4ED6CCE8-8E8A-4D82-8BCA-3EA4D4203AA4}</Project>
<Name>System.XML\System.Xml-net_4_5-1</Name>
</ProjectReference>
<ProjectReference Include="..\System.Core\System.Core-net_4_5.csproj">
<Project>{D8260595-C32F-4AC3-9C01-2CD2528CFA1D}</Project>
<Name>System.Core\System.Core-net_4_5</Name>
</ProjectReference>
<ProjectReference Include="..\EntityFramework\EntityFramework-net_4_5.csproj">
<Project>{7AC4183B-FA37-45D9-9069-47336EB37D0A}</Project>
<Name>EntityFramework\EntityFramework-net_4_5</Name>
</ProjectReference>
<ProjectReference Include="..\System.Data\System.Data-net_4_5.csproj">
<Project>{663D8C81-B74E-4D44-8C59-2264C6942B30}</Project>
<Name>System.Data\System.Data-net_4_5</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="System.Data.Entity.SqlServer.Properties.Resources.SqlServer.resources">
<LogicalName>System.Data.Entity.SqlServer.Properties.Resources.SqlServer.resources</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework/Resources/System/Data/System.Data.Resources.DbProviderServices.ConceptualSchemaDefinition.csdl">
<LogicalName>System.Data.Resources.DbProviderServices.ConceptualSchemaDefinition.csdl</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.ProviderManifest.xml">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.ProviderManifest.xml</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition.ssdl">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition.ssdl</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition_Sql8.ssdl">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition_Sql8.ssdl</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinitionVersion3.ssdl">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinitionVersion3.ssdl</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinitionVersion3_Sql8.ssdl">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinitionVersion3_Sql8.ssdl</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaMapping.msl">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaMapping.msl</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaMappingVersion3.msl">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaMappingVersion3.msl</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
<ItemGroup>
<EmbeddedResource Include="System.Data.Entity.SqlServer.Properties.Resources.SqlServer.resources">
<LogicalName>System.Data.Entity.SqlServer.Properties.Resources.SqlServer.resources</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.ProviderManifest.xml">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.ProviderManifest.xml</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition.ssdl">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition.ssdl</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition_Sql8.ssdl">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition_Sql8.ssdl</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinitionVersion3.ssdl">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinitionVersion3.ssdl</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinitionVersion3_Sql8.ssdl">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinitionVersion3_Sql8.ssdl</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaMapping.msl">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaMapping.msl</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaMappingVersion3.msl">
<LogicalName>System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaMappingVersion3.msl</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
@@ -1,6 +1,8 @@
../../../external/entityframework/src/SharedAssemblyInfo.cs
../../../external/entityframework/src/SharedAssemblyVersionInfo.cs
../../../external/entityframework/src/EntityFramework.SqlServer/DbGeographyAdapter.cs
../../../external/entityframework/src/EntityFramework.SqlServer/DbGeometryAdapter.cs
../../../external/entityframework/src/EntityFramework.SqlServer/DefaultSqlExecutionStrategy.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Expressions.cs
../../../external/entityframework/src/EntityFramework.SqlServer/GlobalSuppressions.cs
../../../external/entityframework/src/EntityFramework.SqlServer/IDbSpatialValue.cs
@@ -8,12 +10,20 @@
../../../external/entityframework/src/EntityFramework.SqlServer/Properties/AssemblyVersion.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Properties/InternalsVisibleTo.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Properties/Resources.SqlServer.cs
../../../external/entityframework/src/EntityFramework.SqlServer/SqlAzureDbConfiguration.cs
../../../external/entityframework/src/EntityFramework.SqlServer/SqlAzureExecutionStrategy.cs
../../../external/entityframework/src/EntityFramework.SqlServer/SqlAzureRetriableExceptionDetector.cs
../../../external/entityframework/src/EntityFramework.SqlServer/SqlDdlBuilder.cs
../../../external/entityframework/src/EntityFramework.SqlServer/SqlExecutionStrategyResolver.cs
../../../external/entityframework/src/EntityFramework.SqlServer/SqlGen/BoolWrapper.cs
../../../external/entityframework/src/EntityFramework.SqlServer/SqlGen/DmlSqlGenerator.cs
../../../external/entityframework/src/EntityFramework.SqlServer/SqlSpatialServicesForConversions.cs
../../../external/entityframework/src/EntityFramework.SqlServer/SqlTypesAssemblyLoader.cs
../../../external/entityframework/src/EntityFramework.SqlServer/SqlVersionUtils.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Utilities/Check.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Utilities/SqlDataReaderWrapper.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Utilities/DbExpressionExtensions.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Utilities/DebugCheck.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Utilities/EdmFunctionExtensions.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Utilities/MetdataItemExtensions.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Utilities/FuncExtensions.cs
@@ -42,7 +52,4 @@
../../../external/entityframework/src/EntityFramework.SqlServer/SqlTypesAssembly.cs
../../../external/entityframework/src/EntityFramework.SqlServer/SqlVersion.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Utilities/PrimitiveTypeExtensions.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Utilities/RuntimeFailureMethods.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Utilities/SqlDataReaderWrapper.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Utilities/Throw.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Utilities/TypeUsageExtensions.cs
../../../external/entityframework/src/EntityFramework.SqlServer/Utilities/TypeUsageExtensions.cs
+1 -1
View File
@@ -8,7 +8,7 @@ System.Data.Entity.SqlServer.Properties.Resources.SqlServer.resources: ../../../
$(RESGEN) "$<" "$@"
RESOURCES = ../../../external/entityframework/src/EntityFramework/Resources/System/Data/System.Data.Resources.DbProviderServices.ConceptualSchemaDefinition.csdl \
RESOURCES = \
../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.ProviderManifest.xml \
../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition.ssdl \
../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition_Sql8.ssdl \
+1
View File
@@ -0,0 +1 @@
System.Data.Resources.EntityStoreSchemaGenerator.xsd
File diff suppressed because it is too large. Load diff
Loaded 100 of 4629 files, more files were not shown because too many files have changed in this diff. Show more