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
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
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
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
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
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
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
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
Gerardo García Peña
34222916bf
Merge branch 'master' of https://github.com/mono/mono
2013-04-29 13:02:18 +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
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
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
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
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
Jack Pappas
fe506dd7c4
Use IPPROTO_TCP instead of SOL_TCP for cross-platform compatibility.
2013-02-23 00:24:14 -05:00