Marek Safar
6bf50d107b
Implements is operator with expression as type
2013-09-04 11:28:02 +02:00
Marek Safar
98aef175b2
Add core of PS String type
2013-09-02 19:52:58 +02:00
Marek Safar
cfbb707d77
Fixes catch of dynamic type
2013-08-30 16:59:51 +02:00
Marek Safar
26b44adfee
Fixes handling of parameterless functions
2013-08-30 16:36:21 +02:00
Marek Safar
7cc63291b9
Implements strict binary operators in dynamic context
2013-08-30 16:27:01 +02:00
Marek Safar
242738b9b4
Initial version of strict operators
2013-08-29 18:31:12 +02:00
Marek Safar
23daaa8f3d
Implements untyped parameters
2013-08-29 14:40:13 +02:00
Marek Safar
d26916f86c
Implements expression series
2013-08-28 11:19:17 +02:00
Marek Safar
96debf77d1
Implements simple catch blocks, package fields
2013-08-27 16:28:04 +02:00
Marek Safar
26831a86d2
Fixes failing test
2013-08-27 10:54:06 +02:00
Marek Safar
281208244f
Enable fixed test
2013-08-27 10:44:45 +02:00
Marek Safar
88eb6b008e
Fix invalid code
2013-08-27 10:42:42 +02:00
Marek Safar
87048f03df
Merge remote-tracking branch 'origin/master' into playscript-mono
2013-08-27 10:31:43 +02: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
Marek Safar
91e22b4d37
Implements type initializers
2013-08-21 16:14:38 +02: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
Marek Safar
9c1b3cba34
Redo field initialization to allow ordered statements be part of type initialization
2013-08-20 10:44:35 +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
8ab849eb82
More untyped and default values handling
2013-08-17 12:05:13 +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
6a4dcd4f6c
Fixed repl version
2013-08-15 19:03:18 +02:00
Marek Safar
f117b64a5d
Merge remote-tracking branch 'origin/master' into playscript-mono
2013-08-15 18:27:34 +02: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
e789b6abbb
Implements namespaces at package level
2013-08-14 10:36:53 +02: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
Marek Safar
7bd34e5715
Add global statements support
2013-08-09 18:46:30 +02: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
Marek Safar
d41a06ca08
Implement field initializers
2013-08-08 21:19:34 +02: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
8b3b6a5208
Enable more constant tests
2013-08-05 11:32:04 +02:00
Marek Safar
f4c24efe89
Add better diagnostics for invalid properties
2013-08-05 11:32:04 +02:00
Marek Safar
0b016adf56
Revert "Add null constant argument type check"
...
This reverts commit 01697c1f78 .
2013-08-05 11:32:03 +02:00
Miguel de Icaza
5ad97cca6c
Not currently referenced
2013-08-05 11:32:03 +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
Marek Safar
057fc20fa4
Fix remaining constant issues
2013-07-31 17:58:54 +02:00
Miguel de Icaza
8a019b64fe
Not currently referenced
2013-07-31 09:42:13 -04:00
Marek Safar
9cb7a839eb
Merge remote-tracking branch 'origin/master' into playscript-mono
2013-07-31 13:49:36 +02:00
Marek Safar
01697c1f78
Add null constant argument type check
2013-07-31 13:48:00 +02:00
Marek Safar
2a62fb90b5
grammar cleanup
2013-07-31 11:22:27 +02:00
Marek Safar
6608f5db66
Merge remote-tracking branch 'origin/master' into playscript-mono
2013-07-31 10:57:18 +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
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
a707a3dadb
Implements variable constants
2013-07-25 15:19:49 +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
Marek Safar
487b05c2b6
Implements local variable
2013-07-24 15:27:04 +02: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
Marek Safar
ad0c77db0f
Initial with statement implementation
2013-07-19 17:34:30 +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
951f9a7912
Make package functions work same as other package level members
2013-07-18 16:18:07 +02:00
Marek Safar
9b63f759fb
Merge branch 'master' into playscript-mono
2013-07-18 15:40:53 +02:00
Marek Safar
2e255604b2
Add package level functions restrictions
2013-07-18 15:40:18 +02: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
2226f02696
Implements new expresssion statement
2013-07-16 13:43:24 +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
Marek Safar
0ea5ed961e
Implement local functions
2013-07-12 13:50:54 +02:00
Marek Safar
abbf953e28
Update some declarations
2013-07-12 13:47:17 +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
Marek Safar
4d4e3c3d5b
Add untyped/virtual methods handling
2013-07-11 14:18:10 +02:00
Marek Safar
26a0904c82
Small grammar cleanup
2013-07-10 18:41:04 +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
Marek Safar
3dfaaa542d
Implement for..each
2013-07-10 16:56:13 +02:00
Martin Baulig
83ed15e19d
Add libmonoboehm package to the spec file.
2013-07-10 16:46:53 +02:00
Marek Safar
005dbf7840
Merge branch 'master' into playscript-mono
2013-07-10 16:27:22 +02:00
Marek Safar
24f08876a8
Ignore only local Makefile
2013-07-10 16:26:26 +02:00
Marek Safar
80d3d461c3
Implement for/for..in
2013-07-10 15:38:44 +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
Marek Safar
7554e7cd95
Merge from brooken branch
2013-07-08 22:59:13 +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
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
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
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
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
Zoltan Varga
9e7f206309
Treat param area stack slots as being part of the callee frame, not the caller, so precise stack marking works for methods with tail calls as well.
2012-12-05 13:49:15 +01:00
Zoltan Varga
1b5becdecc
Avoid computing the remset size in sgen_ssb_record_pointer ().
2012-12-05 13:46:12 +01: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
Marek Safar
f79fec62c5
Bring back 2.10 based System.Json and move aspnet stack version to System.Json.Microsoft
2012-12-05 12:11:16 +01:00
Marek Safar
c4b3a047f1
Add new test
2012-12-05 11:14:10 +01:00
Marek Safar
783210af9d
Update mcs translations
2012-12-05 10:18:06 +01:00
Marek Safar
4f03af7f1e
Add resx to dist files
2012-12-05 10:18:06 +01:00
Jonathan Pryor
657bab25a9
Don't version shared libraries on Android.
...
Wanted: profiler support on Android. ;-)
...which seems sane enough: we have this nifty pluggable profiler
mechanism already, we have profilers built as separate shared libs
(e.g. libmono-profiler-log.so), let's just "somehow" load one, call
the init function, and we're off to the races, right?
void* h = dlopen ("path/to/libmono-profiler-log.so", RTLD_LAZY)
// h == null; dlerror() is:
// Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library
// "libmonosgen-2.0.so.0" needed by "libmono-profiler-log.so"; caused by
// load_library(linker.cpp:745): library "libmonosgen-2.0.so.0" not found
Ouch. So the problem is that libmonosgen-2.0.so contains a versioned
SONAME ("libmonosgen-2.0.so.0"), and thus libmono-profiler-log.so
contains a versioned SONAME reference, which cannot be resolved.
(Android doesn't allow versioned .so's to be placed within .apks.)
Fix the first: make libmonosgen-2.0.so unversioned. That way,
libmono-profiler-log.so contains an unversioned library reference, and
Android is appeased!
(Unversion libmono-profiler-log.so for good measure.)
Fix the second: with the above fix in place, libmono-profiler-log.so
SITLL won't be loaded, with dlerror(3) reporting:
Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate
symbol "monoeg_g_log" referenced by "libmono-profiler-log.so"
The issue here is that libmonosgen-2.0.so contains unexported symbol
references from eglib, e.g. monoeg_g_log(), and dlopen() won't use
those unexported symbols. So just add the glib link references to
libmono-profiler-log.so, and everything is kosher. Yay.
2012-12-04 23:08:44 -05:00
Zoltan Varga
d7280785f1
Add support for interior pointers for oldspace objects to describe_ptr ().
2012-12-05 00:58:02 +01:00
Zoltan Varga
d1bf04d303
Call the specialized SortImpl<T> implementation from Sort<T>.
2012-12-04 19:28:09 +01:00
Zoltan Varga
6769a30f4a
Avoid using hand-specialized qsort<K,T> instantiations in SortImpl<TKey,TValue> when using full-aot, as it leads to a code blowup. Inline swap methods.
2012-12-04 19:15:59 +01:00
Marek Safar
37e48013a4
Enable 4.x api for MonoTouch
2012-12-04 18:47:02 +01:00
Marek Safar
98cec10f57
Move System.Json sources from external before they are removed
2012-12-04 18:47:02 +01:00
Marek Safar
e3484720bb
Add MOBILE defines to 4.0 code
2012-12-04 18:47:02 +01:00
Marek Safar
a61f1d1c1d
ifdef same extension method which exists in 4.5 mscorlib
2012-12-04 18:47:01 +01:00
Zoltan Varga
804ff756b9
Optimize the emission of dwarf line number info by mostly ordering the methods by their line numbers. dlsymutil becomes very slow otherwise.
2012-12-04 18:37:18 +01:00
Zoltan Varga
c9d9d4d919
Reduce the number of non-temporary symbols in AOT output files on mach.
2012-12-04 18:37:18 +01:00
Zoltan Varga
875765e60c
Delete .dSYM directories using rm -rf.
2012-12-04 18:37:17 +01:00
Marek Safar
6485ad7078
Disable some of tests which MT cannot handle
2012-12-04 15:11:10 +01:00
Marek Safar
eba6a6153b
Bump ikvm (fixes stream references leak)
2012-12-04 15:11:09 +01:00
Marek Safar
c28feddaf9
Pass empty array to Main methods
2012-12-04 15:11:09 +01:00
Jeffrey Stedfast
4e5ecefa68
Don't return a shared CFProxy instance
2012-12-03 13:59:11 -05:00
Marek Safar
2f173837ea
Update tests
2012-12-03 19:16:04 +01:00
Marek Safar
a35bd3504b
Add MonoTouch test skeleton project
2012-12-03 19:16:03 +01:00
Jeffrey Stedfast
ec3740aa80
Fixed MacOS proxy support for proxies requiring authentication
2012-12-03 12:23:55 -05:00
Marek Safar
f75470516c
Make Main method public
2012-12-03 18:01:25 +01:00
Marek Safar
9f899548c8
Add MonoTouch mode
2012-12-03 18:01:23 +01:00
Marek Safar
3c27fcd2bb
Add MonoTouch compatible run mode
2012-12-03 18:01:23 +01:00
Marek Safar
e80b95e5eb
Workaround ikvm filestream dispose bug
2012-12-03 18:01:23 +01:00
Zoltan Varga
cfe1d67722
Optimize the GC map construction code a bit.
2012-12-03 10:43:08 +01:00
Martin Baulig
b983c5c7fa
[WCF]: Support embedded <wsp:Policy> elements.
2012-12-03 09:18:29 +01:00
Zoltan Varga
c5039cbe18
Avoid a newline in some mono_trace () calls, it already adds one.
2012-12-01 10:22:25 +01:00
Rodrigo Kumpera
b392a01a85
Handle a loader generic type hierarchy corner case. Fixes bxc #8549
...
* class.c: Handle the case when the parent of a GTD needs a generic
instance of the child type leading to a generic instance with
inconsistent values.
Say we have this set of types:
class TextBoxBase<T> : TextInput<TextBox> where T : TextBoxBase<T> {}
class TextBox : TextBoxBase<TextBox> {}
class TextInput<T> : Input<T> where T: TextInput<T> {}
class Input<T> {}
Now the runtime tries to load TextBoxBase<>, this is the sequence of events:
1)Load type TextBoxBase<>
2.1)Type has parent, find it
2.2)Lookup parent TextInput<TextBox>
3.1)Lookup TextInput<>
4)Load type TextInput<> //OK
3.2)Lookup TextBok
5)Load type TextBox
6.1)Type has parent, find it
6.2)Lookup TextBoxBase<TextBox>
7.1)Lookup TextBoxBase<> //OK
7.2)Lookup TextBox //OK
7.3)Create generic instance TextBoxBase<TextBox> //BOOM
Let's examine what happens in (7.3), we try to create the generic class instance TextBoxBase<TextBox>
which means we must inflate all of its MonoClass fields. One field in particular, parent, will be set to null
because the lookup for TextBoxBase parent in (2.2) still running which means the current value is null.
What does it mean? It means that TextBoxBase<TextBox> extends object and our program will misbehave.
Fixes bxc #8549
2012-11-30 17:48:07 -05:00
Rodrigo Kumpera
41fe9f361c
RegistrationServices from the Mobile profile. This is only required for COM.
2012-11-30 14:55:05 -05:00
Rodrigo Kumpera
96d531dd95
Merge pull request #513 from pruiz/xamarin-bug-8565-v2
...
Fixed xamarin-bug #8565 : System.Runtime.Serialization assembly remapping bug when targeting 2/3/3.5 profile.
2012-11-30 09:56:30 -08:00
Marek Habersack
9f3ef8e4ba
Merge pull request #498 from Unroll-Me/master
...
Fix HttpContextWrapper.Session when Session State is disabled
2012-11-30 01:59:01 -08:00
Marek Safar
084915587a
Merge pull request #515 from pruiz/syswebrouting-fixes
...
Fixes xamarin-bug #8646 : Inconsistencies with MS.NET on Sys.Web.Routing logic
2012-11-30 00:04:46 -08:00
Rodrigo Kumpera
6d607ca572
Add stats for cards remarked by the gc and left untouched by the mutator after.
...
* sgen-cardtable.c: A nursery object might not be promoted if it's pinned
or, unlikely, the major heap is full. Under those circumstances we need
to remark the card and leave the object behind.
With this we can see how many extra cards are kept due to pinning.
2012-11-29 14:06:48 -05:00
Jeremie Laval
74b96c4c81
[monkeydoc] Precise the HelpSource that is tested in the error output
2012-11-29 17:40:15 +00:00
Jeremie Laval
3e8896c8a8
[monkeydoc] Robustify EcmaDesc equality checking and fix unit tests
2012-11-29 17:40:15 +00:00
Jeremie Laval
e5dc657456
[monkeydoc] Due to some existing doc, revert to Ordinal instead of OrdinalIgnoreCase
2012-11-29 17:40:15 +00:00
Mark Probst
777de937b6
[tests] Fix pinning in finalizer-exception.cs.
...
The finalizable object got pinned, so it wouldn't be finalised. Just
recurse a bit and allocate it there.
2012-11-29 17:35:34 +01:00
Pablo Ruiz Garcia
3ab03bc826
Fix style to adhere to mono's coding guidelines.
2012-11-29 17:00:21 +01:00
Jeremie Laval
72ebeab25b
Revert "Revert "[monkeydoc] Remove debug spew""
...
This reverts commit 783bcfb735 .
2012-11-29 15:21:19 +00:00
Jeremie Laval
965aaafc7e
[monkeydoc] Disable now unneeded hack
2012-11-29 15:21:06 +00:00
Jeremie Laval
a90fb28719
[monkeydoc] Handle more special generation case
2012-11-29 15:21:06 +00:00
Jeremie Laval
b9145210c1
[monkeydoc] Proxy back GetCachedHelpStream to the right member
2012-11-29 15:21:06 +00:00
Jeremie Laval
f523f022bd
[monkeydoc] Only calculate internal id if necessary
2012-11-29 15:21:05 +00:00
Jeremie Laval
1f6a2697fc
[monkeydoc] Use a map to quickly access zip archive content.
2012-11-29 15:21:05 +00:00
Jeremie Laval
43f36c19ba
[monkeydoc] Avoid variable name clash
2012-11-29 15:21:05 +00:00
Jeremie Laval
783bcfb735
Revert "[monkeydoc] Remove debug spew"
...
This reverts commit 8344309a7b2285db8ebb0af5ec8651d6bf02f375.
2012-11-29 15:21:05 +00:00
Jeremie Laval
6c891c6454
[monkeydoc] Create the summary files in ecma-provider
2012-11-29 15:21:04 +00:00
Jeremie Laval
a808eeec75
[monkeydoc] Don't mistakenly close the zip out stream when storing text.
2012-11-29 15:21:04 +00:00
Jeremie Laval
efca5e5644
[monkeydoc] Fill in more details about the node for rendering to work correctly
2012-11-29 15:21:04 +00:00
Jeremie Laval
c8058623fa
[monkeydoc] Correctly process arguments given to the ecma html-izer
2012-11-29 15:21:03 +00:00
Jeremie Laval
9c579b0f49
[monkeydoc] Enable ecma XML rendering
2012-11-29 15:21:03 +00:00
Jeremie Laval
0a487f3c02
[monkeydoc] Purge extra id parameters in ecma-provider
2012-11-29 15:21:03 +00:00
Jeremie Laval
ce6dc5646a
[monkeydoc] Fix generated ecma: url format
2012-11-29 15:21:03 +00:00
Jeremie Laval
13841a0685
[Microsoft.Build.Tasks] Put failing test into NotWorking category as they are dependent on environment.
2012-11-29 15:21:03 +00:00
Jeremie Laval
9b093e08b3
[monkeydoc] Use Lucene.Net via a submodule set on their 3.0.3 release
2012-11-29 15:21:02 +00:00
Jeremie Laval
2f278f21b6
[monkeydoc] Implement GetHashCode for EcmaDesc
2012-11-29 15:21:02 +00:00
Jeremie Laval
6bf51f24c8
[monkeydoc] Remove hard-copy of Lucene.net
2012-11-29 15:21:02 +00:00
Jeremie Laval
d56f1fec71
[monkeydoc] Remove debug spew
2012-11-29 15:21:01 +00:00
Pablo Ruiz Garcia
3ce598d0a1
Fixed routes with CatchAll argument, in order to make them succesfully
...
match requests with empty (or null) catch-all portion.
Included a couple of unit-tests which pass both here, and on ms.net land.
License: This patch is under MIT/X11 license.
2012-11-29 15:46:49 +01:00
Pablo Ruiz Garcia
00b8180184
One line typo bug which passed unoticed on previous commit.
2012-11-29 05:21:37 +01:00
Pablo Ruiz Garcia
4c066fa286
Fixes xamarin-bug #8646 : Inconsistencies with MS.NET on Sys.Web.Routing logic.
...
This patch fixes some inconsistencies on Sys.Web.Routing between our implementation
and the one found on MS.NET.. Both relating to URL Generation code inside of
Route.GetVirtualPath().
1) When defining a route with a parameter with both a default value and some
constraint, Route.GetVirtualPath() fails to match if no parameter values is specified.
2) HttpMethodConstraint, does not take into account RouteDirection.UrlGeneration.
See: https://bugzilla.xamarin.com/show_bug.cgi?id=8646
License: This patch is under MIT/X11 license.
2012-11-29 01:33:55 +01:00
Rodrigo Kumpera
9e6e733d0b
Make each test output to a different file to make it easy to figure out which configuration crashed.
2012-11-28 18:12:39 -05:00
Rodrigo Kumpera
dcd1f09a38
Add a domain unloading test to the sgen test suite.
2012-11-28 18:12:39 -05:00
Rodrigo Kumpera
575b5577ec
Fix GC logging and make output neater.
2012-11-28 18:12:39 -05:00
Rodrigo Kumpera
cf814c1d30
Lazy sweep blocks when walking the heap.
...
* sgen-marksweep.c (major_iterate_objects): We must lazy sweep blocks
before we enumerate them to correctly account liveness.
2012-11-28 18:12:38 -05:00
Rodrigo Kumpera
def386e8eb
Make sure we don't corrupt the heap when serializing a unix domain socketaddr.
...
* socket-io.c (create_object_from_sockaddr): The resulting array size must
be two bytes larger than the sockaddr one since we always serialize the family
kind at the beginning.
This fixes a crash on MD-linux-amd64-mono-sgen-3.0 running unit tests.
2012-11-28 18:12:38 -05:00
Martin Baulig
f67b2c74dc
[WCF]: Metadata test improvements.
...
Only check whether 'System.Web.Services.Binding.Extensions' contains
the policy XmlElement when importing metadata, not when creating it
programmatically.
2012-11-28 16:06:01 +01:00
Zoltan Varga
83f95595b9
Add some debug logging to lookup_data_table () to help track down why it asserts sometimes.
2012-11-28 15:28:21 +01:00
Zoltan Varga
6b104c2bc4
Remove the setup_jit_tls_data () call from mini_init (), it is done later by mono_thread_attach ().
2012-11-28 15:24:43 +01:00
Martin Baulig
7335a66b27
[WCF]: Add and improve MetadataImport tests.
...
We now run the same tests from ImportTests.cs three times
using the following profiles:
* We load the metadata from an XML file.
* We create the metadata programmatically.
* We create the metadata programmatically, export it into
XML, then import it back (round-trip).
2012-11-28 14:59:23 +01:00
Martin Baulig
c0e3517d2c
[WCF]: Fix accessibility of 'ClientBase<T>.ChannelBase<T>'.
...
Mark it as 'protected internal' in .NET 4.0 and Monotouch and
'internal' otherwise. According to the MSDN docs, the class
is 'protected' and exists in Silverlight, .NET 4.0 and .4.5.
See http://stackoverflow.com/questions/13389652/how-to-override-clientbase-createchannel-in-mono-on-ios .
2012-11-28 12:46:32 +01:00
Marek Safar
0a8bf1aa36
Merge pull request #514 from pmarks/FixNoWarnXBuild
...
[xbuild] handle <NoWarn> tags of the form <NoWarn>1234, 5678</NoWarn>
2012-11-27 23:35:35 -08:00
Patrick Marks
076c945b1b
[xbuild] handle <NoWarn> tags of the form <NoWarn>1234, 5678</NoWarn>,
...
for improved compatibility with msbuild
2012-11-27 22:28:08 -08:00
Rolf Bjarne Kvinge
87810b523a
Make WaitHandle.Wait* behave the same wrt WAIT_IO_COMPLETION. Fixes #8566 .
...
Make the all check for exceptions if interrupted, and wait again
with a re-calculated timeout if no exceptions were to be thrown.
This fixes a deadlock in WaitAny, because WaitAny wasn't checking
for exceptions, just re-calculating the timeout. It also makes
the methods behave the same wrt other APC reasons.
2012-11-28 00:08:11 +01:00
Jeremie Laval
41458015c8
[monkeydoc] Special case pluralization of 'Property'.
2012-11-27 18:14:57 +00:00
Pablo Ruiz Garcia
05828c83c8
Fixed xamarin-bug #8565 : System.Runtime.Serialization assembly remapping bug when targeting 2/3/3.5 profile.
...
The problem is related to a fix for issues #8037 & #6528
(e3b9881 ) which seems to be breaking shadow copy
with programs targeting .net35 and referencing System.Runtime.Serialization.dll
The fix consists on adding a new version_set entry to each supported_runtime
at mono/metadata/domain.c so I we cope with the case of assemblies which must
be remapped to v4.0 on net4/net45, but which should be remapped to v3.0 (instead
of v3.5) when targeting net2 or net3x.
See: https://bugzilla.xamarin.com/show_bug.cgi?id=8565
License: This patch is under the MIT/X11 license.
2012-11-27 18:53:58 +01:00
Jeremie Laval
0b3add4d5a
[monkeydoc] Correctly instantiate read and write zip handles for ZipStorage.
2012-11-27 17:10:16 +00:00
Jeremie Laval
eb59671ca7
[monkeydoc] Fix ecma doc generation
2012-11-27 17:10:15 +00:00
Jeremie Laval
c80e95f4a1
[monkeydoc] Don't allow empty caption or element when creating nodes.
2012-11-27 17:10:15 +00:00
Jeremie Laval
e350634ec3
[build] Always report full stack-trace when running mdoc in mcs/docs.
2012-11-27 17:10:15 +00:00
Jeremie Laval
65037c648f
[System.Windows.Forms] Fix documentation to remove illegal XML characters.
2012-11-27 17:10:15 +00:00
Jeremie Laval
7cec453464
[mdoc] Remove obsolete warning
2012-11-27 17:10:14 +00:00
Jeremie Laval
ff48333321
[monkeydoc] Allow to set RootTree on HelpSource. Required by mdoc.
2012-11-27 17:10:14 +00:00
Jeremie Laval
2dbfa53550
[monkeydoc] Move Node class to its own file
2012-11-27 17:10:14 +00:00
Jeremie Laval
6a33319225
[monkeydoc] Add support for multiple input directory in ecma-provider
2012-11-27 17:10:14 +00:00
Jeremie Laval
1eeec12164
[monkeydoc] Restore mono.addins provider
2012-11-27 17:10:13 +00:00
Jeremie Laval
555d79c23d
[monkeydoc] Tiny refactorings
2012-11-27 17:10:12 +00:00
Marek Safar
420b7c3515
Merge pull request #512 from LogosBible/string_CompareOrdinal
...
Making the behavior of substring versions of string.CompareOrdinal and s...
2012-11-27 08:48:14 -08:00
Martin Potter
edc38904d9
Making the behavior of substring versions of string.CompareOrdinal and string.CompareOrdinalCaseInsensitive match Microsoft's implementation.
...
The MSDN documentation states "Because CompareOrdinal is a static method, strA and strB can be null. If both values are null, the method returns 0 (zero), which indicates that strA and strB are equal. If only one of the values is null, the method considers the non-null value to be greater." Previously, CompareOrdinal and CompareOrdinalCaseInsensitive would throw a NullReferenceException if strA or strB was null.
2012-11-27 08:20:51 -08:00
Marek Safar
27119f6dfa
Use same rule for reference alias identifer as for normal identifiers.
2012-11-27 16:31:16 +01:00
Atsushi Eno
05d46a8fc9
fix bug #8533 - more than one user config section should be generated in ApplicationSettingsBase.Save().
...
Patch by Kei Nakazawa.
2012-11-27 19:49:19 +09:00
Atsushi Eno
2ce799595e
fix xbc bug #8592 : Make sure to reload configuration when Reset() was invoked.
...
Patch by Kei Nakazawa.
2012-11-27 16:13:30 +09:00
Martin Baulig
cdc98dba1b
[WCF]: Implement missing WsdlImporter pieces.
...
The WsdlImporter can now import Bindings and Endpoints
from the WSDL, currently supporting BasicHttpBinding,
BasicHttpsBinding and NetTcpBinding.
There is also - limited and still experimental - support
for WS-Policy 1.5. I only did the very basic pieces so
far, for instance things like TransportWithMessageCredentials
are not supported yet.
The policy importer will emit lots of warnings via
`MetadataImporter.Errors` (as warnings, not errors) whenever
it encounters something that it doesn't understand and
is also forgiving towards unknown and/or mal-formed
policy assertions.
This behavior is different from the MS runtime, which is
very strict, but there are simply too many missing pieces
to be more pedentic here. Check whether Errors.Count == 0
to see whether all policy assertions have been correctly
imported.
There are also a few metadata samples, which are part of the
new nunit tests. These are currently working:
BasicHttp.xml, BasicHttp_Mtom.xml, BasicHttp_NtlmAuth.xml,
BasicHttp_TransportSecurity.xml, BasicHttps.xml,
BasicHttps_NtlmAuth.xml, NetTcp.xml, NetTcp_TransferMode.xml,
NetTcp_TransportSecurity.xml
There are a few more in the Tests/MetadataTests/Resources/
directory which demonstrate missing pieces.
2012-11-27 02:30:54 +01:00
Martin Baulig
8e4dc61cc2
[WCF]: BasicHttpBinding API changes for .NET 4.5.
...
BasicHttpBinding received a few API cleanups and refactorings
in .NET 4.5:
* There is a new abstract HttpBindingBase class and most of
BasicHttpBinding's API has been moved into this new class.
* There is a new BasicHttpsBinding.
* BasicHttpBinding / BasicHttpsBinding now only contain the APIs
which are specific to http / https, the rest now lives in the
new abstract HttpBindingBase.
* Similarly, there's now also HttpBindingBaseElement for the
configuration.
* There is a new BasicHttpsSecurityMode enum, which only contains
'Transport' and 'TransportWithMessageCredential', so you can't
accidentally use an insecure transport.
2012-11-27 01:46:47 +01:00
Martin Baulig
831ce5fccc
[WCF]: New WsdlImporter nunit tests and sample wsdl docs.
...
This adds a bunch of new nunit tests and sample wsdl docs to
test the import of endpoints and bindings using WsdlImporter.
2012-11-27 00:56:37 +01:00
Marek Safar
b819c20292
Don't install MT runtime profile
2012-11-26 23:03:58 +01:00
Rodrigo Kumpera
8e95c76b9d
Fix the split nursery to work with the SERIALCOPY_OBJECT_FROM_OBJ optimization.
2012-11-26 12:02:56 -05:00
Rodrigo Kumpera
05e37b5637
Revert "Revert SERIAL_COPY_OBJECT_FROM_OBJ as it's only benefit is to avoid a remset check"
...
This re-applies Zoltan's 9c59948886 that introduces SERIAL_COPY_OBJECT_FROM_OBJ.
It avoid some nursery checks for the simple nursery.
2012-11-26 12:02:56 -05:00
Rodrigo Kumpera
d5e4b18053
Revert "Use Zoltan's simpler promotion failure check for the simple nursery."
...
This reverts commit fc5b3d6842 .
This broke ssb in std tests.
2012-11-26 12:02:56 -05:00
Jeremie Laval
ddd2e48fba
[corlib] Fix MaxConcurrencyLevel and MaxDegreeOfParallelism usage. Fix OOM error introduced in 1f246742d8.
2012-11-26 16:48:26 +00:00
Zoltan Varga
c8ae1b1b84
Mark OP_TAILCALL as a GC call site on x86.
2012-11-26 16:54:24 +01:00
Marek Safar
92727e5fba
Add DefaultParameterValueAttribute to mobile profiles
2012-11-26 16:29:27 +01:00
Jeremie Laval
ab72779b4b
[monkeydoc] Avoid creating temporary strings in the comparer
2012-11-26 15:06:24 +00:00
Jeremie Laval
bfe0c10a84
[monkeydoc] Optimize the tokenizer.
...
Shave off two seconds of the unit tests but might now be worth the unsafeness in the end. To revert later if that's the case.
2012-11-26 14:30:43 +00:00
Jeremie Laval
aa4e6f9b98
[monkeydoc] Cache PublicUrl
2012-11-26 13:43:29 +00:00
Jeremie Laval
002ee9de62
[monkeydoc] Specify StringComparison with StartsWith too
2012-11-26 13:43:20 +00:00
Jeremie Laval
9dd091fb0a
[corlib] Pass the right scheduler for worker number calculation. Fix #8559 .
2012-11-26 12:12:54 +00:00
Mark Probst
dee716eb4d
[sgen] Switch license of SGen to LGPL2.
...
We add the new license header to all SGen files we change
from now on.
2012-11-25 11:06:47 +01:00
Zoltan Varga
91b59e5cda
Treat exceptions caught in non-user code as unhandled in sdb.
2012-11-24 11:12:19 +01:00
Zoltan Varga
769d52ba7c
Update URL for the 'Unmanaged code called delegate of type %s which was already garbage collected.' message.
2012-11-24 08:15:27 +01:00
Atsushi Eno
e2b2d18108
Merge pull request #409 from Alkarex/patch-1
...
Update mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/RelaxngPattern....
2012-11-23 11:56:32 -08:00
Marek Safar
aa82d6c32e
Add new test
2012-11-23 18:23:45 +01:00
Marek Safar
723a572c4d
Support import of F# extension methods. Fixes #8561
2012-11-23 18:13:55 +01:00
Jeremie Laval
3a255ac36e
[monodoc] Big bro is watching you. Log when someone push a new binary to the server.
2012-11-23 15:37:43 +00:00
Jeremie Laval
c388aaa893
[monkeydoc] Avoid extra copying of EcmaDesc
2012-11-23 15:19:35 +00:00
Jeremie Laval
0242f93ede
[monkeydoc] Merge/add monkeydoc to master.
...
The commit also contains tiny changes to existing xml documentation, restoring docs that were lost and a couple fixes to mdoc/monodoc to cope with the new system.
2012-11-23 14:56:15 +00:00
Zoltan Varga
6ff01ffc70
Mark mono_arch_create_llvm_native_thunk () as MONO_LLVM_INTERNAL.
2012-11-23 15:49:53 +01:00
Zoltan Varga
a75c4047f6
Fix another case missed by 7e222739db.
2012-11-23 15:49:52 +01:00
Marek Safar
1f246742d8
Fix MaximumConcurrencyLevel. Fixes #8557
2012-11-23 12:42:33 +01:00
Zoltan Varga
fddd974559
Fix a case missed by 7e222739db.
2012-11-23 12:40:12 +01:00
Zoltan Varga
7e222739db
Fix support for --disable-executables used together with --disable-shared.
2012-11-23 12:19:14 +01:00
Zoltan Varga
81688d4189
Add a thunk for calls from LLVM code to native functions on amd64, since the call displacement might exceed 32 bits. Hopefully fixes #8502 .
2012-11-23 10:01:20 +01:00
Sebastien Pouliot
95f73a7d36
Do not send IP address as server_name entries and skip non-fatal (warning) alerts when negotiating. Fix bug #8553
2012-11-22 16:34:47 -05:00
Marek Safar
33c50ac058
Fix public ikvm module location
2012-11-22 15:19:36 +01:00
Zoltan Varga
9d0290d3fd
Fix a buffer overflow in the LLVM backend. Fixes #8502 .
2012-11-22 15:03:36 +01:00
Marek Safar
1fda4fac4a
Merge pull request #510 from bprzygoda/eval_improvements
...
Fixed Evaluator' GetUsing method by implementing ToString overrides.
2012-11-22 05:14:24 -08:00
Marek Safar
f5046f9684
Merge pull request #509 from antoniusriha/master
...
WindowsBase: Add IEditableCollectionViewAddNewItem.cs
2012-11-22 05:13:17 -08:00
bprzygoda
2b53d86ece
Fixed Evaluator' GetUsing method by implementing ToString override for UsingNamespace and Namespace classes.
2012-11-22 10:41:46 +01:00
Antonius Riha
0059c53ce7
[WindowsBase] Add IEditableCollectionViewAddNewItem.cs
2012-11-22 10:02:47 +01:00
Zoltan Varga
d308d4f961
Fix the clang configure check.
2012-11-21 19:07:50 +01:00
Zoltan Varga
1dac25c990
Fix a warning.
2012-11-21 19:07:49 +01:00
Marek Safar
4812b7cc09
Remove duplicate ikvm modul registration
2012-11-21 17:17:06 +01:00
Marek Safar
d88a760e93
Submodule ikvm reflection
2012-11-21 17:07:41 +01:00
Jeremie Laval
76ebd11144
[monodoc] Update target
2012-11-21 15:21:45 +00:00
Zoltan Varga
9df83ea8a2
Avoid an assert in sdb if mono_thread_info_safe_suspend_sync () fails for an attached thread.
2012-11-21 15:46:04 +01:00
Marek Safar
2aab2cac8f
Add new test
2012-11-21 13:15:43 +01:00
Marek Safar
8d69f23de4
Implement .extern class support for forwarded types
2012-11-21 13:15:43 +01:00
Marek Safar
d716d49281
Merge pull request #508 from alesliehughes/master
...
More Changes to AxHost to stop Exceptions
2012-11-20 23:48:10 -08:00
Martin Baulig
bb0721b63f
[System.Configuration]: Imlement ConfigurationElement.EvaluationContext.
2012-11-21 02:03:20 +01:00
Martin Baulig
14ec9c7fb7
[System.Configuration]: Fix filenames in ExeConfigurationFileMap.
2012-11-21 02:03:03 +01:00
Martin Baulig
35fed1244f
Fix ConfigurationManagerTest for .NET 4.0 and 4.5.
...
Use a new 'DotNetVersion' property rather than hardcoding 'net_2_0'.
2012-11-21 02:02:54 +01:00
Martin Baulig
7d807ae8c3
Fix NTLM related test failures.
...
* Provide a more descriptive [Obsolete] message for the legacy API.
* Refuse to send the LM response unless explicitly enabled with
Type3Message.DefaultAuthLevel. The LM response is only actually
checked by old, pre-historic servers and sending it exposes the
user's password to very weak encryption.
* Fix some problems when encoding / decoding problems in Type2Message.
* Type3Message now encodes host and domain name in a case-sensitive
way, fixes the tests.
2012-11-21 02:02:42 +01:00
Alistair Leslie-Hughes
149a39937f
Implement RegistrationServices.GetProgIdForType
2012-11-21 10:07:52 +11:00
Alistair Leslie-Hughes
c9f96596a0
Call base for Dispose and DestroyHandle
2012-11-21 10:07:51 +11:00
Alistair Leslie-Hughes
9a28d981fd
Call DefWndProc by default in AxHost.WndProc
2012-11-21 10:07:49 +11:00
Alistair Leslie-Hughes
8a0499121c
Add support for AxHost.CreateHandle
2012-11-21 10:07:47 +11:00
Sebastien Pouliot
a9c7937cb3
Allow the linker to preserve a whole assembly. Avoid using linkskip (e.g. with linkall) on several projects using the same (non-linkable) assembly
2012-11-20 17:00:52 -05:00
Rodrigo Kumpera
fc5b3d6842
Use Zoltan's simpler promotion failure check for the simple nursery.
2012-11-20 16:54:33 -05:00
Rodrigo Kumpera
3bc5c3ed8c
Revert SERIAL_COPY_OBJECT_FROM_OBJ as it's only benefit is to avoid a remset check
...
we can't really avoid. And the simplification for the simple nursery can be done directly
in HANDLE_POINTER.
2012-11-20 16:42:52 -05:00
Mark Probst
786982b429
[sgen] Fix use of volatile in the lock free allocator.
...
Ignorant use of volatile resulted in a bug in the lock free queue, which is used by the lock
free allocator.
2012-11-20 20:33:51 +01:00
Miguel de Icaza
80d606ce6c
Added target
2012-11-20 12:02:40 -05:00
Marek Safar
dc70826f2a
Report error for missing assembly reference used by type forwarder.
2012-11-20 17:50:49 +01:00
Marek Safar
29f274c5d1
Update to the latest IKVM.Reflection
2012-11-20 17:48:59 +01:00
Rodrigo Kumpera
90adf67203
Fix compilation on non gcc systems with varargs.
2012-11-20 11:16:22 -05:00
Zoltan Varga
9e37326b69
Remove a -W option which breaks with older gcc versions.
2012-11-20 16:42:30 +01:00
Marek Safar
5b4d085272
Fix NativeOverlapped definition. Fixes #8449
2012-11-20 13:04:14 +01:00
Marek Safar
a7064d1558
Add new test
2012-11-20 13:04:13 +01:00
Marek Safar
1183d4b2fc
Merge pull request #506 from antoniusriha/master
...
WindowsBase: Add some implementation to class GroupDescription
2012-11-20 03:31:46 -08:00
Antonius Riha
a95b9c7c37
[WindowsBase] Add some implementation to class GroupDescription
2012-11-20 12:06:50 +01:00
Zoltan Varga
1b52c46937
Fix some warnings when compiling with clang. Remove -pthread argument from ldflags on osx.
2012-11-20 08:49:20 +01:00
Zoltan Varga
b0e31fe05a
Fix libgc compilation with clang.
2012-11-20 08:27:20 +01:00
Zoltan Varga
06d9bb9a4f
Rename 'thread_info' global in sgen to 'sgen_thread_info' since it seems to conflict with a system definition on osx when using clang.
2012-11-20 08:26:35 +01:00
Zoltan Varga
5d436f92c8
Disable --tls=__thread support when using clang until it is fixed.
2012-11-20 08:14:08 +01:00
Zoltan Varga
986111504c
Fix OBJ_BITMAP_FOREACH_PTR () for non gcc compilers.
2012-11-20 07:42:05 +01:00
Zoltan Varga
a698aba8f8
Optimize OBJ_BITMAP_FOREACH_PTR () using __builtin_ctz ().
2012-11-20 07:32:59 +01:00
Rodrigo Kumpera
222d55771a
Fixe memberref parent token size calculation.
2012-11-19 20:35:40 -05:00
Rodrigo Kumpera
36019e33ab
For some unknown reason sequence points on wrappers are disabled on android.
2012-11-19 18:15:53 -05:00
Zoltan Varga
a2765786db
Added a workaround for #2190 . Avoid calling mono_arch_get_argument_info () from the stack walking code on x86, its not signal safe.
2012-11-19 18:11:26 -05:00
Rolf Bjarne Kvinge
da1644bfbf
Redirect g_print and relatives to the device log in MonoTouch.
...
* goutput.c: Redirect output to the device log on iOS devices.
2012-11-19 17:53:55 -05:00
Rodrigo Kumpera
8d9fa2b2ec
Redirect console output for iOS/Android when tracing.
...
* trace.c: Given the quite complex usage of printf by
the tracing code, we resort to a simple hack to do it.
2012-11-19 17:50:39 -05:00
Rodrigo Kumpera
da3a1b5856
Switch exception reporting to use utils/mono-logger-internal.h.
2012-11-19 17:34:56 -05:00
Rodrigo Kumpera
b3f37adf47
Switch sgen to use utils/mono-logger-internal.h for logging.
2012-11-19 17:31:15 -05:00
Rodrigo Kumpera
f31b8de0b9
Add stdout/stderr wrappers for the gc and runtime.
...
* mono-logger-internals.h: Add wrappers that correctly redirect
to the right place on iOS and Android devices.
The new functions are line oriented so they don't allow to use multiple
calls to produce a single line. Callers should re-arrange their code to
properly handle this as those devices only have line-oriented facilities.
2012-11-19 17:28:15 -05:00
Rodrigo Kumpera
829eb0264b
Kill sgen_get_logfile and sgen_debug_printf.
2012-11-19 17:02:18 -05:00
Rodrigo Kumpera
43efb5c51f
Kill explicit usages of gc_debug_file.
2012-11-19 17:02:17 -05:00
Rodrigo Kumpera
6a84f65b0a
Replace all uses of DEBUG with SGEN_LOG and SGEN_ASSERT.
...
* sgen-*.*: Kill the DEBUG macro in favor of clean alternatives.
2012-11-19 17:02:17 -05:00
Rodrigo Kumpera
b061c7e4bf
Add macros to sgen meant to replace DEBUG
...
* sgen-gc.h: Add log and assertions macros so we can have different logging levels
for them and so we can better abstract the logging medium.
2012-11-19 17:02:09 -05:00
Rodrigo Kumpera
e717abc7f0
Disable AOT pretty symbol names on iOS.
...
* dwarfwriter.c: Don't emit symbol description on iOS
as it crashes dsymutil for darwin-ios.
2012-11-19 16:54:09 -05:00
Zoltan Varga
bfeeb7d9fd
Disable LLVM for methods with nested clauses for now to work around #6650 .
2012-11-19 16:54:09 -05:00
Dean Ellis
a56f69f82d
[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-11-19 21:35:20 +00:00
Lluis Sanchez
3a6c0cf166
Add tests for bug #8468
...
Conflicts:
mcs/class/System.XML/Test/System.Xml.Serialization/DeserializeTests.cs
2012-11-19 21:21:03 +01:00
Lluis Sanchez
e06cde993e
Fix XML serialization bug
...
When reflecting a class which inherits serializable members from a
base class, the members of the base class must be serialized using the
namespace set in the subclass unless a namespace has been explicitly
set in the base class. Before the fix, the members were always
serialized using the namespace of the base class, even when not set
(in which case it was using the default empty namespace).
Fixes bug 8468 - XML serialization problem.
2012-11-19 21:18:14 +01:00
Marek Safar
eb7aa82913
Prefer indexer over properties with parameters
2012-11-19 15:37:20 +01:00
Marek Safar
5ff22884f9
Reject overload candidates with not enough default parameters before dependency check. Fixes #8466
2012-11-19 13:54:46 +01:00
Zoltan Varga
c173a8c215
Sweep the heap block containing the object in free_object ().
2012-11-19 13:52:00 +01:00
Zoltan Varga
bdfddfb508
Move an sgen debug message to loglevel 2 from 1.
2012-11-19 13:17:46 +01:00
Zoltan Varga
2b66e67e50
Fix a warning.
2012-11-19 11:23:31 +01: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
Marek Safar
8cd773d857
Implement support for imported properties with parameters. Fixes #8398
2012-11-18 19:41:12 +01:00
Zoltan Varga
5f57c9c3a0
Unroll the first loop iteration in OBJ_RUN_LEN_FOREACH_PTR ().
2012-11-18 17:37:42 +01:00
Zoltan Varga
dfbb1c153f
Increase the number of trampoline entries reserved for trampolines.
2012-11-18 04:26:02 +01:00
Zoltan Varga
bfc56c90ce
Check for nullref exceptions in ves_icall_System_Buffer_BlockCopyInternal () since it is called directly without going through the managed wrapper. Optimize the MONO_CHECK_ARG() macros a bit.
2012-11-18 03:11:05 +01:00
Zoltan Varga
a2485c5434
Fix the sizeof IL instruction for reference types. Fixes #8448 .
2012-11-17 10:14:48 +01:00
Marek Safar
2df0d2ca5e
Merge pull request #504 from antoniusriha/master
...
Make Uri.MakeRelativeUri .NET compatible.
2012-11-16 13:36:09 -08:00
Antonius Riha
c63b7eba2d
Add a test for UriTemplate.Match
2012-11-16 18:19:40 +01:00
Antonius Riha
8c7c1ff5f3
Fix Uri.MakeRelativeUri and add a bunch of tests
...
A previous patch on this method broke the method UriTemplate.Match
which calls the Uri.MakeRelativeUri method.
To ensure compatibility with .NET's implementation several tests
have been added.
2012-11-16 18:19:39 +01:00
Zoltan Varga
bf683c2885
Handle copy_object_no_checks () returning the object itself instead of a copy in SERIAL_COPY_OBJECT_FROM_OBJ ().
2012-11-16 16:35:32 +01:00
Zoltan Varga
e8bd2b1c46
Fix an uninitialized memory error in the AOT compiler.
2012-11-16 15:32:53 +01:00
Marek Safar
62c968fec2
Fix unambiguous check between async Task and Task<T>. Fixes #8414
2012-11-16 13:59:12 +01:00
Jeremie Laval
94f551d463
[corlib] Protect against multiple invocation of FromAsync result code. Fix #7965 .
...
For some weird reason, it seems the end callback can be called multiple times by some async result.
2012-11-16 11:36:41 +00:00
Marek Safar
eb440e5454
Fix parsing conditional expression with nullable type followed by coallesce operator. Fixes #8384
2012-11-16 12:30:31 +01:00
Zoltan Varga
9c59948886
Add some micro optimizations to the sgen nursery copy functions. Integrate the global remset check into SERIAL_COPY_OBJECT () so it is only done if the object is still in the nursery after the copy.
2012-11-16 10:03:36 +01:00
Sebastien Pouliot
e4ec0bc63e
Throw an AssemblyResolutionException is anything goes wrong trying to resolve an AssemblyNameReference
2012-11-15 21:57:38 -05:00
Rodrigo Kumpera
5b99559f40
Arm now requires the usage of MonoContext functions.
2012-11-15 18:08:14 -05:00
Rodrigo Kumpera
e8485aa6d6
Fix sgen_suspend_thread on mach-ios.
2012-11-15 18:08:06 -05:00
Rodrigo Kumpera
10f6eac64d
Use full path for includes as this was braking the cross compiler.
2012-11-15 18:07:56 -05:00
Rodrigo Kumpera
3b06a54f5c
Fix mono_thread_state_init_from_handle to properly work on darwin-arm.
2012-11-15 17:31:11 -05:00
Rodrigo Kumpera
6259cf0024
iOS cross compilation needs some forward declarations.
2012-11-15 17:30:21 -05:00
Zoltan Varga
d3c58787ad
Make the 'Attempting to JIT compile method' message reference http://docs.xamarin.com/ios/about/limitations .
2012-11-15 16:58:45 -05:00
Rodrigo Kumpera
de87a96a79
Switch the runtime to use TARGET_IOS and TARGET_OSX instead of playing with TargetConditionals.
2012-11-15 16:48:32 -05:00
Rodrigo Kumpera
2c7b89300c
Switch boehm to use TARGET_OSX/TARGET_IOS.
2012-11-15 16:21:25 -05:00
Rodrigo Kumpera
c01b7e5c6b
Add TARGET_IOS and TARGET_OSX defines to help cleanup the current mess.
2012-11-15 16:20:17 -05:00
Rodrigo Kumpera
889fbbb4ce
Fix the cross compilation check to properly detect android v5.
...
* configure.in: We tried to match "arm*-unknown-linux-gnueabi*"
firs and then "armv5-*-linux-androideabi*" which obviously don't
match. Fix that by making the first test more broad.
2012-11-15 15:30:40 -05:00
Rodrigo Kumpera
8c355f4a04
Remove superfluous AC_DEFINE.
2012-11-15 15:21:49 -05:00
Zoltan Varga
5525fff229
Add a no-direct-calls AOT option to help fix #4587 .
2012-11-15 15:17:00 -05:00
Sebastien Pouliot
484b8c2baf
Add link to http://docs.xamarin.com/ios/troubleshooting when running out of trampolines
2012-11-15 15:16:57 -05:00
Rolf Bjarne Kvinge
f6c5cdf36c
It is not necessary to convert code to thumb addresses in direct-method-address mode. Fixes #3275 .
2012-11-15 15:16:54 -05:00
Rolf Bjarne Kvinge
20d0b100dd
AOT: Add option to emit global symbols for methods. Fixes #2471 .
...
The logic here is that we emit the debug name for a method as the global
symbol, not the generated name we otherwise use, and we don't emit a debug
symbol. The issue is that if we have both a global debug symbol and a global
(generated) method name, which one will show up in stack traces is undefined.
This is a temporary patch until it has been reviewed by the runtime
people (it's only on mobile-master for now).
2012-11-15 15:16:52 -05:00
Rolf Bjarne Kvinge
b66643b16f
AOT: Don't use fixed-size buffers and sprintf with asm_symbol.
...
This is a temporary patch until it has been reviewed by the runtime
people (it's only on mobile-master for now).
2012-11-15 15:16:49 -05:00
Rolf Bjarne Kvinge
20eaae5a45
AOT: Add more MONOTOUCH ifdefs to not break M4A
2012-11-15 15:16:46 -05:00
Rolf Bjarne Kvinge
d3cd1f900e
AOT: Use direct method addresses instead of calculating offsets since the linker may move/reorder methods
...
Partially fixes #707 .
This is a temporary patch until it has been reviewed by the runtime
people (since some people need it urgently and there is no real
workaround).
2012-11-15 15:16:39 -05:00
Rolf Bjarne Kvinge
0a12d1e084
AOT: Follow jumps when getting the plt entry for a call.
...
Partially fixes #707 - the issue is that the arm linker may insert branch
islands between branch location and branch target if the branch target
is too far away to be encoded in the branch instruction.
This is a temporary patch until it has been reviewed by the runtime
people (since some people need it urgently and there is no real
workaround).
2012-11-15 15:16:37 -05:00
Rodrigo Kumpera
f794c69e44
Disable dynamic loading for iOS simulator builds.
2012-11-15 14:35:10 -05:00
Rodrigo Kumpera
6399312b14
Fix boehm to correctly build on iOS/x86.
2012-11-15 14:27:26 -05:00
Zoltan Varga
46733c1a67
Add more logging to the sdb debugger thread.
2012-11-15 12:47:59 -05:00
Rodrigo Kumpera
1c7e9d4aaa
MonoDroid needs a way to inform the debugger of possibly unhandled exceptions.
...
* Debugger.cs: Add Mono_UnhandledException method that
triggers sdb to send an unhandled exception message to the agent.
This is needed since MonoDroid can't know at the Java->C# boundary
if a given C# exception is unmanaged or not.
2012-11-15 12:47:59 -05:00
Rolf Bjarne Kvinge
e9976e8d9a
[sdb] Export functions to register custom transports and do the handshake.
2012-11-15 12:47:58 -05:00
Marek Safar
c94081e227
Don't crash when imported constant is of unknown type. Fixes #8399
2012-11-15 17:02:10 +01:00
Marek Safar
f3edca9430
Handle type hidding via local variables and parameters. Fixes #8383
2012-11-15 17:02:10 +01:00
Jeremie Laval
e7f4360ad3
[corlib] Fix unobserved exception being mistakenly propagated to finalizer thread when using ContinueWhenAll.
...
The problem was that we internally use Task.WhenAll inside TaskFactory.ContinueWhenAll to merge the given tasks into one that we can Continue on to run the passed arguments.
However, the behavior of WhenAll is to collect the exceptions that happened on its parent tasks and to set the aggregate on itself which was not catched by our continuation internally, leading to the exception remaining unobserved and escalating to the finalizer thread.
2012-11-15 15:01:32 +00:00
Atsushi Eno
bdfc0f36c0
set NO_INSTALL = yes until we decide how to deal with them and fix dist.
2012-11-15 14:36:29 +09:00
Atsushi Eno
f48ceaec1d
Fix fix fix, insufficient signing stuff.
2012-11-15 13:03:32 +09:00
Zoltan Varga
b5984c5897
Reorganize the scan-minor-copy/scan.h header files a bit. Move the nursery copying functions to sgen-minor-copy.h, uppercase some macro names.
2012-11-15 04:22:37 +01:00
Atsushi Eno
6b9796e60f
damn, another DISTFILES required.
2012-11-15 10:03:28 +09:00
Atsushi Eno
aeab08a478
fix install-local and simplify signing in rx assemblies.
2012-11-15 09:36:03 +09:00
Atsushi Eno
762da33087
Another dist build fix for rx integration, move *.cs file to safe-ish path.
2012-11-15 09:18:17 +09:00
Rolf Bjarne Kvinge
eb42630229
Add profiler to the monotouch build
2012-11-14 16:09:07 -05:00
Rodrigo Kumpera
cf754cdb63
Tweak the Makefiles to enable monotouch builds to compile less stuff.
...
* Makefile.am: Make it possible to only produce the monotouch
byproducts.
2012-11-14 16:09:06 -05:00
Rodrigo Kumpera
8e2374ff36
Fix iOS cross compilation.
2012-11-14 16:09:06 -05:00
Rodrigo Kumpera
0a6b69585c
Initialize LLVM's ARM target when compiling for it.
2012-11-14 16:09:06 -05:00
Rodrigo Kumpera
05386661cc
Use the right llvm codegen when cross compiling.
2012-11-14 16:09:06 -05:00
Sebastien Pouliot
e26b6b4285
FileVersionInfo is not really 'process handling'. Fix regression from #709278
2012-11-14 16:09:06 -05:00
Rodrigo Kumpera
586b94d63e
Kill the SL profile and get Mobile on its place instead.
...
* socket-io.c:
* threadpool.c:
* domain-internals.h: The mobile profile uses System.dll for sockets.
2012-11-14 16:09:05 -05:00
Rodrigo Kumpera
84c7bb4613
Fix ARM compilation of mono-context.c
2012-11-14 16:09:05 -05:00
Rodrigo Kumpera
9b73cd9c33
Bionic cannot handle a NULL filename in dlopen.
2012-11-14 16:09:05 -05:00
Rodrigo Kumpera
bb235cad2c
Implement MONO_CONTEXT_GET_CURRENT for arm.
2012-11-14 16:09:05 -05:00
Atsushi Eno
fe859e48fc
ok, those resources need *.prebuilt too...
2012-11-15 04:55:50 +09:00
Atsushi Eno
d8d38766cc
Changed resx/resources build steps based on MWF approach.
2012-11-15 04:28:07 +09:00
Atsushi Eno
32aeea07bb
update rx (removed InternalsVisibleTo workarounds)
2012-11-15 03:27:26 +09:00
Atsushi Eno
661f675ef2
...and they also need EXTRA_DISTFILES for tarballs.
2012-11-15 03:26:14 +09:00
Atsushi Eno
cee7b09847
I needed to add rx to .gitmodules too.
2012-11-15 02:43:58 +09:00
Atsushi Eno
ec32fd0f17
and add more missing files for rx build...
2012-11-15 02:00:42 +09:00
Atsushi Eno
2dc5ce2706
forgot to switch to the release-ready branch.
2012-11-15 01:58:31 +09:00
Atsushi Eno
5620b97853
import Microsoft Reactive Extensions from rx.codeplex.com and add to build.
2012-11-15 01:56:14 +09:00
Rodrigo Kumpera
9ab2b174e5
Properly support cross compiling for the mach support code.
...
* Makefile.am: When cross compiling use the new -unknown variant of
the mach support code so we don't need to wrestle which one the host
is running on.
2012-11-14 11:37:47 -05:00
Rodrigo Kumpera
6d46063393
Fix mach support for arm.
...
* mach-support-arm.c: Fix a silly thinko in mono_mach_arch_get_thread_state.
2012-11-14 11:37:47 -05:00
Rodrigo Kumpera
80f6c82605
Replace mcontext with void* in the mach support code so it cross compile nicely.
2012-11-14 11:37:46 -05:00
Rodrigo Kumpera
4c78059bc5
Don't use System.Environment.Exit to finish a sdb session on iOS.
2012-11-14 11:37:46 -05:00
Sebastien Pouliot
0dd29ed721
Add test case from bug #8366 (it was fixed in master, not in 2-10)
2012-11-14 11:24:59 -05:00
Marek Safar
011417179a
More fixed for conditional expression promotions. Fixes #8385
2012-11-14 12:26:45 +01:00
Marek Safar
d483378be2
Base access can be upgraded only to valid overrides of initial method. Fixes #8334
2012-11-14 11:47:54 +01:00
Zoltan Varga
f4f9fe5116
Quit more messages about configure.in/configure.ac.
2012-11-14 02:08:22 +01:00
Zoltan Varga
308532a6c3
Sweep unswept blocks referenced by set card table entries.
2012-11-14 01:22:03 +01:00
Zoltan Varga
c4efbebdf9
Use multiple versions of sweek_block () specialized for constant object sizes.
2012-11-14 01:22:03 +01:00
Zoltan Varga
57ce735dbd
Implement lazy sweeping for the mark-sweep collector in sgen.
2012-11-14 01:22:03 +01:00
Rodrigo Kumpera
ef746831ad
Use TARGET defines instead of the arch specific ones.
2012-11-13 17:40:52 -05:00
Rodrigo Kumpera
06dffa1cca
Add a cross compilation target to sgen-archdep.h
2012-11-13 17:40:41 -05:00
Chris Toshok
a0898dfa6c
Replace .quad with a pair of .long in the defunkt mdb.
2012-11-13 17:37:28 -05:00
Rodrigo Kumpera
f40bc2e716
Use TARGET defines instead of the arch defines to properly handle cross compilation.
2012-11-13 17:36:58 -05:00
Rodrigo Kumpera
0a59eb9765
Correctly identify iOS device/simulator builds and act accordingly.
...
* processes.c: Use the same behavior under simulator as on
device when finding process names.
* mini-darwin.c: The simulator doesn't need the exception thread
as well.
* mini-sigcontext.h: Simulator uses the new ucontext names.
2012-11-13 17:36:58 -05:00
Rodrigo Kumpera
6fcfdc52ab
Do the right check for TARGET_IPHONE_SIMULATOR.
2012-11-13 17:36:58 -05:00
Martin Baulig
2ff2fe25fa
Support [OnSerializing] in System.Runtime.Serialization.Json.
...
This fixes a problem that has been reported on stackoverflow:
http://stackoverflow.com/questions/13362906/onserializing-method-not-called-in-mono-3-0-1
2012-11-13 23:04:26 +01:00
Jonathan Pryor
c2890f5b4b
Update.
2012-11-13 13:17:08 -05:00
Rodrigo Kumpera
88ba3d4073
Fix boehm to correctly build on iOS/x86.
...
* darwin_stop_world.c: Use the target macros from Apple to figure
out what flavor of darwin we're compiling against.
2012-11-13 11:47:05 -05:00
Sebastien Pouliot
ed6266fa9d
Only send server_name extension for TLS (not SSLv3). Fix for #8312
2012-11-13 09:30:28 -05:00
Marek Safar
d0efcf75c8
Merge pull request #503 from bprzygoda/linq_enumerable_ioe
...
Filling Linq' IEnumerable extensions InvalidOperationException messages.
2012-11-13 03:13:40 -08:00
Paolo Molaro
ac90d91be5
Confirmed fix from Marek for #xambug 8320.
...
The memberref table is not a valid option for computing the
MemberRefParent tag size.
2012-11-13 12:06:56 +01:00
bprzygoda
6d26bd6838
Wrapped IEnumerable extensions InvalidOperationException throws into factory methods.
...
Fixed incorrect messages for Average methods.
2012-11-13 09:49:17 +01:00
Marek Safar
44fb821735
Do full check for missing type when importing class constraints. Fixes #5760
2012-11-13 09:29:15 +01:00
bprzygoda
eb2232d372
Looked through all InvalidOperationException thrown by IEnumerable Linq extension methods, and added messages according to ms implementation.
...
In case of methods with predicate/selector, message is: 'Sequence contains no matching elements', wheras ms implementation just yields 'Sequence contains no elements, because it just calls predicateless/selectorless methods after filtering out the collection.
2012-11-13 07:12:02 +01:00
Marek Safar
d48f2b3533
Merge pull request #501 from knocte/fix_linq_ioe
...
[Linq] Return a clearer exception message for Enumerable<T>.First()'s IOE
2012-11-12 10:48:40 -08:00
Andres G. Aragoneses
caf7a8b2c0
[Linq] Return a clearer exception message for Enumerable<T>.First()'s IOE
...
This method was using the empty constructor (no message) of
InvalidOperationException if no element matched the predicate.
This meant that the message bubbled up would be a bit confusing:
"Operation is not valid due to the current state of the object".
This commit makes Mono match MS.NET by throwing "Sequence contains
no matching element"
2012-11-12 18:34:44 +00:00
Marek Safar
c95627ec73
Add 4.5 profile sdk for CSharpCodeProvider. Fixes #3582
2012-11-12 09:54:53 +01:00
Marek Safar
558a1f92ea
Clean up some warnings
2012-11-12 09:54:53 +01:00
Jonathan Pryor
876d186bbb
[Mono.Options] Add documentation for Option.Hidden.
2012-11-11 22:23:48 -05:00
Zoltan Varga
2215ddac28
Add a few missing #ifdef HAVE_SGEN_GC blocks to 1fa0a65b2f.
2012-11-12 03:24:21 +01:00
Zoltan Varga
1fa0a65b2f
Add --enable-minimal= configure options to disable sgen features.
2012-11-12 03:06:58 +01:00
Marek Safar
e3b9881e57
Add System.Runtime.Serialization to runtime remapping. Fixes #8037
2012-11-11 18:47:01 +01:00
Marek Safar
b6c0a335b5
Fix win serial port constants. Fixes #8285
2012-11-11 15:46:54 +01:00
Marek Safar
4b3c477ef2
Save repl shell history on quit. Fixes #8156
2012-11-11 15:05:58 +01:00
Marek Safar
d9a6550771
Don't filter out user operator of System.Char type. Fixes #8263
2012-11-11 15:05:58 +01:00
Zoltan Varga
148e5db874
Remove sgen sources from libmonoruntime_la_SOURCES, so changes to sgen files cause less libraries/executables to be recompiled.
2012-11-10 23:54:31 +01:00
Zoltan Varga
859fc97bd2
Declare the memory region passed to conservatively_pin_objects_from () as defined to prevent many warning errors.
2012-11-10 23:54:11 +01:00
Zoltan Varga
53e589f0e4
Update valgrind headers.
2012-11-10 23:54:10 +01:00
Marek Safar
da01c0348c
Remove extra #endif
2012-11-10 18:08:41 +01:00
Marek Safar
8024c26bfe
When comparing base type interface implementation parameters use ordered comparer. Fixes #8283
2012-11-10 16:36:45 +01:00
Marek Safar
aa63004a73
Correctly check recursive constraints involving type parameters. Fixes #8232
2012-11-10 15:37:52 +01:00
Marek Safar
a0c72ab306
Clean up some ifdefs
2012-11-10 15:37:52 +01:00
Marek Safar
b413aa2960
Merge pull request #499 from bh-whd/master
...
Fix bug 8278 (https://bugzilla.xamarin.com/show_bug.cgi?id=8278 )
2012-11-10 06:29:22 -08:00
Duncan Mak
569d2e745f
Bump to 3.0.2
2012-11-09 14:39:58 -05:00
Rodrigo Kumpera
db7ffc3df6
Replace a g_assert with a g_error.
2012-11-09 13:09:15 -05:00
Rodrigo Kumpera
0211a9919b
The FullAOT compiler needs the BSTR icalls.
...
* cominterop.c: The FullAOT compiler needs the BSTR icalls so
it can handle wrappers that marshal BSTRs.
2012-11-09 13:09:15 -05:00
Rodrigo Kumpera
5d117b0d62
Remove more from COM in corlib.
...
* EXCEPINFO.cs: These types are only usable with the COM machinery
enabled. It's better to just take them out.
* Marshal.cs: The COM icalls are not available under DISABLE_COM
so let's make sure they are not present.
2012-11-09 13:09:14 -05:00
Rodrigo Kumpera
2020ed6596
Make LINQ sort work with Full AOT.
2012-11-09 13:09:14 -05:00
Rodrigo Kumpera
c711d54d93
Add compatibility only flag to the aot compiler.
...
* aot-compiler.c: Add iphone-abi option. This flag no longer
matter as we always use the right ABI on iOS. This exists only
to remains compatible with old applications.
2012-11-09 13:09:14 -05:00
Rodrigo Kumpera
92d89b2b06
Don't use a fixed file name for LLVM compilation.
...
* aot-compiler.c: Don't use a fixed name for the intermediary files
so we can do parallel compilation on the same folder.
2012-11-09 13:09:14 -05:00
Rodrigo Kumpera
047a7bf338
Remove usage of -mmacosx-version-min
2012-11-09 13:09:14 -05:00
Rodrigo Kumpera
1656fd432c
Remove some sgen debug spew.
2012-11-09 13:09:13 -05:00
Rodrigo Kumpera
ac653a9186
Do DISABLE_COM properly.
...
*class.c:
*class-internals.h: DISABLE_COM now assumes that the COM core types
are not going to be present on corlib so we don't even try to load them.
2012-11-09 13:09:13 -05:00
Rodrigo Kumpera
9852e7da8c
Use g_assertion_message instead of exit to kill an iOS app.
...
* mini-exceptions.c: Given iOS apps don't have the explicit notion
of terminating, we hard crash when we need to force-exit them.
2012-11-09 13:09:13 -05:00
Rodrigo Kumpera
f21549cdb3
Add new configure option --with-lazy-gc-thread-creation.
...
* gc.c: New configure option lets the embedding host create the
gc thread itself.
2012-11-09 13:09:13 -05:00
Rodrigo Kumpera
8188048334
Fix reflection emit disable.
2012-11-09 13:09:13 -05:00
Rodrigo Kumpera
cd474ecbbf
Implement the runtime side of disabling performance counters.
2012-11-09 13:09:12 -05:00
Rodrigo Kumpera
1d4d9f9a00
Add the option to disable performance counters to configure.in
2012-11-09 13:09:12 -05:00
Rodrigo Kumpera
4081bb85af
Add ARM cross compilation target to configure.in.
2012-11-09 13:09:12 -05:00
Marek Safar
455905c41b
Use system resgen for monotouch build
2012-11-09 13:09:11 -05:00
Martin Baulig
45745e5123
Implement NTLMv2 Session and NTLMv2 Authentication.
...
By default, we use NTLMv2 Session if the server supports it
and fall back to LM and NTLM.
The default behavior can be configured with the static
Mono.Security.Protocol.Ntlm.Type3Message.DefaultAuthLevel
property.
To use NTLMv2, you must explicitly set this to
NtlmAuthLevel.NTLMv2_only.
This is similar to the LAN Manager Authentication Level on
Windows (http://msdn.microsoft.com/en-us/library/ms814176.aspx ).
2012-11-09 17:09:18 +01:00
Zoltan Varga
d2cb088592
Disable dtrace on Darwin arm.
2012-11-09 05:27:36 +01:00
Zoltan Varga
db38c67794
Speed up the sigaltstack configure test.
2012-11-09 05:27:36 +01:00
Marek Habersack
7b1d9f179c
Removed original license since no substantial portions of the original software are used in our implementation
2012-11-08 13:42:48 +01:00
Rolf Bjarne Kvinge
5bf49ac0ef
[Mono.Options] Add support for hidden options (which are not written in WriteOptionDescriptions).
2012-11-08 11:02:48 +01:00
bh-whd
449231992f
Update mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Rfc2251/RfcFilter.cs
...
This fixes bug 8278 (https://bugzilla.xamarin.com/show_bug.cgi?id=8278 )
2012-11-08 10:24:53 +01:00
Miguel de Icaza
e64bb81d3a
Fix #6349 : Do not use KQueue on Darwin, as their kernel behaves differently than BSD
...
Introduce a new define that determines whether we can use kqueue for the threadpool,
and keep the old check for kqueue, in case we need to use it in the future for something
else.
From Gonzalo's notes:
I could not reproduce the problem at all on FreeBSD, but it happened
immediately on the Mac. And when it happened, I could never kill the
process (tried kill from outside and another thread with
Environment.Exit() but no luck). This led me to believe that it was an
OS problem. Both asynchronous operations work fine when they are the
only asynchronous operation on the socket (I turned the other into
synch). When read and writes are asychronous kqueue() changes the
event we are waiting for to be read/write. That is usually not a
problem, but in this particular case, it looked like 2 separate
threads were trying to do the same thing (one for read and one for
write). I tried a simple spin lock per file-descriptor to no avail. I
also tried a fat lock and again no luck. Then I found this:
http://lists.apple.com/archives/darwin-dev/2011/Jun/msg00016.html and
then remembered that back in 2006, when I first tried a patch to
support kqueue(), Geoff found a similar problem to this one (yeah,
what the fuck, Steve!). The problem has not surfaced earlier because
most people that use sockets know how to do it. Setting up read and
write asynch. calls at the same time is not something that pros do,
but...
Solutions?
1. Provide a way to disable kqueue at runtime for cases like this (can
we set the MONO_DISABLE_AIO environment variable in an iOS mono
program? Just Environment.SetEnvironmentVariable before the first use
of sockets/threadpool should work.
2. Disable kqueue by default. The benefits of things like epoll and
kqueue are negligible, really, unless people are dealing with several
hundreds of sockets (~500 and above) and the default poll based
implementation is ok for most applications (xsp would suffer a lot of
contention under load, but xsp uses asynch ops the right way :).
2012-11-07 15:15:31 -05:00
Rodrigo Kumpera
4c38bb226f
Fix mobile profile build of System.dll
2012-11-07 13:51:40 -05:00
Sebastien Pouliot
aa6c012115
Fix Aes to behave correctly on MonoTouch wrt CryptoConfig (default creation) and fix it's FeedbackSize (for CFB)
2012-11-07 13:42:40 -05:00
Rodrigo Kumpera
a219404ffc
Use Function<T>:Identity instead of an inline lambda. Fixes 3627.
2012-11-07 13:38:55 -05:00
Rodrigo Kumpera
4fd392a280
Add workaround to make LINQ 4 Objects order by work under full-aot.
2012-11-07 13:38:44 -05:00
Sebastien Pouliot
63af5d90f1
Avoid multiple potential full-AOT failures with LINQ Enumerable. Fix bug #3285
2012-11-07 13:38:33 -05:00
Sebastien Pouliot
87f45773c0
Avoid using PredicateOf<T>.Always since it does not work with full-aot. Fix bug #682757...
2012-11-07 13:38:15 -05:00
Rodrigo Kumpera
ee812b2df0
Fix the mobile profile build of System.Core.dll.
2012-11-07 13:34:46 -05:00
Miguel de Icaza
aa4af9833a
Add some defensive exceptions to WebConnectionStream to try to track down #6329
2012-11-07 13:22:18 -05:00
Miguel de Icaza
a6b3391227
Add some defensive exceptions to WebConnectionStream to try to track down #6329
2012-11-07 13:22:12 -05:00
Miguel de Icaza
31dfaeeb0a
mobile/System.dll: Add BindingList<T>
2012-11-07 13:21:50 -05:00
Miguel de Icaza
f0550b472a
NetworkStream: Bring ReceiveTimeout, SendTimeout, Close to MOBILE profile
2012-11-07 13:21:29 -05:00
Chris Toshok
72d19698c3
Up the default max persistent connections to 10 for monotouch, and warn when we use more.
2012-11-07 13:20:19 -05:00
Rolf Bjarne Kvinge
e8c79817a3
[Mono.Data.Sqlite] Fix a MonoTouch memory leak
...
Ensure SQLite3's GCHandle is freed when Close is called instead of Dispose.
Also make SQLiteConnection's Dispose call SQlite3's Dispose to ensure we free
the GCHandle in all cases.
2012-11-07 13:19:00 -05:00
Sebastien Pouliot
292c2d8c68
Redirect, by default, the Console.* and Console.Error.* output to NSLog
2012-11-07 13:06:41 -05:00
Sebastien Pouliot
3a4876210d
Get better linker results when doing full-aot wrt the cryptographic stack
2012-11-07 11:56:24 -05:00
Sebastien Pouliot
62bd4ea232
Fix default SecurityManager properties to false (they should not be reached unless there's a bug, but they should be right)
2012-11-07 11:52:41 -05:00
Sebastien Pouliot
68dc53555e
Disable optimization under full AOT. Fix bug #3682
2012-11-07 11:48:23 -05:00
Sebastien Pouliot
52852db613
Use same name/casing for DllImport so we do not duplicate needlessly the extern entries in the metadata
2012-11-06 19:08:39 -05:00
Rodrigo Kumpera
d7b4a3e5a4
Disable the regex compiler under Full AOT.
2012-11-06 18:18:17 -05:00
Rodrigo Kumpera
1edd7e52c9
Remove transparent proxy support for monotouch builds.
2012-11-06 18:18:17 -05:00
Rodrigo Kumpera
1d3eb73bb9
Make System.Guid Full AOT friendly.
...
* Guid.cs: Make this type more Full AOT friendly by not exposing
the rng type on the field to allow the linker to kill it and by
using a Guid generator that doesn't depend on the Crypto stack.
2012-11-06 18:18:16 -05:00
Rodrigo Kumpera
bbb7592661
Make the Crypto stack work with Full AOT.
...
* System.Security.Cryptography.*cs: To make Crypto work with
Full AOT we remove the usage of providers and reflection. We hardcode
the default algorithms for hashing, rng and symmetric cyphers.
2012-11-06 18:18:16 -05:00
Rodrigo Kumpera
010ce6d97e
Don't tag some CAS types as obsolete.
2012-11-06 18:18:16 -05:00
Rodrigo Kumpera
09585375ea
Avoid bringing the whole Crypto stack in AssemblyName under FullAOT.
2012-11-06 18:18:15 -05:00
Rodrigo Kumpera
eda3100573
Disable code generation for object serialization under Full AOT.
2012-11-06 18:18:15 -05:00
Rodrigo Kumpera
d008769c48
Disable more COM code under Full AOT.
2012-11-06 18:18:15 -05:00
Rodrigo Kumpera
2c8c93b378
Remove SRE from Full AOT builds.
2012-11-06 18:18:14 -05:00
Rodrigo Kumpera
4bfb844ab5
Remove some COM types under Full AOT.
2012-11-06 18:18:14 -05:00
Rodrigo Kumpera
fc69ee5a60
Kill silly using directive.
2012-11-06 18:18:14 -05:00
Rodrigo Kumpera
e88bef33b7
Add Full AOT support for System.Linq.Expression.
...
* System.Core/System.Linq.Expressions/*.cs: To bring LINQ expressions
to Full AOT we disable all code that depends on SRE or dynamic code generation.
2012-11-06 18:18:13 -05:00
Rodrigo Kumpera
e32ee49f34
Rework some bits in Parallel LINQ to work under Full AOT.
2012-11-06 18:18:13 -05:00
Miguel de Icaza
58cb859143
Bring Parallel LINQ to the Mobile profile
2012-11-06 18:18:12 -05:00
Zoltan Varga
1f9c05a749
Disable the profilers when using --disable-libraries.
2012-11-06 20:21:45 +01:00
Zoltan Varga
49c98c4e46
Don't build monograph when using --disable-libraries.
2012-11-06 20:13:55 +01:00
Zoltan Varga
06e8020596
Don't build monodis when using --disable-libraries.
2012-11-06 20:02:02 +01: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
Rodrigo Kumpera
301b6c6fd8
Remove SRE.UnmanagedMarshal dependency from System.Reflection.
...
* FieldInfo.cs:
* MonoMethod.cs:
* ParameterInfo.cs: Remove silly dep on UnmanagedMarshal to use
MarshalAsAttribute which is what we need in the end.
* icall.c:
* reflection.c: Use the custom attribute type instead of the SRE
one. This allows FULL_AOT_RUNTIME to work with stuff that uses
MarshalAs.
2012-11-05 14:16:12 -05:00
Rodrigo Kumpera
c3e6485245
Remove FieldInfo::UMarshal, which is dead code.
2012-11-05 14:16:12 -05:00
Rodrigo Kumpera
c9c806ea21
Expose MarshalAsAttribute to the runtime.
2012-11-05 14:16:12 -05:00
Schabse Laks
3af50114d9
Fix null sessions in HttpContextWrapper.Session
2012-11-05 12:49:36 -05:00
Jeffrey Stedfast
7f0edd4b3d
Merge pull request #488 from roji/email_attachment_fixes
...
Fixed missing Content-Id email headers
2012-11-05 05:54:11 -08:00
Marek Safar
98c9ee0d22
Merge pull request #497 from Shabbafru/ImageListPatches
...
Fixed clearing of the ImageList
2012-11-05 01:39:29 -08:00
Atsushi Eno
e10c36924b
Fix JavaScriptSerializer.Deserialize() for dictionary of array of anonymously typed dictionary.
...
context: https://twitter.com/muo_jp/status/265373491224801280
2012-11-05 18:22:29 +09:00
Shabbafru
1bb76dedbd
fixed clearing of the ImageList
2012-11-05 10:16:13 +01: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
Shay Rojansky
bf90b51599
Removed debugging prints that slipped through
2012-11-05 03:42:46 +02:00
Sebastien Pouliot
b0c6dc16f5
Allow setting a custom Profile without using reflection
2012-11-02 17:15:13 -04:00
Marek Safar
aa4a9f77c7
Merge pull request #492 from pruiz/systx-fixes
...
Sys.Tx: Avoid uncatched exceptions during Prepare phase, which might crash the whole application.
2012-11-02 02:12:41 -07: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
Rodrigo Kumpera
47dd377f85
Revert "Merge pull request #464 from gregoryyoung/master"
...
This commit causes deadlock in the tpool backend in the following way:
thread 1:
socket_io_add locks io_lock
tp_poll_modify waits on new_sem
thread 2:
tp_poll_wait tries to lock io_lock
tp_poll_wait is the responsible to post to new_sem, which it can't do since it's
blocked on io_lock, held by a thread waiting on new_sem.
This reverts commit 11286da0ac , reversing
changes made to 94bfdf21e6 .
2012-11-01 17:49:25 -04:00
Rodrigo Kumpera
6aed7e60aa
When inflating a (M)VAR make sure we're not using a broken type.
...
*class.c (inflate_generic_type): When inflating (M)VAR we must
check if the replaced type is not void or typedbyref as both can
later lead to all sorts of nasty crashes or memory corruption.
2012-11-01 17:49:25 -04:00
Mark Probst
a520276c76
[sgen] MONO_GC_DEBUG option for disabling the managed allocator.
...
This can be used to make all object allocations show up in the dtrace probe.
2012-11-01 20:13:11 +01:00
Jonathan Pryor
d33ff740e3
[mdoc] Update XSD @id, @tool for docs team.
...
Xamarin docs team has requested the following changes to make life
easier and increase tooling support:
//para/@id:
Similar in concept/purpose to the HTML @id attribute.
//para/@tool:
Contains the name of a tool which generated the <para/>.
//exception/list:
Allow lists within <exception/> blocks.
2012-11-01 14:01:28 -04:00
Marek Safar
195090b5ef
Merge pull request #490 from knocte/master
...
[System.Configuration] IntegerValidator's maxValue was 0 even if not used
2012-11-01 10:27:28 -07:00
Zoltan Varga
d3891886ac
Disable LLVM+AOT for methods with clauses on ARM, because some tests still fail.
2012-11-01 18:12:40 +01:00
Marek Safar
86b142e32e
Implement SqlConnection.DbProviderFactory. Fixes #7936
2012-11-01 17:55:59 +01:00
Alex Rønne Petersen
d960cbe2f9
Merge pull request #491 from mono/fix_keyvaluepair
...
[corlib] Remove the DebuggerDisplay attribute from KeyValuePair
2012-11-01 09:09:21 -07:00
Alan McGovern
d6396791ce
[corlib] Remove the DebuggerDisplay attribute from KeyValuePair and DictionaryEntry
...
This attribute gives us a horrible debugging experience when the
'Value' of the KeyValuePair is null. By using this attribute, the
user is told that the KeyValuePair itself is null when they inspect
something like 'new KeyValuePair<string, string> (null, null)'.
This is very confusing.
We should just let the ToString method be invoked, which returns a
nicely formatted string. This is also the behaviour observed when
debugging using Visual Studio.
2012-11-01 15:59:23 +00:00
Zoltan Varga
66945f28d5
Avoid throwing exceptions from WeakReference.IsAlive after finalization when the underlying GCHandle is already finalized. Fixes #8072 .
2012-11-01 16:15:41 +01:00
Zoltan Varga
3cfe5adf95
Properly inflate arrays of generic parameters in resolve_object (). Fixes #7964 .
2012-11-01 15:41:20 +01:00
Zoltan Varga
4e47716782
Make the AOT statistic output more dense.
2012-11-01 05:29:24 +01:00
Andres G. Aragoneses
49886383b0
[System.Configuration] IntegerValidator's maxValue was 0 even if not used
...
When using IntegerValidator, if only MinValue is used, max value should
not be set by default to 0. Fix and unit tests included.
This fixes BNC#654721 (https://bugzilla.novell.com/show_bug.cgi?id=654721 )
and therefore allows Enyim.Memcached to be used with Mono.
2012-10-31 23:40:39 +00:00
Rodrigo Kumpera
112a59844d
Make gc maps optional and disabled by default for AOT.
2012-10-31 17:52:43 -04:00
Sebastien Pouliot
7e65775fa1
Allow an existing 4.0 assembly to fill in for a 2.0 reference
2012-10-31 16:04:52 -04:00
Sebastien Pouliot
e1e529fbe1
Avoid processing (and creating) empty collections
2012-10-31 16:04:52 -04:00
Neale Ferguson
9b2fdf9816
Implement GetObjectData
2012-10-31 12:13:00 -04:00
Neale Ferguson
0e902a80ab
Increase flushinput timeout to 1 second as 1/10th second is sometimes not enough
2012-10-31 10:56:06 -04:00
Marek Safar
c5012000fc
Merge pull request #489 from alesliehughes/master
...
Pathces for AxHosts, RegistrationServices and Marshal
2012-10-31 03:24:33 -07:00
Alistair Leslie-Hughes
09280981cc
Implement Marshal.GenerateProgIdForType
2012-10-31 13:48:32 +11:00
Alistair Leslie-Hughes
f38e166592
Implement RegistrationServices.GetManagedCategoryGuid
2012-10-31 13:48:24 +11:00
Alistair Leslie-Hughes
3e3f4e1047
Add AxHost.OcxState support
2012-10-31 13:48:16 +11:00
Sebastien Pouliot
b3b97a9fd8
Allow overriding MarkMethod (without resolving the reference multiple times)
2012-10-30 16:36:39 -04:00
Marek Safar
8b60f2010a
Correctly encode nested typeof type inside namespace.
2012-10-30 16:56:16 +01:00
Marek Safar
23b837b756
Don't set sequential type attribute for async containers
2012-10-30 15:57:22 +01:00
Marek Safar
5386899241
Move corlib path check after nostdlib
2012-10-30 13:53:06 +01:00
Sebastien Pouliot
76a7d3417f
Separate namespace and name arguments for Inherits to avoid memory allocations
2012-10-29 19:07:48 -04:00
Rodrigo Kumpera
2a899eb83c
Propertly handle the layout of generic valuetypes. Fixes bxc #7574 .
...
class.c (mono_class_layout_fields): All valuetype checks must account to
the fact that for generic instances the byval_arg/this_arg type will be
of a generic instance and not of a valuetype. The right check is for
MonoClass::valuetype. Fixes bxc #7574 .
2012-10-29 17:13:04 -04:00
Marek Safar
721e60024c
Add new test
2012-10-29 18:02:03 +01:00
Marek Safar
c133ae2dc8
Merge pull request #485 from mtausig/master
...
Bugfix for DirectoryInfo.GetDirectories()
2012-10-29 09:49:43 -07:00
mtausig
a67abaf7d3
Fix: Removed wrong increment
2012-10-29 16:50:35 +01:00
Marek Safar
ed512a4d68
Add missing 3rd System reference
2012-10-29 16:34:57 +01:00
Martin Baulig
3a7a355522
[ #7637 ][Web]: This is supposed to fail prior to .NET 4.0.
...
Fixes my previous commit 1ccb01e .
2012-10-29 15:47:49 +01:00
mtausig
852718b499
Removed null check of parameter (done in Directory.GetDirectories)
...
Changed foreach loop to for loop
Added some comments
2012-10-29 13:29:24 +01:00
Marek Safar
ac6394ffc5
Label inside implicit switch block is accessible from any switch case. Fixes #8036
2012-10-29 13:09:22 +01:00
Marek Safar
12a8b1c390
Reject incomplete conversion unary user operators. Fixes #7935 .
2012-10-29 11:24:24 +01:00
mtausig
a8599daae7
Added Testcase for DirectoryInfo.GetDirectories with parameter
...
SearchOption.AlLDirectories
2012-10-29 11:06:41 +01:00
mtausig
9918be57fe
Removed extra-brace
2012-10-29 11:06:14 +01:00
Shay Rojansky
c1e2462912
Fixed missing Content-Id email headers
...
When specifying a Content-Id header on Attachments and AlternateViews (but not LinkedResources) the header was not rendered.
This fixes bug #2279 .
Also refactored header generation methods.
2012-10-29 02:29:15 +02:00
Pablo Ruiz Garcia
03b7743af9
Sys.Tx: Avoid uncatched exceptions during Prepare phase, which might crash the whole application. Also try to align internal exception handling flow/logic to the one found in MS.NET.
2012-10-27 22:58:18 +02:00
mayerwin
10eadfdd38
Update mcs/class/System.Core/System/TimeZoneInfo.cs
...
Implementing missing ConvertTime with DateTimeOffset.
2012-10-27 21:35:56 +08:00
Zoltan Varga
7a59454e41
Disable the build of libmini.la when libraries are disabled.
2012-10-27 03:10:26 +02:00
Zoltan Varga
8697ce378c
Add a --disable-libraries command line option to disable the build of libmono.
2012-10-27 03:04:02 +02:00
Martin Baulig
1ccb01e108
[ #7637 ][Web]: Support empty write streams.
2012-10-27 01:15:21 +02:00
Martin Baulig
b049dfb1a4
[6329][Web]: Fixed abort race condition in WebConnection.ReadDone().
...
ReadDone() now passes the 'WebConnectionData' instance to GetResponse()
and 'readState' has been moved into 'WebConnectionData'.
Abort() can now reset 'Data' while ReadDone() still uses the old
instance, but learns about the abort request from 'data.ReadState'.
2012-10-27 00:56:00 +02:00
Rodrigo Kumpera
61110a746f
Handle external protocols correctly in sdb.
...
* debugger-agent.c: Handle deferred attach in sdb correctly when
an external protocol is used.
2012-10-26 17:17:31 -04:00
Marek Safar
ea16844828
Merge pull request #484 from roji/transactions_pspe
...
Transaction now has limited support for PromotableSinglePhaseEnlistment
2012-10-26 13:26:43 -07:00
Marek Safar
38fc81ba8e
Merge pull request #486 from fvalette/master
...
Fix System.Media.SoundPlayer on Linux
2012-10-26 13:24:03 -07:00
Zoltan Varga
f2749e8241
Disable LLVM for methods with clauses on darwin, current LLVM versions don't support it.
2012-10-26 22:13:27 +02:00
Zoltan Varga
92104b3bb1
Align the trampoline stack size on MIPS.
2012-10-26 20:10:38 +02:00
Zoltan Varga
14b020edf5
Clear sb->cached_str in mono_string_utf8_to_builder () so if the same stringbuilder is passed to two pinvoke calls, the modifications made by the second are visible in the result of sb.ToString (). Fixes #7980 .
2012-10-26 04:12:17 +02:00
Zoltan Varga
8660cb985c
Quiet some automake warnings.
2012-10-26 02:52:05 +02:00
Martin Baulig
0cf33093b7
Emit WebAsyncResult's callback on same thread on sync completion.
...
This fixes System.Net.Http.HttpClientTest.Send_Content_Put ().
2012-10-26 01:00:03 +02:00
Martin Baulig
e3bd9da840
Fix TaskFactory::FromAsync for methods that completed synchronously.
...
Don't call InnerInvoke() a 2nd time if the 'Begin' method that
completed synchronously already invoked the callback.
2012-10-25 21:55:33 +02:00
Florent Valette
abd93594e8
[Fix] AudioData(wav) play performing badly under Linux
...
Fix bug and improve performance of audio data play methode :
- Read only wave/Au raw data from Stream unstead of the whole file
- Play Sound chunk by chunk (chunk size compute at AudioDevice.setFormat call)
this is the best size compute by alsa for the hardware (better than the 4kB arbitrary size)
- Fix the chunk size to play. For Alsa, this size is in fragment, a fragment is one sample per channel
- count the data which are really play by alsa (snd_pcm_writei return a fragment size) and the next
chunk from that count.
Signed-off-by: Florent Valette <[email protected] >
2012-10-25 17:46:28 +02:00
Jonathan Pryor
3f4e46b0fa
[Mono.Posix] Fix whitespace.
...
Reduce whitespace changes from master.
2012-10-25 11:28:12 -04:00
Jonathan Pryor
61dd04376d
Revert "Increased waiting time for the certificate authentication from 100 ms to 1000 ms. Because it was not enough for some kind of requests."
...
This reverts commit 592cdb463b .
This isn't required for Syscall.getgrouplist(), and should be part of
a separate pull request.
2012-10-25 11:27:26 -04:00
Florent Valette
0694f62d2c
[Fix] Advanced Linux Sound Architecture (ALSA) configuration in class AudioDevice.cs
...
Improve the configuration of the Alsa hardware parameters.
The buffer and chunk size are set to the best suitable size according to wave file
caracteristic, i.e., format, channel and sampling rate.
Add Alsa software parameter.
Alsa becomes in Ready State as soon as there is a data chunk in its ring buffer.
Alsa starts playing data as soon as its buffer is full.
Add a UnderRun recovery method while playing a sound. When a underRun occurs, Alsa
layer need to be re set to Ready State (by calling snd_pcm_prepare) and the data chunk
is re send to Alsa.
Signed-off-by: Florent Valette <[email protected] >
2012-10-25 17:27:08 +02:00
Jonathan Pryor
0a1e3ddf05
[Mono.Posix] Add Syscall.getgrouplist().
...
Merge branch 'master' of git://github.com/alexeymoiseew/mono into alexeymoiseew-master
2012-10-25 11:11:42 -04:00
Florent Valette
fadee51de1
[Fix] Support to wave sound file under linux
...
Some wave file had a 'fact' chunk in header's data.
This is specified for non-PCM format but some PCM wave sound file could have one.
These kind of file are played well by System.Media.SoundPlay on win32 system but no
sound is played at all on unix system because the 'data' chunk is not found. This
patch adds support for wave file which have this optional 'fact' chunk in header's data.
It's also read chunk data according to the chunk size.
Signed-off-by: Florent Valette <[email protected] >
2012-10-25 16:53:03 +02:00
Sebastien Pouliot
041c72e501
Merge back MonoTouch changes inside the linker/tuner code
2012-10-25 10:39:29 -04:00
Sebastien Pouliot
cc182e7ec7
Allow the SortedList unit tests to be built with NUnitLite (MonoTouch)
2012-10-25 10:39:29 -04:00
Zoltan Varga
423ba9cf35
Make sgen-fin-weak-hash.c a proper module.
2012-10-25 01:20:38 +02:00
Zoltan Varga
df4c51aa2a
Reorganize libmonoruntime_la_SOURCES to make it clear which files have compile time GC dependencies.
2012-10-24 22:51:21 +02:00
Zoltan Varga
25246796f1
Remove the unused HAVE_WRITE_BARRIERS define.
2012-10-24 22:33:11 +02:00
Zoltan Varga
d937e924b2
Remove sgen dependencies from marshal.c
2012-10-24 22:32:43 +02:00
Zoltan Varga
3bb6c4be87
Remove the last #ifdef HAVE_SGEN_GC from gc-internal.h
2012-10-24 19:59:15 +02:00
Zoltan Varga
7fbe6c2b3a
Remove an unused field from DebuggerTlsData.
2012-10-24 19:56:29 +02:00
Rodrigo Kumpera
79353d0abb
Fix the linux build as it does check even from private glib symbols.
2012-10-24 13:39:59 -04:00
Rodrigo Kumpera
32fbc3ab7e
Fix the build.
2012-10-24 13:39:42 -04:00
Shay Rojansky
cde70df1cb
Transaction now has limited support for PromotableSinglePhaseEnlistment
...
System.Transactions.Transaction is only partially implemented, and was lacking support for enlistments of type PromotableSinglePhaseEnlistment.
Specifically, this prevented usage of Npgsql with the ambient transactions feature (TransactionScope).
2012-10-24 19:03:26 +02:00
Alexey Moiseev
043286afef
usign List except for array to prevent holes on getgrouplist results
2012-10-24 18:43:10 +03:00
Alexey Moiseev
323276b9a7
Added omiting not valid groups to getgrouplist
2012-10-24 18:30:20 +03:00
Zoltan Varga
24f2d943b3
Add support for complex descriptors to mono_gc_get_bitmap_for_descr ().
2012-10-24 17:22:02 +02:00
Jonathan Pryor
9d76a6c765
Merge pull request #483 from meebey/syslog_gcc_format-security
...
Disable -Werror=format-security on GCC as the input is already validated...
2012-10-24 07:41:05 -07:00
Mirco Bauer
58f443c5d2
Disable -Werror=format-security on GCC as the input is already validated by the caller
...
Jonathan Pryor (jonpryor) commented on f49164b :
The message parameter is validated in managed code:
https://github.com/mono/mono/blob/master/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs#L3200
https://github.com/mono/mono/blob/master/mcs/class/Mono.Posix/Mono.Unix/UnixMarshal.cs#L366
This change means that '%m' isn't useful in format strings to Syscall.syslog(),
as it'll be escaped instead of "passed through" unchanged.
2012-10-24 16:28:09 +02:00
Atsushi Eno
62bf3c73c5
fix bug #7957 : empty dictionary should not be read siblings as content.
2012-10-24 11:57:57 +09:00
Zoltan Varga
caa8c8ff4d
Fix a problem in the SSA switch elimination code.
2012-10-24 02:17:54 +02:00
Martin Baulig
593da60eab
[ #7258 ][Web]: Fix proxy authentication for non-ssl sessions
...
Thanks a lot to Christian Gan for this patch :-)
2012-10-24 01:17:38 +02:00
Martin Baulig
b80ab4da70
Test, triggering buildbot run.
...
I disabled Winforms in the mono-mac-master build like it has
already been disabled on mono-opensuse-master. This should now
produce a green build.
2012-10-23 18:18:49 +02:00
Alexey Moiseev
1f7849af36
Added overload to getgrouplist with Mono.Unix.Native.Passwd instance as input parameter. Documented getgrouplist functions.
2012-10-23 18:43:27 +03:00
Martin Baulig
a0a7c13e5f
Disable failing tests on the Mac.
...
* System.Drawing (filed #7940 about this):
GraphicsTest.DrawFillRectangle_Width_2 and
GraphicsTest.FillDrawRectangle_Width_2
* Mono.Posix (filed #7942 ):
UnixUserTest.NonReentrantSyscalls
* WCF (filed #7943 ):
CallbackBehaviorAttributeTest.CallbackExample1
CallbackBehaviorAttributeTest.CallbackExample2
UriTemplateTest.EscapedUriCandidate
UriTemplateTest.SimpleWebGet
AnnouncementClientTest.AnnonceOnlineOfflineAddressSchemeMismatch
2012-10-23 13:02:01 +02:00
Martin Baulig
544176c35e
Fix CookieParserTest.TestExpires().
...
DateTime.MinValue.ToUniversalTime() != DateTime.MinValue
if you're living east of Greenwich.
2012-10-23 07:26:42 +02:00
Martin Baulig
df5dc2ed65
Add DateTime test to investigate the TestCookieParser.Expires() issue.
2012-10-23 05:56:16 +02:00
Martin Baulig
12fccdd7aa
Test; testing test failure on buildbot.
2012-10-23 02:43:17 +02:00
Martin Baulig
68b64e775a
Test; testing buildbot.
2012-10-23 00:51:22 +02:00
Zoltan Varga
a109d1cb53
Move the sgen stop-the-world code to a separate file.
2012-10-22 23:31:30 +02:00
Duncan Mak
71590e35a0
Bump version number to 3.0.1
2012-10-22 17:23:23 -04:00
Rodrigo Kumpera
9c1df247ba
Fix the eglib test suite.
2012-10-22 16:51:34 -04:00
Rodrigo Kumpera
a8713118a3
Degraded allocation is used for mature allocations but the memory governor ended up trying to free memory on the nursery.
...
* sgen-alloc.c (alloc_degraged): The free space check function assumes that we either used up all available
memory or we're in degraded mode. Degraded alloc is used to implement mature allocation, which resulted in us
doing a minor gc everything allocation.
2012-10-22 14:22:22 -04:00
Rodrigo Kumpera
f1732af72d
Rename new eglib functions to not use the g_ prefix.
...
giconv.c: Rename g_utf8_to_utf16_with_nuls to eg_utf8_to_utf16_with_nuls
to make sure we neither clashes with glib proper nor give the false impression
that it does exist there.
2012-10-22 12:43:38 -04:00
Jeffrey Stedfast
2ecc9f35e5
[xbuild] PCL targets needs to load MonoAndroid targets file from MSBuildExtensionsPath
...
Fixes bug #7905
2012-10-22 12:34:28 -04:00
Marek Safar
5bcc1e62e8
Implement optional parameters support in binder. Fixes #7912
2012-10-22 15:36:51 +01:00
Zoltan Varga
db409d750c
Get rid of the mach_port field from SgenThreadInfo, its already available in the parent structure.
2012-10-22 15:03:25 +02:00
Zoltan Varga
42cda67dc2
Store the thread context in SgenThreadInfo in all cases to reduce the amount of #ifdefs.
2012-10-22 14:48:46 +02:00
Zoltan Varga
d773d57438
Reapply d129e6a7f6 which got accidently reverted by the silent build changes.
2012-10-22 14:48:45 +02:00
Marek Safar
9094a2a0c3
Advance column on closing quote
2012-10-22 13:19:35 +01:00
Marek Safar
e19918b162
Add monotouch runtime profile
2012-10-22 13:19:35 +01:00
Marek Safar
452fcbb7d9
Better build profile check
2012-10-22 13:19:34 +01:00
Alan McGovern
8c06ad3203
[WindowsBase] Nuke a broken test
...
This looks like it's testing the behaviour of a stream with invalid
data which is already tested (correctly) in another test.
2012-10-21 22:57:20 -04:00
Martin Baulig
c399f1024b
[ #7258 ][Web]: Check 'Connection: close' header.
...
When receiving a 407 in CreateTunnel(), check whether the server
asks to close the connection.
Thanks again to Christian Gan for this patch.
2012-10-21 18:56:13 +02:00
Martin Baulig
db232608f4
[ #7599 ][Web]: Use original uri to compute service point hash.
...
Use the original request Uri, not the proxy address, to compute
the service point hash.
2012-10-21 18:56:13 +02:00
Zoltan Varga
a8ca463518
Move the find_pinning_reference () function to sgen-debug.c.
2012-10-21 15:48:39 +02:00
Zoltan Varga
579ff976aa
Add a Makefile target to patch automake so it produces the same silent output as the old build did.
2012-10-19 18:12:16 +02:00
Alexey Moiseev
77839af6f1
Added new overlod of getgrouplist with Passwd object as input param. Also did some code changes and regenerated a documentation.
2012-10-19 18:32:04 +03:00
Zoltan Varga
88365b372e
Make comparison of array types in mono_metadata_class_equal () go through do_mono_metadata_type_equal (), so arrays of generic parameters are handled correctly. Fixes #7848 .
2012-10-19 17:11:24 +02:00
Marek Safar
e73c8d6184
Don't print mcs directory in silent mode
2012-10-19 13:43:25 +01:00
Marek Safar
d06470378c
Second try to make quiet build work reliably
2012-10-19 12:26:40 +01:00
Marek Safar
7c5c56ce87
Update (very old) dold to handle --silent argument
2012-10-19 12:06:22 +01:00
Atsushi Eno
0700e99074
Revert "Use automake silent rules (work everywhere) instead of custom sed(s)"
...
This reverts commit a7386ebbf6 .
2012-10-19 16:11:55 +09:00
Atsushi Eno
e6077c2d01
Revert "Remove duplicate AM_INIT_AUTOMAKE"
...
This reverts commit 152f11721b .
2012-10-19 16:11:25 +09:00
Martin Baulig
dda6a22fb4
[ #7258 ][Web]: Support multiple proxy auth methods.
...
* AuthenticationManager.EnsureModules(): Swap the order of the
modules, putting the strongest ones first.
* WebConnection.CreateTunnel(): Pass the proxy's address to
AuthenticationManager to support CredentialsCache. Only attempt
one single authentication method.
I've done some extensive testing with different squid configurations
(digest only, ntlm only, digest and ntlm, ntlm and digest) and the
.NET runtime only attempts one single authentication method.
If you provide credentials like this:
var proxy = new WebProxy (proxyUrl, false);
proxy.Credentials = new NetworkCredential ("user", "pass", "domain");
then these must match the server's first authentication method.
You can also use a CredentialsCache like this:
var ntlm_cred = new NetworkCredential ("u1", "p1", "d1");
var digest_cred = new NetworkCredential ("u2", "u3", "d2");
var cc = new CredentialCache ();
cc.Add (proxy_uri, "NTLM", ntlm_cred);
cc.Add (proxy_uri, "Digest", digest_cred);
var proxy = new WebProxy (proxy_uri, false);
proxy.Credentials = cc;
2012-10-19 03:56:16 +02:00
Christian Gan
b5a6d9024c
[ #7258 ][Web]: Implement NTLM proxy authentication.
...
This is mostly Christian Gan's patch for the bug report, I only
did a few minor tweaks to it. Thanks a lot for helping me out
with this. Martin.
2012-10-18 23:45:02 +02:00
Alexey Moiseev
88ca080826
Fixing getgrouplist code to work on all supported systems
2012-10-18 19:22:39 +03:00
Marek Safar
152f11721b
Remove duplicate AM_INIT_AUTOMAKE
2012-10-18 15:37:01 +01:00
Marek Safar
a7386ebbf6
Use automake silent rules (work everywhere) instead of custom sed(s)
2012-10-18 15:16:34 +01:00
Zoltan Varga
b5afc5a2ae
Fix up class library test so they at least compile when running make check in runtime/. Add a 'test' target to compile them.
2012-10-18 16:02:19 +02:00
Marek Safar
92fc3b81e5
Be more quiet when building managed code
2012-10-18 13:45:52 +01:00
Marek Safar
8d518c6248
Don't ignore quiet mode on resign and verify
2012-10-18 13:45:52 +01:00
Marek Safar
94d0d83018
Disable all profiles when mcs build is disabled
2012-10-18 13:45:51 +01:00
Zoltan Varga
373c55eb4d
Fix make check PROFILE=net_3_5 in Microsoft.Build.Tasks.
2012-10-18 13:02:14 +02:00
Zoltan Varga
a4cbf28314
Fix make check PROFILE=net_2_0 in System.Runtime.Serialization.
2012-10-18 12:54:40 +02:00
Marek Safar
0c73db3fcd
Merge pull request #480 from Shabbafru/refs/heads/DataGridViewPatch
...
DataGridView: Fixed an ArgumentOutOfRangeException when adding rows to a DataGridView
2012-10-18 02:56:04 -07:00
Shabbafru
f1bb0f60fc
DataGridView: Fixed an ArgumentOutOfRangeException when adding rows to a DataGridView
2012-10-18 09:39:32 +02:00
Martin Baulig
3118e82bfa
[ #7258 ][Web]: Fix proxy authentication for secure connections.
...
In WebConnection.CreateTunnel():
* Support multi "Proxy-Authentication" headers from the server.
* Pass a fake HttpWebRequest with method "CONNECT" to
AuthenticationManager.Authenticate(); the HTTP method is part
of the digest response.
* Add "Proxy-Connection: Keep-Alive".
2012-10-18 00:45:37 +02:00
Martin Baulig
63a38bdcd9
[ #7258 ][Web]: Fix proxy authentication.
...
Add internal WebHeaderCollection.GetValues_internal() which lets
you disable splitting the results on commas.
We may get something like
Proxy-Authenticate: Digest realm="MyRealm", nonce="le1+UCAk1gLAdQAA",
qop="auth", stale=false, NTLM
from the server, which needs to be split into two headers.
2012-10-17 21:00:22 +02:00
Zoltan Varga
1723480147
Fix a problem with 9adc7023e6. Implement constrained calls to enum interface methods correctly.
2012-10-17 19:26:14 +02:00
Zoltan Varga
e0499543af
Implement MonoJITMemoryManager:getPointerToNamedFunction () properly in the LLVM backend.
2012-10-17 19:26:13 +02:00
Bojan Rajkovic
1bbb0f0880
Revert "Bug 2663: Regular Expression Bug Fixes"
...
This reverts commit dc6efdab29 . This
patch completely regressed performance for regexes in the same class
as the regexes it fixed. Xamarin bug #6198 details the regressions,
and I've confirmed that reverting this commit fixes the 2 order of
magnitude performance drop (with the patch, the test takes almost 7
seconds, without it, it takes .07 seconds). The bug still needs to be
fixed, but this is not the right fix.
2012-10-17 12:35:57 -04:00
Sebastien Pouliot
e952b24079
Add support for 'server_name' extension in the TLS client hello message. Fix for #7664
2012-10-17 11:26:30 -04:00
Marek Safar
60f6141221
Clean up for mobile profiles
2012-10-17 16:13:49 +01:00
Rodrigo Kumpera
c3a0383c5c
Bump version to 3.0.0.
2012-10-16 18:27:37 -04:00
Zoltan Varga
d22db24e11
Treat the 'this' parameter slot as a managed pointer for interface calls, since the unbox trampolines can transform it from a reference to an internal pointer.
2012-10-16 22:05:50 +02:00
Jeffrey Stedfast
f4822194a5
[Linq] Minor fixup to use elements.Length instead of indexes.Length
2012-10-16 11:37:18 -04:00
Mark Probst
be0ba1db5e
[sgen] Properly fix bridge internal memory tag.
...
We're using two different hash tables in the bridge code. I missed
one.
2012-10-16 17:09:53 +02:00
Marek Safar
0de67391c8
Merge pull request #479 from Shabbafru/upstream
...
DataGridView: Auto resizing of the width of row headers fails when no rows are displayed
2012-10-16 07:09:16 -07:00
[email protected]
c69f7d95a0
Fixed auto resizing of row headers width in the DataGridView when no rows are displayed
2012-10-16 15:50:07 +02:00
Marek Safar
82100c4c6e
Copy all context flags from resolve context to block context. Fixes #7826
2012-10-16 11:53:18 +01:00
Zoltan Varga
354b53eef7
Fix a problem introduced by 63a5e6aa04. Scan the register locations before clearing them in the precise stack scanning code.
2012-10-15 23:09:57 +02:00
Zoltan Varga
e0b5cc1b8f
Fix the handling of param slots holding byref arguments on x86 when using precise stack marking. Add tests.
2012-10-15 20:33:16 +02:00
Zoltan Varga
698ac663a0
Fix an assert in the sgen match thread suspend code.
2012-10-15 20:33:15 +02:00
Zoltan Varga
f374d5162c
Add more info for collections/thread suspends to the sgen binary protocol.
2012-10-15 20:33:15 +02:00
Atsushi Eno
c7e274047b
Add some Microsoft.Build classes stubs.
...
They are used in NRefactory github master.
2012-10-16 00:08:07 +09:00
Zoltan Varga
ee0bc0d176
Fix compiling with SGEN_BINARY_PROTOCOL.
2012-10-14 19:41:02 +02:00
Zoltan Varga
f6a5608f00
Add a debug function to sgen to do consistency checks of object pointers.
2012-10-14 16:37:01 +02:00
Zoltan Varga
63a5e6aa04
Clear the saved register locations when processing the last frame during precise stack scanning, the registers save info is not precise for the last frame.
2012-10-14 16:37:01 +02:00
Marek Safar
e1dfad1f12
Remove unreachable code
2012-10-14 15:05:42 +01:00
Marek Safar
46437ea53b
Don't report duplicate error when error recovery fails at eof
2012-10-14 15:05:42 +01:00
Marek Safar
8298b36af4
Merge pull request #476 from pruiz/xamarin-bug-2527
...
Fix implementation of System.IO.Packaging::GetRelativeUri(Uri,Uri) [fixes xamarin's bug #2727 ]
2012-10-13 01:36:20 -07:00
Zoltan Varga
e2e63b7e74
Update the LLVM backend to llvm 65f2d00394b7b9e89b7f5195a566b4e10bfd57d2.
2012-10-13 10:19:52 +02:00
Zoltan Varga
9afe9ac46c
Remove some LLVM intrinsics declarations which no longer exist.
2012-10-13 10:19:52 +02:00
Zoltan Varga
6918bf05fe
Upgrade LLVM backend to work with the latest code in the mono LLVM repo (de7f73ea42408193b31aebbaa1f89f0e94cff96a).
2012-10-13 10:19:52 +02:00
Martin Baulig
cb54e8bbec
mono_lookup_pinvoke_call: Correctly handle full path names.
...
* Fix the prefix matching code: if the dllmap path is "/path/foo",
we want to look for "/path/libfoo", not "lib/path/foo".
* Check for @executable_path, @loader_path and @rpath on OS X.
(see http://stackoverflow.com/questions/12834141/setting-path-of-the-native-library-for-dllimport-on-mono-for-mac/ ).
2012-10-13 01:43:11 +02:00
Pablo Ruiz Garcia
fe99400095
Fix implementation of System.IO.Packaging::GetRelativeUri(Uri,Uri) [fixes xamarin's bug #2727 ].
2012-10-13 01:23:47 +02:00
Jeffrey Stedfast
a662834069
[Mono.Debugger.Soft] Reverted EscapeString() logic. We'll do this at a higher level.
2012-10-12 15:59:35 -04:00
Jeffrey Stedfast
e39fb868a1
Modified the Linq Sort() to re-use the Array.Sort()
2012-10-12 15:55:31 -04:00
Jérémie Laval
7427d7df26
Merge pull request #440 from mono-soc-2012/garyb/resources
...
Bring resources implementation close to .NET 2 standard.
2012-10-11 08:40:26 -07:00
Mark Probst
62d3f78aab
[sgen] Fix bridge code internal memory tag bug.
...
We need to use a different internal memory tag for each kind of data
item, otherwise we'll get an assertion.
2012-10-11 17:37:39 +02:00
garyb
47227f82af
[Not Resources Related] Fixed buggy tests breaking the test build.
2012-10-11 16:17:54 +01:00
garyb
74ebbedf79
Fix project files again after failed rebase
2012-10-11 15:11:19 +01:00
Marek Safar
0198761892
Bump bootstrap compiler support to include default parameters
2012-10-11 12:03:26 +01:00
Marek Safar
64ddc88b8a
Implement PropertyInfo simple Get/SetValue. Fixes #7725
2012-10-11 11:55:45 +01:00
Marek Safar
4497726a3f
Remove extra attributes
2012-10-11 10:50:47 +01:00
Marek Safar
a34746ac4e
Add more incomplete expressions to ast.
2012-10-11 10:50:46 +01:00
Marek Safar
2688c0498a
Make block field readonly
2012-10-11 10:50:46 +01:00
Marek Safar
1ad6b008a2
Add new test
2012-10-11 10:50:46 +01:00
garyb
69a1cdcebf
Managed.Windows.Forms relies on System.Runtime.Serialization.Formatters.Soap
2012-10-10 23:20:08 +01:00
garyb
aaeb5b09ff
Test solution added to Test folder, some project file updates
2012-10-10 23:20:08 +01:00
garyb
76bedd30a6
Fix System.Web build
2012-10-10 23:20:08 +01:00
garyb
35955674fc
Tidy after feedback
2012-10-10 23:20:08 +01:00
garyb
016b0b5170
Tidy after feedback
2012-10-10 23:20:07 +01:00
garyb
90d5513021
Mark test NotWorking
2012-10-10 23:20:07 +01:00
garyb
d66002006e
System.Resources: Tidy file headers
2012-10-10 23:20:07 +01:00
garyb
8bd8a272a1
System.Design: Tidy file headers and add test files to projects
2012-10-10 23:20:06 +01:00
garyb
8f56d2fcae
Support for ResXResourceWriter.BasePath being deeper than actual filepath
2012-10-10 23:20:06 +01:00
garyb
1553a275ae
Implement Basepath on ResXResourceWriter
2012-10-10 23:20:06 +01:00
garyb
fe405951f5
Fixed bug where using ResXResourceWriter filename ctor caused corrupted output
2012-10-10 23:20:06 +01:00
garyb
dc5c305a0e
Refactored, cleaned up
2012-10-10 23:20:05 +01:00
garyb
0c39f316f0
Remove reliance on 2.0 profile test assembly
2012-10-10 23:20:05 +01:00
garyb
287934ebbf
Fixed comment writing. Ref to serialized obj no longer kept. Refactoring.
2012-10-10 23:20:05 +01:00
garyb
b08f93651d
More tests, more tidying, all present currently pass
2012-10-10 23:20:04 +01:00
garyb
899099ab7c
Fixes RE failing tests
2012-10-10 23:20:04 +01:00
garyb
0df9021069
ResXDataNode based resx handling nearly complete. More tests added.
2012-10-10 23:20:04 +01:00
garyb
03655fa4a8
ResXDataNode test refactoring, few more member tests.
2012-10-10 23:20:03 +01:00
garyb
6d447963ad
Added File Headers
2012-10-10 23:20:03 +01:00
garyb
3113363465
Draft Tests and Implementation of ResXDataNode Based ResX Handling
2012-10-10 23:20:03 +01:00
garyb
75cdf6f9d8
StronglyTypedResourceBuilder implementation and tests.
2012-10-10 23:20:02 +01:00
Rodrigo Kumpera
d0baa99bcb
Merge remote-tracking branch 'joncham/sgen-msvc2'
...
Conflicts:
mono/metadata/sgen-copy-object.h
mono/metadata/sgen-gc.c
2012-10-10 18:01:21 -04:00
Rodrigo Kumpera
99c3107f1d
Merge pull request #438 from mattleibow/master
...
UInt32 is too large for Int32
2012-10-10 13:32:58 -07:00
Andrew Wilson
baf2ec58aa
Add test for g_utf8_to_utf16_with_nuls.
2012-10-10 16:28:55 -04:00
Andrew Wilson
fa49af2498
Fix bug 5732, nuls in attribute strings.
2012-10-10 16:28:54 -04:00
Andrew Wilson
338b245134
Add g_utf8_to_utf16_with_nuls for strings containing nul.
2012-10-10 16:28:54 -04:00
Rodrigo Kumpera
301266f2da
Make sure that the unsafe array store intrinsics emit a write barrier.
...
* method-to-ir.c: Array.UnsafeStore and Array.SetGenericValueImpl must
emit a write barrier for reference types.
2012-10-10 16:28:53 -04:00
Marek Safar
bc31304566
Add catch variable to ast when block is missing
2012-10-10 08:48:30 +01:00
Sebastien Pouliot
706153c494
[OSX][iOS] Ensure 'sectrust' is released even if we deny the request
2012-10-09 19:45:36 -04:00
Sebastien Pouliot
0c644b5fcc
Provide a non-null X509Chain in the callback for MonoTouch (useful for custom validations) but we are not fully building it (since we do not use the output) and this can be done if customization is required
2012-10-09 19:43:52 -04:00
Martin Baulig
ea570f3a76
[WCF,Serialization] Improve and fully implement support for collection types.
...
* System.Runtime.Serialization/XsdDataContractImporter:
Check ImportOptions.ReferencedCollectionTypes to determine the proxy type.
* System.ServiceModel.Description/MetadataImporter.cs:
Very simply implementation of the 'State' property.
* System.ServiceModel.Description/DataContractSerializerMessageContractImporter.cs:
Use it here.
* Test/Resources/WSDL: Added some sample .wsdl files for the new tests; adding
these as resources to the test dll.
* Test/System.Runtime.Serialization: Added WsdlHelper.cs,
XsdDataContractImporterTest2.cs and XsdDataContractExportTest2.cs
2012-10-09 23:04:08 +02:00
Zoltan Varga
95d9f7138c
Clean up some cross-compilation issues on osx. Add a TARGET_MACH define instead of using __MACH__.
2012-10-09 21:36:46 +02:00
Marek Safar
5e79cd9631
Don't include prepared catch block in ast when it's unfinished
2012-10-09 08:50:33 +01:00
Zoltan Varga
d404e540f3
Fix MonoInternalThread layout problems introduced by 1b0326d73f. Add an assert to avoid this happening again.
2012-10-08 14:45:32 +02:00
Marek Safar
3983fa07d8
Handle more incomplete declarations with full ast
2012-10-08 13:08:50 +01:00
Marek Safar
8e63a3be52
Better reference type check
2012-10-08 13:08:49 +01:00
Zoltan Varga
8ca0aef4fe
Remove an unused define.
2012-10-05 20:07:54 +02:00
Zoltan Varga
dfa9220e8b
Use #ifdef MONO_ARCH_SIMD_INTRINSICS in more places.
2012-10-05 19:09:34 +02:00
Pablo Ruiz Garcia
77798d7ecb
Implemented UrlAuthorizationModule.CheckUrlAccessForPrincipal(...) (fixes xamarin bug #7408 )
2012-10-05 18:49:48 +02:00
Zoltan Varga
54c2a221fd
Revert "Allow inlining of methods which consist of only a call."
...
This reverts commit 9a2345d3f8 .
2012-10-05 18:49:03 +02:00
Zoltan Varga
f487e39945
Revert "Fix the previous commit."
...
This reverts commit dad7370627 .
2012-10-05 18:49:03 +02:00
Marek Safar
231bf88a8c
Setup partial type constraints types without expanding interface list
2012-10-05 16:37:05 +01:00
Marek Safar
5fad3b0dce
Remove some redundant initializations
2012-10-05 16:37:05 +01:00
Zoltan Varga
1b0326d73f
Clean up the InternalThread structure. Synchronize fields between the managed and unmanaged versions, group reference fields together near the beginning.
2012-10-05 14:29:37 +02:00
Zoltan Varga
158caedeea
Fix a warning.
2012-10-05 13:02:12 +02:00
Zoltan Varga
dad7370627
Fix the previous commit.
2012-10-05 12:49:43 +02:00
Zoltan Varga
9a2345d3f8
Allow inlining of methods which consist of only a call.
2012-10-05 08:00:31 +02:00
Zoltan Varga
64743024bf
Allow 64 bit method addresses in the amd64 backend, LLVM on osx seems to generate them.
2012-10-05 07:08:52 +02:00
Marek Safar
0480ec1276
Report warning when calling async method without wait in non-async context.
2012-10-04 15:13:38 +01:00
Marek Safar
bb5a7917b4
Update IKVM.Reflection
2012-10-04 12:58:16 +01:00
Zoltan Varga
481ad9c271
Save fp registers in the ARM throw trampoline, ios has callee saved fp registers, and LLVM generates code which uses them.
2012-10-04 13:03:35 +02:00
Marek Safar
7748c8af5f
BeginGetRequestStream cannot be called once the request has been submitted.
2012-10-04 11:53:15 +01:00
Marek Safar
3f5c016773
Add missing configureawait
2012-10-04 11:53:14 +01:00
Marek Safar
6194ac1fff
Remove unnecessary and incompatible finalizer
2012-10-04 11:53:14 +01:00
Marek Safar
2d12cfaf80
Flush StreamWriter buffer even if underlying stream is kept open. Fixes #7510
2012-10-04 11:53:14 +01:00
Marek Safar
f46e90b074
Optimize list enumerator
2012-10-04 11:53:14 +01:00
Mark Probst
fdc4b41dee
[sgen] Complete the bridge weak reference fix.
...
When dereferencing a weak link we check whether bridge processing is
in progress. If it is, we wait for it to finish. This ensures that
we never follow weak links to dead objects before bridge processing
can null them.
2012-10-03 19:48:39 +02:00
Mark Probst
4209f2066a
[sgen] Use a hash table for the bridge weak references step.
2012-10-03 19:48:32 +02:00
Mark Probst
572bd8b017
[sgen] Incomplete bridge weak reference fix.
...
This is an incomplete fix for #6715 . After bridge processing we
iterate through all weak references again, this time nulling those
that point to bridged objects that were diagnosed as dead by the
bridge.
As of now it's inefficient because it uses linear search for each weak
reference lookup, as well as incomplete because the code runs while
the world is running, so the weak links might be accessed before they
are consistent.
2012-10-03 19:05:56 +02:00
Mark Probst
a6fc85be67
[sgen] Separate header for the hash table.
...
This is so that we can use the hash table more easily in the
mobile-master branch which doesn't yet have the hash table factored
out.
2012-10-03 18:22:31 +02:00
Zoltan Varga
9adc7023e6
Implement constrained calls to iface methods correctly. Fixes #7571 .
2012-10-03 13:26:41 +02:00
Marek Safar
81b9f09d0f
Merge pull request #474 from knocte/master
...
[System.XML]: Do not set XmlTypeMapElementInfo.IsNullable if it's already True
2012-10-03 04:26:07 -07:00
Marek Safar
7883a2dafd
Clean up some static initializers
2012-10-03 12:19:55 +01:00
Andres G. Aragoneses
48c73cfb3c
[System.XML]: Do not set XmlTypeMapElementInfo.IsNullable if it's already True
...
The IsNullable attribute in XmlElementAttribute is false by default,
so when not using it in a member which was already nullable
(i.e. Nullable<DateTime>), Mono was overriding the attribute causing
a FormatException later if an xsi:nil value was found when deserializing.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=7613
2012-10-03 12:08:16 +01:00
Zoltan Varga
5fcee3dec0
Add more information about inline failures to the verbose JIT output.
2012-10-03 12:21:23 +02:00
Zoltan Varga
5588d0f84a
Fix a warning.
2012-10-03 10:27:43 +02:00
Zoltan Varga
c1ed4a5570
Use AM_CPPFLAGS instead of INCLUDES in Makefile.am files, as the later is no longer supported, see http://lists.gnu.org/archive/html/automake/2012-08/msg00087.html .
2012-10-03 10:26:37 +02:00
Rodrigo Kumpera
61a1c77f37
Disable the type check on reference type array stores.
...
* method-to-ir.c (emit_array_store): We can avoid the type check
on stores to reference arrays as it turns out List<T> is not
covariant to its element type as I previously thought so.
2012-10-02 16:13:08 -04:00
Marek Safar
7c3708d2ba
Implement TaskFactory::FromAsync for calls completed synchronously.
2012-10-02 17:03:15 +01:00
Marek Safar
e14ff38a54
Spped up array reverse
2012-10-02 13:20:46 +01:00
Marek Safar
b8b042389f
Fix array IStructuralEquatable.GetHashCode to use provided comparer.
2012-10-02 13:20:45 +01:00
Mark Probst
fe49b7b2c7
[sgen] Fix race condition in mono_gc_weak_link_get ().
2012-10-02 12:52:10 +02:00
Rodrigo Kumpera
f3f5a89d04
Force List<T> accessors to be inlined.
...
* List.cs: Make sure indexers are always inlined. We use the 256 literal instead
of MethodImplOptions.AggressiveInlining since the later is only available on 4.5.
2012-10-01 14:28:06 -04:00
Rodrigo Kumpera
2bc8207c26
List<T> accessors now use Array.Unsafe(Load|Store).
2012-10-01 14:28:05 -04:00
Rodrigo Kumpera
a55c6e0bc7
Implement Array.UnsafeLoad and Array.UnsafeStore. Both functions ignores bounds check when possible.
...
* Array.cs: Add UnsafeLoad and UnsafeStore functions that don't perform bounds check.
The JIT will generate, when possible, direct a load/store. Right now the only case we can't
handle are stores to reference arrays.
Reference arrays are covariant on their element type which means that we must perform a runtime
type check on stores to preserve type safety. Since the type check is usually must more expensive
than the bounds check we simply ignore this for now.
The reasoning behind this decision was that given our initial target are corlib's collections and
they are too covariant to their element types they do need too a runtime type check on stores to ensure
correctness.
2012-10-01 14:28:04 -04:00
Rodrigo Kumpera
479bb4d666
Extract the array store code to separare function.
2012-10-01 14:28:04 -04:00
Zoltan Varga
0628864fe9
Revert "Disable wrapper generation code when DISABLE_JIT is defined."
...
This reverts commit a6583c60c0c3814ca02bf2569c7a5e48b46377a7.
This doesn't work since emit_marshal () is used to compute the signatures of the wrappers themselves through the 'conv_arg_type' argument.
2012-10-01 14:28:04 -04:00
Marek Safar
fdeffceb7c
Update to the latest IKVM.Reflection
2012-10-01 18:41:03 +01:00
Marek Safar
152a91c27d
Make large float arrays emit faster
2012-10-01 17:44:39 +01:00
Marek Safar
2933e827ff
Remove commented code
2012-10-01 17:44:39 +01:00
Martin Baulig
aa2e9eca40
[WCF]: Fix WSDL import of methods with complex return types.
...
There is no bug report, the problem has been reported here:
http://stackoverflow.com/questions/12551090/monotouch-wcf-service-reference-cs-errors/12669880
DataContractSerializerMessageContractImporter.IsOperationImported()
did not check the method's return value, so it failed to recognize
methods such as
[OperationContract]
DateTime GetDate ();
as already being imported. This caused the method to be imported with
both the DataContractMessageContractImporterInternal and the
XmlSerializerMessageContractImporterInternal, but the latter does not
resolve type references, see the FIXME in that class.
I also added a new test case for this.
2012-10-01 15:02:31 +02:00
Zoltan Varga
6e2cd82527
Avoid calling mono_jit_info_table_find () in is_ip_in_managed_allocator (). This leads to a small speedup, and works around #7564 .
2012-10-01 15:02:11 +02:00
Marek Safar
09c5dccd01
Speed up implicitly typed array inference. Fixes #7222
2012-10-01 13:16:02 +01: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
Zoltan Varga
220f0c4f58
Fix a memory overwrite in the handling of some simd opcodes in the LLVM backend.
2012-09-30 03:53:49 +02:00
Zoltan Varga
540b917154
Remove the fconv_to_i test from iltests.il, it basically only works on x86.
2012-09-30 03:17:26 +02:00
Zoltan Varga
758b6c1d27
Avoid copying the stack alignment area during tail calls on x86, if the caller method is frm LLVM, it might not have that area.
2012-09-30 03:15:49 +02:00
Zoltan Varga
b263ad27b4
Fix dwarf register mapping on darwin/x86.
2012-09-30 03:14:38 +02:00
Zoltan Varga
a1de086f4e
Disable OP_TLS_GET support in the LLVM backend on non-linux platforms.
2012-09-30 01:16:41 +02:00
Marek Safar
ee59f2e507
Merge pull request #471 from antoniusriha/master
...
[System] Fix Uri.MakeRelativeUri on paths to higher level dir
2012-09-29 10:09:20 -07:00
Marek Safar
0880d632f9
Merge pull request #470 from clcrutch/SystemIcons
...
System.Drawing.SystemIcons.Shield
2012-09-29 10:08:09 -07:00
Antonius Riha
ddd262a40d
[System] Fix Uri.MakeRelativeUri on paths to higher level dir
...
Given the test case when a relative path should be built from a lower
level dir to a higher level dir, the last bit from the "From-Path" is always
considered to be a file - even if it ends with "/". In contrast, .NET
considers paths ending with "/" as directories and therefore the
resulting path goes one level further up than the resulting path of the
mono implementation. This patch aims to fix that.
2012-09-29 18:40:27 +02:00
clcrutch
6dfd205342
Update mcs/class/System.Drawing/Assembly/ChangeLog
2012-09-29 08:41:15 -07:00
clcrutch
66b1e8c96a
Fixed System.Drawing/System.Drawing-net_4_5.csproj
2012-09-29 08:40:50 -07:00
clcrutch
f6d838c5b8
Fixed System.Drawing/System.Drawing-net_4_0.csproj
2012-09-29 08:39:58 -07:00
clcrutch
fafbd029d5
Fixed System.Drawing/System.Drawing-net_2_0.csproj
2012-09-29 08:39:05 -07:00
clcrutch
ca08cf04db
Fixed mcs/class/System.Drawing/ChangeLOg
2012-09-29 08:36:00 -07:00
Mark Probst
77ac49c17f
[dtrace] Turns out "sweeped" is not a word.
2012-09-29 14:48:01 +02:00
Mark Probst
c0b840c838
[sgen] Flags bit field instead of individual args for OS alloc funcs.
2012-09-29 13:00:32 +02:00
Mark Probst
813cfebfbf
[dtrace] Make pointers into user space uintptr_t instead of void*.
2012-09-29 11:59:55 +02:00
chris
a6f9938b78
Added System.Drawing.SystemIcons.Shield to API to match .Net 2.0 SP1, 4.0, 4.5 API.
2012-09-28 20:35:48 -07:00
Chris
3da9a31e7d
Implemented System.Drawing.SystemIcons.Shield to match the .Net 2.0, 4.0, 4.5 API.
2012-09-28 20:28:13 -07:00
Zoltan Varga
b68b1a1ea1
Fix a test name.
2012-09-29 02:36:59 +02:00
Zoltan Varga
eb6a6a1e2c
Fix some sign extension issues in the 2 dimensional array access implementation on 64 bit platforms. Fixes #7438 .
2012-09-29 02:21:16 +02:00
Mark Probst
02bb13a48d
Merge branch 'feature-dtrace'
2012-09-28 23:22:40 +02:00
Mark Probst
15bca52f04
[dtrace] Add G_UNLIKELY to all DTrace _ENABLED macros.
2012-09-28 23:18:19 +02:00
Mark Probst
ce2b105600
[dtrace] Probe for object moved, within or between heaps.
2012-09-28 23:18:19 +02:00
Mark Probst
936d70b462
[dtrace] Pass namespace and class name to probes where appropriate.
2012-09-28 23:18:18 +02:00
Mark Probst
072a3cd543
[dtrace] Probes for large and pinned allocation.
2012-09-28 23:18:18 +02:00
Mark Probst
20bdda233d
[dtrace] Probe for pinning of objects.
2012-09-28 23:18:18 +02:00
Mark Probst
a85892d73e
[dtrace] Probe for major heap area sweep.
2012-09-28 23:18:17 +02:00
Mark Probst
5d5e18266c
[dtrace] Probe for nursery fragment creation aka nursery sweep.
2012-09-28 23:18:17 +02:00
Mark Probst
b6463f1e14
[dtrace] Probes for degraded and mature allocation.
2012-09-28 23:18:17 +02:00
Mark Probst
2aa252d522
[dtrace] Allocation of TLABs. Allocation of objects directly from nursery.
2012-09-28 23:18:17 +02:00
Mark Probst
3ca83811a8
[dtrace] Remove our duplicates of DTrace probe defines.
2012-09-28 23:18:16 +02:00
Mark Probst
977c5600c5
[dtrace] Probes for taking/releasing the GC lock.
2012-09-28 23:18:16 +02:00
Mark Probst
ed5b41fd8d
[dtrace] GC heap allocation probes for SGen.
...
These trigger whenever a segment of heap memory is allocated from the
OS, or freed to the OS again.
2012-09-28 23:18:16 +02:00
Mark Probst
a3c37cd9ba
[dtrace] GC begin/end probes for SGen.
2012-09-28 23:18:15 +02:00
Marek Safar
bc561b1291
Better fix for invalid warning about missing documentation on partial parts.
2012-09-28 19:24:05 +01:00
Martin Baulig
f7cf18e47f
[ #7424 ]: Fix regression in same-origin-check for Cookies.
...
Disable same-origin checks when the cookie does not have a domain
and we default to the Uri's hostname.
2012-09-27 04:07:38 +02:00
Sebastien Pouliot
e094d3dc0c
Fix CFB mode for Rijndael when data is not a multiple of block size
2012-09-26 20:39:07 -04:00
Martin Baulig
9a8ed89b84
[ #7200 ]: WebRequest returns result in another thread.
...
This is a partial revertion of master commit #9069d07, which was
backported into mono-2-10 in commit #bfa23f8.
I only reverted the change in line 716, keeping the rest of the
commit in place.
2012-09-27 02:24:20 +02:00
Marek Safar
2adf0018bd
Don't report missing documentation warning for partial parts. Fixes #7462
2012-09-26 18:32:06 +01:00
Marek Safar
6ed3d8f113
Upadte csproj files
2012-09-26 18:11:24 +01:00
Zoltan Varga
7c8426f3b2
Fix the computation of TLS reference bitmaps ( #6755 ) properly by using a 'numbits' variable instead of the confusing 'max_bits' variable.
2012-09-26 17:14:45 +02:00
Marek Safar
2873912e41
Fixes build
2012-09-26 08:29:33 +01:00
Marek Safar
04e5712b75
Add location for namespace token
2012-09-26 08:27:25 +01:00
Zoltan Varga
62f9c6556d
Treat the [UnmanagedFunctionPointer] attribute the same as [MonoNativeFunctionWrapper]. Fixes #7385 .
2012-09-25 23:26:00 +02:00
Zoltan Varga
27838eda7d
Avoid constructing custom attribute objects during AOT compilation.
2012-09-25 23:09:56 +02:00
Marek Safar
3878cf2815
Add incomplete namespace declaration to ast. Fixes #7436
2012-09-25 20:01:37 +01:00
Jeremie Laval
3e19969b80
[corlib] Fix a edge case of ConcurrentQueue dequeuing by retrying after we fix up things
2012-09-25 14:26:32 +01:00
Jeremie Laval
2bb98035f2
[corlib] Remove usage of ObjectPool, we will depend on sgen being a better GC instead
2012-09-25 14:26:31 +01:00
Martin Baulig
e5e80eeae1
[ #7299 ][Serialization]: Fixed and improved collection serialization.
...
* Implement "Interchangeable Collections" and Collection Interface Types.
(see http://msdn.microsoft.com/en-us/library/aa347850.aspx )
* Add element type check for arrays.
* Identify custom collection types (must have a public parameterless
constructor and an "Add" method with the correct argument type) and
distinguish them from types which implement one or more of the
collection interfaces without being a custom collection type.
* Add some checks for [CollectionDataContract].
* Added some NUnit tests for that.
2012-09-25 03:23:19 +02:00
Jonathan Pryor
206fc02c19
[mdoc, .xsd] Allow the <returns/> element to contain <c/> elements.
...
It's frequently useful (and accidentally used) to have <c/> within
<returns/> blocks:
<returns>
<c>-1</c> at end of stream; otherwise the number of bytes read.
</returns>
Allow this to validate.
2012-09-24 12:48:57 -04:00
Jeremie Laval
077589883d
[corlib] Fix 4.0 build
2012-09-24 16:28:49 +01:00
Jeremie Laval
3b2d269943
[corlib] Fix build
2012-09-24 16:19:56 +01:00
Jeremie Laval
5877a9423b
[corlib] Honor LazyCancellation flag
2012-09-24 12:28:25 +01:00
Jeremie Laval
2de1ee29c8
[corlib] Honor HideScheduler flag
2012-09-24 11:47:06 +01:00
Jeremie Laval
2ce078ba52
[corlib] Honor DenyChildAttach flag
2012-09-24 11:21:45 +01:00
Jeremie Laval
b673ec1659
[corlib] Add 4.5 values to TaskContinuationOptions
2012-09-24 11:13:54 +01:00
Jeremie Laval
0b5eddeaff
[corlib] Make Task.Run specify TaskScheduler.Default and fix Task.Run (Task<Task>)
2012-09-24 11:11:46 +01:00
Rodrigo Kumpera
11286da0ac
Merge pull request #464 from gregoryyoung/master
...
Fixes nasty issue with callbacks not happening.
2012-09-22 19:04:39 -07:00
Martin Baulig
94bfdf21e6
Only set Cookie.Port if Cookie.Version == 1.
...
Background:
* Cookie.Port's property setter sets Version to 1, thus forcing strict
RFC 2109 compliance. This is also what the .NET runtime does when
assigning this property.
* When parsing the result of a web request, .NET 4.5 only sets Cookie.Port
when the Set-Cookie: header contains "Version=1".
* Google Chrome does not check cookie ports at all.
2012-09-22 02:23:15 +02:00
Jérémie Laval
493007542e
[mdoc] <related /> is a mixed type
2012-09-21 23:11:46 +01:00
Jérémie Laval
77d545e5cf
[mdoc] More schema fixes
2012-09-21 22:59:33 +01:00
Jérémie Laval
7baa400be9
[mdoc] Fix monodoc-ecma schema
2012-09-21 22:50:41 +01:00
Rolf Bjarne Kvinge
31f07a71fa
Marshal sockaddrdl manually, since it contains a variable-length byte array. Fixes #7329 .
2012-09-21 02:06:40 +02:00
Martin Baulig
e5fd73b545
[ #6041 ][WebServices]: Don't crash if an operation doesn't have <wsdl:output>.
2012-09-20 06:33:34 +02:00
Martin Baulig
b74e9eb529
[ #4511 ][WCF]: Fix DuplexClientBase channel initialization.
...
For duplex channels, the ClientRealProxy needs to support both
IClientChannel and IDuplexContextChannel.
2012-09-20 06:33:33 +02:00
Zoltan Varga
3eccd63f43
Make seq_points clobber callee save registers on arm, since we can't save fp registers in MonoContext on linux/android. Fixes #6860 .
2012-09-19 16:03:15 +02:00
Greg Young
a05bc14cf0
patch for async TCP sockets. without this change the callbacks will
...
occasionally not happen under load. This causes the async loop
to break in the calling TCP code. EX you call beginsend but
never get endsend
2012-09-19 16:29:16 +03:00
Martin Baulig
7bf62cd13d
[WCF] Fix relative endpoint addresses that start with a '/'.
...
For instance:
ServiceHost host = new ServiceHost (typeof (Foo), new Uri ("http://localhost/echo "));
var b = host.AddServiceEndpoint (typeof (Foo), new BasicHttpBinding (), "/b");
should resolve into 'http://localhost/echo/b '.
2012-09-19 07:08:02 +02:00
Martin Baulig
85147e732a
[ #1340 ][WCF]: Fix null reference when using invalid HTTP methods.
2012-09-19 06:28:47 +02:00
Martin Baulig
37b26ae4a0
[ #7177 ][WCF]: Correctly handle derived FaultExceptions.
2012-09-19 06:01:11 +02:00
Zoltan Varga
6d1b90ae1b
Save/restore fp registers in MonoContext on ios. Fixes #1949 .
2012-09-19 01:37:26 +00:00
Jeffrey Stedfast
7d46e7e67f
[Mono.Debugger.Soft] Format the literal strings a bit nicer.
2012-09-18 18:34:46 -04:00
Jeffrey Stedfast
3536222a62
[Mono.Debugger.Soft] Oops, need using System.Globalization
2012-09-18 18:13:51 -04:00
Jeffrey Stedfast
5710934d1d
[Mono.Debugger.Soft] Escape some unicode characters in literal strings
...
Fix for bug #6369
2012-09-18 18:06:55 -04:00
Martin Baulig
ab016b57c9
[ #5935 ][BinaryFormatter]: Fix serialization of generic arrays.
2012-09-18 21:22:18 +02:00
Marek Safar
ff60b900d3
Fix rendering enum value which does not match any enum flags value (e.g. 0)
2012-09-18 10:22:48 +01:00
Martin Baulig
7c68dee830
[ #6187 ][WCF]: Fix contract interface inheritance.
2012-09-18 05:20:30 +02:00
Martin Baulig
61bcffb793
[ #6489 ][SoapFormatter]: Reset culture before raising events.
2012-09-18 03:02:40 +02:00
Marek Safar
6b762d83bf
Simplify range check in list setter
2012-09-17 23:06:26 +01:00
Zoltan Varga
fa9e86322f
Implement mono_arch_emit_inst_for_method () for LLVM.
2012-09-17 23:08:21 +02:00
Zoltan Varga
e61be8195d
Fix usage of vregs defined in EH regions in the LLVM backend. Fixes #7183 .
2012-09-17 18:53:19 +02:00
Zoltan Varga
3d4ace9100
Align the thumb_end symbol to 8 to avoid warnings by the apple linker.
2012-09-17 17:55:07 +02:00
Martin Baulig
25f9a11c6e
[ #6515 ][WCF]: Enable custom headers for NET_2_1.
...
This allows
HttpRequestMessageProperty request = new HttpRequestMessageProperty ();
request.Headers.Add ("Foo", "Bar");
OperationContext.Current.OutgoingMessageProperties.Add (HttpRequestMessageProperty.Name, request);
The code was already there, but disabled for the NET_2_1 profile.
2012-09-17 17:31:44 +02:00
Marek Safar
cca3cb128f
Merge pull request #462 from knocte/master
...
Changes to make F# build out of the box with xbuild
2012-09-17 05:21:13 -07:00
Andres G. Aragoneses
8ed93b10f0
[Microsoft.Build.Engine] Add a testcase for bxc#1862
...
Marking the test as [Category("NotWorking")]
2012-09-17 12:27:35 +01:00
Andres G. Aragoneses
93df61b315
xbuild: enable _ComputeNonExistentFileProperty in MS.Common.targets
...
This target is needed to build F# projects with xbuild.
After this change, xbuild with F# 2.0 (from github.com/fsharp)
works out of the box without hackery (i.e. [1]).
[1] http://xtzgzorex.wordpress.com/2011/01/08/f-and-xbuild-debian/
2012-09-17 12:13:12 +01:00
Andres G. Aragoneses
aaa61ce6b9
[Microsoft.Build.Engine] Allow ItemGroup items inside Target items
...
We don't treat them for now, but at least make the build not break
when finding them.
This feature was introduced in .NET 3.5:
http://msdn.microsoft.com/en-us/library/646dk05y.aspx
2012-09-17 12:08:14 +01:00
Rolf Bjarne Kvinge
142e70fdcc
TimeZoneInfo.Local must be cached, otherwise reference comparisons fail later on.
...
This fixes an issue reported here: http://lists.ximian.com/pipermail/monotouch/2012-September/011784.html
2012-09-17 12:05:43 +02:00
Rolf Bjarne Kvinge
09e213a8b3
Fix typo in exception message.
2012-09-17 12:05:43 +02:00
Marek Safar
2b67917444
Don't report cascading unreachable warnings
2012-09-17 10:17:10 +01:00
Marek Safar
fe8bdbcef7
Merge pull request #461 from knocte/xbuild_improvements
...
xbuild: some housekeeping
2012-09-16 03:49:11 -07:00
Martin Baulig
d2d43552c2
[ #6201 ][WCF]: Don't crash if we don't have a client certificate.
2012-09-15 21:10:36 +02:00
Andres G. Aragoneses
f2cea74e6a
[Microsoft.Build.BuildEngine] Fix refs in .csproj files
...
With this HintPaths, solution now builds in MonoDevelop.
2012-09-15 18:56:08 +01:00
Andres G. Aragoneses
806aa2b9a3
[Microsoft.Build.BuildEngine] Remove Properties folder in csproj
...
No Properties folder in disk here either.
2012-09-15 18:54:56 +01:00
Zoltan Varga
19b4879660
Fix precise stack marking for the thread initiating the GC by passing a MonoContext to the suspend callback in the JIT.
2012-09-15 19:48:55 +02:00
Andres G. Aragoneses
aaca7029f3
[xbuild] More NET_2_0 removal
2012-09-15 18:48:54 +01:00
Andres G. Aragoneses
7c6f4bf67b
[Microsoft.Build.BuildEngine] More NET_2_0 removal
2012-09-15 18:48:28 +01:00
Andres G. Aragoneses
d851d35289
[Microsoft.Build.BuildEngine] Update tests project
...
There is no Properties folder present, remove it from the project.
2012-09-15 18:38:03 +01:00
Andres G. Aragoneses
de0b6ae47a
[Microsoft.Build.BuildEngine] Change GUID of the tests project
...
Otherwise MD would complain about 2 projects having the same GUID.
o_O
2012-09-15 18:36:24 +01:00
Andres G. Aragoneses
8ab5689a07
[Microsoft.Build.BuildEngine] Update -tests-net_4_0 project
...
Update to what MonoDevelop master flushed without making any changes.
2012-09-15 18:28:39 +01:00
Andres G. Aragoneses
ea1528b2bd
[Microsoft.Build.BuildEngine] Remove MDS (old format) and add SLN
...
Furthermore, the .MDP file was very outdated (contained non existant
files and lacked a lot of new files).
2012-09-15 18:23:08 +01:00
Andres G. Aragoneses
8ec9cbc87a
[Microsoft.Build.BuildEngine] Update Ms.B.E-net_4_0.csproj
...
Flushed all changes that MonoDevelop master branch made on it.
2012-09-15 18:13:09 +01:00
Andres G. Aragoneses
b6c3382596
Microsoft.Build.Engine: Remove deprecated NET_2_0 conditionals
2012-09-15 18:06:34 +01:00
Andres G. Aragoneses
f63d825c3f
[Microsoft.Build.BuildEngine] Remove dead files
...
These 2 files (HostLogger.cs and SolutionParser.cs) were not
being included in the build anyway (defined in file
Microsoft.Build.Engine_test.dll.sources).
2012-09-15 17:26:09 +01:00
Duncan Mak
70bab0cb75
Revert "Use the full path to MonoPosixHelper in mono's config file."
...
This reverts commit bf095d7057 .
2012-09-14 16:39:14 -04:00
Larry Ewing
137a5c40cf
Rework exception handling in MemoryStream async methods
...
Return faulted tasks for runtime errors when using the MemoryStream
Async methods.
2012-09-14 13:27:54 -05:00
Marek Safar
7bd0ccde07
Reject out of range constant conversion to nullable enum.
2012-09-14 18:36:54 +01:00
Marek Safar
e3500750ba
Merge pull request #460 from pcc/fix-enumeratekind
...
Rewrite implementation of Directory.EnumerateKind
2012-09-14 10:03:46 -07:00
Zoltan Varga
1c7a090966
Add more debug output to sdb to debug suspend issues.
2012-09-14 17:23:41 +02:00
Marek Safar
1afa0afef3
Merge pull request #455 from LogosBible/large-file-suport
...
Fixing large file support compile-time check.
2012-09-14 06:55:29 -07:00
Marek Safar
33b7c4176e
Insert incomplete indexers into ast earlier. Fixes #7169
2012-09-14 14:16:11 +01:00
Marek Safar
67f6893e97
Force crlf for crlf test
2012-09-14 14:15:43 +01:00
Marek Safar
f7b665e1aa
Fix parsing of \r in quoted strings. Fixes #6984
2012-09-14 13:01:22 +01:00
Peter Collingbourne
b7141524e4
Rewrite implementation of Directory.EnumerateKind
...
This rewrite fixes three bugs:
1) Fixes the case where AllDirectories is specified and searchPattern
is anything other than '*'. Now, every directory is searched
recursively, not just those which match the pattern.
2) Fully solves the issue that commit e09e64b tried to fix. Now
the check for hidden files occurs for every file, rather than
only the first.
3) Error handling is now performed at calls to both FindFirst and
FindNext, not just FindFirst.
2012-09-14 03:02:22 +01:00
Sebastien Pouliot
6fc934ea50
[OSX] Reset errors to 0 if the OS tells us that (1) the chain is ok, (2) the certificate usage is for SSL server and (3) the server identity is confirmed (2+3 were part of an earlier fix). Without this reset we depended on the mono certificate store as an extra condition (which would requires mozroots to be executed and we want to avoid this 'duplicated' requirement and trust OSX). This does not affect iOS where no mono stores exists.
2012-09-13 20:48:42 -04:00
Jonathan Pryor
1249082309
[M4A] Clear RemoteCertificateChainErrors if Android validates the chain.
...
The problem: Mono for Android 4.2.5 horribly broke SSL support:
http://lists.ximian.com/pipermail/monodroid/2012-September/012213.html
Why? Because of ad89f72f (kinda): As Mono for Android doesn't provide
or use its own set of SSL root certificates (opting instead to just
let Android worry about it), the `chain.Build()` method will ALWAYS
result in SslPolicyErrors.RemoteCertificateChainErrors being returned
from GetErrorsFromChain().
The world before ad89f72f "masked" this because errors & status11 were
always cleared if Android accepted the chain; however, clearing these
out masked other bugs, such as #5706 (in which https://74.125.224.134
is accepted as valid when it can't be valid, by definition).
The fix is to clear out SslPolicyErrors.RemoteCertificateChainErrors
if Android accepts the certificate chain. Any other errors are left
unchanged, thus keeping #5706 fixed.
2012-09-13 14:46:59 -04:00
Marek Safar
52970c3a2c
Update csproj file
2012-09-13 16:39:39 +01:00
Marek Safar
4a8ffc8023
Merge pull request #456 from strawd/bug7079
...
Don't decode raw URL path for HTTP request URI
2012-09-13 07:46:37 -07:00
Marek Safar
68c6eed769
Merge pull request #458 from konrad-kruczynski/issue4328
...
Fix for the bug #4328 .
2012-09-13 07:44:59 -07:00
Marek Safar
b934d5ec27
Fix reading from loaded buffer, patch based on David Straw's code
2012-09-13 15:41:49 +01:00
Konrad M. Kruczynski
6f76efaedf
Merge branch 'master' of https://github.com/mono/mono into issue4328
...
Conflicts:
mcs/class/System/Test/System.Collections.Generic/SortedListTest.cs
2012-09-13 16:19:53 +02:00
Marek Safar
1714bf98ad
Merge pull request #453 from daub815/master
...
[API] Added missing .Net 4.5 interface and dependent class
2012-09-13 07:03:35 -07:00
Rolf Bjarne Kvinge
f03ca9241d
Add support for armv7s.
2012-09-13 13:17:57 +02:00
Alexey Moiseev
86c1d8934f
Changed implementation of getgrouplist according to Mono coding style.
...
I've changed imported frim the dll function from getgrouplist to sys_getgrouplist
Public method getgrouplist will take username as parameter and return Group [] array.
Also updated documetation using mdoc.exe utility.
Also updated mdoc.sln file, added index.cs to Mono.Documetation project. That's was done
to make the mdoc.exe compiling without errors
2012-09-13 13:55:36 +03:00
Martin Baulig
cabf7d1f13
Fixed and improved Mono's Cookie implementation.
...
* Updated the tests to reflect .NET 4.5's new improved behavior.
* Fixed subdomain matching rules.
* Added some very simple sanity checks, such as same origin and
public suffixes.
This is far from perfect, but the tests now pass with .NET 4.5
and this also fixes a Monotouch bug from one of our customers.
TODO:
* Using 'Cookie.Version = 1' (RFC 2109 compliance) apparently got
broken in .NET 4.5; I disabled the corresponding tests / made
them use the default 'Version = 0' where possible.
* Same origin has not been tested for security (it previously
didn't exist at all) and we should probably use the list at
publicsuffix.org; but .NET 4.5 also allows you to set a cookie
.co.uk (haven't tested their web stack, thoug - it's possible
that they have additional checks there).
2012-09-13 02:00:56 +02:00
David Straw
ead7975580
Added unit test for HTTP request URL decode
2012-09-12 16:30:14 -06:00
Marek Safar
4270657021
Merge pull request #459 from antoniusriha/master
...
[xbuild] Add PreserveExistingMetadata property to CreateItem task
2012-09-12 14:54:50 -07:00
Marek Safar
6731dce332
Merge pull request #457 from strawd/aspnetwebstack-resources
...
Add missing .resources files in aspnetwebstack projects
2012-09-12 14:52:47 -07:00
Antonius Riha
e16f1c4722
[xbuild] Add PreserveExistingMetadata property to CreateItem task
...
This property is exists since .NET 3.5 and enables preservation
of existing metadata while setting new metadata on items via the
AdditionalMetadata property.
2012-09-12 23:29:33 +02:00
Konrad M. Kruczynski
f060b8055b
Fix for the bug #4328 .
2012-09-12 23:02:09 +02:00
Duncan Mak
aa34613521
Include gdiplus in mono/config.
2012-09-12 16:14:19 -04:00
David Straw
7309c4b353
Add missing .resources files in aspnetwebstack projects
2012-09-12 14:12:14 -06:00
Duncan Mak
bf095d7057
Use the full path to MonoPosixHelper in mono's config file.
2012-09-12 16:09:49 -04:00
David Straw
395dc89795
Don't decode raw URL path for HTTP request URI
2012-09-12 13:46:29 -06:00
Marek Safar
6c947aca5e
Guard again double pushback. Fixes #7006
2012-09-12 17:57:25 +01:00
Jérémie Laval
beb265f12b
[System.Core] Check for canceled operation when invoking inner call
2012-09-12 15:49:07 +02:00
Zoltan Varga
1be50d099a
Rename xdb.il to <unknown> in debug info.
2012-09-12 02:07:06 +02:00
Mark Probst
0e88e460ed
[sgen] Provide a function to wait for bridge processing to finish.
2012-09-11 21:25:38 +02:00
Zoltan Varga
861715dd4d
Skip most wrappers in ves_icall_get_frame_info (), so wrappers don't show up in user stack traces.
2012-09-11 16:40:40 +02:00
Atsushi Eno
e6a6c31940
in MONODROID profile, TimeZoneInfo should not return null entry.
2012-09-11 21:53:54 +09:00
Martin Potter
6eaa199371
Fixing large file support compile-time check.
...
Previous check did not follow the same conventions for the function body as other AC_TRY_COMPILE checks. This resulted in incorrectly reporting that the system did not have large file support due to the following errors reported in config.log:
conftest.c:88: warning: function declaration isn't a prototype
conftest.c: In function 'main':
conftest.c:94: error: nested functions are disabled, use -fnested-functions to re-enable
conftest.c:94: warning: 'main' is normally a non-static function
configure:21041: $? = 1
2012-09-10 19:06:06 -07:00
Rolf Bjarne Kvinge
8480dfca3f
Add an unhandled exception hook embedders can use to report unhandled exceptions as they wish.
2012-09-10 23:50:03 +02:00
Rodrigo Kumpera
e2ba6bf57e
Merge pull request #61 from ztzg/darwin-static-build-fixes
...
Darwin/static build fixes
2012-09-10 11:50:57 -07:00
Damien Diederen
fb3bf8617a
mono{dis,graph,profiler}: Fix build when configured with --disable-shared
...
There is no 'libmono-$(API_VER).la' when the shared runtime is
disabled; use 'libmini-static.la' instead.
Solution stolen/adapted from mono/mini/Makefile.am.
Commit contributed under the MIT/X11 license.
2012-09-10 20:34:25 +02:00
Zoltan Varga
f59bba4df2
Rename MONO_GC_REGISTER_ROOT () -> MONO_GC_REGISTER_ROOT_PINNING ().
2012-09-10 16:23:33 +02:00
Zoltan Varga
82a6369488
Get rid of another HAVE_SGEN_GC reference in gc-internal.h.
2012-09-10 16:13:07 +02:00
Jérémie Laval
c0a8ef12af
Merge pull request #439 from mono-soc-2012/garyb/iconfix
...
Fix for corruption of vista icons on save
2012-09-10 05:28:33 -07:00
Kevin Daub
6df3af8b90
[API] Added missing .Net 4.5 interface and dependent class
2012-09-09 12:15:14 -04:00
Kevin Daub
6fc12d7e20
[API] Added missing .Net 4.5 interface and dependent class
2012-09-09 03:53:06 -04:00
Zoltan Varga
169467fedb
Avoid an assertion in mono_thread_state_init_from_handle () when the domain is not set.
2012-09-08 13:53:51 +02:00
Zoltan Varga
b65c16f8d0
Avoid converting OP_IMUL to OP_IMUL_IMM if multiplication is emulated.
2012-09-08 02:58:38 +02:00
Zoltan Varga
22ac526dc6
Move the imul/idiv/irem emulation code out of #ifndef MONO_ARCH_NO_EMULATE_LONG_MUL_OPTS.
2012-09-07 23:02:25 +02:00
Duncan Mak
67385bd70f
Bump version number to 2.11.5
2012-09-07 14:44:43 -04:00
Sebastien Pouliot
fd0e8ab2fc
Add two-keys triple-des test case (works with Mono but not with CommonCrypto, see #6968 )
2012-09-07 09:18:31 -04:00
Zoltan Varga
c4a1a568aa
Emit a seq point for endfinally opcodes even if the stack is not empty. Fixes #6864 .
2012-09-07 13:12:22 +02:00
Atsushi Eno
99d5e54c35
add Android-specific ping path.
2012-09-07 17:33:01 +09:00
Marek Safar
417ec7840f
Fix base type definition in repl. Fixes #5913 .
2012-09-06 20:08:17 +01:00
Jérémie Laval
551ca84754
[System.Core] Fix compare bug in PLinq's Contains implementation
2012-09-06 13:23:07 +01:00
Jérémie Laval
9711161a2b
[System.Core] Remove Max/Min generic indirection
2012-09-06 10:27:08 +01:00
Marek Safar
0c825c4bb0
One more typo
2012-09-06 10:12:00 +02:00
Marek Safar
b53cc00383
Fix typo
2012-09-06 09:21:56 +02:00
Martin Baulig
c99bb5c3a3
Fix #275 : "net.tcp://localhost:<port>/<path>" should listen on IPAddress.Any.
2012-09-05 22:43:59 +02:00
Martin Baulig
f7db37a5ed
Fix #5655 : Always send HTTP headers for WebDAV methods.
2012-09-05 22:20:00 +02:00
Jérémie Laval
fffedc5195
[System.Core] Remove generic indirection for Count/LongCount
2012-09-05 16:41:01 +01:00
Marek Safar
f78869092d
Fix typo
2012-09-05 17:21:42 +02:00
Marek Safar
904fc2a779
Fix typo in directory name
2012-09-05 17:08:15 +02:00
Jérémie Laval
4ceeaaae89
[System.Core] Fix issue in Join where some data might have been dismissed by accident
2012-09-05 15:37:49 +01:00
Jérémie Laval
0af8876f87
[System.Core] Fix ICE for older library lacking contravariance
...
Conflicts:
mcs/class/System.Core/System.Linq.Parallel.QueryNodes/QueryGroupByNode.cs
2012-09-05 14:41:47 +01:00
Jérémie Laval
02d23e2e36
[System.Core] Remove a source of generic indirection for GroupBy
2012-09-05 14:41:46 +01:00
Mark Probst
da6fe24c12
[sgen] Small data type fix only relevant to unrealistically large heaps.
2012-09-05 14:24:43 +02:00
Mark Probst
286898315c
[sgen] Don't overflow when parsing numbers that are too large.
2012-09-05 14:24:36 +02:00
Mark Probst
aad6ec30c4
[sgen] Report memory allocation failures for internal data and quit.
...
Instead of crashing or asserting.
2012-09-05 13:33:04 +02:00
Mark Probst
0aa63389bf
[sgen] Report incorrect wbarrier setting in MONO_GC_PARAMS.
2012-09-05 13:33:04 +02:00
Marek Safar
fbb513c138
Merge more Mono.CodeContracts changes
2012-09-05 13:01:29 +02:00
Marek Safar
124770e8a8
Add System.Web.Http.Selfhost assembly
2012-09-05 12:35:45 +02:00
Marek Safar
222fd86dcd
Allow any characters after invalid pragma warning
2012-09-05 12:35:45 +02:00
Marek Safar
663437cdba
Add missing members
2012-09-05 12:35:44 +02:00
Marek Safar
f9e3dfa377
Merge pull request #452 from alesliehughes/master
...
Basic AxHost Support 2
2012-09-05 00:43:04 -07:00
Alistair Leslie-Hughes
e5f5933fb7
Forward to base class
2012-09-05 12:16:18 +10:00
Alistair Leslie-Hughes
8827ee4704
Allow Begin/End Init to be called
2012-09-05 12:16:13 +10:00
Alistair Leslie-Hughes
f225c1e8ea
Add support for About Delegate
2012-09-05 12:16:07 +10:00
Alistair Leslie-Hughes
5e16d1eaca
AxHost Events arent supported
2012-09-05 12:16:01 +10:00
Zoltan Varga
144bb98482
Error out instead of asserting when using the VBByRefStr marshalling convention without a byref parameter. Fixes #6908 .
2012-09-05 00:52:04 +02:00
Zoltan Varga
2c56aac380
Transform some exceptions thrown by the marshalling code so the exceptions are thrown when the wrapper is actually called.
2012-09-04 22:24:22 +02:00
Rodrigo Kumpera
79fb03f5c6
Document new tracer option.
2012-09-04 17:23:59 -03:00
Rodrigo Kumpera
6198147832
Merge pull request #451 from madewokherd/wrappertrace
...
Add trace channel for native/managed wrappers.
2012-09-04 13:07:11 -07:00
Martin Baulig
651408b4eb
Fix #5899 : WebClient.*Async() now correctly builds the query string.
...
I also added 'async_thread.IsBackground = true'.
These methods could also use some more love; I filed a new bug #6904
about that.
2012-09-04 21:24:18 +02:00
Rodrigo Kumpera
915f7e3d25
The new macro abi__alignof__ correctly handle darwin-arm.
2012-09-04 16:08:21 -03:00
Alex Rønne Petersen
b500d6daad
Merge pull request #450 from madewokherd/excdoc
...
Add documentation for exception traces.
2012-09-04 11:17:35 -07:00
Vincent Povirk
84f5afae10
Add trace channel for native/managed wrappers.
...
This commit is licensed under MIT/X11.
2012-09-04 13:05:16 -05:00
Vincent Povirk
5c19e4ba4b
Add documentation for exception traces.
...
This commit is licensed under MIT/X11.
2012-09-04 12:55:47 -05:00
Jérémie Laval
e223f978be
[System.Core] Fix possible state corruption in ReaderWriterLockSlim. Fix #6635 .
...
The problem was triggered in a situation where threads were competing for the write-lock and were using timeout:
- thread t1 takes the lock (state = RwWrite)
- thread t2 tries to take the lock but fails because of t1, it registers it interest (state = RwWrite | RwWait) and goes to sleep
- thread t3 tries to take the lock but failes because of t1 and don't register any interest because t2 did it already (state = RwWrite | RwWait)
- t1 releases the lock, waking up t2 and t3 which race for it with t3 winning the race (state = RwWrite)
- t2 tries to go back to sleep but has overrun its timeout so it exits.
- with t2 exiting, it tries to remove previously registered interest (state = RwWrite - RwWait -> corruption).
2012-09-04 18:53:18 +01:00
Rodrigo Kumpera
dad9b8e615
Enable mach support on arm.
...
* mach-support.c:
* mach-support.h: Mach support on arm now works, it was a matter
of fixing the build system and some minor bugs in sgen and in the
thread suspend code.
With that we can finally have a proper sgen on darwin-arm as
the pthread backend is no longer used.
2012-09-04 13:20:07 -03:00
Marek Safar
6178c8a845
Reformat some nested ifs
2012-09-04 17:48:39 +02:00
Marek Safar
d2e4710c16
CompareOrdinal quick path cannot ignore start index. Fixes #6553
2012-09-04 17:48:39 +02:00
Jérémie Laval
bc2a63cd96
[System.Core] Returns false in SequenceEqual when the two sequences size are different
2012-09-04 16:36:36 +01:00
Marek Safar
8655c16491
Add incomplete params declation to ast. Fixes #6874
2012-09-04 17:16:28 +02:00
Jérémie Laval
e20f084264
[System.Core] Remove generic indirection
2012-09-04 16:06:24 +01:00
Marek Safar
e06a9eb8b5
Propagete hoisted this also from state machines. Fixes #6687
2012-09-04 15:59:08 +02:00
Jérémie Laval
516a087a4c
[System] Fix timeout in BlockingCollection. Fix #6732 .
2012-09-04 14:43:58 +01:00
Jérémie Laval
8856e1df17
[System.Core] Remove generic indirection in ParallelExecuter.Process
2012-09-04 13:57:33 +01:00
Marek Safar
cd2f0eaeb7
Don't import static members of interfaces. Fixes #6552
2012-09-04 13:47:24 +02:00
Jérémie Laval
f05ce51264
[System.Core] Remove generic indirection for ToDictionary
2012-09-04 12:15:40 +01:00
Jérémie Laval
7a049e547c
[System.Core] Remove generic indirection for ToArray
2012-09-04 12:15:36 +01:00
Jérémie Laval
db21dd426b
[System.Core] Remove generic indirection for ToList
2012-09-04 12:15:33 +01:00
Zoltan Varga
3e27d2313d
Get rid of some HAVE_SGEN_GC ifdefs from gc-internals.h, it could be included in the JIT code which shouldn't have compile time dependencies on GC type.
2012-09-04 12:52:50 +02:00
Zoltan Varga
f5efa86a90
Transition the minor/major GC stats to the counters infrastructure.
2012-09-04 12:42:19 +02:00
Zoltan Varga
687bb151b8
Avoid linking libmini_static against any libraries, the executables link against them.
2012-09-04 11:57:45 +02:00
Marek Safar
424237fdd4
Better check for intermediate value modifications. Fixes #6763
2012-09-04 09:04:42 +02:00
Zoltan Varga
8cf8572ee1
Avoid disabling the new interrupt machinery when using sdb, it doesn't seem to be needed any more.
2012-09-04 02:22:12 +02:00
Zoltan Varga
218bffe92a
Build libmono and libmonosgen using a common convenience library as well.
2012-09-04 00:59:59 +02:00
Zoltan Varga
2b3148f2a0
Add a workaround for #5432 to EncodingInfoTest.
2012-09-03 20:47:59 +02:00
Jérémie Laval
a3e93ca28f
[System.Core] Remove a source of generic indirection
2012-09-03 19:33:13 +01:00
Zoltan Varga
b84b2aeca6
Remove some more references to libmono-static/libmonosgen-static.
2012-09-03 20:12:12 +02:00
Zoltan Varga
f3b3e7f65b
Another attempt at avoiding compiling files in mini/ 6 times. Replace libmono-static and libmonosgen-static with a libmini-static convenience library, and link mono and mono-sgen against it.
2012-09-03 20:06:51 +02:00
Zoltan Varga
06e55b521a
Remove *.exe.dylib.dSYM files too in the mini aotcheck target.
2012-09-03 19:53:52 +02:00
Rodrigo Kumpera
7ce5e0a556
Allow constructors to be called like regular methods. Fixes #4183
...
* verify.c: MS allows constructors to be called like regular
methods, so we allow it under non-strict mode.
2012-09-03 12:12:18 -03:00
Alan McGovern
5e35b21ef7
Ensure the targets files are copied for net_4_5 tests
...
This should greenify the build.
2012-09-03 13:23:02 +01:00
Ankit Jain
1113782115
Merge pull request #444 from knocte/xbuild_improvements
...
MSBuild.Engine: use a buildtask enumerator that throws exceptions
2012-09-03 04:28:32 -07:00
Andres G. Aragoneses
b3fe77b0e8
xbuild: fix style in test
...
Pointed out by Ankit.
2012-09-03 11:38:39 +01:00
Andres G. Aragoneses
428644e628
Merge branch 'xbuild_improvements' of github.com:knocte/mono into xbuild_improvements
2012-09-03 11:33:22 +01:00
Marek Safar
696f38d404
Capture async block variable when variable scope yields
2012-09-03 10:17:51 +02:00
Marek Safar
5e41a3861c
Capture iterator variable when variable scope yields. Fixes #6587
2012-09-02 18:48:13 +02:00
Miguel de Icaza
c29fc3b142
Merge pull request #446 from UCIS/master
...
Patch for bug #6718 - incorrect release of XPCOM object causing segmention fault
2012-09-02 09:46:05 -07:00
Marek Safar
6e32f2d986
Expand default parameter array type arguments. Fixes #6679
2012-09-02 12:31:16 +02:00
Zoltan Varga
14c3720dad
Remove *.exe.dylib files too in the mini aotcheck target.
2012-09-01 01:26:07 +02:00
Zoltan Varga
df8eaccc88
Fix a typo.
2012-08-31 13:57:10 +02:00
Alexey Moiseev
592cdb463b
Increased waiting time for the certificate authentication from 100 ms to 1000 ms. Because it was not enough for some kind of requests.
2012-08-31 11:49:56 +03:00
Jonathan Chambers
30951a5fe8
Wrap always_inline and noinline attributes in compiler checks and use MSVC equivalent.
2012-08-30 22:49:06 -04:00
Jonathan Chambers
edfa79cee3
Use G_GNUC_UNUSED macro rather than gcc attribute directly.
2012-08-30 22:16:35 -04:00
Jonathan Chambers
f25d63358d
Add missing files and adjust linker settings for sgen targets of vcxproj files.
2012-08-30 22:14:38 -04:00
Jonathan Chambers
ab07c32eb1
Add sgen specific .def file.
2012-08-30 22:14:04 -04:00
Jonathan Chambers
fa6112d604
Remove extraneous () in macro definition.
2012-08-30 22:11:17 -04:00
Jonathan Chambers
5f48d9446b
Pass type argument to MONO_LLS_FOREACH and MONO_LLS_FOREACH_SAFE in order to avoid using compiler specific typeof keyword.
2012-08-30 22:10:30 -04:00
Jonathan Chambers
9bb56ad20a
Fix MSVC compiler specific issues in lock-free-alloc.c
2012-08-30 22:08:23 -04:00
Jonathan Chambers
48948366f8
Rename ptr variable as it is keyword in msvc inline assembly.
2012-08-30 21:41:15 -04:00
Jonathan Chambers
55dc1b814f
Implement ARCH_STORE_REGS for msvc.
2012-08-30 21:39:49 -04:00
Jonathan Chambers
62b5d803d2
Only use labels as values if compiling with gcc.
2012-08-30 19:55:49 -04:00
Jonathan Chambers
5397d93d55
Check for TARGET_ macros in addition to GCC arch defines.
2012-08-30 19:49:03 -04:00
Zoltan Varga
d30c777c4d
Add a target to run the JIT GC tests.
2012-08-30 21:58:59 +02:00
Zoltan Varga
d66f3b9eaf
Add a test for #6755 .
2012-08-30 21:56:18 +02:00
Zoltan Varga
43317f400d
Fix an off-by-one in the computation of the TLS reference bitmaps. Fixes #6755 .
2012-08-30 21:56:18 +02:00
Jonathan Chambers
dffb9dafd5
Include io-layer.h rather than windows.h directly.
2012-08-30 13:59:02 -04:00
Jonathan Chambers
f3fd5a8c3c
Wrap unistd.h include in HAVE_UNISTD_H check.
2012-08-30 13:58:25 -04:00
Alan McGovern
0e5af666b1
[Microsoft.Build.Tasks] Don't throw if duplicate dependencies are found
...
We should use the dictionary setter instead of the Add method so that
we do not get an exception if the same Nth order dependency is found
multiple times
2012-08-30 01:22:23 +01:00
Alan McGovern
2e7acd75fd
[Microsoft.Build.Tasks] Fix several bugs in ResolveAssemblyReference
...
XBuild was adding both the primary references and nth-order references
to the ResolvedFiles output variable. This meant that dependent assemblies
were being added to the commandline passed to the compiler which caused
all sorts of issues.
Fixes bug https://bugzilla.xamarin.com/show_bug.cgi?id=6708 and adds
tests to cover the changes to ensure they are correct.
2012-08-29 13:48:53 +01:00
Zoltan Varga
650671e04b
Get rid of the debug_count () functions in various files, use mono_debug_count () instead.
2012-08-29 11:34:49 +02:00
Zoltan Varga
8c03903ef2
Print more detailed information about call instructions in mono_print_ins ().
2012-08-28 19:12:31 +02:00
Zoltan Varga
bb77576e71
Add a gsctx argument to mono_arch_get_argument_info ().
2012-08-28 19:11:17 +02:00
Zoltan Varga
04856d631f
Simplify mono_class_get_runtime_generic_context_template (), call get_shared_class () in a few places in the gshared code.
2012-08-28 19:10:56 +02:00
Zoltan Varga
6876d58793
Shorten some type/functions names in the generic sharing code. Add comments/debug messages.
2012-08-28 19:10:04 +02:00
Zoltan Varga
33214b0dda
Add mono_debug_count () helper function to aid in runtime debugging.
2012-08-28 19:06:47 +02:00
Zoltan Varga
2a63257bf8
Add a 'serial' attribute to MonoGenericParam to allow different versions of a generic type parameter.
2012-08-28 19:06:38 +02:00
Zoltan Varga
d3786f2fce
Add wrapper info for generic array helper wrappers.
2012-08-28 19:06:30 +02:00
Zoltan Varga
365a62141a
Fix up the dwarf debug info for trampolines.
2012-08-28 18:57:21 +02:00
Marek Safar
0a1a4ee854
Merge pull request #447 from zyzniewski/master
...
OnPingCompleted
2012-08-28 07:23:52 -07:00
Tomasz Żyźniewski
d8e7d08c58
call the event after async operation's completed
2012-08-28 16:12:51 +02:00
Ivo Smits
f35b2f35e5
Patch for bug #6718 - incorrect release of XPCOM object causing segmentation fault
2012-08-28 03:08:05 +02:00
Michael Goff
74c7296fb5
Incorrect comment syntax was breaking compile time configure check for large file support
2012-08-27 18:13:31 -03:00
Michael Goff
b2fce30c4c
Modified the large file support check to do a compile-time check instead of a run-time check so that cross compile does the right thing.
2012-08-27 18:13:31 -03:00
Rolf Bjarne Kvinge
ccbee6be58
[Mono.Data.Sqlite] Use a prebuilt resources file like Managed.Windows.Forms does.
...
This makes it possible to build the monotouch profile, since generating the resources
file requires a System.Windows.Forms.dll, which monotouch doesn't have.
2012-08-27 18:13:30 -03:00
Paolo Molaro
3e73ee9c4f
Avoid direct access to /dev/shm on some platforms.
2012-08-27 10:14:16 +02:00
Sebastien Pouliot
ad89f72f5b
[M4A] Do not reset 'errors' and 'status11' when a certificate is trusted. Fix last part of #5706
2012-08-23 16:39:57 -04:00
Sebastien Pouliot
3a274aac77
[OSX|iOS] Do not reset 'errors' and 'status11' when a certificate is trusted. Use the OS to validate the certificate (as valid for SSL server usage) and for the host name checks. Fix parts of #5706
2012-08-23 16:37:23 -04:00
Sebastien Pouliot
684cd289cb
Fix binding (type) and value error (true) that could lead to error #5 (kSecTrustResultRecoverableTrustFailure) for valid certificates. Fix bug #4001
2012-08-23 10:47:37 -04:00
Andres G. Aragoneses
ed4894d7db
MSBuild.Engine: use a buildtask enumerator that throws exceptions
...
InvalidOperationExceptions were not being thrown when asking for the
Current element if the enumerator had finished (or not started)
iterating.
2012-08-23 00:08:32 +01:00
Jeffrey Stedfast
f415e91c69
[xbuild] Fixed Microsoft.Portable.CSharp.targets to use smcs
...
Fixes bug #6649
2012-08-22 13:43:36 -04:00
Marek Safar
4cf592d9d4
Better error message for ref/out argument mismatch
2012-08-21 14:44:28 +02:00
Marek Safar
2097b533c6
Merge Alexander Chebaturkin SoC 2012 changes
...
During the Google Summer of Code, I was required to implement Interval Analysis for Code Contracts static verifier (cccheck tool). Please see information of changes at http://chebaturkin.blogspot.com/2012/08/code-contracts-static-verifier.html .
2012-08-21 13:58:28 +02:00
Matthew Leibowitz
91d8eea153
UInt32 is too large for Int32
...
Fix for overflow exception as mapping a UInt32 to Int32 fails.
Changed mapping of UInt32 to Int64 instead.
Line 192 was moved to 184:
case `DbType.UInt32:` was moved to make it map to `_sql.Bind_Int64(...)`
2012-08-21 09:01:55 +03:00
garyb
ef4470f38a
System.Drawing: added email to icon and test file headers
2012-08-20 18:30:04 +01:00
Zoltan Varga
31e9b80201
Escape windows paths in DWARF debug info.
2012-08-20 12:08:24 +02:00
Jérémie Laval
398f60a77d
Merge pull request #435 from mono-soc-2012/svick/dataflow
...
Svick/dataflow
2012-08-19 17:24:22 -07:00
Petr Onderka
076a2f26c9
Fixed race condition in Receive()
2012-08-20 01:41:12 +02:00
Petr Onderka
b4c834ec06
Project file changes by Visual Studio
2012-08-20 01:40:57 +02:00
Petr Onderka
aa8665f1a2
Fixed race condition in race condition test
2012-08-20 00:09:21 +02:00
Petr Onderka
2c25c41e03
Finished adding documentation for non-public types and methods
2012-08-20 00:09:05 +02:00
Petr Onderka
06bcfa044f
Removed nonsensical lock
2012-08-20 00:08:49 +02:00
Petr Onderka
96b8ce459b
Correctly implemented Choose()
2012-08-20 00:08:33 +02:00
Petr Onderka
890de4e2e0
Started adding documentation for non-public types and methods
...
Also some minor refactoring
2012-08-20 00:08:17 +02:00
Petr Onderka
2ca9ed1f9b
Fixed completion of PropagatorWrapperBlock
2012-08-20 00:08:01 +02:00
Petr Onderka
74b3784449
Removed nonsensical call that didn't actually do anything
2012-08-20 00:07:45 +02:00
Petr Onderka
37010941b5
No need to start new Task if there is only one item in the queue
2012-08-20 00:07:29 +02:00
Petr Onderka
53cfcfa518
Some tests need more time
2012-08-20 00:07:14 +02:00
Petr Onderka
3233cb6b67
Work around issue with old NUnit and comparing collections
2012-08-20 00:06:57 +02:00
Petr Onderka
157a7e48da
Don't cancel unstarted Tasks on cancellation
...
Unstarted Tasks can't be cancelled, because they have to
correctly modify degreeOfParallelism.
2012-08-20 00:06:42 +02:00
Petr Onderka
3d1fdc2b77
Fixed unit test to work with old NUnit
2012-08-20 00:06:26 +02:00
Petr Onderka
6033bab1ac
Handle consumeToAccept with MaxNumberOfGroups correctly
2012-08-20 00:06:11 +02:00
Petr Onderka
a05897bdda
Store multiple exceptions in Completion correctly
2012-08-20 00:05:55 +02:00
Petr Onderka
c0eae466df
Added test for MaxMessages with BroadcastBlock
2012-08-20 00:05:39 +02:00
Petr Onderka
8e6723b148
consumeToAccept shouldn't reserve
2012-08-20 00:05:24 +02:00
Petr Onderka
a51689aeaa
Make sure cancellation behaves the same as faulting wrt output queue
2012-08-20 00:05:08 +02:00
Petr Onderka
c5a7eec7c0
Implemented execution block ctors for async actions
2012-08-20 00:04:52 +02:00
Petr Onderka
f5aa9b18cc
Implemented NullTarget()
2012-08-20 00:04:35 +02:00
Petr Onderka
4fab5db64e
Fixed declaration differences
2012-08-20 00:04:19 +02:00
Petr Onderka
d279ba4300
Made block interfaces variant
2012-08-20 00:04:03 +02:00
Petr Onderka
83ee01d56b
Fixed race condition in OfferMessage()
2012-08-20 00:03:47 +02:00
Petr Onderka
e8c29f0f16
Check key for null in ConcurrentDictionary
2012-08-20 00:03:31 +02:00
Petr Onderka
bb1d630ad0
Forgot to use AssertEx
2012-08-20 00:03:15 +02:00
Petr Onderka
deaddfa17e
Added forgotten files to sources
2012-08-20 00:02:59 +02:00
Petr Onderka
d917d2f237
Throw the correct exception if Receive() is cancelled
2012-08-20 00:02:43 +02:00
Petr Onderka
956fe3e589
Check for null target in ConsumeMessage()
...
Previously, the correct exception was thrown later on,
but only by accident.
2012-08-20 00:02:27 +02:00
Petr Onderka
b42d1d23cc
Only reserved can be consumed after fault
2012-08-20 00:02:11 +02:00
Petr Onderka
edca016f25
Didn't check for null target in LinkTo() with predicate
2012-08-20 00:01:56 +02:00
Petr Onderka
d8a84d05c7
Implemented OutputAvailableAsync()
2012-08-20 00:01:21 +02:00
Petr Onderka
6dc84bab1d
Implemented LinkTo() with predicate
2012-08-20 00:00:32 +02:00
Petr Onderka
e09671aeec
Fixed sending from WriteOnceBlock
2012-08-20 00:00:17 +02:00
Petr Onderka
1b75b734b5
Fixed sending from BroadcastBlock
2012-08-20 00:00:02 +02:00
Petr Onderka
0488ecec3c
Corrected Receive() and ReceiveAsync()
2012-08-19 23:59:47 +02:00
Petr Onderka
efa8ac1e1b
Valid header can't have id 0
2012-08-19 23:59:32 +02:00
Petr Onderka
460864bd02
Implemented SendAsync()
2012-08-19 23:59:17 +02:00
Petr Onderka
37cdae3d3e
Release postponed messages after Complete()
2012-08-19 23:59:01 +02:00
Petr Onderka
6282796a78
ReleaseReservation() means the message is no longer postponed
2012-08-19 23:58:46 +02:00
Petr Onderka
f0513a7ba7
Handle completion correctly in Receive()
2012-08-19 23:58:31 +02:00
Petr Onderka
d7f2593b19
new CancellationTokenRegistration().Dispose() shouldn't throw
2012-08-19 23:58:16 +02:00
Petr Onderka
2742f4fdc8
Verify arguments in public methods
2012-08-19 23:57:39 +02:00
Petr Onderka
1789aca42b
Negative header ids should be valid
2012-08-19 23:56:47 +02:00
Petr Onderka
c005de6f4f
Made tests compatible with NUnit 2.4
2012-08-19 23:56:23 +02:00
Petr Onderka
7a0de2d404
Added support for MaxNumberOfGroups
2012-08-19 23:55:25 +02:00
Petr Onderka
f9d6665916
Fixed completion of JoinTargets
2012-08-19 23:55:14 +02:00
Petr Onderka
70eb1606a6
No need to use .Net 4.5-specific methods
2012-08-19 23:55:04 +02:00
Petr Onderka
24f9b377ba
Fixed tests, so that they work under MS .Net
...
Also a small change in ToString().
2012-08-19 23:54:43 +02:00
Petr Onderka
32564dbdff
Fixed bug in unit test
2012-08-19 23:54:32 +02:00
Petr Onderka
f44e47b473
Don't start new tasks after fault
2012-08-19 23:54:22 +02:00
Petr Onderka
333f88204b
More fixing of Linux build
2012-08-19 23:54:11 +02:00
Petr Onderka
37f56400e0
Don't use InternalsVisibleTo for testing
2012-08-19 23:52:59 +02:00
Petr Onderka
70dd858e42
Fixed non-greedy blocks with BoundedCapacity
2012-08-19 23:44:06 +02:00
Petr Onderka
5a117518da
Replaced Volatile.Write() with the volatile modifier
...
Mono doesn't support the generic version of Volatile.Write()
2012-08-19 23:44:04 +02:00
Petr Onderka
8f537c6c43
Test TriggerBatch() when the block is empty
2012-08-19 23:44:04 +02:00
Petr Onderka
25069dfc1a
Added missing files to .sources
2012-08-19 23:44:03 +02:00
Petr Onderka
c5f365a7d7
Added support for Greedy
2012-08-19 23:42:50 +02:00
Petr Onderka
f2a8e7e1eb
Added support for PropagateCompletion
2012-08-19 23:42:49 +02:00
Petr Onderka
b7d32ce8b3
Added support for MaxMessages
2012-08-19 23:42:47 +02:00
Petr Onderka
8569907ddb
Fixed bug in unit test
2012-08-19 23:42:46 +02:00
Petr Onderka
2f92f56945
Added support for BoundedCapacity
2012-08-19 23:42:45 +02:00
Petr Onderka
d7dece95b4
Corrected sending messages to targets in most blocks
2012-08-19 23:42:10 +02:00
Petr Onderka
b36e2b3f96
Added support for TaskScheduler
2012-08-19 23:42:08 +02:00
Petr Onderka
590a65e64c
Post() after fault should return false
2012-08-19 23:40:41 +02:00
Petr Onderka
746c068fd0
Corrected handling of exceptions
...
Also fixed some race conditions.
2012-08-19 23:40:40 +02:00
Petr Onderka
480b2318a9
Handle null results in TransformManyBlock correctly
2012-08-19 23:40:10 +02:00
Petr Onderka
42aecba40f
Exceptions during execution cause the block to fault
2012-08-19 23:40:09 +02:00
Petr Onderka
c463b7bfa5
Fixed MaxDegreeOfParallelism, added support for MaxMessagesPerTask
2012-08-19 23:40:09 +02:00
Petr Onderka
f28b290236
Added support for cancallation to all blocks
2012-08-19 23:40:08 +02:00
Petr Onderka
53859bdc71
Added support for NameFormat to all blocks
2012-08-19 23:40:07 +02:00
Petr Onderka
07848dd833
Unit test for deadlock that was in JoinBlock
2012-08-19 23:40:06 +02:00
Petr Onderka
350a250c03
Added BatchedJoinBlock`3
2012-08-19 23:40:06 +02:00
Petr Onderka
3acedb6df8
Implemented BatchedJoinBlock
2012-08-19 23:40:03 +02:00
Petr Onderka
23b9f536c4
Remove "optimization" that could cause a deadlock
2012-08-19 23:36:20 +02:00
Petr Onderka
8d404cd572
Fixed deadlock in JoinBlock by using a lock
2012-08-19 23:36:19 +02:00
Petr Onderka
4704bd2c36
Refactored code related to JoinTarget
2012-08-19 23:36:18 +02:00
Petr Onderka
227f574351
Fixed infinite recursion in BatchBlock.TryReceive
2012-08-19 23:36:17 +02:00
garyb
1d88520773
Save icon with 256px image without losing data, Bugs Novell:415809 Xamarin:6451
2012-08-18 23:24:22 +01:00
Miguel de Icaza
6a1e29980c
Merge pull request #428 from paszczi/master
...
Fix ArgumentOutOfRangeException in HttpListenerManager.TryDequeueRequest when timeout is less than 0
2012-08-17 11:37:18 -07:00
Zoltan Varga
75560568d2
Avoid a crash in SET_KEEPALIVE if the socket transport is not initialized.
2012-08-16 22:12:35 +02:00
Jonathan Pryor
b8eb131d3f
Fix g_strsplit() when delimiter at end-of-string and at max_count.
...
Suppose you want to split a `name=value` string:
char** kvp = g_strsplit ("name=value", "=", 2);
// kvp[0] is "name", kvp[1] is "value"
That works, but what if the string is "malformed" and missses a value?
char** kvp = g_strsplit ("name=", "=", 2);
// kvp[0] is "name", kvp[1] is "="
A value of "=" makes no sense here: values returned from
g_strsplit() shouldn't contain delimeter unless max_count is specified
and it's _within_ the last string; it's also not what GLib does.
What makes sense is a value of "" (the empty string), which IS what
GLib does (so it's compatible and sensible).
Fix g_strsplit() to use the empty string when the "rest" value would
otherwise be the delimiter.
2012-08-16 15:18:12 -04:00
Alan McGovern
8af1fc09c4
[System.Xml.Linq] Add error checking to the XElement constructors
...
Added matching tests.
2012-08-16 15:24:42 +01:00
Marek Safar
811deca9af
Searching for an attributes in probing mode should not report errors for other attributes. Fixes #6529
2012-08-16 12:49:13 +02:00
Marek Safar
d52e1e2f3d
Fix best params candidate rules for overloads with non-default arguments. Fixes #6541
2012-08-16 09:28:11 +01:00
Marek Safar
2e7da2d765
Inline AM_COND_IF for configure to work with ancient aclocal
2012-08-16 08:09:16 +01:00
Zoltan Varga
dca17e1023
Free the newly added assembly->remapped_tokens hashtable.
2012-08-16 02:47:15 +02:00
Zoltan Varga
4ace738d82
Free the newly added assembly->remapped_tokens hashtable.
2012-08-16 02:45:15 +02:00
Zoltan Varga
c86b5ce748
Handle ConstructorBuilders in fixup_cattrs () correctly. Fixes #689533 (nemerle build).
2012-08-16 02:04:02 +02:00
Marek Safar
1ecb61405f
Merge pull request #430 from Nican/master
...
Infinite recursion with GetCurrentDirectory and security enabled
2012-08-15 05:41:52 -07:00
Alexey Moiseev
fb8e77d1b7
Added getgrouplist to Syscall class
2012-08-15 12:23:31 +03:00
Nican
05f783b50f
Fixed incorrect line spacing
2012-08-15 01:35:03 -04:00
Nican
74a9f9b133
When enabling security with "mono_security_enable_core_clr" on a Windows machine, it causes an infinite recession when calling System.IO.Directory.GetCurrentDirectory.
...
The loop is happening between these calls:
https://github.com/mono/mono/blob/92d8961e0b244429d4d82176f4b33c8a4b3b064c/mcs/class/corlib/System.IO/Path.cs#L298
https://github.com/mono/mono/blob/3c39ac4586b4470703fb4af0208b5baf1de70e43/mcs/class/corlib/System.Security.Permissions/FileIOPermission.cs#L157
https://github.com/mono/mono/blob/9322e0d16b0edc054947279af34d3c7afb286c89/mcs/class/corlib/System.IO/Directory.cs#L248
Stack trace as follows:
The requested operation caused a stack overflow. at (wrapper managed-to-native) System.IO.MonoIO:GetCurrentDirectory (System.IO.MonoIOError&)
at System.IO.Directory.GetCurrentDirectory () [0x00000] in <filename unknown>:0
at System.IO.Path.WindowsDriveAdjustment (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Path.InsecureGetFullPath (System.String path) [0x00000] in <filename unknown>:0
at System.Security.Permissions.FileIOPermission.AddPathInternal (FileIOPermissionAccess access, System.String path) [0x00000] in <filename unknown>:0
at System.Security.Permissions.FileIOPermission.AddPathList (FileIOPermissionAccess access, System.String path) [0x00000] in <filename unknown>:0
at System.Security.Permissions.FileIOPermission..ctor (FileIOPermissionAccess access, System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.GetCurrentDirectory () [0x00000] in <filename unknown>:0
at System.IO.Path.WindowsDriveAdjustment (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Path.InsecureGetFullPath (System.String path) [0x00000] in <filename unknown>:0
at System.Security.Permissions.FileIOPermission.AddPathInternal (FileIOPermissionAccess access, System.String path) [0x00000] in <filename unknown>:0
at System.Security.Permissions.FileIOPermission.AddPathList (FileIOPermissionAccess access, System.String path) [0x00000] in <filename unknown>:0
at System.Security.Permissions.FileIOPermission..ctor (FileIOPermissionAccess access, System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.GetCurrentDirectory () [0x00000] in <filename unknown>:0
at System.IO.Path.WindowsDriveAdjustment (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Path.InsecureGetFullPath (System.String path) [0x00000] in <filename unknown>:0
...Snip...
2012-08-15 01:31:09 -04:00
Zoltan Varga
dc7f2197ea
Emit AOT line number information on osx/ios too.
2012-08-15 06:47:28 +02:00
Miguel de Icaza
a40444ba45
Revert 4e5e52a298, which was pull request 242, which was novell bugzilla #689533
...
This patch miscompiled attributes like this:
[EditorBrowsable (EditorBrowsableState.Advanced)]
[Export ("init")]
public CAKeyFrameAnimation () : base (NSObjectFlag.Empty)
{
if (IsDirectBinding) {
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.Init);
} else {
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.Init);
}
}
In particular the [Export ("init")] method to be compiled like this:
// method line 6274
.method public hidebysig specialname rtspecialname
instance default void '.ctor' () cil managed
{
.custom instance void class [System]System.ComponentModel.EditorBrowsableAttribute::'.ctor'(valuetype [System]System.ComponentModel.EditorBrowsableState) = (01 00 02 00 00 00 00 00 ) // ........
.custom instance void class MonoMac.CoreGraphics.CGImage::'.ctor'(int32, int32, int32, int32, int32, class MonoMac.CoreGraphics.CGColorSpace, valuetype MonoMac.CoreGraphics.CGImageAlphaInfo, class MonoMac.CoreGraphics.CGDataProvider, float32[], bool, valuetype MonoMac.CoreGraphics.CGColorRenderingIntent) = (01 00 04 69 6E 69 74 00 00 ) // ...init..
Notice the "CGImage" attribtue instead of the ExportAttribute
2012-08-14 21:08:15 -04:00
Zoltan Varga
910a51dbc8
Merge pull request #429 from penberg/fixes/typo-in-mini-amd64
...
Fix 'caller saved' typo in mono_arch_allocate_vars()
2012-08-14 13:45:50 -07:00
Thomas Goldstein
a2efbab53f
Fix code indentation and formatting
2012-08-14 22:03:30 +02:00
Pekka Enberg
0d262a3541
Fix 'caller saved' typo in mono_arch_allocate_vars()
...
The reserved space is for 'callee-save' registers, not 'caller-save', as
shown by the check for 'AMD64_IS_CALLEE_SAVED_REG' in the loop next to
the comment.
Signed-off-by: Pekka Enberg <[email protected] >
2012-08-14 22:45:05 +03:00
Rodrigo Kumpera
2d043746a4
Some gcc versions ICE when inlining code using computed gotos.
2012-08-14 15:59:22 -03:00
Rodrigo Kumpera
f4499071a8
Sprinkle some inlining annotations magic to bring performance back to the 2.10 levels.
...
* sgen-copy-object.h: For some reason gcc's inlining heuristics for serial_copy_object
from serial_scan_object reason not to inline it. This causes a 20% increase in nursery
scanning times.
Be explicit about inlining hints to make sure we get what we need.
2012-08-14 14:06:55 -03:00
Rodrigo Kumpera
103ba0fb89
Give the minor copy functions different names under for each minor collector to make profilers (Intruments) happy.
2012-08-14 14:06:54 -03:00
Maciej Paszta
8b4f8c9a86
Fix ArgumentOutOfRangeException in HttpListenerManager.TryDequeueRequest when timeout is less than 0
2012-08-14 13:44:07 +02:00
Marek Safar
198ccdc7bb
Fix monolite bootstrap
2012-08-14 09:32:25 +01:00
Marek Safar
d04e6242c3
Merge pull request #427 from knittl/toolstrip-dispose
...
Toolstrip dispose
2012-08-14 00:45:33 -07:00
Marek Safar
ae88b28aee
Merge pull request #426 from knittl/preferredwidth-minimumwidth
...
Return at least MinimumWidth instead of 0 in GetPreferredWidth
2012-08-14 00:44:24 -07:00
Daniel Knittl-Frank
92c07f5235
Return at least MinimumWidth instead of 0 in GetPreferredWidth
...
Otherwise we cannot use GetPreferredWidth as new Width, since this will
throw an Exception (ArgumentOutOfRange).
It's not a real fix, but it avoids crashes when using this method to
assign a new width for columns. Attached a MonoTODO to make this clear.
Signed-off-by: Daniel Knittl-Frank <[email protected] >
2012-08-14 09:38:13 +02:00
Daniel Knittl-Frank
427f608ef6
Do not calculate autosize of ToolStripItem when owner gets set to null
...
Signed-off-by: Daniel Knittl-Frank <[email protected] >
2012-08-14 09:32:41 +02:00
Daniel Knittl-Frank
0b3a1487ee
Properly dispose ToolStrip objects and child objects
...
Check if `dispose' is actually set, and only then call Dispose on
children. This patch was written with the help of alan from #monodev
IRC.
Signed-off-by: Daniel Knittl-Frank <[email protected] >
2012-08-14 09:32:41 +02:00
Zoltan Varga
44e3b45603
Don't try to create fast property getters of properties of open types. Fixes #6034 .
2012-08-14 04:56:41 +02:00
Zoltan Varga
06d423f9fa
Implement batched method invokes in sdb.
2012-08-14 00:08:24 +02:00
Sebastien Pouliot
2c2f569d90
Add test cases from #6510
2012-08-13 14:16:57 -04:00
Jonathan Pryor
3363b136c6
Pass SSL certificate chain, not just collection, to Mono.Android.dll
...
Fixes BCL half of: https://bugzilla.xamarin.com/show_bug.cgi?id=6501
Today I learned that the SSL certificate collection (as held in
X509CertificateCollection) is a potentially unordered sequence of SSL
certificates, which not all versions of Android will validate.
The fix is to use the properly ordered SSL certificate chain (as held
in X509Chain), and have Android validate that.
2012-08-13 13:48:16 -04:00
Marek Safar
ac3c8599df
Don't build Mono.CompilerServices.SymbolWriter for monotouch (it cannot be used)
2012-08-13 16:59:33 +01:00
Marek Safar
5be27fc188
Allow configure mono with any profile to be disabled
2012-08-13 16:33:38 +01:00
Marek Safar
b1326a3e21
Update to the latest IKVM.Reflection
2012-08-13 11:44:51 +01:00
Marek Safar
43d5e753ef
Revert "Fixes 4010. After working with Microsoft SQL Server experts it turns out we were able to drive so many packets to the server we were causing it grief. By increasing the packet level size this problem disappears."
...
This breaks .net compatibility and probably just hides underlying problem
This reverts commit 8c26404371 .
2012-08-13 10:55:23 +01:00
Marek Safar
8bdf16df8e
Remove NET_2_0
2012-08-13 10:47:32 +01:00
Marek Safar
566b86dac0
Revert "Don't use scheme if not an absolute URI"
...
Breaks existing tests
This reverts commit cf497bf47e .
2012-08-13 10:29:06 +01:00
Zoltan Varga
8107d3e746
Fix a memory leak in the sdb connection code.
2012-08-12 23:30:36 +02:00
Zoltan Varga
f032fe89dc
Fix a warning.
2012-08-11 17:27:05 +02:00
Gonzalo Paniagua Javier
aa1c098cb9
Merge pull request #408 from strawd/master
...
Further fixes for compatibility with ASP.NET Web API
2012-08-10 21:16:36 -07:00
Zoltan Varga
64773d70c5
Fix a DNS test.
2012-08-11 02:20:21 +02:00
Zoltan Varga
ba2910da3b
Avoid a fixed port number in a test.
2012-08-11 01:19:55 +02:00
Sebastien Pouliot
57fb542729
Wrap potential exceptions (like #6425 NRE) inside an (expected) WebException
2012-08-10 16:53:51 -04:00
Miguel de Icaza
e2f1b034c7
Merge pull request #414 from sesef/datagrid
...
Fix #3125
2012-08-10 12:36:32 -07:00
Miguel de Icaza
4017790a8c
Merge pull request #422 from ianbattersby/bz6389-InvalidSwitch
...
Fix for bz6389 - Absolute paths to project files cause error: 'MSBUILD00...
2012-08-10 12:35:02 -07:00
Marek Safar
e4bf05e45d
Fix failing test
2012-08-10 08:09:07 +01:00
Marek Safar
e888078425
Merge pull request #425 from enricosada/bug5230
...
Fix bug 5230
2012-08-09 23:51:32 -07:00
Marek Safar
0808b9b40e
Merge pull request #424 from enricosada/bug290
...
Fix bug 290
2012-08-09 23:50:24 -07:00
Enrico Sada
3331041eea
add QueryStringConverter String <-> Enum
...
fix bug https://bugzilla.xamarin.com/show_bug.cgi?id=5230
2012-08-10 01:42:36 +02:00
Enrico Sada
d778e34c42
ServiceHost.Open should throw InvalidOperationException if service contract has zero operations
...
Fix bug https://bugzilla.xamarin.com/show_bug.cgi?id=290
2012-08-09 23:07:07 +02:00
Duncan Mak
7bc2f969c6
Bump version number to 2.11.4
2012-08-09 17:04:38 -04:00
Neale Ferguson
8c26404371
Fixes 4010. After working with Microsoft SQL Server experts it turns out we were able to drive so many packets to the server we were causing it grief. By increasing the packet level size this problem disappears.
2012-08-09 12:12:53 -04:00
Rolf Bjarne Kvinge
74f598ce37
[Sqlite] Rework type mapping between sqllite and .net using sqlite's substring matching. Hopefully this will fix #5577 for good.
2012-08-09 15:06:17 +02:00
Alan McGovern
d57a2bcaba
Bump the debian submodule to the right revision again
...
someone accidentally reverted it to an old commit.
2012-08-09 11:35:59 +01:00
Marek Safar
f74872ab7f
Don't throw NRE when custom formatter returns null
2012-08-09 10:51:03 +01:00
Marek Safar
aa8ffef382
Fix 2.0 test only
2012-08-09 10:09:12 +01:00
Marek Safar
e9a5306d5d
Implement TypeConverter.ConvertTo cultureInfo support. Fixes #6322
2012-08-09 10:03:36 +01:00
Marek Safar
7c71ed208f
Better type check
2012-08-09 08:50:27 +01:00
Marek Safar
14f0942c69
Remove DebuggerDisplay from nullable (it needs special debugger support)
2012-08-09 08:43:14 +01:00
Marek Safar
bd64a1b794
Remove DebuggerDisplay from nullable (it needs special debugger support)
2012-08-08 14:34:58 +01:00
Marek Safar
f62fd06b79
Implement genitive month name formating for reversed day-month formats. Fixes #6417
2012-08-08 14:22:42 +01:00
Marek Safar
5fd2fc8e32
Merge pull request #423 from desunit/master
...
XmlConvert.ToString to TimeSpan incorrectly returns T suffix even if Time was not set (0h 0m 0s)
2012-08-08 05:31:47 -07:00
Sergey Bogdanov
b6b26f5afd
- XmlConvert.ToString to TimeSpan incorrectly returns T suffix even if Time was not set (0h 0m 0s)
2012-08-08 15:13:20 +03:00
Marek Safar
b52990befb
Remove unused decimal2string icall
2012-08-08 11:26:01 +01:00
Marek Safar
225b47efbd
Fix parsing decimal zero values. Fixes #6444
2012-08-08 11:26:01 +01:00
Marek Safar
3eea24e04a
Use faster lenght comparison
2012-08-08 11:26:00 +01:00
Jeffrey Stedfast
876615e258
[corlib] Fixed performance regression in qsort() functions
...
Many thanks to Martin Potter who both discovered this performance
regression, providing a test case, and proposing this patch/solution.
If most of the keys have identical values as the pivot, the partitions
would become largely lopsided resulting in a worst-case scenario runtime.
We can avoid this worst-case scenario by keeping the partitions better
balanced. To do this, we can modify the "closing-in of the walls" loops
to allow items with keys identical to the pivot to be swapped to the
higher-order partition (the previous implementation would greedily
keep them in the low-order partition).
As an added bonus, this also allows us to remove the code that was needed
to keep track of the pivot index.
2012-08-07 19:06:50 -04:00
Ian Battersby
cbcc4e73dd
Fix for bz6389 - Absolute paths to project files cause error: 'MSBUILD0001: Unknown switch'
2012-08-07 21:31:36 +01:00
Jonathan Pryor
43955e8062
Add note that UnixDirectoryInfo.Create() follows umask.
2012-08-07 15:43:28 -04:00
Marek Safar
d7b4d238af
Check same name collision in different namespace containers. Fixes #6378
2012-08-07 18:27:33 +01:00
Jeffrey Stedfast
71bb64df71
[corlib] Fallback to Insertion Sort in the non-generic qsort()
...
Many thanks to Martin Potter <[email protected] > for taking
the time to implement this, crossing it off of the long TODO list!
2012-08-07 12:17:16 -04:00
Jeffrey Stedfast
9c9e2c6b1d
[corlib] Make all qsort() implementations completely non-recursive
...
This is a better fix for StackOverflowExceptions on large data sets.
2012-08-07 12:03:24 -04:00
Marek Safar
fa7ff84d47
Fix type inference with explicit non-generic types. Fixes #6421
2012-08-07 15:09:50 +01:00
Marek Safar
da9d9a6660
Merge pull request #420 from LogosBible/bug6405
...
Bug #6405 : If a CookieContainer is set, always use its cookies.
2012-08-07 00:32:12 -07:00
Jeffrey Stedfast
050eba485a
[corlib] Modified Array.qsort*() to inline sorting of the larger partition
...
This prevents potential StackOverflowExceptions on really large data sets.
Partial fix for bug #6406
2012-08-06 16:47:58 -04:00
Atsushi Eno
5f8dd93b2a
Merge pull request #411 from Alkarex/patch-2
...
Update mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/XsdDatatypeProv...
2012-08-06 13:29:09 -07:00
Martin Potter
6d56f4429e
Unit tests for Bug #6405
...
Unit tests for https://bugzilla.xamarin.com/show_bug.cgi?id=6405
2012-08-06 12:00:39 -07:00
Marek Safar
d77b4c9404
Merge pull request #419 from LogosBible/bug6404
...
Bug #6404 : System.Text.Encoder only throws ArgumentOutOfRangeException when appropriate
2012-08-06 08:17:53 -07:00
Marek Safar
67a79d5510
Merge pull request #418 from LogosBible/bug6403
...
Bug #6403 : Use MidpointRounding.AwayFromZero when rounding creating a TimeSpan.FromXXX.
2012-08-06 08:17:05 -07:00
Marek Safar
4c48da17fe
Merge pull request #416 from LogosBible/a29fd0668e4303d71acb46fb3acfa1f1d451d161
...
Fix for incorrect behavior of Guid.TryParse and Guid.TryParseExact. Bug Id: 6402
2012-08-06 08:14:49 -07:00
Martin Potter
c289daf4db
If a CookieContainer is set, always use its cookies.
...
Previously, cookies from the WebHeaderCollection and CookieContainer were sent. This also fixes a bug with ServicePoint sending duplicate cookies when SendRequestHeaders is called more than once:
* WebConnection.InitConnection
* HttpWebRequest.SetWriteStream
* HttpWebRequest. SendRequestHeaders
* WebConnectionStream.WriteRequest
* HttpWebRequest.SendRequestHeaders
Replacing the cookie header value in the WebHeaderCollection with the cookies stored in the CookieContainer also matches the behavior of Microsoft's .NET implementation.
2012-08-05 21:52:54 -07:00
Martin Potter
e3d59a330e
Updating System.Text.Encoder's Convert method bounds checking to be compliant with Microsoft's documentation. ( http://msdn.microsoft.com/en-us/library/dh0797c4.aspx )
2012-08-05 21:18:33 -07:00
Martin Potter
07cd608e26
Using MidpointRounding.AwayFromZero for rounding the calculated number of Ticks when creating a TimeSpan.FromXXX.
2012-08-05 21:09:07 -07:00
Martin Potter
a29fd0668e
Guid.TryParse and Guid.TryParseExact should not throw exceptions.
...
According to the MSDN documentation, http://msdn.microsoft.com/en-us/library/system.guid.tryparse.aspx and http://msdn.microsoft.com/en-us/library/system.guid.tryparseexact.aspx , Guid.TryParse and Guid.TryParseExact should "return false if input is null or not in a recognized format, and does not throw an exception."
2012-08-05 19:18:48 -07:00
Zoltan Varga
bfdb8242d9
Fix MethodMirror.GetCustomAttributes ().
2012-08-04 20:29:40 -04:00
Marek Safar
743d05c89c
Merge pull request #415 from enricosada/bug6373
...
Use HashSet.Comparer for set methods with IEnumerable collection
2012-08-04 15:55:58 -07:00
Enrico Sada
15b9cc32d4
Use HashSet.Comparer for set methods with IEnumerable collection
...
fix bug 6373 ( https://bugzilla.xamarin.com/show_bug.cgi?id=6373 )
2012-08-04 19:06:19 +02:00
Marek Safar
7caeaa0b05
Fix typo
2012-08-04 11:35:35 -04:00
Zoltan Varga
7464bfd078
Convert the argument of OP_INOT to int in the llvm backend. Fixes #6377 .
2012-08-03 10:00:19 -04:00
Jeffrey Stedfast
b38abd8131
[Mono.Debugger.Soft] Implemented MethodMirror.GetCustomAttributes()
2012-08-03 09:49:39 -04:00
Marek Safar
374bf4c95e
Increase buffer length for full ast parser. Fixes #6276
2012-08-02 17:59:29 -04:00
sesef
50d7a73dff
https://bugzilla.xamarin.com/show_bug.cgi?id=3125
2012-08-02 22:17:16 +02:00
Marek Safar
00ad3f4634
Fix failing test
2012-08-02 19:21:36 +01:00
Rodrigo Kumpera
0fc5fe0d31
Disable native trace collection and spew on desktop.
2012-08-02 13:43:26 -04:00
Marek Safar
179c93b445
Merge pull request #413 from AerisG222/http_capability_provider
...
http capability provider
2012-08-02 10:21:40 -07:00
aerisg222
c2fc2dc584
initial implementation of http capability provider introduced in .net 4.0.
2012-08-02 12:49:26 -04:00
Paolo Molaro
452aaf4e5b
Fixes xambug#2965: enqueue the correct worker instance (change from Tammo Hinrichs).
2012-08-02 18:10:23 +02:00
Marek Safar
8b4cb822ad
Fix 2.0 attributeusage
2012-08-01 22:19:47 +01:00
Zoltan Varga
174030f7e6
Implement support for DebuggerHiddenAttribute.
2012-08-01 15:32:14 -04:00
Zoltan Varga
ff3518b7fb
Put the cas flags in MonoJitInfo into a separate structure to free up a free bits.
2012-08-01 15:25:38 -04:00
Jonathan Pryor
de96a7eb9a
Enable IPv6 support under Android.
...
Android now supports IPv6.
Reverts: 55a3c344
2012-07-31 07:34:16 -04:00
Marek Safar
97eaa6b467
Merge pull request #410 from sblom/threadcount
...
Return correctly-sized ProcessThreadCollection to enable Threads.Count.
2012-07-30 12:50:08 -07:00
Atsushi Eno
97ac2a2813
Merge pull request #412 from Alkarex/patch-3
...
Update mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/RelaxngValidati...
2012-07-30 10:08:24 -07:00
Alexandre Alapetite
75e2967ca5
Update mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/RelaxngValidatingReader.cs
...
There should not be such a big difference in behaviour when the application listens to the InvalidNodeFound event or not.
Furthermore, before the patch, the following document would fail:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml ">
<head><title>XHTML5 test</title></head>
<body><p>This is a <span>simple</span> test.</p></body>
</html>
because "cachedValue" contains "This is a".
(Tests done with http://syntax.whattf.org/relaxng/xhtml5.rnc )
I have a suspicion however that there is a problem in the logic of this function.
Cordially,
Alexandre
http://alexandre.alapetite.fr
2012-07-30 13:13:33 +03:00
Alexandre Alapetite
b610464e80
Update mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/XsdDatatypeProvider.cs
...
The text, which arrives decoded, must be escaped when manually concatenating strings aimed to be consumed by an XML reader.
For instance, if the original document to be validated contains
<a href="http://example.org/?a=1&b=2 ">fail</a>
then value will contain "http://example.org/?a=1&b=2 "
and before the patch, that would have generated an exception.
I am not sure however, if the whole Parse() function works correctly.
In addition, the function is using XmlValidatingReader, which is deprecated.
2012-07-30 12:55:26 +03:00
Scott Blomquist
ef6313d9c4
Return correctly-sized ProcessThreadCollection to enable Threads.Count.
2012-07-29 16:51:01 -07:00
Steven Boswell II
f733665550
Fix DataGridView.Dispose test regressions
2012-07-29 19:57:07 +02:00
Thomas Goldstein
821d9e4a4c
Fix TestDispose test to work with NUnit < 2.5
2012-07-29 10:49:19 +02:00
Alexandre Alapetite
57d05a2378
Update mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/RelaxngPattern.cs
...
- Choice of using the parser for compact syntax or not based on the file extension,
in order to allow mixed grammars (e.g. including RNG from RNC).
- Correction in base URI for compact syntax in order to allow including grammar files located in different directories.
2012-07-28 20:36:22 +03:00
Thomas Goldstein
757b894d7c
Add unit test for Novell bug 660986
2012-07-28 12:46:09 +02:00
[email protected]
ecef298bca
Ensure DataGridView disposes of its columns and rows. Fixes Novell bug 660986.
2012-07-28 12:45:39 +02:00
Thomas Goldstein
a5d3d1c5c9
Dispose of form to avoid TearDown warning
2012-07-28 11:13:31 +02:00
Steven Boswell II
75714e424a
Match .NET behavior with AutoSize Columns/Rows when no control starts in column 1
2012-07-28 11:01:31 +02:00
Marek Safar
cf9d28768a
Update old test
2012-07-27 15:23:19 +01:00
Marek Safar
d0a3534b82
Don't remove hoisted this when state machine holds reduced anonymous method
2012-07-27 15:16:03 +01:00
Jeremie Laval
830fe40ba0
[System] Ensure we use logical shift and not arithmetic shift
2012-07-27 14:17:57 +01:00
Marek Safar
29e97b9804
Fix GAC path
2012-07-27 13:42:22 +01:00
Marek Safar
138ee5972e
Fix EF spec category
2012-07-27 12:25:43 +01:00
Marek Safar
c45375b4c8
Fix types signature
2012-07-27 12:25:43 +01:00
Marek Safar
241c64c12c
Fix attribute arguments
2012-07-27 12:25:42 +01:00
Martin Baulig
ad810b6ed8
StreamContent.TryComputeLength(): Check content.CanSeek
2012-07-27 11:18:59 +02:00
Marek Safar
f2d419ef27
Remove duplicate entry
2012-07-27 09:16:40 +01:00
Marek Safar
42654d599f
Add EntityFramework (not same as System.Data.Entity)
2012-07-27 09:03:43 +01:00
Marek Safar
b3021246f8
Set resume point correctly for await inside nested try
2012-07-27 08:59:57 +01:00
Marek Safar
1c65c12f19
Add some missing methods
2012-07-27 08:54:03 +01:00
Marek Safar
3184c9ee65
Clean up old defines
2012-07-27 08:25:38 +01:00
Steven Boswell II
2f9c820c7e
Properly update the combo box selected text when the current item is changed, and a part of the text is selected
2012-07-26 20:45:20 +02:00
Jeremie Laval
f7549a7295
[corlib] Slightly better ToArray/CopyTo methods for ConcurrentStack / ConcurrentQueue
2012-07-26 17:34:23 +01:00
Marek Safar
e174f682f9
Add some missing methods
2012-07-26 17:27:11 +01:00
Marek Safar
08282fc9bf
Don't crash when nullable user conversion requires lifted constant argument
2012-07-26 17:27:11 +01:00
Jeremie Laval
62930a669c
[corlib] Fix ConcurrentStack TryPopRange to update count atomically
2012-07-26 17:01:39 +01:00
Marek Safar
b0c1e99f75
Fix attribute arguments
2012-07-26 12:48:27 +01:00
Marek Safar
c1970acfc5
Add boxed attribute arguments extraction
2012-07-26 12:47:09 +01:00
Marek Safar
03275fc6ee
Check assignment of delegates out parameters.
2012-07-25 18:15:28 +01:00
Jeremie Laval
5fd109f855
[System] Check for Abort state when poping so that we can retry
2012-07-25 17:37:52 +01:00
Marek Habersack
236f5f528c
Merge branch 'master' of github.com:mono/mono
2012-07-25 08:42:41 -04:00
Marek Habersack
c3e088bf2f
Update to fix for Novell bug #739119
2012-07-25 08:42:09 -04:00
Jeremie Laval
37c812036b
[corlib] Fix ObjectPool to not incorrectly assume it was succeeding when its trial period ran out
...
Reported by Greg Young
2012-07-25 12:42:14 +01:00
Jeremie Laval
2ac4d350e2
[corlib] Add missing barrier to ObjectPool and comment the code
2012-07-25 12:36:03 +01:00
Martin Baulig
0c35df2d16
Merge pull request #392 from baulig/master
...
HttpClient fixes
* Check errors, fix tests on Windows.
* Disallow modifying properties after sending a request
* Close connection in HttpClient.GetStringAsync() and GetByteArrayAsync().
* Increase HttpContent.LoadIntoBufferAsync()'s internal buffer size to 65536.
2012-07-25 01:47:37 -07:00
Martin Baulig
176044b918
HttpContent.LoadIntoBufferAsync(): increase buffer size to 65536.
...
FIXME LAMESPEC: This limitation seems very arbitrary to me, but
.NET seems to be using 65536 as well.
2012-07-25 10:41:18 +02:00
Marek Habersack
2ab1a05105
Fix for Novell bug #739119
2012-07-24 18:49:34 -04:00
David Straw
cf497bf47e
Don't use scheme if not an absolute URI
2012-07-24 16:22:55 -06:00
Steven Boswell II
a1e7e4ebf7
Implement the drawing of mixed-mode check boxes
2012-07-24 20:51:11 +02:00
Steven Boswell II
55848244bb
Properly fill in the whole TableLayoutPanel with dummy controls
2012-07-24 20:14:25 +02:00
David Straw
2d420541ed
Async reads no longer return -1 read byte count
2012-07-24 11:55:07 -06:00
David Straw
4550a369dc
Merge remote-tracking branch 'upstream/master'
2012-07-24 10:54:45 -06:00
Jeremie Laval
ccd53a905e
[System] Optimize ConcurrentBag, implement TryPeek and add unit tests
...
Initially reported by linquize
2012-07-24 17:09:15 +01:00
Alan McGovern
1c7bc4f096
Merge pull request #406 from directhex/master
...
Un-revert debian snapshot changes
2012-07-24 07:54:29 -07:00
Jo Shields
a476919f5b
Merge remote-tracking branch 'github/master'
...
Conflicts:
external/debian-snapshot
2012-07-24 15:46:15 +01:00
Gonzalo Paniagua Javier
6d1a9f32d6
Remove compiler warning
2012-07-24 00:29:19 -04:00
Gonzalo Paniagua Javier
782e336a49
Avoid possible duplicate fds in the list
2012-07-24 00:29:19 -04:00
Miguel de Icaza
47024861b7
Render obsolete attributes on members
2012-07-23 21:35:51 -04:00
Jeremie Laval
ed68f88573
[corlib] Dont use blocking wait call in CancellationTokenSource test
2012-07-23 16:49:55 +01:00
Jérémie Laval
c13bd7df0a
[corlib] Remove now unneeded line
2012-07-23 12:59:47 +01:00
Jérémie Laval
ca351b61c1
[corlib] Also unregister linked tokens when the proxy CancellationTokenSource becomes cancelled.
2012-07-23 12:54:21 +01:00
Jérémie Laval
75222a62c5
[corlib] Linked token callback to the proxy CancellationTokenSource shouldn't throw ODE in concurrent situations.
2012-07-23 12:48:40 +01:00
Jérémie Laval
253c5fb1d3
[corlib] Dispose linked tokens connections when disposing the resulting CancellationTokenSource
...
Based on baulig's patch: https://github.com/baulig/mono/commit/3ee4f7600b8efe61f7a701a93fffed8373b7b4b3
2012-07-23 11:48:55 +01:00
Marek Safar
208c883806
Flag a field as used when used as an extension method argument. Fixes #6159
2012-07-23 10:25:12 +01:00
Marek Safar
91efe20977
Fix typo in OldValue/NewValue
2012-07-23 10:25:12 +01:00
Atsushi Eno
600a57c98d
Merge pull request #398 from xcrash/feature/wcf.mex.https
...
Fix binding for MexHttps
2012-07-22 21:04:47 -07:00
Miguel de Icaza
f4774442ea
Merge pull request #303 from ermshiperete/5278
...
Xamarin-5278: Fix Binder.SelectMethod when passed argument is COM object
2012-07-21 09:27:20 -07:00
Miguel de Icaza
4d84028bd8
Merge pull request #309 from i59/patch-1
...
Build Configuration: Don't build libmono to Release_SGen in x64 Release ...
2012-07-21 09:26:16 -07:00
Miguel de Icaza
e3f0c7fa4e
Merge pull request #335 from robwilkens/DataGridBugs1
...
This fixes several bugs in Winforms DataGrid
2012-07-21 09:24:23 -07:00
Miguel de Icaza
3e8e365029
Revert previous patch, see discussion on https://github.com/mono/mono/pull/337
2012-07-21 12:22:01 -04:00
Miguel de Icaza
dba2dd4098
Merge pull request #337 from robwilkens/IdleThreadsFixes
...
Fix:Idle event handler was called on every thread rather than thread ass...
2012-07-21 09:04:58 -07:00
Miguel de Icaza
f4a44a474e
Merge pull request #350 from robwilkens/bug1089
...
Bug 1089 Fix: Fix proc/mod name match by also starting at last / in proc...
2012-07-21 08:58:58 -07:00
Marek Safar
924618a192
Merge pull request #403 from AerisG222/1596644f26b5b4b1a5106bb3cc0f5db897bfdda4
...
Add FormsAuthentication.IsEnabled property
2012-07-21 01:32:59 -07:00
Martin Baulig
000fcac21c
Close connection in HttpClient.GetStringAsync and GetByteArrayAsync().
2012-07-21 08:32:51 +02:00
Rodrigo Kumpera
2c4a0d8996
Switch the unhandled exception spew to use the new native backtrace when available.
2012-07-20 13:23:28 -03:00
Rodrigo Kumpera
cc2641ca63
Add Mono.Runtime::GetNativeStackTrace method to make the new backtracing facility available to managed land.
2012-07-20 13:23:28 -03:00
Rodrigo Kumpera
b49d219157
Add new mono_exception_get_native_backtrace function that stringify the native backstace with managed and native frames.
2012-07-20 13:23:27 -03:00
Rodrigo Kumpera
b62e68b51c
Fill Exception::native_trace_ips when doing exception handling.
2012-07-20 13:23:27 -03:00
Rodrigo Kumpera
133f0c8935
Add field to Exception to hold the unmanaged backtrace.
2012-07-20 13:23:27 -03:00
Alan McGovern
f815f21cd2
Update the tests to do actual verification
...
Ensure the elements really are added twice.
2012-07-20 16:41:05 +01:00
Alan McGovern
31334e23f0
Use the result of XUtil.ToNode when emitting events
...
Sometimes the value the user passes in is converted to an XNode. In
these cases we need to use that XNode when emitting the change events.
Added a test covering this change.
2012-07-20 16:41:05 +01:00
Alan McGovern
5f1dfbee09
Emit change events for modifying XElement.Name
...
Added additional tests for this too.
2012-07-20 16:41:05 +01:00
Alan McGovern
3675edb510
Add some tests to verify behaviour of Annotations
2012-07-20 16:41:05 +01:00
Alan McGovern
6292fb5a82
Implement XObjectChange.Value for XAttribute
...
We now emit the correct Changing/Changed events when modifying the
value of an XAttribute. Added tests covering the changes.
2012-07-20 16:41:05 +01:00
Alan McGovern
72bef6c0ab
Begin fixing the XObject.Changing and XObject.Changed events
...
Add tests to ensure the event is correctly emitted and correctly propagated
up the tree for the basic Add and Remove operations. Fixed the implementation
accordingly.
2012-07-20 16:41:04 +01:00
Andreia Gaita
703b51f246
[MSBuild] Fix wildcard parsing such as Include="dir\**"
...
The directory scanner was failing if the wildcard was the last item
on the path. Fix it, and also fix the excluded items detection to
make sure it checks the full path as well (paths may or may not be
rooted). Add a test for this.
2012-07-20 17:11:16 +02:00
Neale Ferguson
ea7b182b2a
Return false instead of throwing a not implemented condition
2012-07-20 10:20:10 -04:00
Marek Safar
47634892ee
Set Length in MaxLengthAttribute ctor
2012-07-20 08:17:36 +01:00
Zoltan Varga
a58334eb97
Merge pull request #400 from sblom/master
...
Update eglib gmarkup implementation to skip high-ASCII chars at start of XML file
2012-07-19 22:18:59 -07:00
aerisg222
1596644f26
added new property from 4.0
...
(http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.isenabled.aspx )
2012-07-19 21:51:40 -04:00
Marek Safar
13594897c3
Implement MaxLengthAttribute
2012-07-19 19:05:42 +01:00
Marek Safar
6ea7843351
Add some new async methods
2012-07-19 19:04:26 +01:00
Marek Safar
b24d5c6198
Implement System.ComponentModel.DataAnnotations.Schema namespace
2012-07-19 17:59:29 +01:00
Jo Shields
c019572d43
[debian] Fix up package dexcription so you can apt-cache search for a git commitid
2012-07-19 17:50:18 +01:00
David Straw
223a33bbab
Merge remote-tracking branch 'upstream/master'
2012-07-19 09:35:17 -06:00
David Straw
3b8dba7fd9
TimeSpan.MaxValue comparison fails after recursing
2012-07-19 09:33:00 -06:00
Alan McGovern
4cca104cf3
[external/debian] Bump debian packaging script
2012-07-19 16:22:49 +01:00
Miguel de Icaza
d1ed245a06
Make ERROR_OPERATION_ABORTED a common message
2012-07-19 10:12:09 -04:00
Alan McGovern
730ffb72c7
[System.Xml.Linq] Fix some bugs in the tests
...
Ensure we normalize both the expected and actual output
so they have the same line endings.
2012-07-19 14:01:32 +01:00
Alan McGovern
09747c5e64
Merge pull request #401 from directhex/master
...
[debian] Various performance tweaks, plus split managed & unmanaged components into different packages (to save space w/ i386 builds)
2012-07-19 05:46:21 -07:00
Jo Shields
f5fa3f43a2
[debian] Various performance tweaks, plus split managed & unmanaged components into different packages (to save space w/ i386 builds)
2012-07-19 13:41:32 +01:00
Scott Blomquist
0ceb3a0a71
Skip Unicode BOM at start of XML.
2012-07-18 21:09:02 -07:00
Miguel de Icaza
190293e250
mono_lookup_pinvoke_call: prevent leak by keeping a global MonoDl handle for the internal module.
...
From now on, we will keep a global handle for lookups performed against the "__Internal"
library name. This will prevent multiple P/Invoke calls from calling mono_dl_open with
filename == NULL for each call.
Since Mono never calls mono_dl_close on P/Invoke lookups, this should not pose a problem.
2012-07-18 22:27:21 -04:00
Miguel de Icaza
8a5f02ff75
Remove more old compile defines
2012-07-18 22:27:21 -04:00
Rodrigo Kumpera
ebe282e11d
Another take into reducing shutdown crashes.
2012-07-18 20:59:27 -03:00
Martin Baulig
20c2fd845b
A HttpClientHandler's properties may not be modified after sending a request.
2012-07-18 21:14:37 +02:00
Martin Baulig
f1249c6563
Add wait timeouts.
2012-07-18 20:46:24 +02:00
Dan Shechter
3913959a35
Fixed Xamarin Bug 6148
...
- fixes https://bugzilla.xamarin.com/show_bug.cgi?id=6148
- explicit layout classes use the right packing
when determining the class size
- I release this patch is under the MIT/X11 license
2012-07-18 11:32:09 -03:00
Rodrigo Kumpera
9a4a5ada85
Fix shutdown when the io-tp was not used.
2012-07-18 11:17:40 -03:00
Rodrigo Kumpera
3252b41ac2
Give each scan function an unique name to help some profilers finding the right symbol.
2012-07-18 11:17:40 -03:00
Jeremie Laval
0a519aeb62
[external/debian] Bump debian packaging scripts
2012-07-18 14:51:09 +01:00
Marek Safar
8acc5b62d9
Implement better expression conversion between anonymous method dynamic return type and object
2012-07-18 13:32:23 +01:00
Marek Safar
191fc71f08
Fix return type check for delegates conversion using dynamic return type
2012-07-18 13:32:22 +01:00
Marek Habersack
a080b67a80
Remove external directory git cruft from the dist tarball
2012-07-18 14:07:21 +02:00
Andrey Grishin
3bfba37d2a
Fix binding for MexHttps
2012-07-18 13:55:09 +04:00
Alan McGovern
1b747e0ac7
Bump the debian-snapshot submodule again
2012-07-18 10:43:58 +01:00
Zoltan Varga
5b65847084
Merge pull request #397 from xen2/llvm_sqrt_abs
...
Fixed Math.Sqrtf and Math.Abs with LLVM.
2012-07-18 00:19:59 -07:00
Zoltan Varga
3aa367e264
Merge pull request #396 from directhex/master
...
Refresh Debian packaging
2012-07-18 00:18:55 -07:00
Virgile Bello
54454755c7
Fixed Math.Sqrtf and Math.Abs with LLVM.
2012-07-18 13:50:11 +09:00
Jo Shields
3c4dfcc1ce
[debian] Big bundle of packaging fixes, to massively simplify the job at Wrench's end, including a new script to build Debian packages inside the existing dirty prefix.
2012-07-17 23:51:55 +01:00
Rodrigo Kumpera
7dbd43e887
When calculating allowance, don't blindly cast from double to uint as it might not saturate the result.
...
* sgen-gc.c (try_calculate_minor_collection_allowance): For workloads with very high
survival rates the calculated allowance_target can overflow a mword on 32bits systems.
Given this behavior is unspecified and we've been bitten by it, let's take the safe
side and manually saturate it.
2012-07-17 14:59:58 -03:00
Rodrigo Kumpera
cd44e7caee
Add test for the behavior of discarding pending io events on appdomain unload.
2012-07-17 14:25:51 -03:00
Zoltan Varga
42f91a8630
Move some declarations out of a #ifdef in pthread_support.c to fix platforms without thread local alloc.
2012-07-17 18:51:25 +02:00
Zoltan Varga
65f7004927
Merge pull request #394 from directhex/master
...
[debian] Update Debian submodule
2012-07-16 23:41:44 -07:00
Jo Shields
eecd6763d0
[debian] Update Debian submodule with packaging bugfixes
2012-07-17 03:17:50 +01:00
Zoltan Varga
1b88fd2998
Remove some incorrectly forward-ported code from aot-runtime.c.
2012-07-17 02:52:54 +02:00
Martin Baulig
5309eb0a28
Disable two tests which fail on Windows with the .NET runtime.
2012-07-17 00:59:34 +02:00
Martin Baulig
60607eb1f6
Strip all whitespace from the returned headers.
2012-07-17 00:52:03 +02:00
Martin Baulig
827bffbf03
Ensure success status code in HttpClient.Get*Async().
...
* HttpClient.cs: GetByteArrayAsync(), GetStreamAsync() and GetStringAsync()
must check for a success status code.
* HttpClientHandler.cs: Always set HttpWebRequest.AllowAutoRedirect; its default
value is true.
* HttpClientTest.cs: Add new tests for this.
2012-07-17 00:33:01 +02:00
Miguel de Icaza
8f59998c4f
Merge pull request #323 from crazyjncsu/master
...
Fixed execution of parallel PageAsyncTasks
2012-07-16 14:42:36 -07:00
Miguel de Icaza
95543faf93
Merge pull request #388 from strawd/master
...
Fixes for compatibility with ASP.NET Web API Self-hosting
2012-07-16 14:31:00 -07:00
Marek Safar
c3220ab0a3
Merge pull request #390 from baulig/master
...
Fix relative URLs
2012-07-16 14:29:06 -07:00
Gonzalo Paniagua Javier
c26c9cf9bd
GetResponse() returns 0 when it need more data, not -1
...
GetResponse() returns 0 to signal that it needs more data to complete
while -1 signals an error processing the data.
2012-07-16 13:51:17 -04:00
Zoltan Varga
2c8a01baa3
Merge pull request #391 from xen2/e377dd65b5599d5a9ecf4bfde625e25fcd45ae68
...
Bugfix for #6112
2012-07-16 09:14:57 -07:00
Marek Safar
229ce0670a
Set field usage in resolve to accommodate for expression trees. Fixes #6119
2012-07-16 13:16:12 +01:00
Marek Safar
30bbf48787
Better error message for missing using for extension methods
2012-07-16 13:16:12 +01:00
Jérémie Laval
6435438e0c
Merge pull request #364 from directhex/master
...
Wrench-friendly Debian snapshot packaging
2012-07-16 05:10:09 -07:00
Zoltan Varga
c32a854800
Fix #6112 for amd64 as well.
2012-07-16 05:13:38 +02:00
Zoltan Varga
e1b5c77de1
Fix the handling of fail tramps in the full-aot IMT thunks on x86. Fixes #6112 .
2012-07-15 14:59:24 +02:00
Rodrigo Kumpera
9d2fbc646b
Clear more threadpool state prior to domain unload.
...
* threadpool.c: When cleaning the threadpool
before a domain unload, clear the sock_to_state hashtbale
as it might contain objects of the dying domain.
2012-07-13 19:04:18 -03:00
Rodrigo Kumpera
fc7b5c7581
Replace an assertion with an UNVERIFIED call in the JIT.
2012-07-13 19:04:18 -03:00
David Straw
d7bead356d
Merge remote-tracking branch 'upstream/master'
2012-07-13 14:20:31 -06:00
Jo Shields
27103e5736
[debian-snapshot] Pull in a fix for more robust path handling.
2012-07-13 18:44:14 +01:00
Marek Safar
0928297009
Make nullable values debugging more pleasant.
2012-07-13 10:26:49 +01:00
Marek Safar
3d329adf74
Fix error test number
2012-07-13 10:26:49 +01:00
Gonzalo Paniagua Javier
798784bac5
Backport from mobile
2012-07-11 18:17:36 -04:00
David Straw
c75c6be326
Treat TimeSpan.MaxValue as a special case for http wait timeout
2012-07-11 13:37:53 -06:00
David Straw
2480aa5b81
Constrain http request/response timeouts to int.MaxValue milliseconds
2012-07-11 11:51:59 -06:00
Rodrigo Kumpera
c17fbc8e27
Kill more compiler context code.
2012-07-11 10:00:38 -03:00
Rodrigo Kumpera
5a5ceee166
MonoGenericClass::initialize runtime icall only needs fields.
2012-07-11 09:31:59 -03:00
Martin Baulig
ff33dbf3bd
Support relative URIs.
2012-07-11 02:46:05 +02:00
David Straw
a0e51744cb
Merge branch 'master' of https://github.com/strawd/mono
2012-07-10 16:36:34 -06:00
David Straw
986364c1dc
Use static instances for scheme in parsed URIs
2012-07-10 16:35:21 -06:00
Rodrigo Kumpera
751c900a63
First pass killing compiler context support code.
...
* MonoGenericClass.cs: Switch to MS's behavior and kill
on ton of code in the process. Only MCS depended on it
and now we can kill it.
2012-07-10 18:38:32 -03:00
Rodrigo Kumpera
4f3ce8f8e9
Remove compiler context tests.
2012-07-10 16:58:54 -03:00
Rodrigo Kumpera
f40cd7add6
Remove some dead code.
2012-07-10 16:58:53 -03:00
Rodrigo Kumpera
28894b99c8
Use a simpler design for IsUserType based on virtual calls.
...
* Type.cs (IsUserType) Replace the current hacky way with
a virtual call. This removes a direct dependency on a type
and a bunch of stuff that would otherwise be loaded for
no good reason.
2012-07-10 16:58:53 -03:00
Rodrigo Kumpera
71ae0f0524
Disable mdb by default as it breaks sgen builds. This has gone unoticed for close to two years now.
2012-07-10 15:34:41 -03:00
Marek Safar
caa797a96f
Revert c38f710ce5
2012-07-10 15:24:21 +01:00
Marek Safar
323584425e
Check type parameters constraints on best candidate only. Fixes #6056
2012-07-10 15:07:34 +01:00
Marek Safar
39ca07d840
Fixes build
2012-07-10 08:07:42 +01:00
Virgile Bello
e377dd65b5
Fix #6112 c32a854: compile error and removed indirection.
2012-07-10 12:54:23 +09:00
Rodrigo Kumpera
8e197b05a9
Merge pull request #386 from alexrp/master
...
Use a critical region in mono_gc_alloc_array.
2012-07-09 16:44:10 -07:00
alexrp
69f62669a8
Only use TLAB_ACCESS_INIT in sgen_card_table_wbarrier_object_copy for the critical region case.
2012-07-10 01:36:31 +02:00
alexrp
96b0bddf71
Use a critical region in mono_gc_alloc_array.
2012-07-10 01:36:31 +02:00
Bojan Rajkovic
3e8658be5c
Merge pull request #366 from robwilkens/bug5747-2
...
Fixes #5747 : KeventWatcher - Was not returning subdirectories, repatched to fix regressions.
2012-07-09 15:48:43 -07:00
Rodrigo Kumpera
3180ad72af
Clear some dead code.
2012-07-09 15:18:54 -03:00
Rodrigo Kumpera
5376c6c6ad
Sanitize sgen's collection trigger internal API.
...
* sgen-gc.c: Sanitize all collection triggering functions in
just two. Make it possible to trigger a major GC before a minor
overflow happens.
2012-07-09 15:18:54 -03:00
Marek Safar
f48556bb06
Better error reporting for missing using directives
2012-07-09 18:16:53 +01:00
Marek Safar
282a2aac9d
Fix infinite loop when parsin unclosed generic type declaration arguments
2012-07-09 16:57:25 +01:00
Marek Safar
f9531844d5
Restore id-buffer when after probing async keyword. Fixes #6037
2012-07-09 16:57:24 +01:00
Marek Safar
feb567658d
Merge pull request #384 from miraclespain/master
...
Tests passing regarding modifications to System.Web.UI.WebControls.CheckboxList
2012-07-09 07:40:17 -07:00
Jakob Andersen
63e5a0d3e1
Only compare values if postdata for the checkbox is actually recieved
2012-07-09 16:40:14 +02:00
Marek Safar
f76c767049
Compare type definitions when checking nested type accessibility.
2012-07-09 15:32:30 +01:00
Marek Safar
999f7bed26
Better error message
2012-07-09 15:32:30 +01:00
Marek Safar
be0333eca7
Merge pull request #383 from JamesB7/system-security6
...
This version of CommonObjectSecurityTest does not use corlib AccessRule<T> or AuditRule<T>. Should unbreak it for .NET 2.0...
2012-07-09 07:13:41 -07:00
James Bellinger
2bcf31d55b
This version of CommonObjectSecurityTest should not use AccessRule<T> or AuditRule<T>
...
(just included simple specializations accomplishing the same).
2012-07-09 10:03:02 -04:00
Marek Safar
f12cc5b343
Merge pull request #382 from JamesB7/system-security7
...
Semaphore and Pipe ACLs
2012-07-08 23:55:49 -07:00
James Bellinger
490a86b6ec
Implemented PipeSecurity. GetAccessControl, SetAccessControl, and ACL-containing constructor overrides now work on pipes.
...
On another note, after writing a test I discovered Asynchronous pipes appear to be completely broken on Win32.
The class does not correctly handle overlapped I/O. This patch doesn't fix that.
One other fix in this patch, the DllImports for Win32 pipes did not have SetLastError set.
So, they were unable to return a meaningful error in the event of failure. This is now fixed, and
UnauthorizedAccessException correctly throws for pipe connects denied by ACL (necessary for PipeSecurity test).
2012-07-08 15:13:51 -04:00
James Bellinger
b58c6c1a79
Implement SemaphoreSecurity.
2012-07-08 15:13:51 -04:00
Marek Safar
1f0393c4bb
Merge pull request #381 from JamesB7/system-security6
...
Fix ObjectSecurityTest on .NET 2.0. The test no longer uses AccessRule<T> and AuditRule<T>.
2012-07-08 11:40:48 -07:00
James Bellinger
dcb1fa2e31
Fix ObjectSecurityTest on .NET 2.0. The test no longer uses AccessRule<T> and AuditRule<T>.
2012-07-08 14:33:39 -04:00
Marek Safar
2ff00fae01
Merge pull request #378 from miraclespain/master
...
Fix to problem with CheckboxList when running .NET 4.0
2012-07-08 01:54:17 -07:00
Marek Safar
56ea90e442
Merge pull request #380 from JamesB7/enum-fix
...
Fixed Type.GetEnumNames sort order (it's specified on MSDN). Previously ...
2012-07-08 01:53:08 -07:00
Marek Safar
9381249718
Merge pull request #379 from JamesB7/system-security6
...
ACLs! (File, Directory, Mutex, EventWaitHandle, RegistryKey)
2012-07-08 01:49:01 -07:00
James Bellinger
45b121ce8b
Fixed Type.GetEnumNames sort order (it's specified on MSDN). Previously this method was returning in GetFields (declaration) order. It now returns sorted by the unsigned value of the enum as is correct.
...
Ran into this while calling Type.GetEnumNames and Type.GetEnumValues.
To my surprise the pairs didn't match up. Anyway, here's a fix.
2012-07-08 00:31:57 -04:00
James Bellinger
c577dd4bb4
RegistrySecurity now working!
2012-07-07 18:45:26 -04:00
James Bellinger
c6f901c2cf
Mutexes and event wait handles now work, with tests included. Fixed the exception on failure for MutexSecurity.
2012-07-07 18:45:26 -04:00
James Bellinger
9322e0d16b
ACLs now work on Windows. Tests all the way up to DirectorySecurityTest and FileSecurityTest.
...
NativeObjectSecurity is implemented.
I've done it in such a way that, for OSes that do not have a unified API for all ACLs,
overrides can be done in subclasses such as FileSystemSecurity without trouble.
ObjectSecurity, CommonObjectSecurity, and DirectoryObjectSecurity all implemented.
MutexSecurity, PipeSecurity, etc. all just add type specialization and nothing else. Implemented all of these as well.
Access and Audit rules now correctly use NTAccount in their string overloads (see unit tests).
The constructors all provide correct AccessMasks now. In other words, these classes are all now un-broken/no longer stubs.
More unit tests for CommonSecurityDescriptor and fixes to pass them.
A few had checks that were redundant (implemented by (Authorization|Audit|Access)Rule) as well. These have been removed.
The Allow Everyone Full Access default for null DiscretionaryAcls in CommonSecurityDescriptor is, I think,
properly implemented. This required some changes to GenericSecurityDescriptor as well, but now Mono matches
MS.NET on GetSddl/GetBinaryForm for null DiscretionaryAcl including roundtrip.
What's still missing:
(1) CommonAcl's RemoveAccess/RemoveAudit. RemoveAll and RemoveSpecific work so it's not a big issue.
(2) CommonAcl merging will not yet try to merge a CommonAce together with an ObjectAce.
(3) The various *Security constructors. Get/SetAccessControl work on files and directories.
However, you still have to create and then set. I am not too familiar with Mono runtime internal
calls, but to someone who is: If the SECURITY_ATTRIBUTES parameter to Create*'s lpSecurityDescriptor
pointed to the output of GenericSecurityDescriptor's GetBinaryForm, that would be a complete
implementation.
2012-07-07 18:45:06 -04:00
James Bellinger
5817dada36
CommonSecurityDescriptor!
2012-07-07 18:45:06 -04:00
Jakob Andersen
c38f710ce5
Fix to compare to actual value as this is what is used in 4.0 since changeset d8838a64
2012-07-07 22:06:53 +02:00
Gonzalo Paniagua Javier
d16d4623ed
HtmlEncode the path
...
Fixes Novell bug #769799 .
2012-07-06 13:42:43 -04:00
Mark Probst
ac37b3af1c
[sgen] Fix a race condition.
...
When a worker thread is looking for a job in the queue the collection
might already be over. Don't call code that assumes it's still running
until we're sure.
2012-07-05 15:58:43 +02:00
Rolf Bjarne Kvinge
53f463e089
Rework RectangleF.Contains to not do equality comparison on floating point values. Fixes #5985 .
2012-07-05 14:54:31 +02:00
Marek Safar
667e99b26f
Fix failing dns tests
2012-07-05 09:00:46 +01:00
Marek Safar
df4b0b4de1
Fix Order property to throw on no value
2012-07-05 08:30:35 +01:00
Zoltan Varga
4bc53e49ff
Fix an assert in the arm backend if an offset is too large.
2012-07-05 04:59:24 +02:00
Marek Safar
5157b11ed1
Merge pull request #373 from QuickJack/master
...
Removed a number of warnings
2012-07-04 09:21:36 -07:00
Alan McGovern
c35539d114
[Microsoft.Build.Tasks] Remove an overly verbose informational message
...
This warning really pollutes the monodevelop build, so lets nuke it
for now.
2012-07-04 15:43:12 +01:00
Alan McGovern
76106b7027
[Microsoft.Build.Tasks] Fix some simple caching to improve build times
...
Large projects now have significantly less overhead when calculating
assembly references and referencing gac assemblies.
2012-07-04 15:43:11 +01:00
QuickJack
93e38446ea
Applied Marek's suggestions so remove CS0067 from certain event handler declarations
2012-07-04 16:09:47 +02:00
Marek Safar
b783623ed1
Merge pull request #376 from atomia/master
...
Allow parsing of config files for for enterprise library.
2012-07-04 04:49:01 -07:00
Thorsten Tarrach
48bc60b40b
Not validating if null value is null
...
This allows parsing of enterprise library config extensions and is in line with the way MS .net handles things.
2012-07-04 13:46:34 +02:00
Marek Safar
2ecfb91fc5
Merge pull request #375 from atomia/master
...
Improved exception messages in case of configuration errors
2012-07-04 04:30:47 -07:00
Thorsten Tarrach
e45b72508a
Improved error messages so that it becomes clear where configuration errors come from
2012-07-04 13:16:34 +02:00
Marek Safar
458423eb45
Merge pull request #372 from JamesB7/system-security5
...
Implemented DiscretionaryAcl and SystemAcl except for RemoveAccess
2012-07-04 00:11:36 -07:00
QuickJack
6a7f6ebad1
Fixes a number of warnings in System.Windows.Forms.dll
2012-07-03 22:54:31 +02:00
James Bellinger
3a7601b97c
Implemented SystemAcl. Common shared functionality moved to CommonAcl. Only missing implementation now is RemoveAccess/RemoveAudit.
...
Unit tests included - for SystemAcl they are based on DiscretionaryAcl's mostly,
with one extra and one somewhat changed since AuditFlags merge together unlike Allow/Deny.
Anyway, it should be practical to implement CommonSecurityDescriptor and friends with these classes working.
2012-07-03 15:40:01 -04:00
QuickJack
ef6752a5c4
Fixes a number of warnings in System.Web.dll
2012-07-03 20:38:53 +02:00
James Bellinger
2d415e7a8f
Implemented all of DiscretionaryAcl except for RemoveAccess. Unit tests are included.
...
Also fixed:
CommonAcl's merging now filters out AceFlags.InheritedFlags when !IsContainer.
For matching AccessMask, CommonAcl will now correctly merge ContainerInherit and ObjectInherit.
GenericAcl's SyncRoot is now virtual as per spec.
SecurityIdentifier.CompareTo throws ArgumentNullException, not NullReferenceException, on null parameter.
Miscellaneous unit tests:
Verify that RawAcl throws for negative capacity.
2012-07-03 13:56:55 -04:00
Marek Safar
a87dc847be
Merge pull request #370 from sblom/master
...
Needed to add more precise checking of dimensions on array initializers
2012-07-03 01:14:46 -07:00
Marek Safar
d3a4322dee
Merge pull request #369 from JamesB7/system-security4
...
Completely implemented System.Security.AccessControl.CommonAcl
2012-07-03 00:23:40 -07:00
Scott Blomquist
ff54c91c68
Fix dimension checking for array initializer expressions
2012-07-02 23:56:21 -07:00
James Bellinger
0cc233ea17
Bug fix: Merging occurs after sorting ACE groups by SecurityIdentifier not before. Added a unit test for this behavior.
...
Also, fixed the namespace for the ObjectAce unit test.
2012-07-02 23:35:14 -04:00
James Bellinger
6cfe403fda
CommonAcl is now essentially fully functional. Its descendants DiscretionaryAcl
...
and SystemAcl need work, but CommonAcl can be manipulated using RawAcls nicely
now and will test canonicity, merge ACEs, remove meaningless ACEs, sort explicit
deny/allow ACEs by SecurityIdentifier... all the nice things CommonAcl is supposed
to do.
Anyway, this patch... Off the top of my head...
Fixed CommonAce and ObjectAce deserialization/roundtripping with opaque data.
Fixed ObjectAce having the wrong BinaryLength depending on ObjectAceFlags.
GenericAce had two protected static SDDL methods which should be internal.
Added some unit tests for the above. One of the tests compares the binary
output with a blob I produced using the *same unit test* on MS.NET (with a
File.WriteAllText creating the byte array to paste in, naturally), and
happily, it produces identical binary output. Very nice.
2012-07-02 23:19:27 -04:00
James Bellinger
95db8e694e
SecurityIdentifier's CompareTo now works like MS.Net. CommonAcl is supposed to sort groupings of canonical ACEs using SecurityIdentifier's CompareTo, so this was important to do.
...
I determined the behavior of CompareTo by first writing unit tests for
CommonAcl (instantiated as DiscretionaryAcl but using RawAcl instead of
DiscretionaryAcl methods to do the manipulation to keep DiscretionaryAcl
out of the loop). I developed and ran these unit tests on MS.NET using
MonoDevelop...
Anyway, CompareTo appears to compare authority, then the *number* of
subauthorities, and lastly the subauthorities. I'd be curious if there
is more detail, but so far this seems to cover it. It's definitely
*not* just a comparison of the string.
This patch also modifies CommonAcl to take advantage of this new sorting,
so now it should sort groups of explicit ACEs (access deny, access allow)
in canonical ACLs correctly.
With that down, I've got two unit tests that still fail on Mono.
2012-07-02 23:18:25 -04:00
James Bellinger
bcad1d9688
Implemented much of CommonAcl.cs
...
Some tests still fail because sorting is not implemented yet.
I'll need to alter SecurityIdentifier CompareTo.
2012-07-02 23:18:24 -04:00
Rodrigo Kumpera
777775d010
Add new gc options to the man page.
2012-07-02 17:53:10 -03:00
Rodrigo Kumpera
48afe0ab54
Add two heap growth knobs: save-target-ratio and default-allowance-ratio.
2012-07-02 17:53:10 -03:00
Rodrigo Kumpera
521f4a198e
Simply a bit the memgov code. Kill a duplicated header declaration.
2012-07-02 17:53:09 -03:00
Rodrigo Kumpera
89e30221a5
Fix allowance calculation and introduce a constant in place of a magic number.
...
* sgen-conf.h: Introduce SGEN_DEFAULT_SAVE_TARGET_RATIO tunnable.
* sgen-memory-governor.c: Fix allowance calculation to use the
right size of the los space.
2012-07-02 17:53:09 -03:00
Rodrigo Kumpera
5ea042d2e6
Extract the nursery allowance heuristics to a memgov API.
2012-07-02 17:53:09 -03:00
Rodrigo Kumpera
c06516cde0
Move the sgen_*_os_memory APIs to memgov.
2012-07-02 17:53:08 -03:00
Rodrigo Kumpera
28d30f12ae
Use new atomis with allocated_heap.
2012-07-02 17:53:08 -03:00
Rodrigo Kumpera
ef2138e76c
Add SGEN_ATOMIC_ADD_P for pointer sized integers.
2012-07-02 17:53:07 -03:00
Rodrigo Kumpera
c921e8ac79
Add some FIXME.
2012-07-02 17:53:07 -03:00
Rodrigo Kumpera
f82308e78e
Move the heap limits code to the memgov file.
2012-07-02 17:53:07 -03:00
Rodrigo Kumpera
15bb4c0e3c
Add new memory governor files.
2012-07-02 17:53:06 -03:00
Martin Baulig
4c6c781628
Fix #5169 : Environment.ExpandEnvironmentVariables().
2012-07-02 20:42:21 +02:00
Martin Baulig
cf02ef4720
Re-enable CSharpCodeProviderTest on the Mac.
...
I just had a look at these and can't reproduce the problem anymore,
these tests are now working fine on my Mac.
This reverts commit 58ae80aa5e .
2012-07-02 19:10:17 +02:00
Martin Baulig
e040b2a53a
WebRequestTest.cs: Add workaround for t-online.de's DNS server.
2012-07-02 18:52:40 +02:00
Martin Baulig
a6b9cd4858
DnsTest.cs: Add workaround for t-online.de's DNS server.
2012-07-02 18:42:24 +02:00
Martin Baulig
6a87f40b24
Fix go-mono.com's IP address in DnsTest.cs.
...
go-mono.com has 50.21.183.68, not 74.208.222.19.
2012-07-02 18:31:56 +02:00
Rodrigo Kumpera
7359bf9429
Use isfinite instead of finite as newer xcode removed it.
2012-07-02 11:20:43 -03:00
Rodrigo Kumpera
919a719be1
Merge branch 'master' of github.com:mono/mono
2012-07-02 11:17:08 -03:00
Rolf Bjarne Kvinge
a7f9abbe03
Make mkbundle bundle assemblies a lot faster.
...
Preallocate the 256 different lines we might write to the assembly file
instead of allocating several strings for every line.
With compression mkbundle is about twice as fast now (since compression
speed hasn't changed), without compression it's 5-10x faster, depending
on the number of assemblies to embed.
2012-07-02 15:46:30 +02:00
Rodrigo Kumpera
f669650fdb
Merge branch 'master' of github.com:mono/mono
2012-07-02 10:21:18 -03:00
Mark Probst
be4ef5fc3f
[sgen] Make heavy statistics compile again.
2012-07-02 14:12:47 +02:00
Marek Safar
6e0bcfaf56
Update corcompare
2012-07-02 11:51:46 +01:00
Marek Safar
2af3e3e65b
Add missing attribute classes
2012-07-02 11:51:45 +01:00
Marek Safar
148647b4c4
Merge pull request #362 from JamesB7/system-security
...
Fix System.Security.AccessControl.MutexAccessRule's constructor.
2012-07-02 00:37:18 -07:00
Marek Safar
b410cfcd75
Merge pull request #367 from robwilkens/work1
...
Fixes a problem that was preventing mono from compiling
2012-07-01 23:54:22 -07:00
Rob Wilkens
8fe578747d
Fixes a problem that was preventing mono from compiling
...
Somehow the compiler became more strict, and a not-implemented class is now
causing mono to fail to build.
The attached patch doesn't really fix anything besides letting it compile.
I was nice enough to throw a NotImplementedException() on the default
constructor.
The compile time error was:
System.IO.MemoryMappedFiles/MemoryMappedFileSecurity.cs(35,15): error CS0122:
`System.Security.AccessControl.ObjectSecurity
<System.IO.MemoryMappedFiles.MemoryMappedFileRights>.ObjectSecurity()' is
inaccessible due to its protection level
Feel free to reject this patch if I am the only one seeing this problem (on
Linux x86_64 build) after most recent git clone of mono/master.
2012-07-01 22:02:21 -04:00
James Bellinger
188b3b9af6
Added a unit test for the bug this is fixing -- previously the constructor just crashed, always.
...
So, this constructs with valid MutexAccessRights, and also makes sure that the rights are correct.
2012-07-01 19:06:24 -04:00
James Bellinger
acf2873408
MutexAccessRule... previously entirely broken as it passed 0 for accessMask.
...
Now, accessMask matches the MutexRules passed in. The MutexRules enum is a bitmask
corresponding to Win32 ACE accessMasks and the two match.
I verified that accessMask corresponds directly to the MutexRules passed in the
constructor on Win32 using Reflection. It stands to reason, and it turns out to be
the case. System.Security.AccessControl is still mostly broken but this at least
corrects MutexAccessRule.
2012-07-01 18:46:10 -04:00
Marek Safar
6f50e88ed1
Merge pull request #363 from JamesB7/system-security2
...
Implemented the .NET 4.0 generic versions of AccessRule and AuditRule.
2012-07-01 09:05:58 -07:00
James Bellinger
a299db4b1e
Added unit test.
...
Also added constructors to ObjectSecurity<T>.
It's supposed to have them (they just pass to NativeObjectSecurity),
but the only user in Mono is MemoryMappedFileSecurity so this is
just for completeness's sake. Also, this lets the test depend on neither
System.Core nor internal methods.
2012-07-01 11:15:59 -04:00
Rob Wilkens
49be3e0ab5
Whitespace fixes
2012-07-01 10:02:07 -04:00
Rob Wilkens
00e7747c14
In KeventWatcher ProcessEvent we were passing null for changedFsi, incorrectly
...
We had a fsi value for changedFsi, but we were passnig null for it when
calling PostEvent. This patch corrects that.
2012-07-01 09:40:28 -04:00
Marek Safar
2a1a6be5e6
Merge pull request #365 from JamesB7/system-security3
...
AuthorizationRule now accepts NTAccount like it should. Provided a unit test.
2012-07-01 06:26:06 -07:00
James Bellinger
e83dc68dbf
AuthorizationRule now accepts NTAccount like it should. Provided a unit test.
...
Many derived classes of AuthorizationRule have string overloads which pass
'new NTAccount (identity)'. The exception docs state "can be cast as a
SecurityIdentifier" not "is a SecurityIdentifier". Anyway, this fixes all the
string constructors in System.Security.AccessControl.
Also, I added checking for inheritanceFlags and propagationFlags parameters.
While building the unit test, I found accessMask == 0 throws ArgumentException,
not ArgumentOutOfRangeException, on MS.NET 4.0 (contrary to docs). So,
I've made this match.
2012-07-01 09:17:05 -04:00
Jo Shields
53c11fcf1e
Update Debian submodule to usable version.
2012-07-01 12:23:47 +01:00
Zoltan Varga
0c11066421
Fix altstack on osx/amd64. Fixes #5933 .
2012-07-01 01:30:21 +02:00
Alan McGovern
961e2cf4ad
[Xbuild] Use OrdinalIgnoreCase not InvariantCultureIgnoreCase
...
It's chewing up a fair bit of CPU time and buys us nothing. We only care
about ordinal ignore case for these scenarios.
2012-06-30 18:55:38 -04:00
Jo Shields
6c23d1f29b
Add external directory, so Debian submodule works.
2012-06-30 22:47:33 +01:00
Jo Shields
1379de2043
Add directhex's debian packaging metadata repository as a submodule, to help with MonkeyWrench integration.
2012-06-30 22:45:02 +01:00
James Bellinger
4fb4aa1120
Implemented the .NET 4.0 generic versions of AccessRule and AuditRule.
...
Details worth being aware of, that aren't well documented in MS.NET:
(1) The Rights property is just a casted AccessMask.
I've checked this by testing with MS.NET -- if you use AccessRule<Test>
with an arbitrary struct Test { }, MS.NET has an InvalidCastException
on the Rights getter if you create with ObjectSecurity's factory method
(which is passed an int), and in the constructor if you use AccessRule's
constructor.
(2) The string constructor overloads call 'new NTAccount(identity)'.
What these methods do for AccessRule is not documented by MS.NET,
but this *is* documented for SemaphoreAccessRule, and my testing
with C# shows AccessRule does the same thing. So, I've implemented
this behavior to match.
I will submit a separate patch afterwards to make AuthorizationRule's
accept NTAccount, which is required for the string overloads to work.
Contrary to the MS.NET *documentation* (which Mono follows), AuthorizationRule
actually accepts NTAccount as well as (the documented) SecurityIdentifier.
I verified this by deriving a class from AuthorizationRule.
2012-06-30 13:21:46 -04:00
Martin Baulig
7fd71833d3
Fix UdpClientTest.CloseInReceive() on Mac OS.
...
On my Mac, somethig is already listening on port 50000; use
a random one instead.
2012-06-30 06:40:54 +02:00
Martin Baulig
58ae80aa5e
Disable failing tests on the Mac; filed bug #5934 about it.
2012-06-30 06:10:09 +02:00
Martin Baulig
0c23aaa36b
Improve SocketTests.EndConnect().
...
Rename to BogusEndConnect() and accept a few more error codes.
2012-06-30 05:45:09 +02:00
Martin Baulig
f3b7c4e856
SocketTest.ConnectMultiple() for Mac OS.
2012-06-30 05:45:09 +02:00
Rob Wilkens
119b90edea
Second attempt at Bug 5747 change: Deal with possible ending "/" this time.
...
My first fix for Bug 5747 was reverted because it broke something with
file system monitoring in XSP.
This is a revision of that same patch, but this time i take into account
the possibility that the fsw.FullPath value could possibly end with "/".
The previous version of this commit, no longer in place, didn't factor
that in and as a result if the fullpath ended in "/" we would cut the first
character off filename by virtue of the "Length + 1" substring.
The purpose of this patch was to fix the following problem:
files/directories modified in subdirectories were coming back with
just the file NAME and not subdirectory path. This patch modifies
the filename so if you get an alert on a file in a subdirectory 'mysubdir/file1'
you would get 'mysubdir/file1' rather than just 'file1', for whatever
direcotry (fullpath) you are watching..
Please note, i tried but i can't get XSP from git to use my local development
version of mono -- as a result i couldn't test against XSP. Instead, i tested
against the bug report source sample both with and without a trailing '/'
separator. Prior to this revised version, if full pathname ended in a trailing
'/', and you modified 'file1' you would get back 'ile1' a as the filename if
the prior patch was applied.
Someone may want to test against xsp before accepting this revised submission
2012-06-29 20:35:19 -04:00
Rodrigo Kumpera
b9a4ea29c8
Add test for pinned gc handle.
2012-06-29 18:27:59 -03:00
Rodrigo Kumpera
5f0ac904f2
Fix a pair of bugs in the gchandle code.
...
* gc.c: Make sure pinned handles actually pin on sgen.
* gc.c: Use gc_memmove and gc_bzero when dealing with memory
that has managed references.
2012-06-29 18:27:59 -03:00
Miguel de Icaza
b91cbba739
Revert the fix for #5747 from 8b5f71ef60, it broke XSP monitoring of the file system
2012-06-29 15:12:38 -04:00
Zoltan Varga
b3f921b9b5
Remove empty log files when using test-wrench.
2012-06-29 20:39:00 +02:00
Zoltan Varga
597ceda677
Remove some assembly from mkbundle which doesn't work on osx 64 bit.
2012-06-29 20:10:13 +02:00
Rodrigo Kumpera
61c9cce8fb
Fix race condition in static's inialization of mono_message_init.
...
* object.c (mono_message_init): Make sure the static field
we test fo check for initialization is the last to init or
we risk an abort due to others been null.
2012-06-29 12:48:23 -03:00
Marek Safar
b3a71f68d9
Remove all ifdefs
2012-06-29 11:30:47 +01:00
Marek Safar
5d2f63d91e
Use correct iterator return type for XPathEvaluate. Fixes #5902
2012-06-29 11:04:46 +01:00
Zoltan Varga
fbe8240174
Fix the test-messages test.
2012-06-29 01:59:25 +02:00
Zoltan Varga
428e38038d
Fix warnings.
2012-06-29 01:35:17 +02:00
Gonzalo Paniagua Javier
69dad66f00
Attempt to fix #1553
...
This should prevent a popular exception to happen again.
2012-06-28 15:48:57 -04:00
Martin Baulig
cc224125a4
Enable the multicast socket tests on the Mac.
2012-06-28 20:41:50 +02:00
Martin Baulig
b6b41065cb
Fix #5504 : UdpClient.JoinMulticastGroup().
...
* configure.in: Check for if_nametoindex().
* socket-io.c (ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
Mac OS doesn't allow interface = 0; use the interface id from the first
non-loopback interface.
* UdpClientTest.cs: Enable JoinMulticastGroup1_IPv6,
JoinMulticastGroup2_IPv6 and JoinMulticastGroup3_IPv6 on the Mac.
2012-06-28 19:47:43 +02:00
Martin Baulig
591c202ed0
socket-io: Fix endianess in ipaddress_to_struct_in6_addr.
2012-06-28 19:47:43 +02:00
Marek Safar
538c29782f
Add new test
2012-06-28 18:15:10 +01:00
Marek Safar
8e1391f63c
Remove NET_2_0
2012-06-28 18:15:10 +01:00
Rodrigo Kumpera
091e6a8fa5
Fix posix build.
2012-06-28 12:38:11 -03:00
Rodrigo Kumpera
a518a41512
Make the thread abort code multi-thread safe.
2012-06-27 19:59:57 -03:00
Rodrigo Kumpera
956dba9d5c
With Socket:Dispose from using Thread.Abort to less agressive alternative.
...
* Socket_2_1.cs: When closing a socket we need to abort any
pending syscalls to that socket. For most syscalls the kernel
does it for us. But accept/connect on linux requires extra
love.
We previously used Thread.Abort to implement that, but this
is a pretty radical solution with very complicated ramifications.
So instead now we use a new icall cancel_blocking_socket_operation
that makes sure we only abort the syscall and do nothing else.
This reduces the trouble surface a lot given how tricky
Thread.Abort is.
2012-06-27 19:59:56 -03:00
Rodrigo Kumpera
10f00c2e32
Async close on mac raises ECONNABORTED for connect().
2012-06-27 19:59:56 -03:00
Rodrigo Kumpera
150d98b95e
Add new cancel_blocking_socket_operation icall to Socket.
...
* socket-io.c: Add cancel_blocking_socket_operation icall
to Socket so we can abort socket syscalls on other threads
when we decide to close a socket.
2012-06-27 19:59:55 -03:00
Rodrigo Kumpera
794227d914
Respect the new signal ignore flag.
...
* mini-posix.c: If ignore_next_signal is set, we ignore the
current USR1. This is used to abort syscalls.
2012-06-27 19:59:55 -03:00
Rodrigo Kumpera
70ac21baef
New field InternalThread::ignore_next_signal. Bump corlib version due to layout change.
2012-06-27 19:59:54 -03:00
Rodrigo Kumpera
b5d3318b19
Add mono_thread_info_abort_socket_syscall_for_close to the mono-threads API.
...
* mono-threads.c: New functin mono_thread_info_abort_socket_syscall_for_close
specially dedicated to our most special creature - linux.
Say you want to close a socket and make sure a thread making a syscall on it
will have this be aborted, call this method.
2012-06-27 19:59:53 -03:00
Duncan Mak
d6bd0d53b0
Bump version number to 2.11.3.
2012-06-27 16:49:41 -04:00
Marek Safar
c7492fcbdb
Merge pull request #358 from adbre/iss3333
...
Do not support DST if no adjustment rules are given
2012-06-27 13:21:31 -07:00
Adam Brengesjö
8a79da4434
TimeZoneInfo: disable DST if no adjustment rules are given.
2012-06-27 20:26:20 +02:00
Adam Brengesjö
f0b9dd6ccc
Unit tests for issue #3333
2012-06-27 20:24:13 +02:00
Marek Safar
b3925d2a9c
Merge pull request #357 from Suremaker/master
...
MonoTests.System.Xml.XmlSchemaDatatypeTests: corrected expected/actual parameters position in Assert.AreEqual method calls.
2012-06-27 09:44:29 -07:00
Wojciech Kotlarski
4e612e4bcc
MonoTests.System.Xml: corrected expected/actual parameters position in Assert.AreEqual method.
...
Tests were written first in .NET environment using Assert.That method which has different order of expected/actual parameters.
2012-06-27 17:04:59 +01:00
Marek Safar
7d91715bf7
Merge pull request #356 from Suremaker/master
...
MonoTests.System.Xml.XmlSchemaDatatypeTests ChangeType_FromDateTimeTest / ChangeType_ToDateTimeTest correction
2012-06-27 09:04:33 -07:00
Wojciech Kotlarski
9f7f844efb
corrected tests to not use UtcNow
2012-06-27 16:44:10 +01:00
Marek Safar
5d14ab53f4
Merge pull request #355 from Suremaker/master
...
System.XML: added null arguments validation for targetType and namespaceResolver in System.Xml.Schema.XmlSchemaDatatype.ChangeType method
2012-06-27 08:40:34 -07:00
Wojciech Kotlarski
69b0edce31
System.XML: added null arguments validation for targetType and namespaceResolver in System.Xml.Schema.XmlSchemaDatatype.ChangeType methods
2012-06-27 16:31:20 +01:00
Atsushi Eno
b8b984d613
Merge pull request #354 from Suremaker/master
...
Partial implementation of System.Xml.Schema.XmlSchemaDatatype.ChangeType
2012-06-27 07:59:10 -07:00
Wojciech Kotlarski
d38eba96ec
System.XML: Partial implementation of XmlSchemaDatatype::ChangeType
...
This is not complete but it meets our current validation needs
(better than NIE). The missing stuff is still marked as
[MonoTODO] and [Cattegory("NotWorking")].
2012-06-27 15:53:25 +01:00
Wojciech Kotlarski
46bf99aa95
System.XML: Remove more NET_2_0 directives
2012-06-27 15:53:24 +01:00
Wojciech Kotlarski
d83e96bf59
System.XML: Remove deprecated NET_2_0 preprocessor conditionals
2012-06-27 15:53:24 +01:00
Marek Safar
5ce9725962
Better error message
2012-06-27 11:15:50 +01:00
Marek Safar
f75a9a9520
ifdef 4.0 using
2012-06-27 08:39:25 +01:00
Martin Baulig
d8babad220
Enable all tests on the Mac.
2012-06-27 06:36:12 +02:00
Martin Baulig
504e2341ba
Implement Dns.GetHostEntry(string.Empty) on Mac OS.
...
* configure.in: Add check for getifaddrs().
* socket-io.c: Implement get_local_ips() using getifaddrs()
if SIOCGIFCONF is not available.
* DnsTest.cs: Add GetHostEmpty_StringEmpty().
* UdpClientTest.cs(): Enable Available(), BeginReceive() and BeginSend()
on the Mac.
2012-06-27 04:20:04 +02:00
Martin Baulig
f4d96d2fff
Fix UdpClientTest.UdpClientBroadcastTest().
...
You must not use Send() with an endpoint after using either the
hostname constructor or calling Connect(); see the MSDN docs.
2012-06-27 02:26:07 +02:00
Martin Baulig
cad82120b6
Fix UdpClientTest.Constructor6(): UDP port 0 seems to be invalid.
2012-06-27 02:10:00 +02:00
Marek Safar
c14e6390bd
Don't register namespace of predefined (optinal) types
2012-06-26 22:59:00 +01:00
Marek Safar
c93e1bb404
Remove wrong usings
2012-06-26 22:59:00 +01:00
Martin Baulig
5d6a94128e
UdpClientTest.Constructor5 now works on the Mac.
2012-06-26 21:52:45 +02:00
Martin Baulig
96664d782c
create_object_from_sockaddr(): map ::ffff:0:0 to :: (bug #5502 ).
...
::ffff:0:0 is the IPv4 mapped address 0.0.0.0, translate this to ::
(IPAddress.IPv6Any).
2012-06-26 21:43:24 +02:00
Martin Baulig
6354893b8c
Fix race condition in TimerTest.TestChange().
...
Set the first interval to 10 milleseconds, not just one. Then read
the bucket.count again after changing the interval, the callback may
fire a few times while we execute the Assert() and t.Change() callls.
2012-06-26 18:52:07 +02:00
Martin Baulig
93d6345086
Fix DateTime.ToFileTimeUtf (bug #5697 ).
2012-06-26 18:44:36 +02:00
Marek Safar
f93ac4c461
Bump DoubleWaitTest timeout
2012-06-26 13:57:55 +01:00
Marek Safar
2d2796f07b
Fix System.Core reference in VS projects
2012-06-26 13:26:56 +01:00
Marek Safar
f293d90615
Fix few warnings
2012-06-26 13:26:56 +01:00
Marek Safar
a97b3ca8f0
Update VS project files
2012-06-26 13:26:55 +01:00
Marek Safar
344880366e
Remove static file index from location and fix few hidden xml parser bugs
2012-06-26 13:26:55 +01:00
Zoltan Varga
a7067cfd1f
Merge pull request #353 from robwilkens/bug2014
...
For Bug 2014: map FcntlCommand to local system command for fcntl_lock
2012-06-26 01:02:25 -07:00
Miguel de Icaza
0c25179e0b
Use Ordinal string comparison here.
2012-06-26 00:57:09 -03:00
Martin Baulig
5bbca26cf0
Merge branch 'master' of github.com:mono/mono
2012-06-26 05:56:15 +02:00
Miguel de Icaza
52f8349613
Merge pull request #334 from robwilkens/bug5747
...
Bug 5747 (MacOSX)Fix: KeventWatcher didn't return subdir names in filenames
2012-06-25 20:54:37 -07:00
Martin Baulig
cf13fd846c
Include quotation marks in cookie value.
2012-06-26 05:53:51 +02:00
Martin Baulig
15053c403f
Oops, actually remove the 'Date' header.
2012-06-26 03:06:56 +02:00
Martin Baulig
abab46be8b
Fix DateTime.MinValue in HttpWebRequest.Date.
...
* HttpWebRequestTest.cs: Extend this by adding each DateTimeKind
and testing the result. This test now passes again.
2012-06-26 02:51:09 +02:00
Rob Wilkens
0fb2958a66
For Bug 2014: map FcntlCommand to local system command for fcntl_lock
...
In support/fcntl.c - every time fcntl() was called, it would first map the
cmd from mono's version of it to the system header file version of it.
The only time this wasn't happening was in Mono_Posix_Syscall_fcntl_lock()
and now it does it there too. This seems to resolve Bug 2014 on both
64-bit linux and on Mac OS X (64-bit).
2012-06-25 20:17:24 -04:00
Martin Baulig
cdd89cbad8
Correctly parse cookies.
...
* System.Net/CookieParser.cs: Replace GetNameValue() with Parse(),
support multiple cookies, errors and "expires=Day, ...".
* Test/System.Net/CookieParserTest.cs: New nunit test suite for that.
2012-06-26 01:35:58 +02:00
Rodrigo Kumpera
d52c080234
Add two test configurations to sgen and silence other sgen tests.
2012-06-25 16:03:10 -03:00
Rodrigo Kumpera
510fedec59
Fix another nursery OOM issue.
2012-06-25 16:03:09 -03:00
Rodrigo Kumpera
c4d9b26713
Fix a bunch of bugs in the split nursery allocator.
...
* sgen-split-nursery.c: Handle nursery OOM correctly for the
serial and parallel allocators. Introduce a bunch of fences
to ensure the parallel allocator is non-TSO safe.
2012-06-25 16:03:08 -03:00
Rodrigo Kumpera
b5b0f8aa46
Assert on bad arguments to sgen_clear_range.
2012-06-25 16:03:08 -03:00
Rodrigo Kumpera
f4dfaf0308
Merge pull request #352 from madewokherd/threadinit
...
Don't try to register threads created before initialization on Windows.
2012-06-25 11:46:09 -07:00
Marek Safar
4c76782b16
Move add namespace into new method
2012-06-25 19:35:14 +01:00
Marek Safar
1041e924c1
Fix few tests
2012-06-25 19:35:13 +01:00
Vincent Povirk
b51d0597ea
Don't try to register threads created before initialization on Windows.
...
Released under the MIT/X11 License.
2012-06-25 13:17:08 -05:00
Rob Wilkens
82efcac4c8
Bug 1089 Fix: Fix proc/mod name match by also starting at last / in procname
...
Per Bug 1089, found we were failing to match process name to module name
when we were running a process via a subdirectory.
We were already stripping the path off the module name in the following
lines:
lastsep = strrchr (mname, '/');
if (lastsep)
if (!strcmp (lastsep+1, pname))
result = TRUE;
But we never did a similar strip of the module (pname) file path. My
presumption is that if it's safe to strip the path off the process name, it
should be equally safe to strip the path off the module name.
This works for the sample code in bug 1089:
https://bugzilla.xamarin.com/show_bug.cgi?id=1089
I am not sure it's smart to strip the path off either process name or module
name, but if you do it from one, it should be safe to do it from the other.
Feel free to reject this patch if you do not like this change. This is my
first time modifying C code in mono, and i feel a little uneasy doing it.
I will be straightforward and honest here, I did some debugging, and
the process name was resolving as follows when run as a subdirectory:
pname=[/home/robwilkens/test10.exe]
The actual path should have been (when run as : "mono monotests/test10.exe")
/home/robwilkens/monotests/test10.exe
The monotests part of the directory was never included in pname.
So the relative path was lost somewhere along the way.
2012-06-25 10:49:39 -04:00
Rodrigo Kumpera
a39bed3ef1
Properly balance local and global interrupt flags. Properly clear interrupt flags on cleanup.
...
* threads.c: All state changes to MonoInternalThread:interruption_requested must
be matched to thread_interruption_requested. This means incrementing the global one
when setting the other and decrementing when clearing.
We much check the thread flag during cleanup to avoid missing a descrement and leaving
the global flag with a positive value and make performance suffer due to excessive
polling.
2012-06-25 11:12:19 -03:00
Marek Habersack
c7c0c5a50a
Merge pull request #349 from JamesB7/229b363ef861ab9456f8bdc428c550e2241688e9
...
Unbreak build-mingw32.sh... with this patch, it builds on Debian 6 no trouble. (corrected)
2012-06-25 05:37:07 -07:00
Marek Safar
d3e986b275
Implement 4.5 assembly attributes
2012-06-25 13:25:27 +01:00
Marek Safar
8fc4502bf7
Disable more tests
2012-06-25 11:48:38 +01:00
Marek Safar
0950176a56
Disable TestGroupBy
2012-06-25 11:12:42 +01:00
Rolf Bjarne Kvinge
509d9e5240
Sqlite: Map BOOLEAN to System.Boolean. Fixes #5768 .
2012-06-25 11:56:02 +02:00
Zoltan Varga
72c896066b
Allow TypeBuilder.DefineMethodOverride () to be called multiple times. Fixes #5665 .
2012-06-24 22:44:46 +02:00
James Bellinger
229b363ef8
(1) Made build-mingw32.sh build .NET 4.5 as well.
...
(2) Fixed the version extraction for build-mingw32.sh. It extracted from the wrong line for current configure.in.
(3) configure.in added a line for Clang for the Windows cross-compile just like the Android cross-compile has.
It can't do the automatic check due to being a cross-compile so manually adding the line makes it possible
to build. Like Android, if you want to use Clang for the cross-compile, you have to manually set the
variable to 'yes'.
Summary: With these changes, build-mingw32.sh works nicely and I've successfully built Windows Mono on Debian 6.
Changelog suggests it may not have been touched/used in a while, so this is an un-break patch.
2012-06-24 15:43:14 -04:00
Zoltan Varga
5309fe8536
Disable LLVM for methods with very long basic blocks. Fixes #5714 .
2012-06-24 21:23:56 +02:00
Marek Safar
3d43cfdfcc
Merge pull request #347 from JamesB7/master
...
.NET 4.5 .cctor crash fix for ComIStreamMarshaler
2012-06-24 08:45:24 -07:00
JamesB7
074a90260c
BindingFlags.Public needed here as Exception.HResult is now public in .NET 4.5. This solves a NullReferenceException on GetGetMethod, which causes the static constructor to fail.
2012-06-24 12:30:38 -03:00
Thomas Goldstein
18817d9275
Only paint the ToolStripItem BackColor if it's not the default one. Fixes Xamarin bug 5834.
2012-06-24 09:36:34 +02:00
[email protected]
6276853c76
Implement control padding. Fixes Xamarin bug 2562.
2012-06-23 23:43:53 +02:00
Marek Safar
5682dadd41
Merge pull request #345 from erik-kallen/FixTypoDeterminingDynamicAttributes
...
Fixed typo causing all attributes in the namespace System.Runtime.CompilerServices to be treated as DynamicAttribute
2012-06-23 10:44:33 -07:00
Erik Källén
d116e34f0e
Fixed typo causing all attributes in the namespace System.Compiler.RuntimeServices to be treated as DynamicAttribute
2012-06-23 19:30:40 +02:00
Marek Safar
0b3da5baa3
Merge pull request #344 from robwilkens/bug1202
...
Bug 1202 Fix: Adds float.NaN checks to DrawLine
2012-06-23 06:33:06 -07:00
Rob Wilkens
2ab9c2a739
Bug 1202 Fix: Adds float.NaN checks to DrawLine
...
As reported in Bug1202, Graphics.DrawLine was drawing a line when one of the
x/y parameters was NotANumber. This differred from Microsoft.NET Behavior.
This patch brings it back in line by adding the checks.
This includes an extended unit test which now fails without this patch and
passes with it.
https://bugzilla.xamarin.com/show_bug.cgi?id=1202
No additional System.Drawing unit tests fail with this patch than without
it, presuming this patch is applied.
2012-06-23 09:07:35 -04:00
Marek Safar
f1ea2b2044
Release parser caches immediately after parsing
2012-06-22 19:08:13 +01:00
Marek Safar
f6edbba2d1
Cache empty byte arrays
2012-06-22 18:55:51 +01:00
Marek Safar
9069d07837
Don't double dispose web connection
2012-06-22 12:29:11 +01:00
Marek Safar
008b4706d5
Disable another runtime failing test
2012-06-22 12:29:11 +01:00
Marek Safar
fc95bbb0f5
Disable failing tests
2012-06-22 12:29:11 +01:00
Marek Safar
2ae66ec552
Merge pull request #343 from paszczi/master
...
Fix bug (457120 from novell's bugzilla)
2012-06-22 02:57:50 -07:00
paszczi
c5b2939e64
Remove unnecessary Changelog commits, fix copyright info
2012-06-22 11:24:02 +02:00
paszczi
7ce10db9e8
Don't wait for client data when authenticating server ssl stream - fix bug 457120 (novell)
2012-06-22 10:12:35 +02:00
Marek Safar
bd58a5e6b7
Merge pull request #341 from viniciusjarina/fix_emptys
...
Fixed string compare ( != '' / Length != 0)
2012-06-21 14:45:16 -07:00
Vinicius Jarina
7984eb11b8
Fixed string compare ( != '' / Length != 0)
2012-06-21 15:31:47 -03:00
Marek Safar
b6e396872e
Merge pull request #339 from viniciusjarina/fix_uri
...
Minor Fixes: Uri Parser.
2012-06-21 10:42:28 -07:00
Vinicius Jarina
58fb8ead5f
Minor Fixes: Uri Parser.
2012-06-21 13:58:10 -03:00
Marek Safar
218a62e7d1
Don't duplicate DefaultMemberAttribute for interfaces
2012-06-21 17:19:49 +01:00
Marek Safar
9696a57e64
Add Environment::CurrentManagedThreadId
2012-06-21 15:38:45 +01:00
Marek Safar
029fd2f266
Fix typo
2012-06-21 15:15:47 +01:00
Marek Safar
c4e5c115b7
make debug-parser reliable
2012-06-21 14:40:11 +01:00
Marek Safar
5aed5c8cba
Write correct guid for hash algorithm to symbol files
2012-06-21 14:35:52 +01:00
Marek Safar
2332349a3f
Add --disable-bcl-opt to configure
2012-06-21 09:44:33 +01:00
Steven Boswell II
b6a687dfd9
Fix bug in ComboBox Text setter, that made it so the Text value was not always set
2012-06-21 08:26:02 +02:00
[email protected]
9cf10a5d95
Adjust DataGridView.RowHeight in VirtualMode. Fixes Xamarin bug 2392.
2012-06-20 23:37:41 +02:00
Rodrigo Kumpera
8743434c6b
First round of win32-cygwin bugfixes.
2012-06-20 18:20:40 -03:00
Rodrigo Kumpera
c9c85d557c
Make some asserts less opaque.
2012-06-20 14:24:09 -03:00
Marek Safar
f199d9a16c
Merge pull request #336 from linquize/serial-port-read-char-array
...
Properly implement SerialPort.Read (char[], int, int)
2012-06-20 07:43:56 -07:00
Rob Wilkens
38bdbad507
Fix:Idle event handler was called on every thread rather than thread assigned on
...
Summary of changes in order git diff --staged is giving them to me:
(1) Each Xplat driver :
-local "Idle" variable remove, replaced with a Driver-level Idle_Threads
which is assigned by what is now the Idle Property.
-When Idle Called from with thread it used to do:
if (Idle != null)
Idle (this, e)
now we have to do some additional checks and change the call similar to as
follows to get the per-thread idle event handler:
(pseudo-pseudo-code)
id=ManagedThreadId;
if (Idle_Threads is not null and it contains a key for the id and the key
indexes into a non-null event handler) then
Idle_Threads [id] (this, e);
(2) Xplat Driver
Here's where the property is added and assigns the Idle event handler to
Idle_Threads. A Lock was needed the first time we create the Idle_Threads
dictionary. The Idle_Threads dictionary indexes by managed thread id and
maps onto an event handler for each one.
(3) Win32 Specific change
In my testing, I noticed that Win32 did not call Idle as part of its normal
Run loop processing. So, when it would call GetMessage and it was Blocking
we now check Idle if we were going to block. We don't actually call idle
if we first peekMessage and find a message, in those cases we just treat
it as if GetMessage Got the message. If we are blocking and peek returns
no messages, we call idle. If we have already called idle once on this
pass through the GetMessage Loop we set CheckIdle to false and go
back to the to to PRocessNextMEssage but this time we block rather than
peek and call idle.
This code was tested on Win32, MacOS/Carbon and Linux/X11. There have been
some minor formatting changes (Code style) since the testing, which should
not affect test results.
2012-06-20 10:34:50 -04:00
Linquize
dd74d48913
Properly implement SerialPort.Read (char[], int, int)
2012-06-20 22:26:33 +08:00
Rob Wilkens
e29b71b36b
When reloading a DataGrid rows after, for example, a delete, crash fixed
...
Anything that would require a change in the number of rows, and trigerred
a DataGrid reload, did not cancel editing of the existing field, so there
was a problem if a row was deleted and you were still editing that row
(had the cursor in it). I noticed this while testing the following bug report
sample code:
https://bugzilla.novell.com/show_bug.cgi?id=323154
Note: That code crashes if you press spacebar TWICE from my testing in either
.NET or Mono. However, if you press spacebar ONCE this code behaves also
like .NET in that it will actually delete the row visibly from the screen
and prevent related problems from having an editable field open on a
now-deleted row.
\
2012-06-20 10:05:08 -04:00
Rob Wilkens
2ab18654e9
This hides Non-Browsable columns from DataGrid
...
This addresses at least part of the problem reported here:
https://bugzilla.novell.com/show_bug.cgi?id=322563
When you read a table from XML parent/child table relations are established
by virtue of hidden _Id fields. Those _Id fields are marked non-browsable
when they are loaded. This change modifies DataGridTableStyles so that
when it comes across a column that is marked non-browsable, it doesn't make
it browsable (viewable). That is: It hides the internal use columns.
2012-06-20 09:57:35 -04:00
Rob Wilkens
7b04af5711
This is a unit test for Bug5487, Bug 5510, and maybe Bug 5511
...
Based loosely on the code here:
https://bugzilla.novell.com/show_bug.cgi?id=MONO79788
which was the sample code used to recreate the problems in the first place.
2012-06-20 09:49:25 -04:00
Rodrigo Kumpera
8f07a57a4b
Fix DISABLED_TESTS_WRENCH
2012-06-20 10:29:03 -03:00
Rob Wilkens
0821684232
DataGrid Bug Fix: Crash b/c Columns not tracked properly when switching tables
...
Columns are tracked in CurrentTableStlye, if user switched between tables
to a subtable or by going back to a previous table, the number of columns
could change, but specifically when navigating back, the previous column
list was not being restored.
The primary fix in this change is to track CurrentTableStyle and grid_style
by pushing them onto a stack when going to a subtable, and popping them
from a stack when we navigate back to previous table. This resolves the
crash reported in bug 5511 and possibly 5510.
A Secondary fix, which i discovered while testing once i fixed this, was a
simple one-line fix to call EndEdit in NavigateTo and NavigateBack (where we
would push or pop the stack) so that a cell is not left in edit mode when
we switch between tables. A consequence of not doing this might be when we
switch tables you'd see a cell from the previous table in edit mode on the
new table.
A unit test for this will be committed next for the primary fix. The secondary
fix can only be tested by visual inspection.
2012-06-20 09:27:08 -04:00
Rob Wilkens
dc98599ec1
Remove unnecessary braces to save vertical space.
2012-06-20 07:21:24 -04:00
Rob Wilkens
7a847d3db5
Coding Style Changements to make patch more in-line with standards
2012-06-20 07:04:31 -04:00
Atsushi Eno
667eb08736
[xbuild] fix regression; when it was remainingArgument, don't try to parse it.
2012-06-20 18:25:58 +09:00
[email protected]
bddaaafea6
Tweak control colors, and fix the fact enabled check boxes or radio buttons were darker than disabled ones, on X11. Fixes Xamarin bug 2908.
2012-06-20 08:05:06 +02:00
Martin Baulig
018521fa73
Fix #4327 : Properly handle exception from IComparer.Compare.
...
SortedList throws InvalidOperationException when IComparer.Compare
throws an Exception.
2012-06-20 03:46:00 +02:00
Yves Bastide
330f0eb086
Fix #2363 in Uri.CheckHostName().
...
FIXME: We still violate RFC 2181 by not checking the total length of the
hostname (maximum 255 bytes), but .NET doesn't check it either.
2012-06-20 03:05:55 +02:00
Rob Wilkens
44addb3224
Bug 5747 Fix: KeventWatcher didn't return subdir names in filenames
...
Attached extracts the subdirectory by taking a substring of the full
filename path, starting at the length of the watcher filename path
(presuming it matches) plus 1 (to account for the "/" between path and
either subdir or filename).
This only should affect Mac OS -- See this line at top of KeventWatcher.cs:
// System.IO.KeventWatcher.cs: interface with osx kevent
Note the "osx" which is the mac operating system.
2012-06-19 20:45:41 -04:00
Rodrigo Kumpera
8b5f71ef60
Fix a ConditionalWeakTable test.
2012-06-19 18:05:19 -03:00
Mark Probst
a7e01cae50
Fix a racy hang in thread6 test.
...
If the Action thread pulses the monitor before the main thread gets to
its wait then the main thread will wait forever because the monitor is
never pulsed again.
2012-06-19 22:00:46 +02:00
Mark Probst
f15b71315d
Merge remote-tracking branch 'public/master'
2012-06-19 22:00:40 +02:00
Miguel de Icaza
99b7766e05
Apply patch from Steven Boswell ([email protected] ) to fix #5591
2012-06-19 15:33:12 -04:00
Alistair Leslie-Hughes
31a3873602
Assign values to base class.
2012-06-19 15:28:22 -04:00
Alistair Leslie-Hughes
e59e9f3a0e
Return base CreateParams for Axhost
2012-06-19 15:28:12 -04:00
Miguel de Icaza
4504009221
Remove ToUpperInvariant in the 4.5 version of MEF to fix #5740
2012-06-19 15:25:25 -04:00
Rodrigo Kumpera
0de52babc6
Disable precise marking by default since it broke on non-apple targets as well.
2012-06-19 15:11:01 -03:00
Rodrigo Kumpera
7f38e097ef
Fix another race in sgen's STW.
...
* sgen-os-*: The joined_stw states the current stage in STW
that a given thread is. We should not transition a thread
to the next one unless it needs to. IOW, don't suspend threads
already suspended and don't resume threads not suspended.
This fixes #1917 .
2012-06-19 15:11:00 -03:00
Martin Baulig
8f139731f5
Add additional test for Convert.FromBase64String(): "==="
2012-06-19 19:56:02 +02:00
Martin Baulig
25981a0d42
Merge pull request #325 from adbre/iss5464
...
Fix for issue #5464
2012-06-19 10:53:29 -07:00
Marek Safar
17bbb2fec6
Remove some odd parser rule I could not hit
2012-06-19 18:25:38 +01:00
Jeremie Laval
e2e6974153
[System.Core] Prefer setting PLinq task as long running so that they don't get hit by TP timeout
2012-06-19 17:12:47 +01:00
Jeremie Laval
e2429c7013
[System.Core] Restore ParallelEnumerable tests
2012-06-19 17:12:46 +01:00
Jeremie Laval
326544e4b3
[System.Core] Defer temporary area management to external class
2012-06-19 17:12:46 +01:00
Jeremie Laval
cfb1b45671
[System.Core] cache array comparison predicate
2012-06-19 17:12:46 +01:00
Jeremie Laval
9aa00ea175
[System.Core] Cache ConcurrentQueue function factory
2012-06-19 17:12:46 +01:00
Rodrigo Kumpera
a726b8c02b
Reenable a sgen test.
2012-06-19 13:03:58 -03:00
Rodrigo Kumpera
cc124288cf
Introduce a test-wrench target so we can disable tests only on wrench.
2012-06-19 12:59:42 -03:00
Rolf Bjarne Kvinge
b6fee6af5d
Sqlite: Map GUIDBLOB to System.Guid. Fixes #5577 .
2012-06-19 16:12:34 +02:00
Marek Safar
a78965f0ac
Add 2.0 test profile path to Microsoft.Build.Tasks
2012-06-19 13:56:10 +01:00
Marek Safar
06c74c6321
Disable failing test
2012-06-19 12:36:08 +01:00
Marek Safar
4dd7b7e524
Enable fixed test
2012-06-19 12:34:51 +01:00
Marek Safar
a788028750
Fix tests category
2012-06-19 11:35:05 +01:00
Marek Safar
5d659d3500
Fixes a warning
2012-06-19 10:54:29 +01:00
Marek Safar
ff6039eaf1
Disable more failing runtime tests
2012-06-19 10:38:56 +01:00
Marek Safar
71a9d4497c
Merge pull request #333 from roji/master
...
More accurate xbuild cmdline error reporting
2012-06-19 01:20:09 -07:00
Shay Rojansky
54a689690a
More accurate xbuild cmdline error reporting
...
When an unknown switch is passed to xbuild, an explicit "unknown switch" error is reported. Previously, the switch was interpreted as an additional argument and resulted in a "Too many project files specified" error.
2012-06-19 11:07:49 +03:00
Gonzalo Paniagua Javier
271524d471
Aborting a pending request closes the socket now
...
Aborting an HttpWebRequest whose request stream is not closed yet will
now close the underlying socket properly.
Fixes bug #5710 .
2012-06-18 22:50:57 -04:00
Martin Baulig
eb0ef90fc4
Fix async sockets: don't set Count=0 when reusing SocketAsyncEventArgs.
...
This reverts commit e2e44bf6f4 (from May
2011).
Added SocketAsyncTest.cs to test this.
2012-06-19 01:10:12 +02:00
Thomas Goldstein
978ee48fce
Rewrite next_pixel_offset calculation in a way that makes more sense. Should not have any effect.
2012-06-18 23:06:00 +02:00
Robert Wilkens
42ebb31fc1
Avoid crash when clicking a DataGrid row header with no data or columns. Fixes Xamarin bug 5487.
2012-06-18 22:36:25 +02:00
Mark Probst
92db745a8e
Merge remote-tracking branch 'public/master'
2012-06-18 22:17:01 +02:00
Rodrigo Kumpera
5d440c757b
Fix the String.Intern test to reflect the fact that String.Intern can return a different result.
2012-06-18 16:44:11 -03:00
Marek Safar
7287c9cb10
Disable few more tests
2012-06-18 19:28:50 +01:00
Marek Safar
7f8df7cd4e
Fix Microsoft.Build.Tasks tests
2012-06-18 19:28:04 +01:00
Marek Safar
69729c7e40
Disable more failing tests
2012-06-18 16:30:29 +01:00
Rodrigo Kumpera
0ea2020110
Improve Delegate::Combine error message.
2012-06-18 12:13:24 -03:00
Miguel de Icaza
4f75e8ca3d
Merge pull request #332 from robwilkens/Bug2663-fix
...
Bug 2663: Regular Expression Bug Fixes
2012-06-18 05:41:01 -07:00
Rob Wilkens
60a463c6f3
Bug 2663: Regular Expression Bug Fixes
...
What this fixes:
IF you were checking a regex which contained something like "(A|AB)C" and then you
checked something like "ABC" against it, it would fail previously, because its
first trip thru the regex it would match "A" first and short circuit out of the
"or" (|) then next try to match "C" but find "B" and fail. In this case, it should
be obvious that it needs to, after it fails, go back and try "AB" rather than "A"
and that's where this patch comes in.
Brief summary of each change in order that "git diff --staged" is giving them to
me:
This first one summarizes the background of goal of project:
New Function: EmitJumpTest
For when we are evaluating Alternatives (or's) we now want to be able to go back
and try or paths we haven't already tried if and only if we fail. This alternate to
EmitJump instead of jumping to target if we have a match immediately, will
on first attempt do the jump, but later if we have already tried this jump
combination, it will jump to ElseTarget, which is the equivalent of this test
failing on subsequent attempts with the same combination of 'or's passing.
RxCompiler:
EmitJumpTest isn't implemented for RxCompiler because i didn't have sample
code to test it on, so it falls back to a regular jump, nothing changes in
RxCompiler in other words other than having this required fucntion front.
arch.cs:
New OpCode added for JumpTest (see EmitJumpTest above)
compiler.cs:
EmitJumpTest added here for regular compiler, it now takes two arguments (two
items on stack) first was the standard where to jump to address, the second
argument is where to jump to in case where we have already tried this
combination)
interpreter.cs:
JumpTestEntry - What we keep track of to know if we've been here before, for
now i presumed just 'pc' (program counter') and 'ptr' (pointer - where we are)
were enough to tell us if we've been to this particular spot before.
Eval has been moved into Eval_Real
Eval if it gets called with parameters indicating we've already been here
(i.e we're being called recursively) just passes the call directly to eval_real
as-was.
Otherwise eval will loop on eval_real while we fail and haven't tried every
possible path through all the or's. (Note: The special case of where we're
running a 'test' (i.e. checking !(a|b|c) rather than just matching (a|b|c)),
and if we're running a test, we turn off JumpTestTracking while it's in its
recursive section. The reason for this is because while we can rightly check
all the options of (a|ab|abc) first for a then try again with ab then try again
with abc, we cannot do the same for a not (i.e. !(something or something else)
is really (not something AND not somtehing else), and it is not (not something
or not something else))
JumpTestList tracks our current run's JumpTest calls...
TriedCombo's tracks all the combos (all the JumpTestList results) that we've
already tried.
All calls to anything which calls Eval were modified to call eval passing
the optional new parameters that we now need, and remember if we call
eval with those parameters having a value, it will just forward the call
to Eval_Real.
This included modifying TryMatch because it calls Eval.
OpCode.JumpTest handler was added, what it does is first check if we need
to ByPass to jump to 'else' right away, which again happens when we're in
a test recursive call (Checking not, for example).
Next, it will create and populate a new JumpTestEntry with the current values.
It then calls CheckComboMatch() which sees if we match a combo already on file.
If we don't have a Match we jump to the first label (at pc+1) which is the
regular jump call. If we have a match, though, it will jump to the else label
which is now at (pc+2).
CheckComboMatch had to be broken up into two functions because it was going
too deep in terms of nesting. What it does by now should be somewhat understood
it will see if we have a match between our current run and previous runs, and
if we have a match, it returns true. If we don't have a match, it returns
false. I have some doubts about whether this function is 100% correct, there
may remain a bug or two, but it does pass all the "System" unit tests which
includes all the regular expression tests, plus it works for all the tests
in the bug report, so i have little reason to mess with it.
syntax.cs:
Here's where i modified so that when evaluating alternatives ("or"s or "|"s)
we instead call EmitJumpTest rather than just a regular EmitJump.
RegExBugs.cs:
This is the unit test (a bunch in one) which fails on mono without this patch
but succeeds with it
commit 48027ac2bdd9b60d18985ec2537eb188607f8164 1 parent 91c4180d55
This patch was originally submitted under another branch which had a bunch of
unrelated commits in it. I'm hoping if i did this right, these changes stand
alone.
2012-06-18 07:38:57 -04:00
Marek Safar
50e957a6d8
Merge pull request #331 from viniciusjarina/uri_lite2
...
Removed RegularExpressions dependency from UriParser
2012-06-18 01:40:34 -07:00
Steven Boswell II
2254afd40f
Fix OneClickComboBoxCell test on Windows
2012-06-18 07:49:34 +02:00
Thomas Goldstein
2a89d640b1
Reformatting to match Mono coding style guidelines
2012-06-18 00:21:43 +02:00
Steven Boswell II
508b0c0668
Make it so the last-edited cell change is committed rather than not lost, when the user leaves the DataGridView. Fixes Xamarin bug 5420.
2012-06-18 00:21:42 +02:00
Vinicius Jarina
0090a053dd
Removed RegularExpressions dependency from UriParser
2012-06-17 19:11:46 -03:00
Zoltan Varga
afcafb118a
Merge pull request #330 from metanest/freebsdtla_2012Jun_spike
...
To use thread local alloc in FreeBSD
2012-06-16 17:46:07 -07:00
KISHIMOTO, Makoto
0247946cd9
To use thread local alloc in FreeBSD
2012-06-17 09:02:28 +09:00
Zoltan Varga
ab3835c3f3
Change some GC defines to runtime checks in metadata/.
2012-06-16 20:49:09 +02:00
Zoltan Varga
950eed1a83
Merge pull request #328 from metanest/bsdsendfile_2012Jun_spike
...
any BSD's sendfile has 6 arguments
2012-06-16 02:58:26 -07:00
KISHIMOTO, Makoto
9e9e2c86c8
any BSD's sendfile has 6 arguments
2012-06-16 11:04:33 +09:00
Zoltan Varga
f9d3dedcf2
Implement column number support in sdb.
2012-06-16 01:52:59 +02:00
Zoltan Varga
104c1223dc
Merge pull request #327 from metanest/mincorevisibilityproblem_2012Jun_spike
...
mincore(2) isnot X/Ooen standard
2012-06-15 14:38:55 -07:00
KISHIMOTO, Makoto
7c38dc9817
mincore(2) isnot X/Ooen standard
2012-06-16 06:15:46 +09:00
Marek Safar
cb6d6ac5ce
Testing wrench build
2012-06-15 19:33:12 +01:00
Marek Safar
9127c171fa
Try to fix Microsoft.Build.Tasks tests
2012-06-15 16:13:59 +01:00
Marek Safar
e09e64bead
Try to fix Directory.EnumerateFiles for hidden files
2012-06-15 16:04:08 +01:00
Marek Safar
1fd51d3e03
Add SqliteTest.db to dist
2012-06-15 14:37:13 +01:00
Atsushi Eno
ebcb2ca612
Do not use @ which is not always available. Use "" instead (which is not perfect but should be better).
2012-06-15 22:03:59 +09:00
Atsushi Eno
c67160f3c8
do not bundle mscorlib.dll that is running mkbundle.exe. Bundle explicitly passed one instead.
2012-06-15 22:02:58 +09:00
Marek Safar
eb4e581e88
Few few httplistener races
2012-06-15 13:50:23 +01:00
Marek Safar
b6cb922c4f
Print failure message
2012-06-15 11:24:56 +01:00
Marek Safar
bf1e2574b3
Update SqliteTest.db
2012-06-15 11:21:03 +01:00
Marek Safar
b827712d76
Fix TestMenuItemsDispose test
2012-06-15 11:18:55 +01:00
Marek Safar
5dba4d1e7d
Add timeout to webrequest tests
2012-06-15 11:15:57 +01:00
Marek Safar
0fcf330866
Fix column info for binary expressions
2012-06-15 10:30:56 +01:00
Zoltan Varga
0f05b6ab2c
Merge pull request #326 from metanest/master
...
newlines at end of some files in mono/metadata/
2012-06-15 00:29:40 -07:00
KISHIMOTO, Makoto
406e33ea85
newlines at end of some files in mono/metadata/
2012-06-15 14:02:34 +09:00
Zoltan Varga
090e884a0f
Make keepalive processing in sdb resilient to the syscall interrupts caused by GCs. Fixes #4725 .
2012-06-15 01:53:31 +02:00
Zoltan Varga
85b4101bd9
Stringify SET_KEEPALIVE protocol message in sdb logging.
2012-06-14 21:07:57 +02:00
[email protected]
b9d2457983
Do not serialize ListViewItem.Group if it's null. Fixes Xamarin bug 3840.
2012-06-14 20:19:49 +02:00
Zoltan Varga
95c91eabcb
Fix the AOT excluded optimization check in 94e15085d5.
2012-06-14 19:05:43 +02:00
Marek Safar
b10a33f7ab
Disable some deadlocking plinq tests
2012-06-14 17:11:47 +01:00
Marek Safar
efd488911c
Disable failing tests
2012-06-14 16:09:33 +01:00
Marek Safar
b9923b1969
Disable failing tests
2012-06-14 16:00:52 +01:00
Marek Safar
a1f2e7068f
Add some logging to failing test
2012-06-14 15:49:40 +01:00
Marek Safar
5b82f0e08c
Clean up some NET_2_0
2012-06-14 15:44:35 +01:00
Marek Safar
3f8e66f47c
Fix some failing tests
2012-06-14 15:08:08 +01:00
Marek Safar
85ebc98cd8
When checking override base method also check for declaring type visibility
2012-06-14 14:01:49 +01:00
Marek Safar
efc7984344
Merge pull request #324 from adbre/master
...
Fix for bug #4814
2012-06-14 00:08:59 -07:00
Adam Brengesjö
d9690fc4b0
Padding character(s) must be at end of string.
2012-06-14 01:34:58 +02:00
Adam Brengesjö
2eef16ad4f
Add NUnit test case for bug #5464
2012-06-14 01:34:01 +02:00
Adam Brengesjö
2d372c4dbf
Add Assert.Fail if no FormatException is thrown.
2012-06-13 23:24:27 +02:00
Adam Brengesjö
782f7f9a7b
Check if number format info properties are empty first.
...
Fixes issue #4814
https://bugzilla.xamarin.com/show_bug.cgi?id=4814
2012-06-13 21:27:35 +02:00
Adam Brengesjö
2a9bd725bd
Add NUnit tests for bug #4814
2012-06-13 21:27:34 +02:00
Thomas Goldstein
2479bea5ca
Fix minor whitespace issues
2012-06-13 21:23:08 +02:00
Thomas Goldstein
23bf99cf29
Unit test for bug 3418
2012-06-13 21:16:45 +02:00
[email protected]
6c3c219ad3
Make it so disposing of a Menu causes its MenuItems to get disposed too. Fixes Xamarin bug 3418.
2012-06-13 21:16:44 +02:00
crazyjncsu
3e4e318507
Fixed execution of parallel async task to not be broken (made consistent with serial execution)
2012-06-13 10:42:38 -04:00
Marek Safar
140be1481b
Include source line column info in MDB files
2012-06-13 15:18:44 +01:00
Marek Safar
c50576f5a2
Add Write7BitEncodedInt test
2012-06-13 15:18:43 +01:00
Martin Baulig
901938bfd8
Fix prepared queries.
...
You may pass either 0 or -1 as initial value of sp_prepare's @Handle
parameter, but not null. Tested with MS SQL 2008 RC2 Express and
MS SQL 2012 Express.
2012-06-12 18:28:01 +02:00
Atsushi Eno
c89d5cae90
Revert "attempt to fix parallel build in RabbitMQ dir."
...
This reverts commit 3f89a6cfcf .
2012-06-12 19:08:13 +09:00
Atsushi Eno
3c3927cc90
Revert "Those new hacky RabbitMQ sources files need to be included in dist."
...
This reverts commit cfc5d8ae33 .
2012-06-12 19:07:50 +09:00
Atsushi Eno
1e5d68f32b
Revert "doh, miscopied file names."
...
This reverts commit 4c28538190 .
2012-06-12 19:07:38 +09:00
Atsushi Eno
4c28538190
doh, miscopied file names.
2012-06-12 19:04:32 +09:00
Atsushi Eno
cfc5d8ae33
Those new hacky RabbitMQ sources files need to be included in dist.
2012-06-12 18:57:48 +09:00
Zoltan Varga
ac2f490de3
Merge remote-tracking branch 'raof/aot-cpu-safety'
2012-06-12 11:26:31 +02:00
Zoltan Varga
e12dc513cf
Revert "Merge pull request #321 from RAOF/aot-cpu-safety"
...
This reverts commit f530307043 , reversing
changes made to 70927ed41c .
2012-06-12 11:26:15 +02:00
Zoltan Varga
cb4dfb5d98
Revert "Revert "Refuse to load AOT images using unsupported SIMD instructions""
...
This reverts commit 9fe654ddf3 .
2012-06-12 11:26:00 +02:00
Atsushi Eno
3f89a6cfcf
attempt to fix parallel build in RabbitMQ dir.
...
Its' nasty, but who cares? (if whoever does, fix it.)
2012-06-12 17:52:28 +09:00
Marek Safar
5f1121a776
Make debug options case insensititive
2012-06-12 08:51:57 +01:00
Atsushi Eno
d85e63cc39
bring back CodeContracts to mobile profiles.
2012-06-12 15:56:03 +09:00
Christopher James Halse Rogers
52cc526554
Refuse to load AOT images using unsupported SIMD instructions
...
Contributed under MIT/X11 License
2012-06-12 09:38:09 +10:00
Christopher James Halse Rogers
28596a2167
Fix spelling of confusingly-named mono_arch_cpu_optimizazions
...
Contributed under MIT/X11 License
2012-06-12 09:38:03 +10:00
Christopher James Halse Rogers
94e15085d5
Refuse to load an AOT image built with unsupported CPU optimisations
...
Contributed under MIT/X11 License
2012-06-12 09:36:38 +10:00
Rodrigo Kumpera
ba5eacd40b
Release gc roots of dynamic assemblies before calling mono_gc_clear_domain.
...
* domain.c (mono_domain_free): We clean all dynamic assemblies
of GC roots before asking the GC to clear the rest of the heap.
This is required since the GC expects all roots to be free
of refs to the dying domain before been invoked.
Fixes System.Runtime.Serialization test suite under sgen.
2012-06-11 20:24:34 -03:00
Rodrigo Kumpera
add22ee686
Clear nursery fragments before doing xdomain checks before a collection.
2012-06-11 20:24:33 -03:00
Rodrigo Kumpera
e094729042
Fix verify-before-collect deadlock.
2012-06-11 20:24:33 -03:00
Zoltan Varga
e41081a380
Correctly link the seq point for ENDFINALLY with its successors. Fixes #5566 .
2012-06-11 22:53:29 +02:00
Steven Boswell II
1743a005cc
Make it so getting a DataGridViewComboBoxCell to drop down doesn't require extra clicks
2012-06-11 21:54:57 +02:00
Martin Baulig
4cfdbe076e
MS SQL Server 2012 Express doesn't like null here.
2012-06-11 21:11:51 +02:00
Martin Baulig
2f82cff09c
Sync parameter names in System.Data with .NET.
2012-06-11 19:57:09 +02:00
Martin Baulig
c07e519661
Use 'mcs' for .NET 4.5.
2012-06-11 19:56:48 +02:00
Marek Safar
d5a78c50c1
Fix CancellationTokenSource cancellation during Dispose
2012-06-11 16:02:39 +01:00
Zoltan Varga
9fe654ddf3
Revert "Refuse to load AOT images using unsupported SIMD instructions"
...
This reverts commit 888231ca2d .
Revert until there is a licensing statement.
2012-06-11 16:54:17 +02:00
Mark Probst
0b5364fcd0
[sgen] Fix uninitialized vars in the toggleref code.
2012-06-11 16:13:43 +02:00
Mark Probst
0e83442cf1
Merge remote-tracking branch 'public/master'
2012-06-11 16:01:50 +02:00
Mark Probst
e3a773c73a
[sgen] Add some explanatory comments.
2012-06-11 16:00:46 +02:00
Zoltan Varga
f530307043
Merge pull request #321 from RAOF/aot-cpu-safety
...
AOT CPU safety
2012-06-11 06:50:06 -07:00
Carlos Alberto Cortez
70927ed41c
[System.Web] Re-enable SessionStateModule.OnSessionExpired as needed.
...
SessionStateModule.OnSessionExpired is used as a callback for its
'handler' field (SessionStateStoreProviderBase.SetItemExpireCallback),
and is normaly enabled in Init, as well as disabled in OnReleaseRequestState
if the container is abandoned.
However, since the module may stay around being re-used, it may continue
working *without* this callback being invoked/enabled anymore -causing a number of
nasty, hard to debug side effects, as session data ending up in the void-.
So we enable this callback again in OnAcquireRequestState, which is the
point at where we know we have a brand new, working container.
2012-06-11 08:22:40 -05:00
Christopher James Halse Rogers
888231ca2d
Refuse to load AOT images using unsupported SIMD instructions
2012-06-11 21:58:51 +10:00
Christopher James Halse Rogers
445a8f6021
Fix spelling of confusingly-named mono_arch_cpu_optimizazions
2012-06-11 21:58:47 +10:00
Christopher James Halse Rogers
14050b3874
Refuse to load an AOT image built with unsupported CPU optimisations
2012-06-11 21:57:55 +10:00
Marek Safar
a800e2ce89
Fix async statements with unused return value. Fixes #5602
2012-06-11 12:11:35 +01:00
Marek Safar
c0b3d91a9a
Improve task test
2012-06-11 12:11:35 +01:00
Mark Probst
c46d718d72
[sgen] Fix a variable name typo.
2012-06-11 12:22:28 +02:00
Steven Boswell II
f9bea537f1
Implement the DataGridView.EditingControlShowing event. Fixes Xamarin bug 5419.
2012-06-10 16:04:59 +02:00
Steven Boswell II
33831c2a77
Fix DataGridView.SelectionChanged event firing differences with .NET
2012-06-10 12:16:17 +02:00
Steven Boswell II
ecd4102694
Decrement ComboBox SelectedIndex when an item before the selected index gets removed. Fixes Xamarin bug 5595.
2012-06-09 21:38:40 +02:00
Zoltan Varga
f2d8973cce
Merge pull request #320 from konrad-kruczynski/dyn_method_on_iface_array
...
Dyn method on iface array
2012-06-09 11:26:40 -07:00
Konrad M. Kruczynski
5839ca732b
Added missing spaces.
2012-06-09 19:46:09 +02:00
Konrad M. Kruczynski
aef3e78304
Reduced code duplication.
2012-06-09 19:43:31 +02:00
Konrad M. Kruczynski
02080f980e
Fix for creating dynamic method with owner being array or iface.
...
It shouldn't be possible, according to MSDN documentation. Two
test cases included.
2012-06-09 19:38:04 +02:00
Steven Boswell II
f2b0672d8c
Do not throw an exception when trying to remove a ComboBox item that doesn't exist, to match .NET
2012-06-09 19:00:52 +02:00
Steven Boswell II
641ae73033
Fix the appearance of disabled ListBox controls
2012-06-09 09:01:52 +02:00
Marek Safar
5d916704fd
Another make dist fix
2012-06-08 17:13:11 +01:00
Marek Safar
c2633b86fc
Emit sequence point for some member access expressions. Fixes #5387
2012-06-08 16:59:20 +01:00
Marek Safar
f1cc9c37c7
Fix make dist
2012-06-08 16:55:47 +01:00
Marek Safar
6a08b2fe32
Merge pull request #319 from pragmatrix/master
...
In WindowsBase, the Rect.Union() implementation is broken.
2012-06-08 06:40:14 -07:00
Armin Sander
33ca3a4f70
WindowsBase: fix Rect.Union() and add Rect.Union test cases
2012-06-08 15:23:27 +02:00
Marek Safar
d5d4b9c22b
Fix some warnings
2012-06-08 12:48:08 +01:00
Marek Safar
8566a284a2
Update more 4.5 api
2012-06-08 11:44:55 +01:00
Marek Safar
325319b151
Merge compiler docs
2012-06-08 10:09:17 +01:00
Marek Safar
dce6ecaac7
Remove obsolete files
2012-06-08 09:45:58 +01:00
Marek Safar
c14d3585bd
Update to the latest dlr
2012-06-08 09:40:15 +01:00
Marek Safar
3f0aa3e3c8
Convert crlf to lf
2012-06-08 08:36:55 +01:00
Marek Safar
93e56b120a
Add missing CreateReader method
2012-06-07 18:18:24 +01:00
Marek Safar
7d97b4d434
Fix some parameters names
2012-06-07 18:06:55 +01:00
Marek Safar
45ee03cf6e
Update System.Net.Http
2012-06-07 17:26:37 +01:00
Marek Safar
d9e4371f9e
Clean up assembly attributes
2012-06-07 15:17:52 +01:00
Marek Safar
d24f2bf83f
Update to the latest IKVM.Reflection
2012-06-07 15:01:44 +01:00
Marek Safar
05a45ba7b2
Recover from invalid yield return. Fixes #5064
2012-06-07 14:26:27 +01:00
Marek Safar
5c3df6b95f
Mark some Stream members non-serialized. Fixes #5454
2012-06-07 14:25:48 +01:00
Marek Safar
cc2bfe19f1
Recover from invalid enum member initialization
2012-06-07 13:58:45 +01:00
Marek Safar
77a16ee827
Recover from invalid return expression. Fixes #5389
2012-06-07 13:51:22 +01:00
Marek Safar
0201ee4db6
Fix more failing tests
2012-06-07 12:19:58 +01:00
Marek Safar
a1452e6bde
Set fixed test locale
2012-06-07 11:43:34 +01:00
Marek Safar
d22cff2d3f
Disable not working test
2012-06-07 11:38:53 +01:00
Marek Safar
6ca8ad7642
Remove double null check
2012-06-07 11:38:53 +01:00
Marek Safar
f1b0051d92
Add new 4.5 api
2012-06-07 11:38:53 +01:00
Marek Safar
e3f041ed65
Implement 4.5 ArraySegment
2012-06-07 11:38:53 +01:00
Marek Safar
ce639e29b6
Reformat ArraySegment test
2012-06-07 11:38:52 +01:00
Marek Safar
2d84a89a43
Add some new 4.5 api
2012-06-07 11:38:52 +01:00
Atsushi Eno
a882a65ab1
Use non-prefixed namespace output for element when applicable. Fixed bug #5519 .
2012-06-07 12:57:31 +09:00
Sebastien Pouliot
903ce57ce7
Propagate all errors to the (old) ICertificatePolicy or (newer) callback. Fix bug #5546 for iOS
2012-06-06 21:11:54 -04:00
Neale Ferguson
f3e09ae3b2
Place tls_get in alpha order
2012-06-06 21:01:07 -04:00
Rodrigo Kumpera
4bde8caf22
Sparkle some debug friendly love over those serialization test types.
2012-06-06 13:49:49 -03:00
Rodrigo Kumpera
a16a6ac042
Rewrite the version tolerant serialization test suite to use app domains instead of processes.
...
* BinarySerializationOverVersions.cs: Use appdomains as they are much more robust to
environmental differences. We don't need to ensure we're using the right mono with
the right mscorlib.
2012-06-06 13:47:35 -03:00
Rodrigo Kumpera
c8c5bf9b87
Move a pair of sgen asserts to debug level 4 so they don't show up in regular builds.
2012-06-06 12:50:05 -03:00
Marek Safar
7478d2e750
Set vts tests environment variables
2012-06-06 15:14:33 +01:00
Marek Safar
73c6db0665
Fix XmlReaderSettings::Clone
2012-06-06 14:59:07 +01:00
Marek Safar
9215ddf7ad
Make XmlWriterSettingsTests .net compatible
2012-06-06 14:52:01 +01:00
Marek Safar
19f51123d7
A return keyword must not be followed by any expression when delegate returns void
2012-06-06 14:29:20 +01:00
Marek Safar
6dff1f002e
Don't return void result
2012-06-06 14:28:16 +01:00
Marek Safar
d6d4f75888
Emit new state machine attributes
2012-06-06 12:13:06 +01:00
Marek Safar
33831d0b51
Add missing dist file
2012-06-06 12:13:06 +01:00
Martin Baulig
8b3b458b19
XmlResolver.GetEntityAsync().
...
* The default implementation throws NotImplementedException.
* Added nunit tests.
2012-06-06 02:51:44 +02:00
Martin Baulig
0d1aa4f74f
More WebClient 4.5 async tests.
2012-06-06 01:09:43 +02:00
Alex Rønne Petersen
ea6064365c
Merge pull request #316 from decriptor/master
...
[xbuild] Fixed a typo in MSBuildUtils.cs
2012-06-05 12:48:45 -07:00
Stephen Shaw
b67af73b73
[xbuild] Fixed a typo in MSBuildUtils.cs
2012-06-05 13:38:01 -06:00
Rodrigo Kumpera
81871881e0
Correctly report an exception in EndInvoke when BeginInvoke was called with a callback parameter.
2012-06-05 15:55:35 -03:00
Lluis Sanchez
aabbc960b7
Improve date serialization compatibility with third party web services
...
Make XmlCustomFormatter.cs more liberal about the date formats it accepts.
Many third party web services do not format date exactly at 'yyyy-mm-dd'.
The Microsoft implementation is more liberal about accepting other formats
and so the current Mono implementation breaks projects that consume third
party web services when they are ported to Mono.
Based on a patch by Aaron Roydhouse.
2012-06-05 12:35:52 +02:00
Steven Boswell II
bcb49c60cd
Fire the DataGridView.SelectionChanged event when the selected rows/columns changes. Fixes Xamarin bug 3415.
2012-06-04 23:56:59 +02:00
Miguel de Icaza
0cae3a03ce
[corlib/tests] disable the acos test on MacOS, since MacOS acos is broken
2012-06-04 17:41:58 -04:00
Marek Safar
2283c3d5a3
Merge pull request #315 from viniciusjarina/green_build3
...
Removed broken tests from System
2012-06-04 05:21:28 -07:00
Vinicius Jarina
7c32f15193
Removed broken tests from System
2012-06-04 09:12:20 -03:00
Marek Safar
7d0434bb2c
Merge pull request #313 from viniciusjarina/green_build
...
Green build (1)
2012-06-04 00:12:41 -07:00
Martin Baulig
4c8278ed3b
Add .NET 4.5 async methods to XmlReader and XmlWriter.
2012-06-03 04:02:28 +02:00
Martin Baulig
78873611b2
More .NET 4.5 work.
2012-06-03 04:02:28 +02:00
Martin Baulig
7d170f400d
Sync parameter names with .NET.
2012-06-03 04:02:28 +02:00
Miguel de Icaza
1c19405a83
[class libraries] drop NET_1_0 definitions
2012-06-02 21:46:34 -04:00
Miguel de Icaza
93b810834d
[class libraries] drop ONLY_1_1
2012-06-02 21:31:50 -04:00
Martin Baulig
efdd059bdd
Add .NET 4.5 async methods to XmlReader.
2012-06-02 21:53:22 +02:00
Martin Baulig
e0e29c6140
Add .NET 4.5 async methods to System.Net.NetworkInformation.Ping.
2012-06-02 19:42:40 +02:00
Miguel de Icaza
17ef544aa2
Copyright notices
2012-06-02 13:20:23 -04:00
Miguel de Icaza
f48ceb9860
[System] Removal of the NET_2_0 in the source code
...
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Vinicius Jarina
7b6c98e708
Fixed Test MonoTests.System.Net.HttpListenerRequestTest.HttpBasicAuthScheme
2012-06-02 13:04:30 -03:00
Vinicius Jarina
0c3d9937c2
Removed Not working test: 1) MonoTests.System.IO.Ports.SerialPortTest.NonstandardBaudRate #5446
2012-06-02 13:04:29 -03:00
Martin Baulig
347f5c7bc7
Merge branch 'master' of github.com:mono/mono
2012-06-02 17:44:58 +02:00
Martin Baulig
58218aeb66
Add .NET 4.5 async upload methods to WebClient.
2012-06-02 17:44:21 +02:00
Martin Baulig
c1e5cdd85e
More .NET 4.5 async work in WebClient.
...
* System.Net/WebClient.cs: Support cancelation.
* Test/System.Net/WebClientTestAsync.cs: New nunit tests.
2012-06-02 17:44:07 +02:00
Steven Boswell II
3d04a14a27
Fix BackColor on ToolStripItem objects (Novell bug 567331)
2012-06-02 17:37:51 +02:00
Martin Baulig
17958f9bef
Add .NET 4.5 async methods to WebClient.
2012-06-02 16:21:36 +02:00
Thomas Goldstein
8bc0639724
Move common code to a sub method to avoid redundancy, and to make sure that the two code paths do not diverge later
2012-06-02 01:08:08 +02:00
Miguel de Icaza
086885471f
Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported
2012-06-01 18:20:12 -04:00
Miguel de Icaza
ae0feab435
Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported
2012-06-01 18:04:24 -04:00
Duncan Mak
00620f0ef0
[System.Web.Extensions] Remember to build standalone-runner-support before run-standalone-test.
2012-06-01 17:53:43 -04:00
Duncan Mak
9da11055f5
[System.Data/Test] Don't hard-code newline in the string, fixes failure in DataTableReadXmlSchemaTest.TestSampleFileImportSimple.
2012-06-01 17:53:43 -04:00
Miguel de Icaza
8d3b80d4fb
[net_1_0] Finally all of NET_1_0 is gone from the source files
2012-06-01 16:50:55 -04:00
Rodrigo Kumpera
db3d5cbc53
Fix win32.
2012-06-01 16:16:48 -03:00
Miguel de Icaza
a759626a14
Fix the comment so our doctools can pick it up
2012-06-01 15:09:20 -04:00
Marek Safar
6ec5717c59
Fix build by removing duplicate custom attribute extensions
2012-06-01 19:14:26 +01:00
Rodrigo Kumpera
12880f415e
Promote mono_get_runtime_build_info to the public API.
...
* jit.h: mono_get_runtime_build_info is now public.
2012-06-01 14:49:16 -03:00
Jonathan Pryor
9d66910069
[corlib] Allow SynchronizationContext.Current to work on MfA
...
For the main (UI) thread, make SynchronizationContext.Current return
the Android.App.Application.SynchronizationContext property.
2012-06-01 12:48:53 -04:00
Jonathan Pryor
0214d9669a
[Mono.Posix] Workaround signal raising behavior.
...
The effects of Stdlib.raise() aren't immediate on OS X. The result is
that UnixSignalTest.TestDispose1():
Stdlib.raise (Signum.SIGINT);
Assert.AreEqual (a.Count, 1);
_may_ fail depending on timing.
Insert some Thread.Sleep()s to try to allow the signal to propogate.
2012-06-01 12:09:37 -04:00
Rodrigo Kumpera
395ec9e448
Implement better pointer spew for the new heap verifier.
2012-06-01 12:49:51 -03:00
Zoltan Varga
80ad5bc5f1
Pass additional cflags to jay to disable -fno-implicit-function-declaration.
2012-06-01 17:43:04 +02:00
Marek Safar
6a715675b0
Fix previous commit to be 4.5 only
2012-06-01 16:36:42 +01:00
Marek Safar
9f01e8e620
Implement CustomAttributeExtensions
2012-06-01 16:35:26 +01:00
Marek Safar
f01f91c58c
Add state-machine attributes
2012-06-01 15:30:20 +01:00
Zoltan Varga
4fb344dc8c
Add -Werror-implicit-function-declaration to CFLAGS later to avoid breaking configure tests.
2012-06-01 16:16:31 +02:00
Marek Safar
a678643179
Add IReadOnlyCollection interface
2012-06-01 14:07:18 +01:00
Jeremie Laval
c0e097203a
[corlib] Fix DoubleWait unit test
2012-06-01 13:22:42 +01:00
Zoltan Varga
b5a61875a0
Fix warnings.
2012-06-01 13:58:33 +02:00
Zoltan Varga
a563f17249
Make implicit function declarations a build error. They are not 64 bit safe and cause hard to diagnose problems.
2012-06-01 13:46:37 +02:00
Zoltan Varga
174de374ff
Fix implicit function declarations on osx.
2012-06-01 13:42:04 +02:00
Marek Safar
cd63299374
Build is not yet ready for metadata profile only
2012-06-01 11:42:33 +01:00
Marek Safar
813b48a551
Add missing 4.5 test config
2012-06-01 10:52:41 +01:00
Marek Safar
0f49fd1f6a
Fix default infinity symbol to match closely .net
2012-06-01 10:19:44 +01:00
Marek Safar
fe19bd6187
Disable verifier checks on 4.0 profile
2012-06-01 09:47:47 +01:00
Marek Safar
5b1a509563
Add new advanced --metadata-only compiler option to produce assembly for references purposes only
2012-06-01 09:43:32 +01:00
Jeffrey Stedfast
53f83c9f56
Fixed regressions in Microsoft.Build.BuildEngine
2012-05-31 14:03:53 -04:00
Jonathan Pryor
c706c85127
[Mono.Posix] Fix Group-lookup Tests
...
Fixes a test failure seen on OS X (and elsewhere), in which
UnixGroupTest.NonReentrantSyscalls() would fail:
#TRC: Exception constructing UnixGroupInfo: NUnit.Framework.AssertionException:
#TNRS: construct by name
Expected: <_appserverusr:*:79:>
But was: <_appserverusr:*:79:jon>
The difference is in the group members: the expected value contains no
group members, while the actual value does. They both have the same
gorup name and group id; it's just the member list that differs.
The problem is that the _appserverusr group (and others) is returned
_twice_, once containing group members, and once without. (This is
possibly due to NIS; as per the removed comment.) This is readily
observed in a plain C program on OS X:
struct group *g;
setgrent ();
while ((g = getgrent ()) != NULL) {
printf ("local group: gr_name=%s; gr_passwd=%s; gr_gid=%i\n", g->gr_name, g->gr_passwd, g->gr_gid);
}
endgrent ();
Many groups are listed twice, and if you print out g->gr_mem it's
apparent that only the first invocation contains members, the second
does not, and looking up group info by name (getgrnam(3)) contains
group member info (yay!).
The fix here isn't a fix, it's a workaround: we track which groups
we've seen, and if we see a repeated group name we skip it. Thus, the
first time we see the _appserverusr group, we'll do the full
lookup-by-name-and-compare assertions, and the second time we see the
_appserverusr group we skip it entirely.
2012-05-31 13:22:28 -04:00
Marek Safar
7f1046817a
Update to the latest IKVM.Reflection
2012-05-31 16:54:42 +01:00
Marek Safar
d4e9fd67b9
Merge pull request #310 from slide/master
...
Fix unit test for OverwriteReadOnlyFiles
2012-05-31 08:44:20 -07:00
Alex Earl
6abad6ce46
Fix unit test for OverwriteReadonlyFiles
2012-05-31 10:51:09 -04:00
Zoltan Varga
2888c67c5f
Change a printf to a log message in sdb.
2012-05-31 16:29:45 +02:00
Zoltan Varga
c5bb9fa685
Disable failing LineNumbers() sdb test ( #5438 ).
2012-05-31 16:29:45 +02:00
Jeremie Laval
91fed5ca46
[System] Try to fix Cookies tests
...
The first part was to try to repro the ordering behavior of MS which seems to be based on the string length of, first, the domain and, then, the path.
Second part was to fix the .local unit test with Dns.GetHostname as some OS (namely Mac) append a '.local' by default to the hostname.
2012-05-31 13:43:06 +01:00
Marek Safar
46e16d2c10
Add missing test sources file
2012-05-31 13:35:45 +01:00
Marek Safar
c81c35a8c6
Fix more xml serializer tests
2012-05-31 13:23:55 +01:00
Zoltan Varga
b63636692b
Disable test_0_stack_unwind () test which fails on x86+llvm ( #5432 ).
2012-05-31 12:33:53 +02:00
Marek Safar
7b3f562eab
A fix for failing xml writer tests
2012-05-31 11:25:24 +01:00
atsushieno
5b0b2ec8ed
Cleanup WindowsBase test failures.
...
Some tests are disabled because they need impl. change in WindowsBase.
2012-05-31 17:31:44 +09:00
Miguel de Icaza
1cd507f4e5
Merge pull request #306 from robwilkens/master
...
Bug # 2234 - This fixes bug as reported, but not sure if wise. - Ignores exception under specific condition
2012-05-30 20:40:12 -07:00
atsushieno
3590a88381
Make those tests look good on net_4_5.
2012-05-31 12:37:14 +09:00
Miguel de Icaza
691cc77cb7
Merge pull request #308 from viniciusjarina/fix242
...
Fix242
2012-05-30 20:33:01 -07:00
Miguel de Icaza
2ff32b7ea6
[System.Configuration] Fix System.Configuration to cope with XmlReaders which might not be ConfigXmlTextReaders, fixes test suite
2012-05-30 17:55:57 -04:00
Miguel de Icaza
477b011228
[System.Configuration] Disable broken test
2012-05-30 17:55:56 -04:00
Zoltan Varga
ae3899993c
Fix a race in mono_aot_find_jit_info ().
2012-05-30 23:37:45 +02:00
Miguel de Icaza
16845ce48a
[build] attempt to fix the Microsoft.Build.Engine tests
2012-05-30 17:22:11 -04:00
Filip Lundgren
69a05ee43d
Build Configuration: Don't build libmono to Release_SGen in x64 Release mode.
2012-05-31 00:16:01 +03:00
Vinicius Jarina
b7b6bbea57
Added unit test for the bug #242
2012-05-30 16:03:02 -03:00
Vinicius Jarina
82570e8ac9
Fix issue #242 DataContractSerializer fails to deserialize List<T> properties
2012-05-30 16:03:01 -03:00
Sebastien Pouliot
003bbd80f3
Create a store when importing from a CspBlob so we can export it with the same KeyNumber (signature vs key exchange). Fix #5299
2012-05-30 14:32:07 -04:00
Marek Safar
38c695168e
Update po files
2012-05-30 19:06:15 +01:00
Marek Safar
0b01be241c
Improve failing test
2012-05-30 19:03:51 +01:00
Marek Safar
1485c35ac1
Fix failing test
2012-05-30 18:29:00 +01:00
Marek Safar
e1fff85ede
Add new test
2012-05-30 18:29:00 +01:00
Eberhard Beilharz
d04c37304e
Add unit test for Xamarin-5278
...
Change-Id: Ic2d9070148b6582933a4116c288d08c176c80738
2012-05-30 17:58:26 +02:00
Marek Safar
24698a5eed
Merge pull request #307 from crazyjncsu/master
...
Bug fix to get rid of reference to Microsoft.VisualBasic.dll when compiling a C# XSL script.
2012-05-30 06:59:10 -07:00
crazyjncsu
c92da36202
Removed reference for Micrsoft.VisualBasic.dll when compiling C# and JScript XSL scripts
2012-05-30 09:34:37 -04:00
Marek Safar
e0c751d31d
Fix array binary comparer values ordering. Fixes #5409
2012-05-30 14:30:48 +01:00
Marek Safar
eb4c3e6395
REPL type declaration can be declared in their own namespaces
2012-05-30 12:08:09 +01:00
Marek Safar
455b845157
Fix scheduling of inlined tasks.
2012-05-30 12:08:08 +01:00
Zoltan Varga
7871d10add
Avoid loading already loaded assemblies in the remote csharp repl.
2012-05-30 01:34:01 +02:00
Zoltan Varga
5c5a7fb778
Fix the remote csharp repl code so it at least starts.
2012-05-30 01:23:58 +02:00
Rodrigo Kumpera
189dd38cd6
Fix major whole-heap verification if the nursery end up partially cleaned.
2012-05-29 18:28:27 -03:00
Robert Wilkens
9a08f3cfd4
This is a clean up of last commit. One line had spaces where there should
...
have been tabs.
2012-05-29 11:53:33 -04:00
Robert Wilkens
9461fb2015
This updates the tests with suggestions made by
...
ermshiperete (Eberhard Beilharz). Re-ran these tests and confirmed they are
o.k.
2012-05-29 11:47:16 -04:00
Marek Safar
afd225a496
Update to .NET 4.5 default exception behavior for unobserved exceptions.
2012-05-29 16:13:46 +01:00
Marek Safar
5e812e648f
Fix CultureInfo::CreateSpecificCulture
2012-05-29 16:13:46 +01:00
Marek Safar
f406340a9d
Flush documentation update
2012-05-29 16:13:46 +01:00
Marek Safar
1e3f458c21
Add another Task test
2012-05-29 16:13:45 +01:00
Eberhard Beilharz
0ee43a1a37
Some improvements suggested by discussion in pull request
...
Change-Id: I9d1c2dc31b7f744a7d948fd5fb27d15b77c0ee11
2012-05-29 16:41:42 +02:00
Robert Wilkens
54b943f14f
Replaces some tabs with spaces - earlier copy and paste messed this up, this
...
shouldn't affect any code, just its formatting.
2012-05-29 07:50:48 -04:00
Zoltan Varga
5a3deb839e
Add fields in generic instances too when AOTing. Fixes #5316 .
2012-05-29 13:27:28 +02:00
Robert Wilkens
30885fd4d7
This addresses bug 2234 - important please verify
...
https://bugzilla.xamarin.com/show_bug.cgi?id=2234
It includes unit tests.
The point of this is essentially to replicate a behavior of the
Microsoft .NET Platform where exceptions are eaten in the ComboBox
under certain conditions (In the SelectedIndexChanged handler).
2012-05-28 22:22:40 -04:00
Rodrigo Kumpera
872141f2fa
Add new whole heap verifier that can catch a whole lot more problems than previous tools did.
...
* sgen-gc.c Add verify-before-allocs and verify-before-collections experimental
options to perform heap verification at the many different points in the app.
This does check all pointers in the heap, so it's much much slower than
the previous option.
2012-05-28 19:09:49 -03:00
Marek Safar
9481d86a70
Add some compiler documentation
2012-05-28 15:01:23 +01:00
Jeremie Laval
c698307f5b
[corlib] A CancellationTokenRegistration instance should always have a working GetHashCode method
...
Reported by knittl
2012-05-28 14:26:00 +01:00
Marek Safar
ec445c82f7
Exclude more console code from NET_2_1
2012-05-28 13:47:52 +01:00
Marek Safar
1b32f344a6
Don't report obsole warnings on compiler generated attributes
2012-05-28 13:47:51 +01:00
Zoltan Varga
867b3b5eb2
Cache regex results when comparing mdoc Nodes during sorting. This avoids the creation of about 300k objects and decreases GC time by 100ms during md startup.
2012-05-28 12:47:32 +02:00
Zoltan Varga
5387b0238f
Add more caching to the pinvoke loading code, tidy up the logging a bit.
2012-05-26 12:42:14 +02:00
Miguel de Icaza
4ea0e27579
Merge pull request #304 from crazyjncsu/master
...
Disabling WCF log activity when logging is disabled by configuration
2012-05-25 18:26:47 -07:00
Miguel de Icaza
375901de13
Merge pull request #305 from robwilkens/master
...
This fixes bug # 853 in ximarin bugzilla.
2012-05-25 18:21:41 -07:00
Sebastien Pouliot
34990a4ccd
Add newer (SL5) types to mobile profile. Fix bug #5337
2012-05-25 19:55:17 -04:00
Robert Wilkens
410fbd4e87
This is the associated unit test for the Ximarin Bugzilla #853 bug...
...
Confirmed it fails without the bug fix, and passes with it.
Also confirmed again that no other System.Data tests failed that weren't
previously failing. With this test, there were 9 failures before the patch
is applied, and 8 failures after the patch is applied. Also tested before
I changed anything and previous to my changes 8 tests in System.Data were
already failing. This patch previosuly committed in other words does not
introduce any new bugs to the system.data tests.
2012-05-25 19:27:46 -04:00
Robert Wilkens
6cfebdcea7
This is a fix for bug # 853 --
...
see: https://bugzilla.xamarin.com/show_bug.cgi?id=853
What was happening was ColumnMappings were never being set, so when another
Update function (which this eventually called) went to map the parameters,
it couldn't find any matching column names, so it set all the parameter values
to null.
This code, or very similar code, appeared in:
public int Update (DataRow [] dataRows)
public int Update (DataTable dataTable)
But was left out of:
public int Update (DataSet dataSet, string srcTable)
This code adds the relevant code into the function it was left out of.
Ideally, longer term, this code would be consolidated into a function which
was commonly called by all 3 update functions, but i didn't want to risk
breaking the other two functions which probably already work fine.
2012-05-25 16:33:50 -04:00
crazyjncsu
e4dc0cee78
Fixed syntax error in not comparing log_writer with null
2012-05-25 11:21:05 -04:00
crazyjncsu
cf46873376
Prevented any logging activity when no logging target is specified rather than synchronizing the entire AppDomain just to write to TextWriter.Null
2012-05-25 11:15:26 -04:00
Rodrigo Kumpera
2f2815acca
Small improvements to the concurrent queue.
...
* mono-cq.c (mono_cq_add_node): Add a store store fence
between the two stores as they can be observed OOO.
* mono-cq.c (mono_cq_create): Use precise roots for head
and tail.
2012-05-25 11:23:09 -03:00
Eberhard Beilharz
ba2ba889f6
Xamarin-5278: Fix Binder.SelectMethod when passed argument is COM object
...
This patch fixes the problem that reflection doesn't find the
constructor of a class if one of the arguments is a COM object
implemented in unmanaged code. In that case the proxy can't
be converted to a managed object and we didn't check if the
COM object implements the desired interface.
Change-Id: Ie086bbb898ae2de8bd38b9f81422086e017a859e
2012-05-25 11:59:38 +02:00
Sebastien Pouliot
8a5ad219ba
Avoid having LockRecursionException in both mscorlib and System.Core for the MOBILE profile. Fix bug #5311
2012-05-24 22:12:28 -04:00
Miguel de Icaza
bad4e1bee2
Merge pull request #302 from konrad-kruczynski/fast_double_to_from_int64
...
Double <-> Int64 conversion is much faster now.
Instead of using GetBytes and converting bytes to long, which involves allocation and deallocation of small temporary array, the simple cpu register load is in fact done now. This results in a much faster operation.
With this sample program:
var stopwatch = Stopwatch.StartNew();
var sum = 0L;
for(var i = 0; i < 100000000; i++)
{
sum += BitConverter.DoubleToInt64Bits(99.9);
}
stopwatch.Stop();
Console.WriteLine(stopwatch.Elapsed);
my results are:
00:00:00.6614282 with my patch;
00:00:19.8135516 without my patch and Boehm GC;
00:00:10.2296766 without my patch and SGEN GC.
I'm doing a lot of this operations in my serialization framework, so it is quite essential to be fast ;) The performance improvement is due to no-allocation nature of the patch vs the old code, which allocated a temporary array (difference between Boehm and SGEN is explained the same way).
2012-05-24 18:56:45 -07:00
Miguel de Icaza
237f8da767
Merge pull request #271 from pruiz/xamarin-bug-4108
...
Fix for Xamarin's bug #4108 (BrowserCaps compatibility problem with MS.NET)
2012-05-24 17:11:23 -07:00
Konrad M. Kruczynski
fdae58587b
Double <-> Int64 conversion is much faster now.
...
Instead of using GetBytes and converting bytes to long, which
involves allocation and deallocation of small temporary array, the
simple cpu register load is in fact done now. This results in
a much faster operation.
2012-05-24 23:45:28 +02:00
Miguel de Icaza
6dbd060675
Merge pull request #283 from robwilkens/master
...
Bug #4786- fix: Mono.Data.Tds.Protocol.TdsConnectionPool.GetConnection() needs to have result set to null before looping back with goto
2012-05-24 13:50:28 -07:00
Miguel de Icaza
2e928fd718
Merge pull request #289 from alaendle/master
...
Force disposal of Sqlite commands with using-statements in order to better isolate the unit tests.
2012-05-24 13:35:07 -07:00
Miguel de Icaza
da25f624ed
Merge pull request #298 from ermshiperete/4921
...
Xamarin-4921: Fix Listbox.SelectedItem after adding sorted item
2012-05-24 13:30:46 -07:00
Miguel de Icaza
68069f0566
Merge pull request #297 from ermshiperete/4959
...
Xamarin-4959: Fix copy of clipboard data after app exits
2012-05-24 13:29:39 -07:00
Miguel de Icaza
fe3efe8ab3
Merge pull request #296 from ermshiperete/5116
...
Xamarin-5116: Fix pasting of text with upper-ASCII chars
2012-05-24 13:17:52 -07:00
Jeremie Laval
40a84cbe25
[corlib] Fix ConcurrentStack.TryPopRange and add tests. Fix #5304
2012-05-24 19:05:57 +01:00
Alex Rønne Petersen
f78e6f8fee
Merge pull request #301 from directhex/master
...
If Mono's configure script cannot determine the soname of libX11, assume libX11.so.6
2012-05-23 17:30:22 -07:00
Zoltan Varga
1f383813f9
Improve type load errors thrown by the JIT a bit.
2012-05-23 21:44:23 +02:00
Jo Shields
add24aaa1f
If Mono's configure script cannot determine the soname of libX11,
...
assume libX11.so.6
The old behaviour is to try a couple of folders to find libX11.so.4,
5, and 6, and if it can't find any of those, assume no soname at all
(i.e. libX11.so). It is reasonable to assume that users will be
running at least XFree86 3.0, so reasomable to assume libX11.so.6 will
be the soname in use.
The edge case "user compiles Mono without X.org installed" is much
more common than "user has X386 1.0 -> XFree86 2.1.1 installed in
a non-standard library folder, and expects a valid dllmap in
/etc/mono/config"
2012-05-23 18:12:47 +01:00
alexrp
7db9e34840
mono/metadata/gc.c: Fix warning due to declaration after statement.
2012-05-23 15:27:35 +02:00
Marek Safar
1479cf60a0
Remove System.Threading.LockRecursionException from mobile System.Core. Fixes #5192
2012-05-23 09:32:37 +01:00
Rodrigo Kumpera
75e931f6eb
Fix altstack check to work again on OSX with -O2.
...
* configure.in: The altstack check depends on raising
a sigsegv to verify if it works or not. A sigsegv, by its
own nature is born out of undefined behavior. Such a thing
the almighty C compilers are free to optimize in whatever
pleases them the most.
GCC, under -O2, when it can prove a given memory store will
lead to undefined behavior will simply remove it leaving no
trace back. The solution was to use a variable gcc can't get
frisky with.
This raises altstack on OSX back from the dead.
2012-05-22 18:48:23 -03:00
Zoltan Varga
cbaf09713f
Add an unhandled exceptions test to sdb.
2012-05-22 22:04:32 +02:00
Sebastien Pouliot
2bd0b5aa2d
Fix IsolatedStorageFile directory creation/deletion with rooted paths. Fix bug #5011
2012-05-22 14:37:13 -04:00
Rodrigo Kumpera
d1eddd33e4
Replace some g_assert with g_error.
2012-05-22 12:58:18 -03:00
Rodrigo Kumpera
2c5f69be54
sgen_hash_table_replace can now return the old value.
2012-05-22 12:58:17 -03:00
Rodrigo Kumpera
35321d3abc
sgen_hash_table_set_value can now return the old value.
2012-05-22 12:58:17 -03:00
Marek Safar
4dfe75e996
Fix test target for mono-shlib-cop
2012-05-22 08:16:02 +01:00
Zoltan Varga
083ff1ec0d
Remove a debug printf.
2012-05-22 01:07:29 +02:00
Zoltan Varga
e7f3bbad80
Fix altstack support in libgc by registering the bounds of the normal stack and the altstack with it.
2012-05-22 01:02:27 +02:00
Zoltan Varga
9755d7fdb2
Return the proxied type instead of TransparentProxy for object types in sdb.
2012-05-22 01:02:27 +02:00
Marek Safar
bb1d0dced9
Merge pull request #299 from ermshiperete/710512
...
Fix for Novell-710512 (TimeZone.GetUtcOffset) and failing tests
2012-05-21 13:15:02 -07:00
Eberhard Beilharz
7aa9026022
Novell-710512: Fix GetUtcOffset when called with UTC time
...
Adjust the behavior of the TimeZone.GetUtcOffset() method to
match the documentation. MSDN says: "If the value of the Kind
property is DateTimeKind.Utc, the method returns an offset equal
to TimeSpan.Zero". Previously we returned the difference between
the current time zone and UTC even when the passed in time was
in UTC.
Change-Id: Icaa233f079a74315ccf1ce95787629c37317b412
2012-05-21 18:01:01 +02:00
Rodrigo Kumpera
8917af002e
Fix a very rare hang on sgen.
...
* sgen-gc.c (restart_threads_until_none_in_managed_allocator):
When suspending threads, if a given thread was suspended on
a gc unsafe point we restart it until it land on a safe zone.
Since we restart the thread, it might die before we get the chance
to suspend it again, we take this into account except when waiting
for acks. We mistakenly waited for the same number of acks of the
restart step. It could have been reduced if a thread died.
This bug is very very hard to hit as it only happens on linux,
requires that a thread on an unsafe point dies right after been
restarted and it must not be a managed thread as those must take
the GC lock while cleaning up.
This sums up to a mostly theoretical bug that someone might
have observed once in the wild. We're better fixing it now
since further optimization work might make it easier to hit.
2012-05-21 12:37:12 -03:00
Eberhard Beilharz
0e4878e5eb
Add unit test for Novell-710512
...
Change-Id: Id541a554eb07205da45c4b7fdbfba2da1feda362
2012-05-21 16:29:29 +02:00
Eberhard Beilharz
a68a905d6b
Fix failing test Parse_InvalidShortDate()
...
Parsing a date/time depends on the local timezone.
This patch also fixes the assertions where expected and actual
value were backwards.
Change-Id: I6a024e97050470fb043bc0d4a97aa39624271fcc
2012-05-21 15:18:59 +01:00
Eberhard Beilharz
c2ffae4732
Fix failing tests
...
Change-Id: Ia0969271d3bf7bdfd78fe17160e09dcb1c278eda
2012-05-21 15:16:27 +01:00
Marek Safar
5dc6a43b84
Emit warning for uninitialized structs. Fixes #4852
2012-05-21 13:12:29 +01:00
Rolf Bjarne Kvinge
b0bfb057ed
Fix typo
2012-05-21 13:26:07 +02:00
Eberhard Beilharz
759d6501a5
Xamarin-4921: Fix Listbox.SelectedItem after adding sorted item
...
When we add an item to a sorted listbox the indices of the selected
items change and need to be updated.
Change-Id: Ia32849fe10480354835dcd48b37d326d612af04f
2012-05-21 11:28:55 +02:00
Eberhard Beilharz
444495ff9c
Xamarin-4959: Fix copy of clipboard data after app exits
...
Clipboard.SetDataObject allows to pass a copy parameter that
determines whether the data will be kept on the clipboard after
the app exits or not.
This patch implements this for X11 (or rather GTK).
Change-Id: If69e75239ea35432e44f32a8a5ba54f3fe1fb60a
2012-05-21 11:14:08 +02:00
Eberhard Beilharz
4989bf1040
Unit test for bug Xamarin-4959
...
Because the clipboard is a shared resource between applications
it is possible that the test sometimes fails for wrong reasons
if another app manipulates the clipboard just at the right time.
Change-Id: I1a52b62d2958ece35c8927172d94ab6ccb3183b0
2012-05-21 11:12:23 +02:00
Eberhard Beilharz
9cba040895
Xamarin-5116: Fix pasting of text with upper-ASCII chars
...
Text copied to the clipboard by another app may contain
text in Latin-1 with upper-ASCII characters instead of
the UTF-8 encoding we expect.
Also fixed problem unescaping characters when they are
followed by more text.
Change-Id: Ib8d746d42c1d34dccf8ddbf8db28e1515952fe05
2012-05-21 10:10:47 +02:00
Zoltan Varga
5a349bae39
Add support for remoting invokes to sdb. Fixes the runtime part of #4962 .
2012-05-20 15:30:44 +02:00
Miguel de Icaza
4366d3650e
Fix from Stephen McConnel for bug 5010
2012-05-19 00:51:31 -04:00
Rodrigo Kumpera
7cf8fd69e7
Avoid a deadlock when waiting for pending finalizers.
...
* gc.c: If the finalizer thread is delay started
we must ensure that we don't block waiting for finalizers
until it is live.
This is required as the delayed start could happen in
the blocked thread - and deadlock us.
2012-05-18 17:10:35 -03:00
Rodrigo Kumpera
0ed11d795c
Handle a race condition between thread registration and sgen's stop the world. Fixes bxc #1917 .
...
Since new threads can come and go while we're stopping the world, we must
ignore the new ones as they are not supposed to be usable before this STW
cycle.
Since thread registration takes the GC lock, once STW starts all new threads
can't register and thus touch managed memory. This means we can ignore all
of those not seen in the first suspend pass.
This bug and the patch was a contribution by Sam Lang.
Fixes #1917 .
2012-05-18 17:10:33 -03:00
Rodrigo Kumpera
67a4eadedf
Using libc's free as a constant to mean true is cute, but nothing say it better than TRUE.
2012-05-18 17:10:33 -03:00
Rodrigo Kumpera
6985d9a3bb
Parallel gotta be parallel. Parallel nursery should use parallel major allocator.
2012-05-18 17:10:32 -03:00
Rodrigo Kumpera
04a23b93aa
Make asserts more usefull.
2012-05-18 17:10:31 -03:00
Marek Safar
6630bd7c3a
Insert unattached attributes to AST also for enum members. Fixes #4666
2012-05-18 17:06:53 +01:00
Marek Safar
ee505daad9
Better error recovery from incomplete invocation expression. Fixes #4679
2012-05-18 17:06:53 +01:00
Rolf Bjarne Kvinge
b543eb4dd6
Sqlite: Map DATETIME to System.DateTime. Fixes #5078 .
2012-05-18 14:30:43 +02:00
Zoltan Varga
deed908992
Implement full-aot support for ftnptr->delegate conversion using a new MonoNativeFunctionWrapper attribute, which should be attached to the delegate which will be used to wrap the native function. Fixes #4718 .
2012-05-18 13:56:43 +02:00
Zoltan Varga
2b68f4bbd6
Implement support for OP_LOADR4_MEMBASE/STORER4_MEMBASE with big offsets on ARM. Fixes #5093 .
2012-05-18 00:50:34 +02:00
Marek Safar
a5578ead2c
Resolve lock temporary variables before any embedded statement. Fixes #4994
2012-05-17 21:40:15 +01:00
Marek Safar
9b9da98634
Merge branch 'master' of github.com:mono/mono
2012-05-17 13:58:09 +01:00
Marek Safar
f79acd3c52
Get full expanded interface list when checking for new slot interface implementation. Fixed #5110
2012-05-17 13:56:41 +01:00
Sebastien Pouliot
a0769006c6
Add fix and test case from bnc #650402
2012-05-16 16:52:17 -04:00
Rolf Bjarne Kvinge
7e8488dcf5
Add gitignore for Mono.Data.Sqlite
2012-05-16 22:18:50 +02:00
Rolf Bjarne Kvinge
43f0ab74b7
Sqlite: Close the command before the connection when CommandBehavior.CloseConnection is specified. Fixes #5058 .
2012-05-16 22:18:49 +02:00
Marek Safar
82169c2244
Add missing dist files
2012-05-16 19:36:46 +01:00
Marek Safar
644aa86a1c
This instance is not available in base context for anynymous method
2012-05-16 18:23:24 +01:00
Marek Safar
e7bfa90322
Don't report unresolved using clause error in eval mode multiple times
2012-05-16 17:01:28 +01:00
Jeremie Laval
b0dcb61630
[corlib] Fix NullRef when using dispose a CancellationTokenRegistration when the initial source has been disposed
2012-05-16 11:50:17 +01:00
Marek Safar
4b4308cf34
Implement DateTime::ToString format specifier for genitive month names. Fixes #4708
2012-05-15 18:34:21 +01:00
Marek Safar
8fc6e042e0
Fix some existing datetime tests
2012-05-15 16:56:36 +01:00
Marek Safar
e8fdf00f45
Add gitignore
2012-05-15 13:44:41 +01:00
Marek Safar
2e290094d7
Update locale builder tool
2012-05-15 13:35:39 +01:00
Marek Safar
22f03e5a22
Update locale builder tool
2012-05-15 13:29:41 +01:00
Marek Safar
9d5de96540
Update culture infos and implement missing or not implemented members
2012-05-15 09:44:22 +01:00
Sebastien Pouliot
a61485e0ca
newer nunit does not require a [TestFixture] attribute and made those fixture fail. Making them abstract fix this
2012-05-14 09:16:28 -04:00
Zoltan Varga
1081bdab8a
Check return type compatibility for inlined methods as well. Fixes #5056 .
2012-05-14 12:16:20 +02:00
Atsushi Eno
22a4d50a47
Make use of GetPrefixOfNamespace() in XElement.ToString(). Fixed bug #3972 .
2012-05-14 18:25:56 +09:00
Atsushi Eno
cee1998d08
Add Xml declaration even for such document that lacks XDeclaration.
...
Fixed bug #4850 .
2012-05-14 17:24:32 +09:00
Atsushi Eno
cac72ba927
XNodeNavigator could be used for a node tree without XDocument, so make it work for such case.
...
Fixed bug #4690 , patch by eb1 sil.org.
2012-05-14 16:31:54 +09:00
Atsushi Eno
76275d015f
In XNodeNavigator, do not start text node skip from current node.
...
Fixed bug #4739 , patch by eb1 sil.org.
2012-05-14 16:23:06 +09:00
Zoltan Varga
8d920a602c
Fix mono_nullable_box () in full-aot mode. Fixes #5045 .
2012-05-14 03:13:16 +02:00
Zoltan Varga
654e322712
Fix byref stringbuilder marshalling. Fixes #5007 .
2012-05-14 02:40:44 +02:00
Zoltan Varga
fd5b4a4327
Implement out support in byref string marshalling. Fixes part of #5007 .
2012-05-13 16:00:30 +02:00
Marek Safar
0b315c59ae
Merge pull request #295 from i59/patch-1
...
CSharpCodeCompiler ctor: Corrected Windows mcs path, now resides in 4.5 ...
2012-05-13 01:33:25 -07:00
Filip Lundgren
b8e54c3796
CSharpCodeCompiler ctor: Corrected Windows mcs path, now resides in 4.5 directory.
2012-05-13 02:42:48 +03:00
Miguel de Icaza
abad830415
Merge pull request #293 from viniciusjarina/fix3258
...
Fix3258
2012-05-11 07:44:12 -07:00
Rolf Bjarne Kvinge
72cabbc10b
If the dllname for a dllimport is a full path, try that exact path before anything else. Fixes #4678 .
2012-05-11 01:06:42 +02:00
Neale Ferguson
4cd2ccc43e
Add seq_point instruction to s390x
2012-05-10 13:45:36 -04:00
Sebastien Pouliot
42daa4fd3a
Add some stubs for methods required by the portable class library profiles
2012-05-10 08:45:13 -04:00
Sebastien Pouliot
99b5076786
Add System.Windows.Input.ICommand which is part of 4.5 and the portable class libraries
2012-05-10 08:45:12 -04:00
Zoltan Varga
fb4dc80ca8
Stop at catch clauses when doing a step over in sdb. Fixes #4851 .
2012-05-10 01:27:17 +02:00
Rodrigo Kumpera
d4ab4e3d92
Merge pull request #294 from madewokherd/createsuspended
...
Fix race condition in mono_threads_CreateThread.
2012-05-09 14:02:16 -07:00
Vincent Povirk
78a5d724e3
Fix race condition in mono_threads_CreateThread.
2012-05-09 15:35:40 -05:00
Jonathan Chambers
9c17da304c
Include config.h and use TARGET_X86 and TARGET_AMD64 instead of i386 and __x86_64__.
2012-05-09 15:38:01 -04:00
Jeffrey Stedfast
8187fda98f
Added call to GC.SupressFinalize() in CFObject.Dispose()
2012-05-09 14:47:20 -04:00
Sebastien Pouliot
a929787f0a
Small adjustments needed for Profile[1-4] of the Portable Class Libraries.
2012-05-09 14:36:21 -04:00
Sebastien Pouliot
1eb623e07a
Thread.Finalize is needed in Profile3 of the Portable Class Libraries.
2012-05-09 14:36:21 -04:00
Sebastien Pouliot
e8c1345162
BinaryWriter.Dispose is needed in Profile[1-4] of the Portable Class Libraries. Fix bug #4871
2012-05-09 14:36:21 -04:00
Jeffrey Stedfast
544aae98c2
[MacProxy] Fixed refcounting and got rid of unneeded attribute flags
2012-05-09 10:45:09 -04:00
Jeffrey Stedfast
0fd6a5a564
WebRequest.GetDefaultWebProxy() must not assume the type of the system proxy.
2012-05-08 18:59:13 -04:00
Jeffrey Stedfast
197498d047
[System.Net.WebRequest] Implemented new and improved proxy support on Mac/iOS
2012-05-08 18:31:05 -04:00
Vinicius Jarina
aa6c3ddc4c
Added unit test for the bug #3258 (Serialize|Deserialize DateTimeOffset?)
2012-05-08 16:53:15 -03:00
Vinicius Jarina
bd167248e9
Fix XML serialization of DateTimeOffset?. Fixes #3258
...
The nullable DateTimeOffset was not properly handled when serialized.
The deserialization changed to work with DateTimeOffset?.
Avoided "i:type" attribute when serializing Nullable type.
2012-05-08 16:14:23 -03:00
Vinicius Jarina
4ef4e5844b
Removed code commented
2012-05-08 16:14:22 -03:00
Rodrigo Kumpera
a74a8c7c9c
Merge pull request #292 from QuickJack/master
...
Remaining changes of my corrupted change request #247
2012-05-08 11:38:45 -07:00
QuickJack
117ceb10b7
Fixes a waring in System.Configuration.
2012-05-08 20:28:07 +02:00
Jeffrey Stedfast
0c0b37849c
Fixed capitalization
2012-05-07 15:38:19 -04:00
Jeffrey Stedfast
4419f87b75
[Mono.Debugger.Soft] Re-added Dispose() method on VirtualMachine for API compat.
2012-05-07 14:57:18 -04:00
Jeffrey Stedfast
c587916ef9
[Mono.Debugger.Soft] Fixed building of tests
2012-05-07 14:50:33 -04:00
Rodrigo Kumpera
f6ff534aa3
When cleaning up the finalizers of a domain, do it in a way that reduces the chance of leftover objects.
...
* gc.c (finalize_domain_objects): When cleaning up a domain, we run two kinds of finalizers,
those that have already been queued and those for objects that remain alive.
A common problem we need to deal is that some finalizers allocate other finalizable objects
when doing seeminly trivial operations such as String.IndexOf - which might require the Thread
object of the finalizer thread to be instantiated.
We handle those new objects by draining the registered finalizers set until none shows up. This fails
if we run the queued finalizers after that.
The order onto which finalizers are run on domain unload is unspecified and the new behavior can
be argued to be more natural.
2012-05-07 11:39:02 -03:00
Rodrigo Kumpera
3ff9c8821e
Fiz a domain unload race regarding finalizable objects.
...
* sgen-gc.c (mono_gc_clear_domain): It's possible to have a finalizable object
survive mono_domain_finalize and leak into mono_domain_free, so we make sure this
won't crash by removing from the fin hashtable all objects that belong to the
doomed domain.
2012-05-07 11:39:02 -03:00
Zoltan Varga
f473585c11
Raise an exception instead of aborting if a pinvoke method is not found in full-aot mode.
2012-05-06 15:04:29 +02:00
Rodrigo Kumpera
c3ea08d937
Add a missing $(srcdir) to bug-3903 build command. Patch by KISHIMOTO, Makoto.
2012-05-04 10:33:05 -03:00
Zoltan Varga
a381bdba51
Merge pull request #290 from jbevain-forks/methodbodymirror-exceptions
...
Add exception handlers to MethodBodyMirror
2012-05-04 02:08:23 -07:00
Jb Evain
583cab9f80
Add exception handlers to MethodBodyMirror
2012-05-04 09:13:22 +02:00
Jeffrey Stedfast
f1f1ba6a16
[Mono.Debugger.Soft] Don't make Connection disposable.
2012-05-03 18:08:43 -04:00
Atsushi Eno
fe832f6b09
Merge pull request #286 from dafergu2/bug4794
...
Fix DataContractSerializer with duplicate qname
2012-05-03 11:30:51 -07:00
Atsushi Eno
c5a9e2fda0
Merge pull request #288 from ewxrjk/xmlwriter
...
Fix XmlTextWriter's use of NewLineHandling.
2012-05-03 07:16:37 -07:00
Andreas
7061a65073
Force disposal of Sqlite commands with using-statements in order to better isolate the unit tests.
2012-05-03 14:42:18 +02:00
Robert Wilkens
6df183f52e
This is a minor change to earlier commit which removes a commented out
...
sql server that should not have been there. It changes nothing functionally,
but the server is a temporary server, so referencing it didn't make sense.
2012-05-03 08:20:37 -04:00
Robert Wilkens
fe74cf84a0
This is the addition of a quick and dirty NUnit test for Bug 4786
...
This bug was fixed in another commit/push by Robert Wilkens (me).
This NUnit test will fail without the patch (It will raise a
NullReferenceException from within mono), but with the patch for that
bug it will not raise an exception and the test will exit cleanly.
Please note, the top of this patch source sets up a temporary network
socket to listen to a port which pool.GetConnection() simply tries to connect
to. No data is transfered so nothing needed to be done other than to
call Listen() on that socket which was bound to the port. If the listen fails,
it means something else is listening already, which is fine, so we ignore
any excpetions from this part of the code (catch and ignore).
2012-05-03 08:05:55 -04:00
Zoltan Varga
a5b2ba5b5b
More fixes for passing/receiving nullables in sdb. Fixes #4659 .
2012-05-03 13:53:55 +02:00
Richard Kettlewell
b79b1ceaf5
Fix XmlTextWriter's use of NewLineHandling.
...
- Move the setting of newline_handling early enough that Initialize()
can see it.
- Reduce the set of characters that trigger the slow path for
attribute values for the NewLineHandling.None case.
- Rewrite the handling of \t, \r and \n to match the MS docs
(which match the observed behavior of their implementation)
- Add some tests.
2012-05-03 10:49:54 +01:00
Marek Safar
538641cceb
Merge branch 'master' of github.com:mono/mono
2012-05-03 09:00:48 +01:00
Marek Safar
6e11de0a36
Fix parsing of -w argument. Fixes #4853
2012-05-03 08:59:20 +01:00
Dave Ferguson
3b6cb0a486
Fix DataContractSerializer with duplicate qname
...
- Fix bug 4794 by searching the SerializationMap with both type and
qname in all but several cases (see bug report comments)
- Add separate list for known types to mimic behavior of the .NET
runtime
- Make previous test fixtures public so that the unit tests will be run
- Remove unused private method
- Add unit test for bug 4794
2012-05-03 01:56:17 -04:00
Zoltan Varga
91a8d3cae2
Reset the async state and frame info for still running threads when resuming the vm in sdb. Fixes #4737 .
2012-05-03 01:28:39 +02:00
Jeffrey Stedfast
dbdf6d104e
[Mono.Debugger.Soft] Prettified PrimitivateValue ToString for null values
2012-05-02 16:05:55 -04:00
Zoltan Varga
4759537e60
Merge pull request #285 from joncham/eglib-fixes
...
eglib fixes for windows
2012-05-02 10:30:46 -07:00
Jonathan Chambers
cfa274f02d
Add tests and correctly handle using '/' in windows paths.
2012-05-02 13:25:20 -04:00
Jonathan Chambers
ce5f9b8fef
Test paths on windows using valid windows paths.
2012-05-02 13:16:04 -04:00
Jonathan Chambers
fedaf9a96d
Try try and use *nix style paths on Windows in uri tests.
2012-05-02 13:05:08 -04:00
Jonathan Chambers
7a02a49a23
Adjust linker path to find eglib.lib for test_eglib project.
2012-05-02 12:59:44 -04:00
Marek Safar
80d4f6b4e0
Add more tests
2012-05-02 16:54:07 +01:00
Marek Safar
fe4a00dd54
Update wrong test
2012-05-02 15:33:20 +01:00
Marek Safar
26b54ed11a
Remove empty cctor
2012-05-02 10:50:03 +01:00
Marek Safar
e1d9737063
Remove expensive font initialization from default ThemeWin32Classic constructor, it's used indirectly by resgen
2012-05-02 10:46:07 +01:00
Marek Safar
fdf5ca4a32
Check warning number for nowarn option as well
2012-05-02 10:46:07 +01:00
Gonzalo Paniagua Javier
9da7c4b8fd
Do not raise the client cert callback twice.
...
Reverts my own patch from 2009.
2012-05-01 15:09:56 -04:00
Marek Safar
077f824a8c
Merge pull request #282 from dafergu2/bug4793
...
Fix UriTemplate.Match to work with escaped uris
2012-05-01 12:08:39 -07:00
Marek Safar
4ffa40e9dd
Remove expensive font initialization from default Theme constructor, it's used indirectly by resgen
2012-05-01 20:05:20 +01:00
Marek Safar
baaa7780a5
Merge pull request #284 from pmsanford/patch-1
...
Fix compile error in VS Project for csharp
2012-05-01 10:53:19 -07:00
pmsanford
8bd5608b3d
Fix compile error in VS Project for csharp (this broke as a result of SourceMethodBuilder being moved into its own source file)
2012-05-01 14:49:53 -03:00
Robert Wilkens
58c274a1c0
See Reported Bug #4786 in bugzilla which this attempts to resolve (and seems to succesfully).
...
This is a one line change: result = null; had to be set before going back to the 'retry' point in GetConnection..
This is/should-be safe because we had just disconnected result a few lines earlier.
Without this change, under certain conditions which would flag a retry, when it went to the retry point
it wouldn't reset 'result', and as a result the main loop at the top of the GetConnection() function would
be skipped (it has -- while (result == null) -- at the retry point, and it would always be not null when it reached
that on retry), after which point it would just continue to retry on the same result indefinitely, which would eventually
result in an exception being raised.
2012-05-01 13:00:45 -04:00
Marek Safar
edfeb7d0a4
Emit iterator finalizer once all nested anonymous methods are resolved. Fixes #4799
2012-05-01 17:09:42 +01:00
Dave Ferguson
825c7a9b79
Fix UriTemplate.Match to work with escaped uris
...
Fixes bug 4793
2012-05-01 08:42:02 -04:00
Marek Safar
118782916a
Implement System.Net.Http content upload
2012-05-01 11:00:39 +01:00
Marek Safar
ec7ed0e554
Less debug noise on console
2012-04-30 23:14:13 +01:00
Gonzalo Paniagua Javier
05f25eaaaa
Add support for client certificates to HttpListener
...
Fixes bug #3969 .
2012-04-30 17:31:01 -04:00
Gonzalo Paniagua Javier
033a2536df
.NET 4.0+ flushes the request stream when content length is not set
...
Fixes bug #4640
2012-04-30 14:18:53 -04:00
Marek Safar
4f823c55e8
Implement Guid::ToString("X")
2012-04-30 19:02:19 +01:00
Marek Safar
5b57f80218
Fix Guid::CompareTo. Fixes #4721
2012-04-30 19:02:19 +01:00
Jonathan Chambers
1ef1593a0d
Use TaskConstants in MOBILE profile as well.
2012-04-30 12:46:42 -04:00
Jeffrey Stedfast
ea20a1a7e5
[Mono.Debugger.Soft] Updated PointerValue
2012-04-30 12:10:17 -04:00
Duncan Mak
20bf543db3
Add missing semicolon to fix the build.
2012-04-30 00:28:42 -04:00
Gonzalo Paniagua Javier
1af679d4d9
Merge pull request #281 from JamesB7/master
...
Bug 4723 fix: Socket bounds checks not correct for two's complement math
2012-04-29 21:08:22 -07:00
JamesB7
23df5e1d5b
Fixed a typo and a whitespacing mistake.
...
Also made CheckRange more descriptive - no performance loss since the conditions were ORed before and so both got checked anyway.
2012-04-29 19:40:38 -03:00
JamesB7
d9d66c6465
Finished making the changes.
...
There are two types of checks that were being done before:
(1) offset < 0? size < 0? offset + size > buffer.Length? This is trivial to get around. If I make both offset and size positive but have the sum overflow, it will pass all three checks.
(2) offset in range? size in range? If the buffer is very large this might run into overflow issues with its checking, though fine most of the time...
Is the offset in range? And is the size in range against buffer.Length - offset (which we know to be >= 0 from the earlier offset check)? This method of bounds checking is not in any danger from two's complement overflows.
2012-04-29 19:34:47 -03:00
JamesB7
c03eccac3c
Fix for two's complement overflow. Doing it just for BeginReceive first in case GitHub's code editor screws up again.
2012-04-29 19:15:14 -03:00
Zoltan Varga
ec1ee63871
Insert sequence points based on the debug info emitted by mcs instead of littering the JIT with heuristics.
2012-04-28 15:03:26 +02:00
Zoltan Varga
1e7bc8f5af
Revert some debug logging.
2012-04-28 14:28:25 +02:00
Zoltan Varga
328fb471cb
Fix asserts/hangs when random addresses are passed to mono_aot_find_jit_info ().
2012-04-28 09:35:25 +02:00
Jeffrey Stedfast
b417f35336
[Mono.Debugger.Soft] Added PointerValue.cs
2012-04-27 20:49:07 -04:00
Zoltan Varga
8702fe79f8
Add support for --llvm option to mono_jit_parse_options (). Fixes #4704 .
2012-04-28 00:07:46 +02:00
Gonzalo Paniagua Javier
0ec96ead95
Do not attempt to write 0 bytes.
...
Fixes bug #4669 .
2012-04-27 15:43:52 -04:00
Gonzalo Paniagua Javier
d4326f2103
Do not send all the DNs on the server upon establishing a connection.
2012-04-27 15:07:52 -04:00
Marek Safar
12a948c37f
Switch Cecil to common git://github.com/mono/cecil.git
2012-04-27 19:43:16 +01:00
Marek Safar
97cc622799
Don't create temporary module builder for dynamic context, compiler no longer relies on SRE
2012-04-27 19:17:02 +01:00
Marek Safar
3c9dbb0d28
Fix range check in string::Split
2012-04-27 17:25:57 +01:00
Duncan Mak
049e89e85f
Fix the linux build that broke because of 786db71d
2012-04-26 17:58:39 -04:00
Zoltan Varga
597ad4d8ab
Emit seq points after all call which return a value.
2012-04-26 20:02:38 +02:00
Zoltan Varga
969e62d053
Remove the g_mem_set_vtable () code, eglib doesn't support it.
2012-04-26 20:02:38 +02:00
Jeffrey Stedfast
feaece0354
[xbuild] We still need to throw if we fail to import something.
2012-04-26 13:51:10 -04:00
Marek Safar
bfe4ded32a
Pass correct cancellation token to Task::Delay continuation
2012-04-26 17:21:03 +01:00
Marek Safar
92d8961e0b
Canonicalize path on windows. Fixes #4625
2012-04-26 16:17:19 +01:00
Marek Safar
30cfc34b1d
Fix simple return from async non generic Task methods
2012-04-26 15:35:08 +01:00
Marek Safar
15273f2e87
More work on System.Net.Http
2012-04-26 13:50:05 +01:00
Marek Safar
c4c9b306ca
Add System.Net.Http project files
2012-04-26 13:50:04 +01:00
Marek Safar
0b1498f1a2
Capture anonymous method variables into separate storey when inside iterator. Fixes #4641
2012-04-26 13:50:04 +01:00
Marek Habersack
786db71db8
Include MVC3 and aspnetwebstack assemblies pkg-config files
2012-04-26 12:14:51 +02:00
Neale Ferguson
be0123a22e
Revert previous fix for 3205
2012-04-25 17:49:19 -04:00
Rodrigo Kumpera
186eebdebb
Merge pull request #279 from alexrp/master
...
Replicate .NET behavior for exceptions in the finalizer thread.
2012-04-25 14:07:27 -07:00
Neale Ferguson
36a57a0e92
Fix bug #3205
2012-04-25 15:49:02 -04:00
Marek Safar
9357719cdb
Issue error for recursive generic constructors. Fixes #4647
2012-04-25 19:42:42 +01:00
Jérémie Laval
36da304d01
Fix constructor call in QueryConcatNode
2012-04-25 19:29:20 +01:00
alexrp
59883a0399
Replicate .NET behavior for exceptions in the finalizer thread.
...
On .NET, when an exception occurs in the finalizer thread, it is
printed, the AppDomain.UnhandledException event is raised, and
the runtime is aborted (exact same thing as what happens when an
exception is thrown in a thread pool thread).
We now do the same.
Note that this is a breaking change; previously, we just silently
swallowed exceptions that occurred in the finalizer thread. Given
this, a test had to be adjusted (and renamed). An extra test has
been added to verify that the UnhandledException event is raised
correctly.
2012-04-25 19:05:34 +02:00
Marek Safar
faa06c117a
Merge pull request #278 from JamesB7/patch-1
...
See bug 4543: This fixes Mono's Windows serial support for COM10+, ...
2012-04-25 07:03:54 -07:00
Marek Safar
bfea12c482
Add exception ignore mode to HttpWebRequest
2012-04-25 14:26:56 +01:00
Marek Safar
9c4d2fc20f
Make System.Net.Http.HttpClient tests more robust
2012-04-25 14:26:56 +01:00
Zoltan Varga
8960ec52a5
Turn on global single stepping for STEP_OUT too. Fixes #4549 .
2012-04-25 12:33:51 +02:00
Zoltan Varga
a4d0184c2b
Allow setting nullable values in sdb. Fixes #4385 .
2012-04-25 11:11:19 +02:00
Rodrigo Kumpera
11f6ebea80
Make sure no live object is left unscanned before we process disappearing links & finalizable objects.
2012-04-25 00:00:00 -03:00
Rodrigo Kumpera
8379d2c805
Add regression test for #3903 .
2012-04-24 16:39:11 -03:00
Rodrigo Kumpera
5f3f4fb110
Use MonoClass::element_class for non array types when computing array interfaces. Fixes #3903 .
...
* class.c (get_implicit_generic_array_interfaces): When computing the interfaces
of Array::InternalEnumerator<T> don't use element_class for array types as we
only want to do that to drop from enum to base type and uint->int.
Fixes #3903 .
2012-04-24 16:39:11 -03:00
Marek Safar
0d147007c6
Fix WebMatrix.Data tests
2012-04-24 18:14:04 +01:00
Marek Safar
d4f6c46e62
Fix setting cookie port from uri
2012-04-24 18:12:36 +01:00
JamesB7
caadb77507
This fixes Mono's Windows serial support for COM10+, while also not breaking compatibility with Mono for Windows programs that rely on the earlier incorrect behavior.
2012-04-24 13:33:16 -03:00
alexrp
d8cc1eabbd
'make check' build fixes in Mono.Parallel and WebMatrix.Data.
2012-04-24 17:51:47 +02:00
Marek Safar
8f5d249d2b
Add missing reference
2012-04-24 16:23:24 +01:00
Marek Safar
27ebd353cd
Fix programs clean target
2012-04-24 15:36:09 +01:00
Marek Safar
50e6b2e3c0
No tests for xbuild.exe
2012-04-24 15:35:38 +01:00
Marek Safar
502ff40579
Revert part of a93835169b
2012-04-24 10:09:31 +01:00
Gonzalo Paniagua Javier
9007f5e043
Avoid deadlocking when getting the ServicePoint
...
SSL connections were deadlocking when getting the service point for the
connection in the last few releases of 2.10.x and in master.
Fixes bug #4599 .
2012-04-24 04:54:54 -04:00
Zoltan Varga
8847bd4260
Make sure we are processing the wrappers during single stepping instead of the icall methods. Fixes #4519 .
2012-04-24 10:20:18 +02:00
Miguel de Icaza
a93835169b
AOT not supported on Windows, warn the user
2012-04-24 00:08:16 -04:00
Miguel de Icaza
cad2cb445e
Add these to MOBILE as well
2012-04-23 18:49:48 -04:00
Rodrigo Kumpera
972d52774f
Handle type merging when there is a shared iface. Fixes #4180 .
2012-04-23 15:38:20 -03:00
Jeremie Laval
e94a4514f7
[build] Try to enable parallel make on RPM build
2012-04-23 19:17:08 +01:00
Marek Safar
907bb552a5
Implement more System.Net.Http tostring methods
2012-04-23 18:44:39 +01:00
Sebastien Pouliot
338dbe42de
Fix leak by releasing the certificate elements from the CFArray since it was created with a null CFArrayCallBacks
2012-04-23 13:40:58 -04:00
Sebastien Pouliot
3a33710b7e
Fix leak when an error message is returned from sqlite3_exec
2012-04-23 13:34:42 -04:00
Rodrigo Kumpera
6b9f06b57c
Merge pull request #277 from konrad-kruczynski/master
...
FIx for problem with MRES.Wait(timeout, token) with not immediate Set
2012-04-23 09:38:30 -07:00
Marek Safar
46dacaa4cb
Bump test timeout
2012-04-23 17:06:43 +01:00
Marek Safar
92c0b7cff2
Disable failing test
2012-04-23 17:02:32 +01:00
Marek Safar
7b63847907
Add another partially working parser hack. Fixes #4556
2012-04-23 17:02:32 +01:00
Konrad M. Kruczynski
73ca5b067f
Another fix and unit test added.
...
Now all three possible cases are tested (and working).
2012-04-23 15:44:16 +02:00
Zoltan Varga
7c1984f41d
Avoid setting thread->abort_exc in mono_raise_exception_with_ctx too ().
2012-04-23 15:19:43 +02:00
Zoltan Varga
200c6e7274
Avoid setting thread->abort_exc in mono_raise_exception (), it was already done. Fixes #4413 .
2012-04-23 15:15:17 +02:00
Zoltan Varga
628e025476
Avoid keeping the dummy values computed by setup_interface_offsets () when it is called from mono_class_setup_interface_offsets (). Fixes #4440 .
2012-04-23 14:34:44 +02:00
Konrad M. Kruczynski
83c06e2b22
Fixes as per the Rodrigo's comment.
...
Wait now throws an exception in case of cancellation token was
cancelled.
2012-04-23 12:02:09 +02:00
Miguel de Icaza
3038872e19
When running in MonoTouch, compare against a reference image, instead of generating the reference image
2012-04-22 21:11:09 -04:00
Rodrigo Kumpera
20793f3f3c
Add concurrent-sweep to sgen's testing matrix.
2012-04-22 21:09:27 -03:00
Rodrigo Kumpera
5b3f143191
Fix concurrent sweep thread start code to actually work.
2012-04-22 21:09:26 -03:00
Konrad M. Kruczynski
e6e63c0aa6
Fix for bug in ManualResetEventSlim.
...
The problem occured when one waited for an event with the
cancellation token and the wait was successful but not
immediate. In that case Wait returned false instead of true,
because of wait handle number mismatch. Also the unit test was
added.
2012-04-22 22:24:14 +02:00
Miguel de Icaza
78ad4f8c1f
Add inline api docs for mono_dll_insert
2012-04-20 21:26:19 -04:00
Rodrigo Kumpera
e778f28877
Update man page with valid values for new parameters.
2012-04-20 20:35:22 -03:00
Duncan Mak
170d0dda1c
Remove the element if SetElement sets the value to null.
2012-04-20 17:28:41 -04:00
Miguel de Icaza
0c248689d3
Bump version
2012-04-20 16:24:37 -04:00
Jeremie Laval
05eca7f0ee
[monodoc] Fix XSL issue with Microsoft/.NET XSL compiler
2012-04-20 19:52:54 +01:00
Jeremie Laval
e0f93b755b
[monodoc] Fix XSL extension object incompatibility to run on Windows/.NET
2012-04-20 19:52:54 +01:00
Gonzalo Paniagua Javier
7dd124f59c
Avoid key duplication error from bogus ContentType
...
Fixes bug #4542 .
2012-04-20 13:57:22 -04:00
Marek Safar
284234c359
Fix aspnetwebstack
2012-04-20 16:13:25 +01:00
Marek Safar
88c7f11d51
Report less cascading errors
2012-04-20 16:12:43 +01:00
Marek Safar
40822aea36
Remove runtime regression tests, nobody is going to fix them anyway
2012-04-20 16:12:42 +01:00
Marek Safar
8e68cca941
Avoid duplicate errors on indexer parameters
2012-04-20 16:12:42 +01:00
Marek Safar
f8a9982c5b
Don't run member verification twice on nested types
2012-04-20 16:12:42 +01:00
Marek Safar
074e6665e6
Fix wrong error message
2012-04-20 16:12:42 +01:00
Marek Safar
062c246dcc
Clear session error messages after successful type inference
2012-04-20 16:12:41 +01:00
Marek Safar
bec31f6745
Add new test
2012-04-20 16:12:41 +01:00
Marek Safar
c23a7f49d1
Fix task delay tests
2012-04-20 16:12:41 +01:00
Marek Safar
efc5ffb373
Implements System.Net.Http MultipartContent
2012-04-20 16:12:41 +01:00
Atsushi Eno
73a79debf6
add bonus mobile build in System.Data.Linq (not sure if it works well yet).
2012-04-20 23:11:34 +09:00
Miguel de Icaza
0e011eb7af
Some small changes to assist Coregraphics System.Drawing
2012-04-20 00:36:55 -04:00
Pablo Ruiz Garcia
05325691a2
Fix browser capabilities compatibility with ms.net by 1) Avoid issues with capabilities defined with same name, but diferent case. and 2) favor majorversion/minorversion capabilities, but fallback to majorver/minorver if not found, to preserve compatibility with previous versions.
2012-04-05 20:22:19 +02:00
mtausig
42fad922f5
Update mcs/class/corlib/System.IO/DirectoryInfo.cs
2012-03-07 12:58:29 +01:00