Rolf Bjarne Kvinge
5c711ea747
Add a monotouch_runtime corlib sources.
2015-04-29 19:02:49 +02:00
Zoltan Varga
450e1ebe7b
[jit] Use mini_get_underlying_type () in mini_type_is_vtype () so it works with partial sharing.
2015-04-23 18:44:29 -04:00
Ludovic Henry
3e4b814879
[threadpool] Remove native call to Socket.(Receive|Send)_internal
...
This is now done in managed in SocketAsyncWorker.cs since 0c9dcf73c2
2015-04-23 21:45:28 +01:00
Ludovic Henry
0fdf8d387c
[threadpool-ms] Fix race condition
2015-04-23 20:47:26 +01:00
Zoltan Varga
b0e63a8b1a
[runtime] Fix the arm build.
2015-04-23 13:25:32 -04:00
Rolf Bjarne Kvinge
33860f8afd
[System.Data] Bring back PropertyAttributes, StrongTypingException and TypedDataSetGeneratorException to the mobile build.
2015-04-23 13:02:46 +02:00
Rolf Bjarne Kvinge
8d876c3d58
[mono-api-html] Use html5-compatible code for colorizing (i.e. css instead of font/s/u).
2015-04-23 12:24:11 +02:00
Rolf Bjarne Kvinge
1ddaf1f4d4
[mono-api-html] Ignore non-important attribute differences and other improvements.
...
* Properly colorize removed types (as red).
* Print 'NotSerialized' field attribute change (as not breaking).
* Ignore 'HasSecurity' and 'PInvokeImpl' method attribute differences.
* Render property indexers (and detect name change in property indexer parameters).
* Improve debug spew to print proper method/field attributes.
2015-04-23 12:23:21 +02:00
Zoltan Varga
4cf2a9681b
Merge pull request #1731 from mono/fix-abort-arm-thumb
...
[arm] Fix aborting of threads in managed code
2015-04-23 03:05:09 -04:00
Vlad Brezae
212e286e9e
[arm] Fix aborting of threads in managed code
...
When installing the async callback in the context we need to update the thumb bit accordingly.
2015-04-22 23:45:45 +00:00
Radek Doulik
facbf81e05
[pdb2mdb] fix decimal values reading
...
apply patch from monodroid
Author: Dean Ellis <[email protected] >
Date: Thu Apr 17 12:34:00 2014 +0100
[MSBuild] Error MSB3375 when attempting to debug PCL in VS
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=18757
The code to read the decimal values from
the pdb did not work in all circumstances.
This change uses the recommended code for
reading the bits for a decimal from MSDN
see http://msdn.microsoft.com/en-us/library/system.decimal.getbits.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-3
It also includes an ArgumentException
handler just in case it fails.
2015-04-22 22:46:49 +02:00
Alex Rønne Petersen
01b874d09f
Merge pull request #1728 from akoeplinger/revert-xp
...
Revert "[msvc] Change target MSVC release from v120 to v120_xp"
2015-04-22 18:54:10 +02:00
Rodrigo Kumpera
fa9daf9c7a
[threading] Remove dead code that was used only by old suspend.
2015-04-22 12:20:16 -04:00
Alexander Köplinger
1347f7421d
Fix comment that still referred to Windows XP in configure.ac
2015-04-22 18:15:25 +02:00
Alexander Köplinger
b271f01f24
Revert "[msvc] Change target MSVC release from v120 to v120_xp"
...
This reverts commit 577482e336 .
We dropped XP support (see https://github.com/mono/mono/pull/1723 ),
so this is no longer necessary.
2015-04-22 18:14:40 +02:00
João Matos
bf0d9bb19b
Merge pull request #1725 from alexanderkyte/cache_crash
...
[System.Runtime.Caching] Added missing locking around cache's sortedset.
2015-04-22 15:29:32 +01:00
João Matos
5b64b929f0
Merge pull request #1726 from jaredpar/build-roslyn
...
Improve Visual Basic build support
2015-04-22 15:27:21 +01:00
Sebastien Pouliot
669572d6c9
[linker] Mark SecurityDeclarations [ #28918 ]
...
Security declarations looks very similar to custom attributes - but
they are not (e.g. a different metadata table).
They need to be marked, just like other metadata, by the linker because
they can encode types that won't show up in the type (or assembly)
references.
Ignoring this can create an invalid binary (the kind that even Cecil
can't load back for further processing).
2015-04-21 21:42:11 -04:00
Sebastien Pouliot
a497d8ad0c
[linker] Resolve AssemblyName[Reference] when sweeping [ #29211 ]
...
The exact name (e.g. version) might differ between the original
AssemblyNameReference and the one being used (e.g. PCL).
To make sure we remove unused references we need to resolve
the AssemblyNameReference into AssemblyDefinition and then
continue the sweep based on the _new_ AssemblyNameReference.
2015-04-21 21:29:56 -04:00
Sebastien Pouliot
e5dada307a
Bump referencesources to restore compatibility with UnmanagedType enum
2015-04-21 21:26:35 -04:00
Zoltan Varga
717ce03d2d
[sdb] Remove more unused code.
2015-04-21 19:07:23 -04:00
Zoltan Varga
551d40cb19
[sdb] Remove more unused interrupt code.
2015-04-21 19:01:51 -04:00
Zoltan Varga
33014196c9
[sdb] Remove unused mono_debugger_agent_thread_interrupt () function.
2015-04-21 18:54:44 -04:00
Zoltan Varga
737bc2e353
[sdb] Remove an osx workaround which isn't needed with the new suspend code.
2015-04-21 18:50:07 -04:00
Zoltan Varga
9dfcb07f16
Fix some warnings.
2015-04-21 18:39:53 -04:00
Rodrigo Kumpera
81a9fcc9c7
Merge pull request #1723 from madewokherd/winvista
...
Bump Windows requirement to Vista.
2015-04-21 17:03:22 -05:00
Rodrigo Kumpera
9f92e1c7fd
[runtime] It's spring cleaning in MonoInternalThread. Remove 8 (yes, eight) unused fields.
2015-04-21 17:50:50 -04:00
Rodrigo Kumpera
43971cdf05
[threading] Remove old suspend code now that all targets support it.
...
The new suspend code works on all major targets, so it's time to remove old suspend.
This change removes all relevant native code, managed code could see some cleanup.
2015-04-21 17:09:37 -04:00
jaredpar
43af8d475d
Improve Visual Basic build support
...
This fixes a couple of small issues with the Visual Basic build support:
- The VBC task now respects the $(NoStdLib) MSBuild option.
- The field @(ReferencePath) should be used for References in the VBC
target as it is for the CSC target.
- The CreateVisualBasicManifestResourceNames task is compiled and used
in the same manner as CreateCSharpManifestResourceNames hence it should
be loaded via UsingTask in the same manner as well.
- Include the VisualBasic Portable targets files.
2015-04-21 09:47:59 -07:00
Rodrigo Kumpera
a801b374ef
Merge pull request #1699 from ludovic-henry/threadpool-managed
...
[threadpool-io] Move (Socket)AsyncResult invocation code to managed + Various improvements
2015-04-21 11:41:01 -05:00
Alexander Köplinger
02e3e46d90
Merge pull request #1721 from jaredpar/fix-attribute-gen
...
Emit assembly attributes after Import statements
2015-04-21 18:35:24 +02:00
jaredpar
210e351187
Emit assembly attributes after Import statements
...
The VB language requires that code files have statements in the
following order:
- Option
- Import
- Assembly level attributes
- Namespaces / other declarations
The VBCodeGenerator type when given both import and assembly level
attribute statements was generating the attributes first. This lead to
compilation errors in the generated file.
This change fixes the generator to emit assembly level attributes in
the proper location in the file (and adds the corresponding unit tests
as well).
2015-04-21 08:15:18 -07:00
Chris Hamons
0723b3a8fb
Fix Options.cs warning on mobile builds
...
- Explictly disable warning CS0618 for Options.cs in Mono.Options
2015-04-21 10:04:06 -05:00
Marcos Henrich
33af6316a2
[System] Replaced System.Process lock(this)
...
To avoid concurrency problems lock(this) should not be used in public
classes.
2015-04-21 15:54:08 +01:00
Marcos Henrich
e94270c456
[System] Process.Exited is now thread safe.
...
Fixes Exited event triggering multiple times.
2015-04-21 14:09:20 +01:00
Miguel de Icaza
c7e9aac84f
Merge pull request #1720 from blucz/master
...
Fix NullReferenceException in timer thread
2015-04-20 22:00:09 -04:00
Alexander Kyte
311e032219
[System.Runtime.Caching] Added missing locking around cache's sortedset.
2015-04-20 19:07:14 -04:00
Rodrigo Kumpera
cd10756a3c
[threading] Fix coop+windows compilation.
2015-04-20 16:46:13 -04:00
Vincent Povirk
46c5bdd114
Bump Windows version requirement to Vista.
2015-04-20 15:14:22 -05:00
Vincent Povirk
d039392b62
Add configure check for inet_pton on Windows.
2015-04-20 15:05:50 -05:00
Rodrigo Kumpera
30f1a70a0b
[threading] Just skipping GC is not enough, we need to transition the threadpool to blocking.
2015-04-20 16:01:29 -04:00
Rodrigo Kumpera
a95525a65a
[threading] Add coop support to sdb.
2015-04-20 15:59:06 -04:00
Miguel de Icaza
53dc56ee39
[Socket] Add DualMode property and adjust to Mono semantics (continuation to #20048 )
...
The new socket constructor that only takes a SocketType and a
ProtocolType defaults to InterNetworkV6 (this was done on a previous patch).
In addition, we explicitly set "DualMode" to true, so that on Windows,
this gets set explicitly (it does not matter on Unix).
We surface the DualMode property to allow servers that want to just
bind to the IPv6 address to do so by creating the socket and then
changing DualMode to false.
This is *not* the same setting that Windows has, but it is the
semantics that Mono applications depend on. So a test has been added
to ensure that we do not regress.
This also switches to use SocketOptionName from the ReferenceSources.
2015-04-20 15:55:26 -04:00
Ludovic Henry
1cc9973e24
[threadpool-io] Fix epoll init
2015-04-20 16:15:08 +01:00
Ludovic Henry
b823208f3f
[threadpool-io] Move epoll/kqueue/poll specific code to dedicated files
...
This is to make the addition of backends easier
2015-04-20 16:15:08 +01:00
Ludovic Henry
0c9dcf73c2
[threadpool-io] Move Mono(Socket)RuntimeWorkItem ExecuteWorkItem code to (Socket)AsyncResult in managed
2015-04-20 16:15:07 +01:00
Marek Safar
63a3a3aed7
[corlib] cryptography from reference sources
2015-04-20 16:50:56 +02:00
Marcos Henrich
e097a98f3b
Merge pull request #1691 from esdrubal/exitevent
...
Improved Process.Exited
2015-04-20 15:04:32 +01:00
Marcos Henrich
0b4bc83e79
Merge pull request #1222 from LogosBible/uri-trycreate
...
Lower-case the host in Uri.TryCreate to match behavior of constructors
2015-04-20 14:06:22 +01:00
Marek Safar
a9d48d370f
[corlib] Fix mobile tests
2015-04-20 13:46:52 +02:00
Ludovic Henry
551b337e4e
[threadpool-io] Make updates non backend specific
2015-04-20 12:23:40 +01:00
Ludovic Henry
71bdba5ad7
[threadpool-io] Do not wait on socket if there are no SocketAsyncResults to call
2015-04-20 12:23:39 +01:00
Zoltan Varga
a5f5a4431a
[llvm] Refactor the intrinsics registration code a bit.
2015-04-18 23:47:28 -04:00
Miguel de Icaza
3d9c9787ab
[Socket] Fix the socket ctor base call, and document the reason; Fixes #20048
2015-04-18 22:01:49 -04:00
Zoltan Varga
25ff41d435
[runtime] Fix a regression in the socket code introduced by 6999fc2677.
2015-04-18 20:17:37 -04:00
Zoltan Varga
ce3a0a57ef
[runtime] Add a checked version of mono_class_from_name ().
2015-04-18 12:03:15 -04:00
Zoltan Varga
a4b4954296
Fix a warning.
2015-04-18 11:43:02 -04:00
Zoltan Varga
621df16d31
Revert "[runtime] Add a _checked version for mono_class_from_name ()."
...
This reverts commit 652c882f3d84309fdb1b97978871c8aa76916fd2.
Revert this as it breaks tests.
2015-04-18 00:25:29 -04:00
Zoltan Varga
61e5feb6b7
[runtime] Remove unused mono_metadata_parse_signature_full () function.
2015-04-18 00:25:28 -04:00
Zoltan Varga
d0ccda58c6
[runtime] Add a _checked version for mono_class_from_name ().
2015-04-18 00:25:28 -04:00
Rodrigo Kumpera
753aa0990d
[jit] Fix the build.
2015-04-17 17:01:27 -04:00
Zoltan Varga
0b96691cc6
[jit] Allow the storage of trampolines in the jit info tables. Currently, this is only used by mono_print_method_from_ip ().
2015-04-17 16:49:11 -04:00
Zoltan Varga
a1b9eb6a0a
[runtime] Enable the managed test runner for the gshared tests as well.
2015-04-17 16:49:11 -04:00
Rodrigo Kumpera
072ab0db83
[threading] [jit] Fix non coop osx build.
2015-04-17 15:27:54 -04:00
Brian Luczkiewicz
8f23006468
Fix NullReferenceException in timer thread
...
Every once in a while, we run into a NullReferenceException attempting to dispose a null timer. It's very rare and we can't reproduce. However, reading this code, it seems possible that two timer callbacks could pile up, and if they did, the first one might dispose the timer, and then the second one would attempt to dispose null.
2015-04-17 15:22:40 -04:00
Rodrigo Kumpera
6b2e92f179
[coop] Add missing coop checks for WFSO and WFMO.
2015-04-17 15:20:54 -04:00
Rodrigo Kumpera
ed046873c5
Revert "[threading] Move the safe pointing of WFSO and WFMO into the io-layer, since it's simpler to have it there."
...
This reverts commit 0327832893 .
2015-04-17 15:20:54 -04:00
Rodrigo Kumpera
6999fc2677
[coop] get_addrinfo_family_hint could call into managed, which is not allowed while in blocking mode.
2015-04-17 15:20:54 -04:00
Rodrigo Kumpera
0e12ff3017
[jit] Rework the managed code suspend polling and add COOP_GC support.
...
This change enables managed polling to work with both NaCL and coop as they are exactly the same except for the variables used.
We cleanup how safepoints are injects to be done on a separate pass instead of having in spread around the JIT.
We now inject safepoints at EH handler entry as those did not previously have them.
The generated AOT code was greatly optimized by having the polling variable checked before doing the icall. This more
than doubles the performance of the generated code.
2015-04-17 15:20:53 -04:00
Rodrigo Kumpera
79b617f775
[jit] Fix the loop recognition pass to handle single BB loops and enable logging by default.
2015-04-17 15:20:53 -04:00
Rodrigo Kumpera
207b1fa616
[threading] Add a global variable that is set while a global suspend is hapening.
...
This global var is meant to be used by JIT'd code to efficiently implement polling.
2015-04-17 15:20:53 -04:00
Zoltan Varga
8de00a141d
[runtime] Fix the creation of multi-dimensional arrays using ConstructorInfo.Invoke (). Fixes #29183 .
2015-04-17 15:05:51 -04:00
Ludovic Henry
af7ab54757
[threadpool-ms] Change boolean return type from gboolean to MonoBoolean for icalls
2015-04-17 17:54:17 +01:00
Ludovic Henry
558ca688b7
[threadpool-ms] Fix sgen runtime test crash
2015-04-17 17:42:43 +01:00
João Matos
5e64104c6f
[runtime] Revert this change as it strips the volatileness of the load.
2015-04-17 17:35:56 +01:00
Marek Safar
00795ab248
[corlib] Security attributes from reference sources
2015-04-17 16:59:49 +02:00
Marek Safar
8dc7ac94b7
[corlib] Update public api
2015-04-17 16:06:05 +02:00
Marek Safar
0940c74b1e
[corlib] Versioning from reference sources
2015-04-17 15:38:37 +02:00
Ludovic Henry
b61cfec1f4
[runtime] Fix call to task_for_pid in proclib utils
...
task_for_pid requires special privileges on osx 10.5+ and ios, so it's better to avoid calling it.
2015-04-17 13:58:54 +01:00
Marek Safar
8da357b3e7
[corlib] SafeHandles from reference sources
2015-04-17 14:32:10 +02:00
João Matos
3b193af24d
Merge pull request #1717 from jaredpar/vb-build-props
...
Expand Visual Basic build support
2015-04-17 12:28:23 +01:00
João Matos
3fa9d4d5c9
Merge pull request #1716 from esdrubal/jsdeserialize
...
[System.Web.Extension] Fixes JavaScriptSerializer.Deserialize.
2015-04-17 12:10:45 +01:00
Marek Safar
8bbbc63752
[system] Fixes mobile build
2015-04-17 12:09:08 +02:00
Marek Safar
a87bf6db67
[corlib] Fixes build
2015-04-17 11:34:57 +02:00
Marek Safar
1d36c68a1e
Bump reference sources for build fix
2015-04-17 11:01:59 +02:00
Marek Safar
92da5bc43f
[corlib] Mobile build fixes
2015-04-17 10:37:16 +02:00
Marek Safar
6947138c8a
[facades] Add missing attributes
2015-04-17 10:37:16 +02:00
Marek Safar
ca1c420674
[corlib] More exceptions from reference sources
2015-04-17 10:37:16 +02:00
jaredpar
e20ddef0b6
Expand Visual Basic build support
...
This change adds support for the following MSBuild properties which are specific to VB compilation:
- OptionInfer: controls the /optioninfer switch
- VBRuntime: controls the /vbruntime switch
2015-04-16 13:27:03 -07:00
Neale Ferguson
da5795054b
Add support for mono_arch_create_monitor_[enter|exit]_trampoline
2015-04-16 16:14:19 -04:00
Zoltan Varga
c73363cee4
[runtime] Fix support for delegates with a byref first argument bound to a valuetype method. Fixes #25717 .
2015-04-16 15:10:19 -04:00
Marcos Henrich
0ac4c24116
[System.Web.Extension] Fixes js deserialization.
...
Fixes JavaScriptSerializer.Deserialize of values with trailing spaces.
Fixes #4148 .
2015-04-16 19:12:29 +01:00
Marcos Henrich
d8e2ec1832
[System.Web.Extension] Added tests.
...
Tests JavaScriptSerializer.Deserialize with trailing white spaces.
Covers #4148
2015-04-16 19:11:33 +01:00
João Matos
99014074e0
[runtime] While we're here update the code to match the style guide.
2015-04-16 17:56:32 +01:00
João Matos
ae44f77a75
[runtime] Fixed extra address-of in lock free code.
2015-04-16 17:49:46 +01:00
Marek Safar
f4997d3800
[corlib] Update reference sources com sources
2015-04-16 17:47:31 +02:00
Rodrigo Kumpera
a2b07bc25e
Merge pull request #1715 from tritao/cpp_fixes
...
C++ compliance fixes
2015-04-16 10:28:28 -05:00
João Matos
030a43a812
[runtime] C++ compliance fixes.
2015-04-16 16:11:00 +01:00
Marek Safar
c6e9591d0c
[corlib] Remove useless TypeLib assembly attribute (it's not always available)
2015-04-16 16:31:56 +02:00
Marek Safar
fc00dc2324
[mcs] Better error reporting for incorrect implicitly typed local variable declaration. Fixes #28069
2015-04-16 16:31:26 +02:00
Miguel de Icaza
9dd7a04810
[man/certmgr] Update documentation
2015-04-16 09:50:11 -04:00
Marek Safar
b98d9dc1c8
[corlib] Claims from reference sources
2015-04-16 11:28:41 +02:00
Mark Probst
d55cfe091b
[sgen] Fix a concurrent mark bug.
...
This made `sgen-descriptors.exe` crash with an assertion.
2015-04-15 15:56:28 -07:00
Marek Safar
9faaa72407
[system.xml] Update failing test
2015-04-16 00:08:01 +02:00
Marek Safar
37080045d7
[corlib] Remove duplicate file entry
2015-04-15 22:23:02 +02:00
Marek Safar
6d326f1c90
[mcs] Update failing test
2015-04-15 22:23:02 +02:00
João Matos
f34e856519
Merge pull request #1714 from madewokherd/condwait
...
Release the mutex in mono_cond_[timed]wait on Windows.
2015-04-15 21:15:53 +01:00
Vincent Povirk
81b82a5034
Release the mutex in mono_cond_[timed]wait on Windows.
...
This commit is licensed as MIT/X11.
2015-04-15 14:57:11 -05:00
Marek Safar
2e559f4ec9
[corlib] Runtime attributes from reference sources
2015-04-15 18:05:07 +02:00
Marek Safar
c2344f5135
[corlib] Return custom attributes in order they were compiled. Fixes #28692
2015-04-15 12:47:49 +02:00
Marek Safar
26bb4585a0
[corlib] Update failing test
2015-04-15 11:00:37 +02:00
Marek Safar
c750efbb03
Merge pull request #1693 from Garciat/fix-assembly-get-satellite
...
[corlib] Check for missing/empty Assembly.Location. Fixes #28876
2015-04-15 10:50:56 +02:00
Marek Safar
3a7585be9d
[corlib] Add test for in memory assemblies ( #28876 )
2015-04-15 10:48:40 +02:00
Miguel de Icaza
ca4650bf92
Merge pull request #1713 from joelmartinez/docs-monodoc-getassembly
...
[monodoc] Updated how generators load resource streams.
2015-04-15 00:20:11 -04:00
Atsushi Eno
7a828d5d4f
remove unused CodeDom sources.
2015-04-15 12:42:41 +09:00
Atsushi Eno
c8c1a778e8
Merge pull request #1709 from atsushieno/import-codedom-core
...
Import CodeDom types and Compiler.CodeGenerator class from referencesource
2015-04-15 12:21:12 +09:00
Mark Probst
32184f29e6
[sgen] Free mod-union tables for LOS objects.
2015-04-14 16:23:21 -07:00
Mark Probst
fdb1eecfb0
[sgen] Use mod-union to add remsets from concurrent collector.
...
Concurrent mark modified the card table directly, which had two
drawbacks.
First, it meant that nursery collections would also have to scan the
cards marked by the concurrent collector, which was unnecessary work.
Second, because the nursery collector also modified the cardtable, it
meant that the two could not run concurrently, i.e., we had to suspend
concurrent marking work whenever a nursery collection occurred.
2015-04-14 16:23:20 -07:00
Mark Probst
307545d624
[sgen] Separate concurrent M&S object operations into start, concurrent, finish.
2015-04-14 16:23:20 -07:00
Mark Probst
439b643a43
[sgen] Use enum instead of two bools in major_copy_or_mark_from_roots().
2015-04-14 16:23:20 -07:00
Mark Probst
8c50748e3a
[sgen] Get rid of redundant argument to major_copy_or_mark_from_roots().
2015-04-14 16:23:20 -07:00
Mark Probst
7f9c8960fe
[sgen] Get rid of global current_object_ops.
2015-04-14 16:23:20 -07:00
Mark Probst
8fc2f229f2
[sgen] Make scan context have a pointer to object operations.
...
Instead of copying everything from the object operations into the
context.
2015-04-14 16:23:19 -07:00
Mark Probst
d0b5f545d5
[sgen] Replace sgen_get_current_object_ops() by passing a ScanCopyContext.
...
Getting rid of global state. The idea is for the context to contain
everything that the mark/scan loop needs to do its work.
2015-04-14 16:23:19 -07:00
Zoltan Varga
2e59e73e24
[jit] Fix an unpatched jump in the monitor exit trampoline on amd64.
2015-04-14 18:58:03 -04:00
Zoltan Varga
3a4f91ffb5
[jit] No need to check for info!=NULL in the trampoline creation functions, the caller always passes in a non-null value.
2015-04-14 18:58:03 -04:00
Mark Probst
4a6cbcfedf
[sgen] Fix a race condition in the new worker/threadpool code.
2015-04-14 15:42:09 -07:00
Rodrigo Kumpera
0327832893
[threading] Move the safe pointing of WFSO and WFMO into the io-layer, since it's simpler to have it there.
2015-04-14 18:34:02 -04:00
Rodrigo Kumpera
4025d23682
[threading] Handle more non-trivial locks.
2015-04-14 18:34:02 -04:00
Rodrigo Kumpera
528c373152
[threading] Wrap the threads lock with cooperative coode.
2015-04-14 18:34:01 -04:00
Ludovic Henry
42b52f1506
[threadpool] Make GC skip worker and monitor threads when being parked or sleeping
2015-04-14 23:01:50 +01:00
Joel Martinez
68126fc088
[monodoc] Updated how generators load resource streams.
...
The issue was discovered when using monodoc in an asp.net application; while the code was developed and worked successfully in the local Visual Studio web server, it failed when deployed and executed in IIS. The reason it seems is because of the use of `.GetCallingAssembly()`, which was returning an unexpected assembly reference. This resulted in the `.GetManifestResourceStream` returning null for resources that are definitely a part of monodoc.dll.
Once the code was changed to get the assembly using a type reference of a type that's definitely in monodoc.dll ... the code resumed working as expected.
2015-04-14 17:56:53 -04:00
João Matos
12615adbdf
Merge pull request #1711 from jldgit/jldgit-gdb-script
...
Corrected mono-gdb.py use of "\u%X".format (val)
2015-04-14 22:05:02 +01:00
Rodrigo Kumpera
3cb0fdabf9
Merge pull request #1710 from alexanderkyte/always_use_imt
...
[runtime] Further removed code that doubted IMT
2015-04-14 14:36:11 -05:00
Alexander Kyte
f4e44e771f
[runtime] Further removed code that doubted IMT
2015-04-14 15:20:22 -04:00
Zoltan Varga
94bb27144c
[jit] Print out IL clause offsets in verbose mode.
2015-04-14 15:00:47 -04:00
James
63e7f0cee2
Corrected mono-gdb.py use of "\u%X".format (val)
...
This line of code would cause an error to pop up in gdb when starting.
2015-04-14 14:40:23 -04:00
Atsushi Eno
cb58cc98bb
[CodeDom] disable wrong test (see [Ignore] comment).
2015-04-15 03:29:06 +09:00
Zoltan Varga
e2c8f3727e
[jit] Fix the support for filter clauses by avoiding passing in the exception using a register, since call_handler () can't handle it.
2015-04-14 14:27:10 -04:00
Zoltan Varga
0d9df95717
[runtime] Fix freeing invalid memory in CreateProcess () if the executable was not found. Fixes #28209 .
2015-04-14 14:26:01 -04:00
Zoltan Varga
f22a4cb4c3
[jit] Fix the detection of the Selector.GetHandle intrinsics, and fix the emission of assembly for it so it also works on arm64.
2015-04-14 13:19:52 -04:00
Atsushi Eno
08debfcef3
Import CodeDom types and Compiler.CodeGenerator class from referencesource.
...
This does not import System.CodeDom.Compiler because some of them depends
on Windows specific stuff.
CodeGenerator is imported because ours depends on our own internal
Visitor implementation and could not build without making changes a lot.
2015-04-15 01:35:04 +09:00
Marek Safar
322af7e074
[mcs] Consider nested types when looking for potential types via using static. Fixes #29044
2015-04-14 17:59:33 +02:00
Zoltan Varga
8fad4b7607
[aot] Avoid saving MonoJitExceptionInfo->exvar_offset for catch clauses on platforms where its not used.
2015-04-14 10:58:52 -04:00
Zoltan Varga
c9ef839928
[jit] Remove some dead code from get_shared_class ().
2015-04-14 10:53:40 -04:00
Zoltan Varga
bf8c60a47b
[jit] Get rid of the MONO_ARCH_HAVE_OP_GET_EX_OBJ define, use MONO_CONTEXT_SET_LLVM_EXC_REG instead.
2015-04-14 10:39:20 -04:00
Zoltan Varga
e76860503e
[jit] Enable passing the exception object in a register on arm.
2015-04-14 10:22:10 -04:00
Zoltan Varga
5bf9e8eb5b
Fix a warning.
2015-04-13 22:51:50 -04:00
Zoltan Varga
7867b0bc0e
[jit] Enable passing the exception object in a register on x86.
2015-04-13 22:46:39 -04:00
Zoltan Varga
174ef19852
[jit] Implement support for passing in the exception object to catch clauses in a register instead of storing it into its stack slot. This is identical to the way the c++ ehabi works. Enable it for amd64.
2015-04-13 21:02:47 -04:00
Mark Probst
639dea2b1c
[runtime] Spurious wake-ups are not a FIXME.
2015-04-13 16:18:53 -07:00
Rodrigo Kumpera
18e87daaff
[threading] Let the GC skip monitor thread while it sleeps.
2015-04-13 19:05:52 -04:00
Rodrigo Kumpera
7a8a42b0ea
[threading] The common trampoline must reset the blocking state on entry.
2015-04-13 19:05:52 -04:00
Rodrigo Kumpera
79d6d67f2b
[threading] Make all locks use the new try blocking mode.
2015-04-13 19:05:51 -04:00
Rodrigo Kumpera
f4da7083e8
[threading] Introduce the notion of try block to be used by recursive locks.
...
This allows a piece of code to handle the cases where it's called in running and blocker context
and must always be in blocking context.
This probably makes code more modular at the expense of an easy to follow and debug execution model.
Since we don't currently annotate all icalls with blocking sections we do it with locks but they can
nest and recurse which requires this support for try block.
2015-04-13 19:05:51 -04:00
Mark Probst
37e5a38d4c
[sgen] Fix a bug when waiting on a condition.
2015-04-13 15:55:58 -07:00
Zoltan Varga
28d16b2c52
[jit] Enable support for partial sharing for generic instances.
2015-04-13 18:04:08 -04:00
Zoltan Varga
1cab7b0535
[jit] Change MonoGenericParam.gshared_constraint to be a full MonoType so it can encode generic instances too.
2015-04-13 15:50:43 -04:00
Zoltan Varga
ffd7c42bc9
Fix the build.
2015-04-13 15:44:21 -04:00
Zoltan Varga
bc3fda9237
[runtime] Add a utility target to patch libtool to get rid of the the 'file ... has no symbols' warnings.
2015-04-13 15:14:40 -04:00
Zoltan Varga
2ffce7f1bf
Merge pull request #1708 from alexanderkyte/always_use_imt
...
[runtime] Remove checks for mono_use_imt because always true.
2015-04-13 14:48:35 -04:00
Alexander Kyte
4d31a8b43f
[runtime] As mono_use_imt is always true, remove dead code paths where it is not.
2015-04-13 14:41:00 -04:00
Marek Safar
b2f3a260c7
[corlib] First specific culture returned by enumerator was not fully initialized. Fixes #29039
2015-04-13 19:16:29 +02:00
Marek Safar
ff9226422d
[corlib] Throw correctly captured ExceptionDispatchInfo exceptions. Fixes #24647 (and many async stacktraces too)
2015-04-13 17:46:06 +02:00
João Matos
bd471cb710
Merge pull request #1704 from Therzok/master
...
Add gitter badge.
2015-04-13 15:19:06 +01:00
Marek Safar
b526af0b08
[mcs] Decorate imported constants with static modifier to work with using static. Fixes #28976
2015-04-13 14:19:59 +02:00
Marek Safar
eba8a5dd3d
[corlib] Fixes mobile tests
2015-04-13 14:19:59 +02:00
Ludovic Henry
a12d3732e4
[Socket] Fix SocketTest.TtlChangeOverflow test failing on non Mac platform
...
This revert behavior to prior to c45161d065
2015-04-13 12:16:20 +01:00
Marek Safar
670fcaf62a
Merge pull request #1685 from esdrubal/touint64
...
ParseNumber.StringToInt now check for overflows.
2015-04-13 12:43:07 +02:00
Zoltan Varga
e37594b0ee
Revert "[jit] Avoid generating remoting invoke wrappers for icalls."
...
This reverts commit 4f124705ac .
Revert this as it causes corlib test failures.
2015-04-12 22:43:02 -04:00
Zoltan Varga
b6037c6fe3
[jit] Implement support for constrained calls in partially shared methods.
2015-04-12 22:27:33 -04:00
Zoltan Varga
162baf38c7
Merge pull request #1703 from Garciat/ignore-systemdata-gen
...
[git] Ignore System.Data built sources
2015-04-12 11:20:35 -04:00
Zoltan Varga
4355a73caa
[aot] Save/restore the names of the gshared generic params.
2015-04-11 22:23:48 -04:00
Zoltan Varga
4f124705ac
[jit] Avoid generating remoting invoke wrappers for icalls.
2015-04-11 22:23:48 -04:00
Zoltan Varga
44b37eb2fd
Fix a warning.
2015-04-11 22:23:48 -04:00
Zoltan Varga
6a4644ca9c
Merge pull request #1705 from akoeplinger/fix-win-build
...
[configure] Fix Windows cygwin build broken by 3bc2eb8
2015-04-11 17:49:57 -04:00
Alexander Köplinger
4f14861aca
[configure] Fix Windows cygwin build broken by 3bc2eb8cb7
...
The commit removed the AC_DEFINE for TARGET_WIN32 from configure.ac,
but many parts of the build rely on it so the build broke.
Fixed this by defining TARGET_WIN32 when we detect it is the target
and do the same for HOST_WIN32.
2015-04-11 22:52:30 +02:00
Ungureanu Marius
84fb741d43
Add gitter badge.
2015-04-11 19:25:53 +03:00
Gabriel Garcia
565ddd0150
[git] Ignore built sources
2015-04-11 09:42:52 -04:00
Zoltan Varga
62d46b469b
[jit] Add support for computing the size of the branch binding area by backends and passing it to the code manager. Not used yet.
2015-04-10 21:52:39 -04:00
Zoltan Varga
97f3a148e8
[arm64] Increase the amount of memory used to bind branches since the arm64 thunk code is larger (16 bytes). Fixes #28747 .
2015-04-10 21:47:33 -04:00
Sebastien Pouliot
5186dea237
[linker] Fix scope resolution of custom attributes (generic/array) argument types that refers to PCL facades [ #28823 ]
2015-04-10 17:33:41 -04:00
Mark Probst
d70376bcb6
[sgen] Fix a concurrent sweep bug.
2015-04-10 12:48:02 -07:00
Zoltan Varga
2a96a02351
[aot] Avoid duplicate plt symbols for plt entries for synchronized methods. Fixes #28961 .
2015-04-10 11:13:04 -04:00
Marek Safar
7f56d39668
[corlib] ComTypes from reference sources
2015-04-10 17:04:26 +02:00
Marek Safar
d0efb29476
[corlib] Remove unused files
2015-04-10 16:50:06 +02:00
Marek Safar
1d0be40a5b
[corlib] ConstrainedExecution from reference sources
2015-04-10 16:47:30 +02:00
Marek Safar
bc0b1ebcc0
[corlib] Globalization enums from reference sources
2015-04-10 16:38:23 +02:00
Marcos Henrich
b378965d2a
[System] Added missing files to mobile_System.dll.sources.
2015-04-10 10:16:14 -04:00
João Matos
c2407d1379
Merge pull request #1701 from bojanrajkovic/fix-order-of-parameters-to-argumentexception-constructor
...
Fix order of parameters when creating ArgumentException
2015-04-10 15:13:32 +01:00
Bojan Rajkovic
301b66dd99
Fix order of parameters when creating ArgumentException
...
ArgumentOutOfRangeException expects the parameter name first, then the message. ArgumentException is precisely the opposite, and expects the message first, and then the parameter name. They were swapped here.
2015-04-10 10:10:55 -04:00
Marek Safar
4fc75b3e72
[corlib] TextInfo from reference sources
2015-04-10 15:07:58 +02:00
Marcos Henrich
f79db678d8
[System] Removed SafeSocketHandle unused code.
2015-04-10 10:57:23 +01:00
Marek Safar
167ea85899
[corlib] Fixes endianess issue in resourcereader
2015-04-10 10:32:35 +02:00
Marek Safar
c1bc7890f5
[corlib] comparer fixes
2015-04-10 07:57:02 +02:00
Mark Probst
6e28186845
[sgen] Fix describe_ptr() and make it print namespace, too.
...
It didn't handle interior pointers correctly.
2015-04-09 17:22:39 -07:00
Mark Probst
f6c4a9e42b
Merge branch 'feature-concurrent-sweep'
2015-04-09 16:13:32 -07:00
Rodrigo Kumpera
a95ec1f5bc
Merge pull request #1698 from ludovic-henry/socket-reorg-2
...
Reorganize Socket code
2015-04-09 17:04:38 -05:00
Ludovic Henry
7cec1dbe8b
[threadpool-io] Fix android build
2015-04-09 22:31:34 +01:00
Marek Safar
4eee47c42a
[corlib] Equality comparer fixes
2015-04-09 22:55:10 +02:00
Alex Rønne Petersen
bf98c077ea
Remove Moonlight references from man mcs.
2015-04-09 21:18:22 +02:00
Alex Rønne Petersen
77e66ab8e8
Remove Olive support from the build system.
...
These libraries are no longer developed.
2015-04-09 21:18:22 +02:00
Zoltan Varga
2cab68d28c
[jit] Use the same dwarf<->hw register mapping on x86 for both LLVM and jitted code, the one used by LLVM is the official version.
2015-04-09 15:10:55 -04:00
Zoltan Varga
5601dec49e
[sdb] Make a log message less verbose.
2015-04-09 14:54:41 -04:00
Zoltan Varga
a759581fef
[sdb] Transition from step over to step into when control leaves managed code. Fixes #28557 .
2015-04-09 14:37:54 -04:00
Marek Safar
8203b9bca7
[corlib] Fixes mobile build
2015-04-09 20:05:07 +02:00
Jo Shields
00fc3a6307
[RPM] Fix MONO_PATH in RPM dependency generators
...
Otherwise, RPMs don't have any dependency information
(cherry picked from commit 0dfb848cde )
2015-04-09 15:57:07 +01:00
Ludovic Henry
52d761a1f6
[Socket] Use type specific read and write queue for SocketAsyncWorker
2015-04-09 15:46:18 +01:00
Ludovic Henry
333a93ab7b
[Socket] Cleanup of SocketAsyncWorker, SocketAsyncResult and SocketAsyncEventArgs
2015-04-09 15:41:27 +01:00
Marek Safar
0c268383cd
[corlib] Buffer from reference sources
2015-04-09 16:01:46 +02:00
Marek Safar
d88c018b74
[corlib] new test
2015-04-09 16:01:46 +02:00
Ludovic Henry
1c41e59174
[Socket] Refactor SocketAsyncResult enqueuing
2015-04-09 14:37:34 +01:00
Ludovic Henry
6ab21e3084
[runtime] Remove system from mono_defaults.system as it is a unloadable assembly
2015-04-09 14:37:33 +01:00
Ludovic Henry
0341f06e99
[Socket] Move remaining icalls and struct from Socket_2_1.cs to Socket.cs
2015-04-09 14:37:33 +01:00
Ludovic Henry
dfc6fbb157
[Socket] Inline InvalidAsyncOp into ValidateEndIAsyncResult
2015-04-09 14:37:32 +01:00
Ludovic Henry
1c0c785ad9
[Socket] Move Dispose related methods to their region
2015-04-09 14:37:31 +01:00
Ludovic Henry
80445ada38
[Socket] Move Shutdown related methods to their region
2015-04-09 14:37:30 +01:00
Ludovic Henry
a9031bfbcb
[Socket] Move Close related methods to their region
2015-04-09 14:37:29 +01:00
Ludovic Henry
badcf36458
[Socket] Move IOControl related methods to their region
2015-04-09 14:37:28 +01:00
Ludovic Henry
96a51d05d9
[Socket] Move Poll related methods to their region
2015-04-09 14:37:27 +01:00
Ludovic Henry
c45161d065
[Socket] Move SetSocketOption related methods to their region
2015-04-09 14:37:26 +01:00
Ludovic Henry
66204d1ce3
[Socket] Move GetSocketOption related methods to their region
2015-04-09 14:37:26 +01:00
Ludovic Henry
d9b72bb750
[Socket] Move SendPackets related methods to their region
2015-04-09 14:37:25 +01:00
Ludovic Henry
2250570156
[Socket] Move Listen related methods to their region
2015-04-09 14:37:24 +01:00
Ludovic Henry
1dd589cf59
[Socket] Move DuplicateAndClose related methods to their region
2015-04-09 14:37:23 +01:00
Ludovic Henry
9346cd1aa7
[Socket] Remove unused CheckRange method
2015-04-09 14:37:22 +01:00
Ludovic Henry
54f36e42da
[Socket] Move Bind related methods to their region
2015-04-09 14:37:22 +01:00
Ludovic Henry
d9249983bc
[Socket] Move SendFile related methods to their region
2015-04-09 14:37:21 +01:00
Ludovic Henry
abe9bc89b6
[Socket] Move SendTo related methods to their region
2015-04-09 14:37:20 +01:00
Ludovic Henry
4907ad68f0
[Socket] Move Send related methods to their region
2015-04-09 14:37:19 +01:00
Ludovic Henry
7299a2bd89
[Socket] Move ReceiveMessageFrom related methods to their region
2015-04-09 14:37:18 +01:00
Ludovic Henry
5ed347d0e5
[Socket] Move ReceiveFrom related methods to their region
2015-04-09 14:37:17 +01:00
Ludovic Henry
4a358f9a79
[Socket] Move Receive related methods to their region
2015-04-09 14:37:17 +01:00
Ludovic Henry
eb4e038553
[Socket] Move Disconnect related methods to their region
2015-04-09 14:37:16 +01:00
Ludovic Henry
d82106d2b7
[Socket] Move Connect related methods to their region
2015-04-09 14:37:15 +01:00
Ludovic Henry
3555555dba
[Socket] Move Accept related methods to their own region
2015-04-09 14:37:14 +01:00
Ludovic Henry
9103278ddc
[Socket] Move properties to their own region
2015-04-09 14:37:13 +01:00
João Matos
458b3269aa
[mini] Fixed ifdef warning.
...
/Users/joao/Dev/droid5.1/mono/mono/mini/unwind.c:71:18: warning: extra tokens at end of #ifdef directive [-Wextra-tokens]
2015-04-09 13:28:24 +01:00
Marek Safar
716adcebde
[corlib] Generic comparers from reference sources
2015-04-09 14:26:43 +02:00
Alex Rønne Petersen
811674bc63
Merge pull request #1695 from gregoryyoung/master
...
add compilation instructions
2015-04-09 12:09:53 +02:00
Greg Young
5a228a65a0
add compilation instructions
2015-04-09 13:03:26 +03:00
Marek Safar
9965afbe2f
[corlib] GetGenericArguments from reference sources
2015-04-09 11:38:20 +02:00
Zoltan Varga
82f567d2e8
[jit] Rename gen_seq_points_debug_data to gen_sdb_seq_points.
2015-04-08 21:18:10 -04:00
Zoltan Varga
0468321ad1
[jit] Correctly disable seq points in wrapper on android.
2015-04-08 21:06:01 -04:00
Neale Ferguson
21399ed40b
Correct lengths of move_i4_to_f and move_f_to_i4
2015-04-08 19:00:13 -04:00
Mark Probst
b7ca3af3da
[aot] Exit with an error message if there's no managed allocator.
...
This can happen with various SGen debug options, like canaries.
See bug #28857
2015-04-08 14:24:28 -07:00
Alexander Köplinger
ff393312ec
Fix centos badge and remove ppc badge in readme
...
The ppc Jenkins workers are offline right now and aren't expected to come back in the near future.
2015-04-08 22:43:43 +02:00
Zoltan Varga
b3c69e6659
Fix some warnings.
2015-04-08 15:41:28 -04:00
Ludovic Henry
e2e2229460
[Socket] Move Select related methods to their own region
2015-04-08 20:32:22 +01:00
Rodrigo Kumpera
3bc2eb8cb7
[configure] Fix windows cross compilation to generate the proper defines.
2015-04-08 15:25:04 -04:00
Rodrigo Kumpera
2b54e95eb5
[jit] Fix the usage of host/target defines for amd64 and windows.
2015-04-08 15:25:03 -04:00
Rodrigo Kumpera
8771b398cb
[runtime] Fix the file mmap api to correctly use the host/target defines.
2015-04-08 15:25:03 -04:00
Zoltan Varga
d42770d7de
[runtime] Include sys/time.h to get struct timeval definition.
2015-04-08 15:01:35 -04:00
Ludovic Henry
66886a5c63
[Socket] Move CheckProtocolSupport to static constructor
2015-04-08 19:29:51 +01:00
Ludovic Henry
3fed6ef12f
[Socket] Move Socket constructors to Socket.cs
2015-04-08 19:26:20 +01:00
Ludovic Henry
c049a8b361
[Socket] Move Socket fields out of Socket_2_1.cs to Socket.cs
2015-04-08 19:13:18 +01:00
Marek Safar
7f52573aa2
[corlib] TimeZoneInfo.AdjustmentRule from reference sources
2015-04-08 19:31:59 +02:00
João Matos
64a27123d7
[mini] Fixed stack unwinding / DWARF register numbers when doing x86 cross compilation on OSX.
...
Eventually we want to add a better fix for this, like for instance adding this behaviour to the LLVM-specific code path
but until we can research more under exactly what conditions we need to do this then implement this simple workaround.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=27055 .
2015-04-08 18:28:39 +01:00
Ludovic Henry
0916f916f6
[Socket] Move SocketAsyncCall out of Socket_2_1.cs to SocketAsyncCallback.cs
2015-04-08 18:26:42 +01:00
Ludovic Henry
6c72a6e005
[Socket] Move Worker out of Socket_2_1.cs to SocketAsyncWorker.cs
2015-04-08 18:25:13 +01:00
Ludovic Henry
17df15ecb6
[Socket] Move SocketAsyncResult out of Socket_2_1.cs
2015-04-08 17:46:41 +01:00
Ludovic Henry
ecc6abaf6d
[Socket] Move SocketOperation out of Socket_2_1.cs
2015-04-08 17:38:44 +01:00
Alexander Köplinger
88b5e5a618
Fix "make dist"
...
EXTRA_DIST still included files that were removed in 467ca088b6 and 4cd4437b1f .
2015-04-08 17:38:13 +02:00
Marek Safar
97ad68721b
[corlib] More System types from reference sources
2015-04-08 17:35:32 +02:00
Marek Safar
0f42d213e1
[corlib] System delegates from reference sources
2015-04-08 17:35:31 +02:00
Marek Safar
23b6557c2e
[corlib] System interfaces from reference sources
2015-04-08 17:35:31 +02:00
Marek Safar
a80f9db6f6
[corlib] Console keys from reference sources
2015-04-08 17:35:31 +02:00
Gabriel Garcia
fcf25bea84
Check for missing Assembly.Location
2015-04-08 10:48:16 -04:00
Alex Rønne Petersen
be6b58600a
[metadata] Remove old monosn.c (we have a managed sn now).
2015-04-08 16:48:05 +02:00
Marcos Henrich
5a7a7a0620
[System] Process.WaitForExit now triggers event Exited.
2015-04-08 14:44:09 +01:00
Marcos Henrich
287ba33275
[System] Test that Process.WaitForExit triggers the event Exited.
2015-04-08 14:42:03 +01:00
Marcos Henrich
0f48483411
[System] Process no longer calls OnExit if HasExited is false.
...
Fixes #26362 .
2015-04-08 14:40:09 +01:00
Marcos Henrich
f9b1cff021
[System] Test Process.Exited. Covers #26362 .
...
Process.Exited should not be called if Process.HasExited is false.
2015-04-08 14:35:01 +01:00
Marek Safar
a6b630813a
[corlib] System attributes from reference sources
2015-04-08 15:20:57 +02:00
Marek Safar
789421f760
[corlib] IO exceptions from reference sources
2015-04-08 15:05:09 +02:00
Miguel de Icaza
e93aa85e62
[mono.1] Document MONO_THREADPOOL
2015-04-08 08:20:03 -04:00
Marek Safar
ebb011b871
[corlib] TypeLoadException from reference sources
2015-04-08 13:25:16 +02:00
Marek Safar
fa020e965f
[corlib] Add System.Object type handling in TypeInfo. Fixes #28369
2015-04-08 09:35:10 +02:00
Zoltan Varga
cba42c385e
[aot] Enable partial sharing when using full aot.
2015-04-07 23:29:30 -04:00
Zoltan Varga
f849ff4ba5
[aot] Fix overflows when printing stats.
2015-04-07 23:29:11 -04:00
Zoltan Varga
9b0c4038ef
[llvm] Remove an arm restriction, its no longer needed.
2015-04-07 20:02:53 -04:00
Zoltan Varga
f8e392b3ed
[llvm] Fix the previous change.
2015-04-07 19:51:40 -04:00
Zoltan Varga
2b792b8d08
[llvm] Avoid generating invalid llvm il for volatile sbyte variables.
2015-04-07 19:47:02 -04:00
Zoltan Varga
bbee8d4d5e
Revert "[configure] Clean up target name matching for $host != $target case."
...
This reverts commit 53f55647a5 .
Revert this as it breaks the mobile build.
2015-04-07 18:18:42 -04:00
Rodrigo Kumpera
118c3a0c3f
[runtime] Update the offsets table for amd64.
2015-04-07 17:03:48 -05:00
Zoltan Varga
947c1bbd9c
[jit] Disable deadce in the liveness2 pass as well when compiling for sdb. Fixes #28847 .
2015-04-07 17:50:56 -04:00
Rodrigo Kumpera
b02523cfd1
[utils] Use open instead of fopen on unix targets.
2015-04-07 16:14:26 -05:00
Rodrigo Kumpera
9206989872
portability fixes.
2015-04-07 16:14:26 -05:00
Marek Safar
5aca5b826a
[System.ServiceModel.Internals] Cleanup makefile
2015-04-07 22:57:25 +02:00
Zoltan Varga
1364644d22
[runtime] Make some threadpool icalls non static to fix the mobile build.
2015-04-07 16:29:18 -04:00
Zoltan Varga
c94837ac9e
[corlib] Add back some helper methods to String which were removed during the transition to reference sources.
2015-04-07 16:29:18 -04:00
Alex Rønne Petersen
53f55647a5
[configure] Clean up target name matching for $host != $target case.
...
We fully control the $target values here as we don't use canonicalization for
them. So we have no reason or excuse to be using wildcards in them.
E.g. any Linux $target in this case would previously be assumed to be Android.
2015-04-07 22:25:42 +02:00
Rodrigo Kumpera
0ce9e2ceac
[jit] Make mono_thread_state_init_from_sigctx work with a coop cross compiler.
2015-04-07 16:03:44 -04:00
Rodrigo Kumpera
d759d81c61
[configure] Add new target.
2015-04-07 16:03:43 -04:00
Marcos Henrich
6d778d70bf
[corlib] ParseNumber.StringToInt now check for overflows.
...
The overflow check is only performed when the result is big enough.
The overflow check is done by decomposing 64 bit operations into 32 bit operations.
Fixes #17817 .
2015-04-07 19:38:37 +01:00
Marek Safar
1db6ed7fb1
[SMDiagnostics] Fixes mobile build
2015-04-07 20:20:39 +02:00
Marek Safar
9916d42805
[corlib] Fixes mobile build
2015-04-07 19:58:35 +02:00
Marek Safar
58389f3618
[system.data] Fixes mobile build
2015-04-07 19:58:35 +02:00
Alex Rønne Petersen
817ae3d1db
[mini] Support MONO_PROFILER_CODE_BUFFER_EXCEPTION_HANDLING on PPC.
2015-04-07 19:20:19 +02:00
Alex Rønne Petersen
dc517162d4
[mini] Support MONO_PROFILER_CODE_BUFFER_EXCEPTION_HANDLING on x86.
2015-04-07 19:20:14 +02:00
Alex Rønne Petersen
5729637478
[mini] Support MONO_PROFILER_CODE_BUFFER_EXCEPTION_HANDLING on MIPS.
2015-04-07 19:14:50 +02:00
João Matos
bcb651443d
Merge pull request #1684 from Garciat/fix-zlib-helper
...
[System] Fix DeflateStream throw on empty flush, double flush. Fixes #28777
2015-04-07 17:31:12 +01:00
Zoltan Varga
6c38ce4ea4
Merge pull request #1689 from alexrp/remove-cruft
...
Remove cruft
2015-04-07 12:27:06 -04:00
Marek Safar
00abead41b
[mcs] Fix betterness of candidates with optional parameters against unexpanded params parameters. Fixes #28837
2015-04-07 18:26:34 +02:00
Zoltan Varga
06956aac05
Merge pull request #1690 from nealef/master
...
s390x fixes/enhancements
2015-04-07 12:23:03 -04:00
Martin Baulig
8b33287f89
Merge pull request #1661 from HellBrick/connection-group-deadlock
...
Fixed deadlock in WebConnectionGroup.Close()
2015-04-07 18:16:26 +02:00
Neale Ferguson
f6294778fe
decimal-ms.c:
...
- Fix handling of lo64 on big endian systems (fixes 28672)
mono-endian.h:
- Add optimization for s390x read64/read32/read16 operations
exceptions-s390x.c:
- Add profiling support for exception handler
2015-04-07 12:15:43 -04:00
Zoltan Varga
15a5ae7a01
[runtime] Fix the arm build.
2015-04-07 11:35:15 -04:00
Zoltan Varga
20bd088cbb
[runtime] Fix the mobile build.
2015-04-07 10:57:50 -04:00
Marek Safar
4d4b9e652d
[mcs] Clone stack-alloc type expression. Fixes #28774
2015-04-07 16:34:28 +02:00
Marek Safar
2b1e2322a0
[mcs] Report missing property accessor for auto-implemented properties only when base has it. Fixes #28772
2015-04-07 16:11:23 +02:00
Alex Rønne Petersen
d33c6107b5
Remove old make-bundle stuff.
...
This has all since been replaced with mkbundle.
2015-04-07 15:05:23 +02:00
Alex Rønne Petersen
c6133ee765
Remove outdated TODO files in the mono subdirectory.
2015-04-07 15:05:07 +02:00
Alex Rønne Petersen
cea435f68d
Remove mono/mini/README.
...
No real information in this one.
2015-04-07 14:56:38 +02:00
Alex Rønne Petersen
22e2de6529
Remove mono/mini/mini.prj.
...
This hasn't been updated for ages.
2015-04-07 14:55:25 +02:00
Marek Safar
0d79ff6979
[mcs] Bump ikvm to get fixed known custom attribute handling. Fixes #28014
2015-04-07 14:53:05 +02:00
Alex Rønne Petersen
d34f71c4ca
[profiler] Remove the old version of the log profiler.
2015-04-07 14:52:22 +02:00
Alex Rønne Petersen
1657026514
[profiler] Remove old mono-cov profiler.
...
We're replacing this with coverage support in the log profiler.
2015-04-07 14:51:27 +02:00
Alex Rønne Petersen
4cd4437b1f
Remove mono/profiler/log-profiler.txt.
...
This is just the man page.
2015-04-07 14:49:28 +02:00
Alex Rønne Petersen
467ca088b6
Remove outdated documentation from the docs subdirectory.
2015-04-07 14:46:41 +02:00
Alex Rønne Petersen
7fd61974ba
Remove old notes subdirectory.
2015-04-07 14:41:23 +02:00
Alex Rønne Petersen
44f87d758e
Remove build-mingw32.sh.
...
This script has not been maintained for a very long time and (as far
as I know) is not used by anyone.
2015-04-07 14:41:22 +02:00
Alex Rønne Petersen
b39e7e9d78
Remove AUTHORS file.
...
We've tried to keep up-to-date files/pages on active maintainers and it's
failed every time. This file is no exception.
2015-04-07 14:41:22 +02:00
Alex Rønne Petersen
4f510a6d02
Remove README.vsnet as it's largely irrelevant now.
2015-04-07 14:41:21 +02:00
Alex Rønne Petersen
455debc3d4
Remove spec file as we don't use it anymore.
...
See: https://github.com/directhex/mono-snapshot
2015-04-07 14:41:18 +02:00
Gabriel Garcia
2dcdfe76d0
[System] Fix DeflateStream throw on empty flush, double flush. Fixes #28777
2015-04-07 06:22:32 -04:00
Alex Rønne Petersen
54ab50194a
[profiler] Update data format version.
...
ed663c84a6 introduced a new enum value.
2015-04-07 06:21:37 +02:00
Zoltan Varga
c1d442bdc5
Merge pull request #1688 from alexanderkyte/handle_changing_processor_num
...
[runtime] Use _SC_NPROCESSORS_CONF not _SC_NPROCESSORS_ONLN
2015-04-06 22:38:48 -04:00
Zoltan Varga
2477b7e3c9
[runtime] Allocate more space to thunks in dynamic methods. Fixes #28747 .
2015-04-06 21:45:07 -04:00
Alexander Köplinger
a579b35829
Fix build broken by 4de22ecb21
...
config.h needs to be included before HAVE_COMPLEX_H is used, or it won't work.
2015-04-07 03:19:28 +02:00
Rodrigo Kumpera
4de22ecb21
[config] Move the complex.h check to autoconf instead of a PLATFORM_ANDROID check.
2015-04-06 18:38:47 -04:00
Rodrigo Kumpera
4732cbd1db
Merge pull request #1686 from akoeplinger/integrate-net20_35-reference-assemblies
...
Integrate binary reference assemblies for v2.0/3.5 into the build system
2015-04-06 17:21:31 -04:00
Zoltan Varga
50b8ab45ef
[runtime] Fix a double free when freeing some wrapper caches.
2015-04-06 17:13:19 -04:00
Rodrigo Kumpera
d1dc58df4e
[mini] Fix DISABLE_JIT support for simd.
2015-04-06 16:01:40 -05:00
Zoltan Varga
0f188ab4c4
[runtime] Remove unused wapi_interrupt_thread () fuction.
2015-04-06 16:05:29 -04:00
Alexander Kyte
76ecc392cd
[runtime] Use _SC_NPROCESSORS_CONF not _SC_NPROCESSORS_ONLN
...
We had a failing arm test which exposed that our caching of the
number of processors was leading to some inconsistencies when
the number of processors increased. TODO: Use the actual number of
online processors when rebalancing threadpool.
2015-04-06 15:42:49 -04:00
Marcos Henrich
24748ce981
Merge pull request #1624 from esdrubal/getprocesstimes
...
[runtime] GetProcessTimes now works with all processes.
2015-04-06 19:46:31 +01:00
Zoltan Varga
8d5eb9ec60
[runtime] Remove unused io-layer/system.{c,h}.
2015-04-06 14:46:46 -04:00
Alexander Köplinger
25f5d50737
Integrate binary reference assemblies for v2.0/3.5 into the build system
...
Rename the net_4_0 profile which is already only used to trigger copying of reference assemblies
to binary_reference_assemblies and include the 2.0/3.5 files there. This should make it easier
to add more profiles in the future and doesn't clutter the build system as much as making separate
net_2_0 and net_3_5 profiles that do the same.
2015-04-06 20:37:34 +02:00
Marcos Henrich
9abdfead5c
[corlib] Added test for Convert.ToInt64 and ToUInt64 overflows.
...
Added tests cover #17817 .
2015-04-06 19:19:46 +01:00
Rodrigo Kumpera
ffd38a0fa4
Merge pull request #1665 from alexanderkyte/sgen-alloc-assert
...
[runtime] Do not set flag to skip initialization of generic classes. Lea...
2015-04-06 14:14:20 -04:00
Rodrigo Kumpera
24a328b83c
Update the reference assemblies we ship in mono.
2015-04-06 12:49:27 -04:00
Atsushi Eno
9d9faec5df
Fix SMDiagnostics build.
2015-04-07 01:30:56 +09:00
Atsushi Eno
6c5b486073
[wcf] use different public key for mobile builds.
2015-04-07 01:30:32 +09:00
Atsushi Eno
69cbb0fb3c
Add another FrameworkPublicKeyFull which is based on silverlight.pub on mobile.
2015-04-07 01:30:11 +09:00
Atsushi Eno
3fcaf601c1
Add System.ServiceModel.Internals and SMDiagnostics to the build.
...
They build in both desktop and mobile profiles, but the sources are
mostly unchanged i.e. they contain Windows dependent code (DllImports).
The plan here is to import everything essential in WCF as buildable
sources, then remove Windows dependencies, then implement (or bring back)
mobile-ready code. But this commit can be used for different strategies
(like, we import sources from working parts, step by step).
2015-04-07 00:11:11 +09:00
João Matos
6acb0ebc46
Merge pull request #1682 from Garciat/patch-1
...
[System.IO.Compression] Check for buffer overrun in DeflateStream.Write
2015-04-06 15:54:08 +01:00
Alex Rønne Petersen
dbed540b63
Merge pull request #1683 from akoeplinger/fix-make-distcheck
...
Fix a few "make distcheck" errors
2015-04-06 16:44:30 +02:00
Alexander Köplinger
9ddafb97d0
[bcl] Fix "make distcheck"
...
Added a missing file to DISTFILES
2015-04-06 04:19:23 +02:00
Alexander Köplinger
26745f5685
[runtime] Fix "make distcheck"
...
Use $(srcdir) instead of ./ for commands so the path is correct.
Also added missing files to EXTRA_DIST.
2015-04-06 04:19:22 +02:00
Mark Probst
b46fca74a1
[runtime] Fix warnings.
2015-04-05 17:42:21 -07:00
Gabriel Garcia
3ea808102c
Protect against overflow
...
https://github.com/mono/mono/pull/1682#commitcomment-10578913
2015-04-05 17:11:01 -04:00
Alexander Köplinger
8223a8a6f2
[Mono.Parallel] Fix "make distcheck"
...
ConcurrentOrderedList isn't referenced in corlib's .sources file or anywhere else anymore,
so it was missing during "make distcheck".
Mono.Parallel still needs it though (and it is the only place), so move the file there.
2015-04-05 19:35:45 +02:00
Gabriel Garcia
8c3f126e70
Test: Check for buffer overrun
2015-04-05 11:57:43 -04:00
Gabriel Garcia
7e9f2d4563
Check for buffer overrun
2015-04-05 11:41:36 -04:00
Ludovic Henry
199cc80efb
[threadpool] Fix FullAOT build (2)
2015-04-05 11:29:08 +02:00
Ludovic Henry
bbdf534369
bump reference source
2015-04-04 17:30:26 +02:00
Marcos Henrich
ff126751d5
[corlib] TimeZoneInfo.TryAddTicks is now private.
2015-04-04 15:15:57 +01:00
Mark Probst
1a43231534
[sgen] Don't assert in GC.GetTotalMemory.
2015-04-03 14:15:02 -07:00
Mark Probst
ae4c1ef4e9
[sgen] Format block iteration macros.
2015-04-03 12:27:29 -07:00
Mark Probst
a4e8ad333e
[sgen] Remove a debug printf.
2015-04-03 11:42:57 -07:00
Marek Safar
5486ebff0c
[mcs] Accessibility of protected internal members in a derived class that is nested inside another class. Fixes #28022
2015-04-03 18:11:36 +02:00
Marek Safar
8069880d39
[mcs] Mutate nested storey initialization only when needed. Fixes #28211
2015-04-03 15:46:13 +02:00
João Matos
a362cb7ec4
Merge pull request #1679 from knguyen0928/master
...
Support more oids: aes128, aes256, sha256, sha512
2015-04-03 11:20:51 +01:00
Marcos Henrich
4614473ae5
Merge pull request #1678 from esdrubal/tzindst
...
TimeZoneInfo bug fixing.
2015-04-03 05:19:01 -04:00
Marcos Henrich
55e06987d3
[corlib] Refactored TimeZoneInfo DateTime overflow checks.
...
Added more overflow checks.
Fixed some overflow checks.
2015-04-03 03:58:49 -04:00
Zoltan Varga
50401f5f7c
[amd64] Add full-aot support for the sdb trampolines.
2015-04-03 01:08:17 -04:00
Zoltan Varga
d86446f8c2
[amd64] Use soft breakpoints in aot mode.
2015-04-02 19:56:25 -04:00
Mark Probst
8278dd36e9
[sgen] Increase assert levels.
2015-04-02 16:41:32 -07:00
Mark Probst
d62f8e204f
[sgen] Mark a function inline.
2015-04-02 16:41:32 -07:00
Mark Probst
74065cb71f
[sgen] Don't CAS when setting block state.
2015-04-02 16:41:32 -07:00
Mark Probst
c1385d214e
[sgen] Reinstate old M&S section reserve.
2015-04-02 16:41:31 -07:00
Mark Probst
9bcdbf2558
[sgen] Remove some dead code and data.
2015-04-02 16:41:31 -07:00
Mark Probst
01930f5b48
[sgen] Have the worker state just be an integer.
2015-04-02 16:41:31 -07:00
Mark Probst
83dfb12187
[sgen] Workers use thread pool.
...
So we only have one worker thread that's used both for marking and,
later, for sweeping, too.
2015-04-02 16:41:31 -07:00
Mark Probst
183dc2905b
[sgen] Wait for the sweep job properly.
2015-04-02 16:41:31 -07:00
Mark Probst
6fb229abc8
[sgen] Implement a simple thread pool and do concurrent sweep with it.
...
We cannot start threads during stop-the-world pauses (some thread APIs,
including pthreads, can deadlock), and we want to do marking and sweeping
with the same threads. This new thread pool facility will allow that.
2015-04-02 16:41:30 -07:00
Mark Probst
8333c2f4e7
[sgen] Fix a comment.
2015-04-02 16:41:30 -07:00
Mark Probst
55a2ff8f48
[sgen] Don't unnecessarily compute object size index.
2015-04-02 16:41:30 -07:00
Mark Probst
ec2572d90b
[sgen] Only do a debug block iteration on a higher assert level.
2015-04-02 16:41:30 -07:00
Mark Probst
1639beff7c
[sgen] Comments.
2015-04-02 16:41:29 -07:00
Mark Probst
c4b9b5cbe1
[sgen] Don't repeat code and don't load multiple times.
2015-04-02 16:41:29 -07:00
Mark Probst
75cfa06054
[sgen] Rename a function to better reflect what it does.
2015-04-02 16:41:29 -07:00
Mark Probst
14626e122f
[sgen] sweep_block() returns whether it actually swept.
2015-04-02 16:41:29 -07:00
Mark Probst
f5f2d2fb96
[sgen] Lock-free block array.
...
We tag pointers to blocks that are currently being processed. Those
must not even be dereferenced by other threads because the sweep
thread might free them at any point.
2015-04-02 16:41:28 -07:00
Mark Probst
68ba43ac72
[sgen] Clean up FIXMEs.
2015-04-02 16:41:28 -07:00
Mark Probst
578e66c235
[sgen] Just one iteration over the blocks at start of major collection.
2015-04-02 16:41:28 -07:00
Mark Probst
c24e166b3e
[sgen] Remove dead macros.
2015-04-02 16:41:28 -07:00
Mark Probst
b5b493d2da
[sgen] Assert world is stopped and not sweeping when iterating blocks.
2015-04-02 16:41:28 -07:00
Mark Probst
dc9f7f0d2c
[sgen] Whenever we wait for sweep, help the sweeping thread.
...
And since we always wait for the sweep now we can do iterations over
the blocks without taking the lock.
2015-04-02 16:41:27 -07:00
Mark Probst
b36a81c904
[sgen] Simplify allowance logic.
...
Don't use the difference to the last collection, but just calculate the maximum heap
size and trigger a collection when it's reached.
2015-04-02 16:41:27 -07:00
Mark Probst
f38b8aeccd
[sgen] Count major sections before/after sweep correctly.
2015-04-02 16:41:27 -07:00
Mark Probst
216713ebb6
[sgen] num_major_sections must be updated atomically.
...
It's updated from nursery collections and from the sweep thread concurrently.
2015-04-02 16:41:27 -07:00
Mark Probst
98d93adfde
[sgen] Write binary protocol for card scan before scanning the card.
2015-04-02 16:41:26 -07:00
Mark Probst
37068c1915
[sgen] Don't iterate over block array while it's being compacted.
2015-04-02 16:41:26 -07:00
Mark Probst
0a4d98c597
[sgen] Remove dead parameter to sweep_block().
2015-04-02 16:41:26 -07:00
Mark Probst
fcdb3a9111
[sgen] Allow card table scanning to do block checking work.
2015-04-02 16:41:26 -07:00
Mark Probst
7627baae51
[sgen] Fix initial block state.
...
New blocks need to be swept if they're allocated during a non-concurrent major
collection or while a concurrent major collection is running.
2015-04-02 16:41:26 -07:00
Mark Probst
440ca36610
[sgen] Comments.
2015-04-02 16:41:25 -07:00
Mark Probst
24262e02c1
[sgen] Make function for block checking wait for another potential thread.
2015-04-02 16:41:25 -07:00
Mark Probst
079804f45a
[sgen] Fix M&S heap consistency checks.
2015-04-02 16:41:25 -07:00
Mark Probst
b5682e3e0d
[sgen] Set the block state to CHECKING with the allocated blocks lock held.
2015-04-02 16:41:24 -07:00
Mark Probst
86eb54dddd
[sgen] Traverse block array from high to low in sweep thread.
...
The nursery collector requires that sweeping has finished, and instead
of waiting it will cooperate with the sweep thread to finish more
quickly. The sweep thread will traverse the block array from high
indexes to low ones while the nursery collector will go from low to
high. They will contend only very briefly when they meet somewhere in
the middle.
2015-04-02 16:41:24 -07:00
Mark Probst
9cabf9abb2
[sgen] Factor out function that checks individual blocks for sweeping.
2015-04-02 16:41:24 -07:00
Mark Probst
60078aecf6
[sgen] Binary protocol entries for block alloc/free/change state.
2015-04-02 16:41:24 -07:00
Mark Probst
3b1059b824
[sgen] Card clearing and moving to shadow cards don't require sweep.
2015-04-02 16:41:23 -07:00
Mark Probst
fdfaade45e
[sgen] Concurrent sweep
2015-04-02 16:41:23 -07:00
Mark Probst
7412b449e9
[sgen] Replace swept with more detailed block state.
2015-04-02 16:41:23 -07:00
Mark Probst
8e8efe39dd
[sgen] On forced major collections, free blocks.
2015-04-02 16:41:23 -07:00
Mark Probst
bfdfbe1206
[sgen] Make memory governor ready for concurrent sweep.
2015-04-02 16:41:22 -07:00
Mark Probst
e6699baa6c
[sgen] Sweep state instead of have_swept.
2015-04-02 16:41:22 -07:00
Mark Probst
0caf65b147
[sgen] Make slots free list lock-free.
2015-04-02 16:41:22 -07:00
Mark Probst
788b7846f2
[sgen] Guard allocated block array with a mutex.
...
Both the concurrent sweep thread as well as the nursery collector will
need access to the block array. Until we've made that lock-free,
we're simply using a lock.
2015-04-02 16:41:22 -07:00
Mark Probst
207f2a7475
[sgen] Function for querying whether world is stopped.
2015-04-02 16:41:21 -07:00
Mark Probst
1fbaf720cf
[sgen] Split sweeping into three parts: start, block loop, finish.
2015-04-02 16:41:21 -07:00
Alexander Köplinger
7f97d6fb3c
[System.Data] Fix 'make dist'
2015-04-03 00:23:26 +02:00
Zoltan Varga
0551f69b7e
Merge pull request #1680 from schani/feature-profiler-exception-handling
...
[profiler] Add missing code buffers for exception handling.
2015-04-02 17:33:07 -04:00
Mark Probst
ed663c84a6
[profiler] Add missing code buffers for exception handling.
2015-04-02 14:12:31 -07:00
Zoltan Varga
9ca4dc118e
[llvm] Emit division by zero/overflow checks for div/rem opcodes inside eh clauses, this is needed because llvm is not aware that these instructions can raise exceptions.
2015-04-02 16:34:24 -04:00
Sebastien Pouliot
7934663bb8
[linker] Ensure updated Scope for exported types (e.g. unlinked PCL facade assemblies in a Nuget) [ #28617 ]
2015-04-02 15:43:33 -04:00
Sebastien Pouliot
deda3beb52
[tools] Fix mono-cil-strip to return non-zero on failure [ #28617 ]
2015-04-02 15:41:38 -04:00
Khoa Nguyen
921b855093
More test for RSA Oid from FriendlyName
2015-04-02 13:14:55 -05:00
Khoa Nguyen
37a0a011d5
Add tests for supporting more oids: aes128, aes256, sha256, sha512
2015-04-02 13:09:43 -05:00
Zoltan Varga
a1db9aed23
Revert "[runtime] Use mono_set_pending_exception () in a few more places."
...
This reverts commit 0ae611a9eb .
Revert this as it causes crashes in the System.ServiceModel tests.
2015-04-02 12:39:57 -04:00
Khoa Nguyen
2ed62415b6
Support more oids: aes128, aes256, sha256, sha512
2015-04-02 10:50:43 -05:00
Marek Safar
ede464c4e0
[mcs] Check best dynamic candidate type parameters constrains only if it's single candidate. Fixes #28653
2015-04-02 17:34:51 +02:00
Marek Safar
759c8dcfa3
[mcs] Contextual var keywork cannot be shadowed by a namespace. Fixes #28648
2015-04-02 17:34:51 +02:00
Marek Safar
72d7a092c5
[mcs] DefaultParameterValue treats dynamic as object. Fixes #28645
2015-04-02 17:34:51 +02:00
Marcos Henrich
e427b80122
[corlib] Fixed ParseTZBuffer with DST periods longer than a year.
...
AdjustmentRule specifies a DST period that starts and ends within a year.
When we have a DST period longer than a year, the generated AdjustmentRule may not be usable.
Thus we fallback to the transitions.
Fixes #24086 .
2015-04-02 16:02:23 +01:00
João Matos
1dc9369450
Merge pull request #1677 from ninjarobot/fix-test-again
...
Fix XmlSerializationTest again.
2015-04-02 15:53:29 +01:00
Marcos Henrich
bcc65637da
[corlib] Removed referencesource duplicated code.
2015-04-02 15:52:00 +01:00
Dave Curylo
bae8fad714
Fix XmlSerializationTest again.
2015-04-02 10:51:31 -04:00
Marcos Henrich
2ea2aa6f7f
[corlib] Renamed GetUtcOffset to GetUtcOffsetHelper.
...
The new name is to avoid using the helper method instead of GetUtcOffset.
2015-04-02 15:47:17 +01:00
Marcos Henrich
e1acc28647
[corlib] Changed TimeZoneInfo methods to use GetUtcOffset.
...
In some cases rules are not available so we use GetUtcOffset instead of GetApplicableRule.
2015-04-02 15:44:45 +01:00
João Matos
8a8e35f8a1
Merge pull request #1676 from ninjarobot/fix-xml-ser-tests
...
Corrects error in XmlSerializerTests.
2015-04-02 15:43:41 +01:00
Dave Curylo
389008df93
Corrects error in XmlSerializerTests.
2015-04-02 10:38:33 -04:00
Marek Safar
ae820d9ea3
[mcs] Handle null operator inside parenthesis expression. Fixes #28172
2015-04-02 15:22:45 +02:00
Marek Safar
31557f8f7b
[mcs] Type parameter hidden methods should consider default parameters. Fixes #28651
2015-04-02 14:50:20 +02:00
João Matos
33ff5d8de9
Merge pull request #1672 from ninjarobot/patch-2
...
XmlSerializer should set *non* readonly {V}Specified fields
2015-04-02 13:05:43 +01:00
Marek Safar
4688209dd2
[corlib] CompareInfo from reference sources
2015-04-02 12:53:25 +02:00
Dave Curylo
c58f019266
XmlSerializer should set *non* readonly {V}Specified fields
...
Addresses an oversight in PR 1257 that caused {V}Specified fields to not be set during XML deserialization in some circumstances.
Adds test for optional value serialization round trip
2015-04-01 21:56:49 -04:00
Zoltan Varga
b4b7aee0af
Merge pull request #1674 from alexanderkyte/gdb_support
...
[runtime] Disable XDEBUG on OSX
2015-04-01 19:32:40 -04:00
Zoltan Varga
0ae611a9eb
[runtime] Use mono_set_pending_exception () in a few more places.
2015-04-01 19:30:37 -04:00
Zoltan Varga
9c1cc41d97
[jit] Avoid a crash if constrained_gsharedvt_call_setup () fails.
2015-04-01 16:53:58 -04:00
Miguel de Icaza
1562789a15
[doc] Format comment so our tools can process this
2015-04-01 16:18:13 -04:00
Rodrigo Kumpera
301b370f25
[threading] Fix compilation of coop suspend on windows.
2015-04-01 16:12:00 -04:00
Alexander Kyte
d6a7e425e8
[Runtime] Disable xdebug on OSX because it does not work and prevents gdb use.
2015-04-01 15:48:38 -04:00
Rodrigo Kumpera
03b7f17ecd
[corlib] FEATURE_STRONGNAME_MIGRATION should be used in all profiles to avoid breaking compat.
2015-04-01 14:29:24 -04:00
Rodrigo Kumpera
be570e4f3f
Merge pull request #1671 from kumpera/mobile_static_fixication
...
Fix some of the issues with the mobile_static profile.
2015-04-01 13:04:49 -04:00
João Matos
df2451caf1
Merge pull request #1673 from alexanderkyte/minor_cpp_fixes
...
[runtime] Fixed index comparison typo in class.c
2015-04-01 16:48:07 +01:00
Alexander Kyte
4e334d5d6a
[runtime] Fixed index comparison typo in class.c
2015-04-01 11:45:11 -04:00
Ludovic Henry
1ee3dc43a9
[threadpool] Fix potential infinite loop
2015-04-01 16:39:19 +01:00
Atsushi Eno
9a9ed94626
bump referencesource to fix Sys.Data mobile_static build.
2015-04-01 23:05:08 +09:00
Rodrigo Kumpera
c37e01b48d
[mobile] Fix the build order between System.Numerics and System.Data due to dependencies between them.
2015-04-01 09:35:23 -04:00
Rodrigo Kumpera
69f38c0cbe
[corlib] Fix the mobile_static profile.
2015-04-01 09:35:18 -04:00
Marek Safar
d5be7eb756
[corlib] Update more decimal separators. Further fixes for #17615
2015-04-01 14:22:16 +02:00
Marek Safar
87d259007a
[system.net.http] Use correct separator for headers tostring
2015-04-01 10:01:00 +02:00
Sebastien Pouliot
e4e6710df1
[tests] ManualResetEventSlim.SpinCount depends on the number of CPU/cores and we can't assume everything as multiple CPU/cores [ #28611 ]
2015-03-31 21:30:15 -04:00
Zoltan Varga
c6b25f7f24
[jit] Use mono_error_set_pending_exception () in jit icalls.
2015-03-31 21:26:35 -04:00
Zoltan Varga
b80d06dfa0
[runtime] Move mono_error_raise_exception () to metadata/ to fix a layering issue. Add mono_error_set_pending_exception () helper function.
2015-03-31 21:23:36 -04:00
Zoltan Varga
acdcee6a43
[jit] Increase some trampoline sizes.
2015-03-31 18:36:11 -04:00
Zoltan Varga
5a049a5573
[llvm] Reenable support for nested clauses.
2015-03-31 18:32:27 -04:00
Zoltan Varga
b3037b829b
[runtime] Add more caches to mono_marshal_get_native_wrapper () to avoid mixing wrappers with/without exception checks.
2015-03-31 18:32:10 -04:00
Alexander Kyte
90ef0ccc07
[runtime] Don't set flag to skip future initialization on half-baked classes
2015-03-31 17:18:40 -04:00
Zoltan Varga
2868ae13bd
[llvm] Disable support for nested clauses for now as it causes regressions in the corlib tests.
2015-03-31 17:01:11 -04:00
Zoltan Varga
fda8918ad0
[llvm] Implement support for nested clauses.
2015-03-31 16:31:08 -04:00
Zoltan Varga
2c79fbd566
[amd64] Enable thunk creation when using LLVM as well.
2015-03-31 16:31:08 -04:00
Ludovic Henry
e823702a31
[threadpool] Fix typo
2015-03-31 20:34:09 +01:00
Ludovic Henry
36baea1294
[threadpool] Add IO support + Needed refactoring of threadpool
2015-03-31 17:48:02 +01:00
Ludovic Henry
128b1a3e89
[threadpool] Move MonoAsyncResult invocation out of the ThreadPool
2015-03-31 17:48:00 +01:00
Ludovic Henry
d7dfccb3a6
[threadpool] Move threadpool-microsoft.{c,h} to threadpool-ms.{c,h}
...
Avoid having really long filenames when adding threadpool-ms-io.{c,h}
2015-03-31 17:47:59 +01:00
Ludovic Henry
8ab3f6577e
[threadpool] Remove RegisteredWaitHandle runtime code, as it is all in managed
2015-03-31 17:47:59 +01:00
Marek Safar
687b8bc0f3
[corlib] NumberFormatInfo from reference sources
2015-03-31 16:06:07 +02:00
Rodrigo Kumpera
b65b99d6c2
[socket-io] Fix crasher in System test suite.
2015-03-30 22:52:56 -04:00
Alexander Köplinger
ebf68cb708
[readme] Fix monolite instructions
...
EXTERNAL_MCS is misleading and wrong there, the build uses monolite automatically when appropriate.
2015-03-31 01:13:29 +02:00
Zoltan Varga
85109662c0
Add an --enable-gsharedvt configure option, same as the misnamed --enable-gsharing.
2015-03-30 16:53:48 -04:00
Marek Safar
88f920a7e8
[corlib] More globalization from reference sources
2015-03-30 18:34:40 +02:00
Marek Safar
5b1ee3ae63
[corlib] Fix commonly used encoding names
2015-03-30 18:34:40 +02:00
Marek Safar
54c079ad01
[corlib] Update culture currency separators
2015-03-30 18:34:39 +02:00
João Matos
8e8e3055f3
[runtime] Fixed a warning.
...
It can happen that THREAD_INFO_TYPE is already defined by a previously included header to just undefine it before re-redefining it.
2015-03-30 17:22:16 +01:00
João Matos
27a2f0ebea
[mini] Fixed the build.
...
LLVM_FAILURE will try to `goto FAILURE` so we need to add a label to the function to make the compiler happy.
2015-03-30 17:22:15 +01:00
João Matos
a3a643d447
[runtime] Enable the complex math support code on Android.
...
Previously I thought these implementations were not needed but dlopen () was complaining when loading libmonosgen.so on Android so we do need them.
2015-03-30 17:22:15 +01:00
João Matos
2608323126
[runtime] Add some complex math support code.
...
This is adapted from FreeBSD's code.
2015-03-30 17:22:15 +01:00
Zoltan Varga
dd258e5f7f
Bump referencesource to bcee91f8a0212e687db4d1d1a906f1f97e775051.
2015-03-30 11:32:37 -04:00
Marek Safar
8f07e6c5db
Remove old files
2015-03-30 17:12:23 +02:00
Rodrigo Kumpera
7d318ea4fa
[runtime] Fix the build.
2015-03-30 11:08:33 -04:00
Zoltan Varga
bf271f1a40
[llvm] Fix an uninitialized variable error.
2015-03-30 08:27:57 -04:00
HellBrick
7ee2810f4a
Moved WebConnectionGroup.Close() call out of the ServicePoint lock
...
WebConnectionGroup.Close() calls WebConnection.Close(), which takes connection lock and then takes the service point lock. Calling WebConnectionGroup.Close() leads to taking the service point lock *before* the connection lock, which leads to a deadlock.
2015-03-30 12:45:27 +03:00
Marek Safar
f504a2b781
[corlib] Replace more system exceptions from reference sources
2015-03-30 11:04:31 +02:00
Zoltan Varga
f9bdc96a15
[llvm] Generate code at the start of exception clauses to branch to the proper nesting clause so the EH code can branch to the innermost landing pad in the future. This is needed because LLVM always expects the innermost landing pad to be called.
2015-03-29 22:26:58 -04:00
Zoltan Varga
b387b3be2c
[runtime] Fix the passing of arguments to the stringbuilder ctor in mono_string_builder_new ().
2015-03-29 22:26:58 -04:00
Rodrigo Kumpera
8448c00630
[threading] Wrap socket code with coop suspend.
2015-03-29 12:11:12 -04:00
Rodrigo Kumpera
1cf48b8676
[threading] Wrap IO icalls.
2015-03-29 12:11:12 -04:00
Rodrigo Kumpera
050ac7a608
[threading] type init lock is complex enough that needs suspend protection.
2015-03-29 12:11:11 -04:00
Rodrigo Kumpera
50eea7f127
[threading] Make the loader and domain locks coop suspend aware.
2015-03-29 12:11:10 -04:00
Rodrigo Kumpera
1e15bda7da
[runtime] When interning strings, allocate without holding the ldstr lock.
2015-03-29 12:11:10 -04:00
Rodrigo Kumpera
3a82ac2a59
[threading] Wrap monitor code with coop suspend.
2015-03-29 12:11:09 -04:00
Rodrigo Kumpera
f582a3fbba
[threading] Make thread management coop suspend aware.
2015-03-29 12:11:03 -04:00
Rodrigo Kumpera
2800db163f
[threading] Make the GC lock coop suspend aware.
2015-03-28 20:46:09 -04:00
Rodrigo Kumpera
d74eda461c
[threading] Make n2m and m2n wrappers coop suspend aware.
2015-03-28 20:45:45 -04:00
Rodrigo Kumpera
e20471ad6b
[threading] Make thread start suspend aware
2015-03-28 20:44:09 -04:00
Marek Safar
45c8541ecc
Merge pull request #1666 from akoeplinger/fix-mono-options-messages
...
[Mono.Options] Fix messages in tests that changed after bf66c00bc7
2015-03-28 09:20:05 +01:00
Zoltan Varga
fb5f842089
[llvm] Extract some of the eh code into a separate function.
2015-03-27 18:49:08 -04:00
Alexander Köplinger
a9230cc258
[Mono.Options] Fix messages in tests that changed after bf66c00bc7
2015-03-27 22:37:11 +01:00
Marcos Henrich
c7ba3619f3
[runtime] Updates comments.
2015-03-27 20:36:35 +00:00
Marcos Henrich
b27c429878
[runtime] GetProcessTimes now works with all processes.
...
Fixes 26363.
2015-03-27 20:36:34 +00:00
Zoltan Varga
f048e17058
Add a test for the interning of String.Empty.
2015-03-27 15:24:33 -04:00
Zoltan Varga
61ec591084
[runtime] Intern String.Empty.
2015-03-27 15:23:19 -04:00
Miguel de Icaza
a22b9fc66b
Relicense socket-io.c to MIT
2015-03-27 14:46:05 -04:00
Marek Safar
bf66c00bc7
[corlib] System exception from reference sources. Some had broken serialization support
2015-03-27 18:15:46 +01:00
Atsushi Eno
6926b5836c
Use common consts in [InternalsVisibleTo] PublicKey specifications.
2015-03-28 01:46:09 +09:00
João Matos
18fe819708
Merge pull request #1664 from jbraswell/master
...
Fix issue with inserting null values into integer and datetime columns i...
2015-03-27 16:27:32 +00:00
Marek Safar
54b20c425d
[mcs] Import of interface member which is hidden by parameterless member. Fixes #28201
2015-03-27 11:27:20 +01:00
Zoltan Varga
2640dbed40
[jit] Avoid emitting seq points in inlined methods.
2015-03-27 06:26:13 -04:00
Marek Safar
71e65a64d8
Fixes System.Design build, the missing file does not apper to be needed
2015-03-27 11:12:50 +01:00
Marek Safar
87a7d20763
Fixes System.Data build
2015-03-27 10:59:15 +01:00
Zoltan Varga
8b3cfb97eb
[runtime] Synchronize the overflow checks between mono_string_new_size () and mono_gc_alloc_string ().
2015-03-27 05:51:22 -04:00
Marek Safar
02c0f8cf88
Bump reference sources to fix the build
2015-03-27 07:34:15 +01:00
Marek Safar
b1f7fb3d76
[mcs] Reset flowanalysis finally scope per parameters block. Fixes #28196
2015-03-27 07:33:49 +01:00
Jonathan Braswell
7ed9d55b18
Fix issue with inserting null values into integer and datetime columns in Sql Server.
...
This resolves https://bugzilla.xamarin.com/show_bug.cgi?id=26546 .
2015-03-26 23:43:12 -04:00
Atsushi Eno
059538c11a
Merge pull request #1662 from atsushieno/import-system-data-partial
...
Import System.Data from referencesource
2015-03-27 10:37:21 +09:00
Rodrigo Kumpera
b4d0381877
[threading] Add a coop backend. This paves the way to introduce cooperativeness into the runtime.
...
Coop requires the following set of rules:
-blocking code must be wrapped with MONO_PREPARE_BLOCKING / MONO_FINISH_BLOCKING
Must not read managed refs read/writes inside the block
Managed memory (i.e. inside a byte[]) must be previously pinned[1]
-state escaping transitions (lazy thunks and others sneaky n2m transitions) must be wrapped with MONO_PREPARE_RESET_BLOCKING / MONO_FINISH_RESET_BLOCKING
This lands the thread in runnable state, so be careful to keep it suspendable by following the target environment rules.
The set of rules for what runtime code can/can't are still in flux, but here's the tentative list:
== On Wrapping syscall/waits
- Wrap it on the callee. We can't necessarily know in which context the syscall will be called. This will reduce reentrancy issues as blocking is not reentrant.
- Don't go blocking while holding locks as this will certainly deadlock.
- Avoid allocating memory while holding locks.
- Annotate blocking restrictions in the comments in the same way we do it for locking.
== On aborting blocking
- Avoid it as much as possible as it might lead to unbound pauses.
- Make sure you can always restore back to blocking.
[1] Since we conservatively scan the native stack, acquiring the ref outside of the block is enough for now.
2015-03-26 19:44:17 -04:00
Rodrigo Kumpera
084cb4d103
[threading] Improve logging and troubleshooting helpers in coop suspend code.
...
Make sure all logging include the thread tid to ease correlation.
Add counters to check for proper balance of post/wait on the suspend semaphore.
Massive improvement in the coop suspend wait timeout crasher. It will now print
a cue card on the internal states. This makes finding the offending threads much easier.
2015-03-26 19:44:16 -04:00
Marek Safar
0d8231bb9e
[system.net.http] Parse range values using long range. Fixes #26109
2015-03-26 23:46:31 +01:00
Marek Safar
723bccc551
Merge pull request #1663 from JetBrains/valueserializerattribute
...
Move System.Windows.Markup.ValueSerializerAttribute to System assembly
2015-03-26 23:09:32 +01:00
Marek Safar
169ec6b890
[mcs] The left-hand side of an assignment cannot contain a null propagating operator. Fixes #28435
2015-03-26 22:51:56 +01:00
Leonid Shalupov
830bf66a13
move System.Windows.Markup.ValueSerializerAttribute to System assembly, as Microsoft does in .NET Framework 4.5
...
See MSDN https://msdn.microsoft.com/en-us/library/system.windows.markup.valueserializerattribute(v=vs.110).aspx
2015-03-26 19:18:26 +01:00
Zoltan Varga
14c5e0e144
[llvm] Avoid registering an exception table handler in jit mode, the same info is already available using another callback.
2015-03-26 12:31:34 -04:00
Marek Safar
7a5ea5244a
[mcs] Special case flowanalysis of primitive structs. Fixes #28296
2015-03-26 16:58:22 +01:00
Zoltan Varga
cb9586ef9c
[runtime] Update some comments.
2015-03-26 11:45:38 -04:00
Zoltan Varga
438e3b5ac3
Merge pull request #1659 from alexanderkyte/stringbuilder-referencesource
...
Fixed StringBuilder marshaling capacity error, and then the tests broken by fixing it.
2015-03-26 11:29:01 -04:00
Atsushi Eno
abd2d59acb
[Sys.Data] add InternalsVisibleTo(System.Data.DataSetExtensions).
2015-03-26 23:35:18 +09:00
Zoltan Varga
3a0929e114
Merge pull request #1658 from esdrubal/spgenerics
...
Improved generics in exception's stack traces and mono-symbolicate.
2015-03-26 09:43:06 -04:00
Atsushi Eno
5f8ad43886
Merge branch 'master' into import-system-data-partial
2015-03-26 22:23:49 +09:00
Atsushi Eno
37778f0cfd
[Sys.Data.DSExtensions] add AsEnumerable() test.
2015-03-26 21:54:11 +09:00
Atsushi Eno
cf3175c108
[Sys.Data,DSExtensions] fix hacky IsClosed() check.
...
It didn't work with referencesource.
2015-03-26 21:53:22 +09:00
Atsushi Eno
5e9da44ee0
[Sys.Data,DSExtensions] fix build wrt referencesource updates.
...
It caused name conflict with internal Sys.Data type (due to InternalsVisibleTo).
2015-03-26 21:52:18 +09:00
Marcos Henrich
84832ef221
[mono-symbolicate] Updated tool test.
...
Test now checks generic methods, generic classes, methods overloads, ref/out parameters.
2015-03-26 10:45:27 +00:00
Marcos Henrich
2a86ced42f
[mono-symbolicate] make check now runs mono with -O=-inline.
...
Inlining otimization is disabled so the full call stack can be displayed.
2015-03-26 10:45:27 +00:00
Marcos Henrich
dece3b4dd7
[mono-symbolicate] Improved tool stack trace handling.
...
Generics are no longer a problem.
2015-03-26 10:45:26 +00:00
Marcos Henrich
6aa8aa4810
[corlib] Changed Exception.GetFullNameForStackTrace to .NET behavior.
...
.NET displays the method definition generic argument names instead of types.
2015-03-26 10:45:25 +00:00
Marcos Henrich
4b46084c96
[corlib] Exception stack traces now show method index if needed.
...
Method index will be set if the method metadata token is shared by multiple generic specializations.
For StackFrame.GetILOffsetFromFile to work with generics methods a method index is required.
2015-03-26 10:45:25 +00:00
Marcos Henrich
93c9e38273
[runtime] .msym now stores method index.
...
The method index is required to disambiguate between generic methods that share the same metadata token.
2015-03-26 10:45:24 +00:00
Marcos Henrich
8420aef987
[runtime] Added function mono_aot_find_method_index.
...
Method index will be included in some aot stack traces, when method metadata token is not enough (e.g: generic methods).
2015-03-26 10:28:19 +00:00
João Matos
e7042f6321
Merge pull request #1660 from akoeplinger/fix-zone-url-with-at-sign
...
[corlib] Don't strip @ char in Mono.Security.Uri for absolute path
2015-03-26 10:22:43 +00:00
Zoltan Varga
03503bc020
[runtime] Avoid a crash in mini_thread_cleanup () for attached threads.
2015-03-26 06:06:29 -04:00
Zoltan Varga
861ea992dc
[readme] Remove xamcore reference.
2015-03-26 06:04:11 -04:00
Zoltan Varga
b9abb7c34b
Bump referencesource to pick up 3176b17a2c636dfd5f885435f8449598ecd4197f.
2015-03-26 06:03:16 -04:00
Zoltan Varga
3e14fe5bf3
[runtime] Initialize String.Empty from native code to allow removal of String:.cctor ().
2015-03-26 06:03:15 -04:00
Marek Safar
26a8c65af8
[mcs] Report abstract member hiding only for members which one can override. Fixes #28213
2015-03-26 10:07:55 +01:00
HellBrick
893bacaf9a
Fixed deadlock in WebConnectionGroup.Close()
...
The fix is similar to the one used in the TryRecycle() method: we defer connection closing until after we've left the lock. The original bug: https://bugzilla.xamarin.com/show_bug.cgi?id=27348
2015-03-26 11:48:30 +03:00
Zoltan Varga
f8c885d697
[mkbundle] Use mingw assembler on windows.
2015-03-26 04:18:33 -04:00
Atsushi Eno
8b7ad259c5
Fix winforms tests that don't match .NET behavior.
2015-03-26 10:46:11 +09:00
Alexander Köplinger
d759188d30
[corlib] Don't strip @ char in Mono.Security.Uri for absolute path
...
When creating a Mono.Security.Uri with the string "file:///var/lib/jenkins/workspace/test-mono-mainline@2/..."
(happens sometimes in System.Security.Policy.Zone-related unit tests on Jenkins) the current implementation
strips everything up until the @ sign.
Zone thinks the file doesn't exist locally as the Uri.LocalPath doesn't refer to a valid file on disk
anymore and this results in an incorrect zone value, making the tests fail.
Fixing this by treating the @ char differently when it is in an absolute path (as is done for other chars).
2015-03-26 02:35:57 +01:00
Martin Baulig
6808e6a5e6
[System]: Fix the AllowWriteStreamBuffering check. Bugs #26640 and #26936 .
...
Added new tests for this to the web-tests:
https://github.com/xamarin/web-tests/commit/e7b5ac42897e629e9e4107cf6f9ae9e0a9fef45a
and re-enabled this one, which regressed:
https://github.com/xamarin/web-tests/commit/046da02c631c8799c7ab5025cd3b685f4a3e66f6
2015-03-26 01:26:19 +01:00
Martin Baulig
a081090e77
Bump referencesource and add test for the problem.
2015-03-25 22:33:02 +01:00
Marek Safar
ffd377bb96
Update failing test
2015-03-25 20:28:50 +01:00
Marek Safar
eec68d08b1
[System.Runtime.Serialization.Formatters.Soap] A test fix to remove hashtable order dependency
2015-03-25 20:07:42 +01:00
Alexander Kyte
dd4a723754
[corlib] Fixed StringBuilder construction bugs in marshalling caused by changes to capacity setting.
2015-03-25 14:19:34 -04:00
Marek Safar
df423753f1
Revert "[mcs] Special case flowanalysis of primitive structs only when they are imported. Fixes #28296 "
...
This reverts commit b50e898ece .
2015-03-25 19:17:31 +01:00
Rodrigo Kumpera
579a7b4748
[threading] Reorganize code to work with the coop backend.
...
This splits the native backend from core functionality it needs to provide. For example,on posix, we want to
use the pthread_create code regardless of the backend enabled.
2015-03-25 13:49:38 -04:00
Rodrigo Kumpera
17896b0902
[threading] Introduce a pair of states to handle native suspend.
...
Native code should not normally be in runnable state. That's reserved only for managed code. In theory.
In practice any code that can witness the managed heap must be in the runnable state.
This in practice means all runtime code (icalls) and embeders. Right now lets focus on the runtime side.
The solution for this is to wrap all calls that could lead to unbound suspension in code that coordinates
with the GC - most syscalls that can block. This is realized with a pair of additional thread states.
1)Blocking: This the state where the runtime is doing something that can potentially block. The suspend count
will be > 0 if the current thread is suspended. In practice it won't suspend, just wait on resume.
2)Blocking and suspended: When leaving the blocking state, if the thread has a pending suspend, we transition
to this state while waiting for resume.
2015-03-25 13:49:38 -04:00
Rodrigo Kumpera
ae58b3085a
[threading] Move jit_data from MonoThreadInternal to MonoThreadInfo. Cleanup jit attach code to support earlier attaching.
...
This move allows us to save the thread state much earlier on. In addition to the move, we now produce thread contexts without
the JIT TLS set. This might end up been an issue in some corner cases, just like with domain, so we'll address those when
they show up.
2015-03-25 13:49:38 -04:00
Rodrigo Kumpera
ae8a8fb08d
[threading] Surface mono_thread_info_current_unchecked.
2015-03-25 13:49:37 -04:00
Rodrigo Kumpera
98b283714a
[threading] Log the thread tid instead of the MonoThreadInfo pointer.
...
Other places are already logging tid so this makes correlation possible.
TID is a better pick than the MonoThreadInfo pointer as it's easier to find the thread on gdb.
2015-03-25 13:49:37 -04:00
Rodrigo Kumpera
b614f16800
[threading] Add configure option to enable cooperative suspend.
2015-03-25 13:49:37 -04:00
Atsushi Eno
ba779e83fd
[Sys.Data] fix data adapter tests. ByteFx.Data and Npgsql are gone.
2015-03-26 02:22:00 +09:00
Marek Safar
b50e898ece
[mcs] Special case flowanalysis of primitive structs only when they are imported. Fixes #28296
2015-03-25 17:59:48 +01:00
Zoltan Varga
fb08db1765
[jit] Trucate the shift amount in the long shift emulation functions to better mirror the behavior of the processor shift instructions.
2015-03-25 12:39:30 -04:00
Atsushi Eno
2737a5a2f8
bump referencesource.
2015-03-26 01:28:57 +09:00
Marek Safar
f46e880311
[corlib] Add missing file
2015-03-25 17:26:47 +01:00
Atsushi Eno
0f1738c6bf
System.Design.dll depended on System.Data internals so remove deps.
...
The old internal types don't exist in new System.Data.dll.
2015-03-26 01:25:04 +09:00
Atsushi Eno
f763a00632
[Sys.Data] reuse our SqlClient implementation.
...
Basically Microsoft SqlClient implementation is full of Windows dependencies
that doesn't work elsewhere. Our implementation has been fully managed
TDS implementation, so we want to bring it back.
This only builds and is not known to "work" yet.
2015-03-26 01:25:04 +09:00
Atsushi Eno
45b00acfd2
[Sys.Data] there are many tests that were unverified on .NET. Fix them.
2015-03-26 01:25:03 +09:00
Atsushi Eno
b232392703
[Sys.Data] Fix bogus tests: DataRelation cannot be created for non-dataset cols.
2015-03-26 01:25:02 +09:00
Atsushi Eno
92ca41585b
Fix mobile builds with several #if-s in referencesource.
2015-03-26 01:25:02 +09:00
Atsushi Eno
bc92f49109
bump referencesource.
2015-03-26 01:25:02 +09:00
Marek Safar
d8f53a2d39
Merge pull request #1644 from ztone/eval_class_attr
...
[eval] Allow class attributes
2015-03-25 17:24:55 +01:00
Atsushi Eno
c48e31fa9e
[Sys.Data] replace dummy Res.cs messages with real ones.
...
It uses ../System.XML/genresstrings.sh.
2015-03-26 01:24:24 +09:00
Atsushi Eno
3d46f1d9c7
[System.Data] completely replace sources with referencesource.
...
Hence, it does NOT work fine due to various win32/native dependencies
that need to be replaced.
2015-03-26 01:24:24 +09:00
Atsushi Eno
2ffd706212
[build/common] Add EcmaFullKey.
2015-03-26 01:24:23 +09:00
Marek Safar
de86cb955b
[mcs] Resize identifier buffer in all cases. Fixes #28292
2015-03-25 17:17:23 +01:00
Alexander Kyte
828e749949
[corlib] Fixed wrongly changing capacities in stringbuilder marshalling
2015-03-25 12:14:06 -04:00
Marek Safar
db2a67f0d5
[mcs] Fix parsing of interpolated strings inside conditional expression. Fixes #28293
2015-03-25 16:34:29 +01:00
Alexander Köplinger
31bc329ddc
Fix a typo and code indentation in readme.md
2015-03-25 15:28:24 +01:00
Marek Safar
e58097e957
[corlib] String from reference sources, fixes mostly string.format issues
2015-03-25 15:08:06 +01:00
João Matos
2faa7dc28d
[runtime] Fixed the build on Android by relying on header checking for system headers.
2015-03-25 14:04:40 +00:00
João Matos
df23dc46c6
[runtime] Fixed complex.h usage in MS's thread pool to work in Android.
...
Android does not provide complex.h in the API levels that we compile against so bundle our own header (based on the one from FreeBSD).
Turns out GCC already provides built-in handling for the complex functions used by the code so there's no need to provide our own implementations.
2015-03-25 14:04:40 +00:00
João Matos
9577c879ee
Merge pull request #1657 from alexrp/disable-perf-events
...
[profiler] Disable `perf` events by default.
2015-03-25 12:59:30 +00:00
Zoltan Varga
5c275e72d7
[io-layer] Fix the freeing of MonoProcess structures. Fixes #28209 .
2015-03-25 08:32:14 -04:00
Alex Rønne Petersen
ce418756c9
[profiler] Disable perf events by default.
...
As it turns out, `perf` support crashes/hangs on a lot of Linux
kernels in the wild, and produces no output on some Android devices.
So, given that using a signal + helper thread is more reliable, use
it by default and make `perf` support optional.
The configure flag is now `--enable-perf-events`.
2015-03-25 13:22:39 +01:00
Alex Rønne Petersen
97b59a9741
[profiler] Avoid a slow path in mono_jit_info_table_find ().
2015-03-25 13:13:38 +01:00
Alex Rønne Petersen
7e163fce46
[profiler] Really fix looking up JIT info for AOT'd methods.
...
mono_aot_get_method () will not necessarily put methods into the
MonoDomain::jit_code_hash table. But it does return an IP that we
can use to look up the JIT info with mono_jit_info_table_find ().
2015-03-25 13:04:43 +01:00
Marek Safar
7ade5f7d7b
[mcs] Allow built-in types to have partial declaration
2015-03-25 12:34:26 +01:00
Zoltan Varga
fd7f2f07f0
[runtime] Revert eaf200b37b and all fixes to it since it still causes hangs.
2015-03-25 05:14:42 -04:00
Zoltan Varga
c8c2d227be
[runtime] Avoid returning null from Marshal.AllocCoTaskMem () if size is 0. Fixes #28383 .
2015-03-25 01:29:27 -04:00
Zoltan Varga
8e091fd004
[runtime] Fix list removal in eaf200b37b.
2015-03-25 01:07:13 -04:00
Miguel de Icaza
0648b50cdf
Add submodule instructions
2015-03-24 22:13:10 -04:00
Alex Soto
cdfc2d6b9a
[MonoDataSqlite] Add test for Xamarin.iOS specific bug 27864
...
src: https://bugzilla.xamarin.com/show_bug.cgi?id=27864
As of iOS 8.2 Apple updated Sqlite and broke queries that used to work
pre iOS 8.2 like the select command in this test, The pruppose of this
test is to know when apple fixes this. Expected test behaivour is as follows.
* If iOS 8.2+ Test will pass as long as apple does not fix the bug
* If iOS < 8.2 Test will pass as it does work as expected
* If iOS 8.2+ and apple fixed bug 27864 test will fail and we will need to
remove the fail check on lines 105 and 106
2015-03-24 17:24:02 -06:00
Zoltan Varga
b4fc24bab0
[amd64] Fix OP_SHR_IMM/OP_SHL_IMM.
2015-03-24 17:54:51 -04:00
Zoltan Varga
423cd5280f
[runtime] Fix another regression caused by eaf200b37b.
2015-03-24 16:51:31 -04:00
Zoltan Varga
d03981860e
[arm] Handle OP_SEQ_POINT opcodes during peephole optimizations correctly.
2015-03-24 16:46:44 -04:00
Zoltan Varga
afb1de8b7c
Merge pull request #1655 from ghuntley/patch-1
...
corrected spelling mistakes.
2015-03-24 16:44:02 -04:00
Geoffrey Huntley
6cb40b05fd
corrected spelling mistakes.
2015-03-25 07:38:58 +11:00
Zoltan Varga
e4fc9ed0cd
[runtime] Fix an uninitialized memory error added by eaf200b37b.
2015-03-24 14:56:06 -04:00
Zoltan Varga
eaf200b37b
[io-layer] Fix the freeing of MonoProcess structures. Fixes #28209 .
2015-03-24 12:35:41 -04:00
Sebastien Pouliot
b07e58ed99
[tests] Tweak MemoryMappedFile test case that fails on iOS/ARM64 [ #27667 ]
...
Filled with Apple. From bug report:
The problem appears to be caused by a bug in mmap on the arm64 ios.
In this test, we request a page and mmap returns successfully, but when trying
to access the mapped memory, the program crashes after the 4097th byte, meaning
that it only maps us 4kb(???). It should be mentioned that on arm64 ios the
page size is 16kb.
2015-03-24 10:46:33 -04:00
Marek Safar
f0e39b7bab
[corlib] ngen attributes from reference sources
2015-03-24 14:59:52 +01:00
Marek Safar
3d351a3b9d
[corlib] Remove unused files
2015-03-24 14:59:52 +01:00
Marek Safar
e16e002a3a
[corlib] ExceptionServices from reference sources
2015-03-24 14:59:52 +01:00
Marek Safar
98fce55b7e
[corlib] Debugger attributes from reference sources
2015-03-24 14:59:52 +01:00
João Matos
381708c6cd
Merge pull request #1634 from StephenMcConnel/bug-28025
...
Show thumbnail images in SWF.(Open,Save)FileDialog
2015-03-24 11:31:51 +00:00
Ludovic Henry
54be424882
[runtime] Remove unnecessary winbase.h header include on Windows
2015-03-24 11:28:39 +00:00
João Matos
5190434004
Merge pull request #1652 from debuglevel/bugfix-crosscompile
...
fixed case-sensitive file name for cross compilation
2015-03-24 11:25:08 +00:00
Zoltan Varga
6b4119a8e1
Merge pull request #1588 from BrzVlad/feature-aot-wbarrier
...
AOT write barrier method
2015-03-24 05:29:29 -04:00
Marek Safar
e82dc02e27
Merge pull request #1638 from esdrubal/servicepoint
...
[System] Fixed RemoveConnectionGroup concurrent issue.
2015-03-24 10:25:57 +01:00
Zoltan Varga
fe15af27f1
Merge pull request #1632 from alexanderkyte/bug24118
...
[corlib] Fixed change in 4b4ddb66b3 that prevented use of remoting fast path
2015-03-24 05:24:58 -04:00
Marek Safar
e959cc70a4
[system] FrameworkName from reference sources
2015-03-24 09:30:03 +01:00
Marek Safar
273377896c
[mcs] Emit correct assignment to ref pointer
2015-03-24 08:43:54 +01:00
Marek Safar
00da227b09
Fixes build
2015-03-24 07:27:57 +01:00
Marek Safar
5928965bda
[system.windows.forms] Add AssemblyNamesTypeResolutionService to correctly fix 78b63f29d5
2015-03-24 07:15:03 +01:00
Alex Rønne Petersen
8ce49aeb39
Typo fix...
2015-03-24 02:44:52 +01:00
Alex Rønne Petersen
8cfe0fb9e8
[arm] Also fix OP_ATOMIC_STORE_R4.
2015-03-24 02:43:15 +01:00
Miguel de Icaza
d84ec9f6fd
Man page update
2015-03-23 21:31:12 -04:00
Mark Probst
569e0265da
Merge pull request #1596 from schani/feature-sgen-improvements
...
Small SGen fixes and improvements
2015-03-23 15:36:03 -07:00
Mark Probst
8a7aeb7a97
[sgen] Fix slot size calculation.
...
The way we calculated slot sizes was very brittle when it came to
small slots. Reducing the size of the block header could trigger it
skipping an important small size class, which would lead to increased
memory usage and slower execution times.
Now we always produce all possible small slot sizes, up to four times
the minimum object size.
2015-03-23 15:34:06 -07:00
Mark Probst
27d742e99c
[sgen] Remove stealing.
...
We only have one worker thread. There is no point in stealing.
2015-03-23 15:34:06 -07:00
Mark Probst
4ee3709d17
[sgen] Save more space in M&S block infos.
2015-03-23 15:34:06 -07:00
Mark Probst
0078135fe1
[sgen] Do pinning of M&S blocks in one pass. Saves time and memory.
2015-03-23 15:34:05 -07:00
Mark Probst
db7f017433
[sgen] Store worker's job names for debugging.
2015-03-23 15:34:05 -07:00
Mark Probst
19dc5a91a0
[sgen] Allow skipping of entries in sgen-grep-binprot.
2015-03-23 15:34:05 -07:00
Mark Probst
eb24f1cb56
[sgen] Some clarifying comments and rearrangements.
2015-03-23 15:34:05 -07:00
Mark Probst
9dada5274f
[sgen] Remove dead code.
2015-03-23 15:34:05 -07:00
Mark Probst
d4c27ef577
[sgen] Binary protocol entry for pin-staging cemented objects.
2015-03-23 15:34:04 -07:00
Mark Probst
43752c07ce
[sgen] Only scan mod-union in LOS on marked objects.
2015-03-23 15:34:04 -07:00
Mark Probst
db00d189de
[sgen] Free lists in blocks must be volatile.
2015-03-23 15:34:04 -07:00
Mark Probst
47fc9ff800
[sgen] Rename a callback for clarity.
2015-03-23 15:34:04 -07:00
Mark Probst
4f546cdcb4
[sgen] Don't scan until jobs done in worker thread.
...
The jobs must always have priority because the concurrent collector
waits for them to finish before restarting the world.
2015-03-23 15:34:03 -07:00
Mark Probst
5b009431e7
[sgen] Fix names and remove superfluous parameters.
2015-03-23 15:34:03 -07:00
Mark Probst
d08417cfe7
[sgen] Move debug code to sgen-debug.c.
2015-03-23 15:34:03 -07:00
Mark Probst
a0e7914ef8
[sgen] Rename have_computed_minor_collection_allowance to free_swept_blocks.
...
Because that's what it actually does.
2015-03-23 15:34:03 -07:00
Mark Probst
3b842277dd
[sgen] Remove superfluous function indirection.
2015-03-23 15:34:03 -07:00
Mark Probst
d877651ddd
[sgen] Replace have_swept pointer with callback.
...
We want to use a state variable instead of `have_swept`, so we need a callback
to abstract.
2015-03-23 15:34:02 -07:00
Mark Probst
f1d0587eca
[sgen] Don't pass redundant scan_mod_union to major_finish_collection().
2015-03-23 15:34:02 -07:00
Mark Probst
cb84d02dad
[sgen] Disable cementing for concurrent M&S.
...
The code just worked because it never reset cementing. It needs to be
completely rewritten.
With cementing enabled, at the start of a major concurrent
collection, we cannot reset it. That's because if we have
cemented objects, some remsets to them will be missing, and the
major collector does not scan the whole heap immediately, like
the non-concurrent one does.
The proper way to do it seems to be to reset cementing before
finishing a concurrent collection. All major objects that point
to formerly cemented objects must either be marked in the
mod-union table or the current card table. When we scan the card
tables, we should be able to just evict objects.
Currently, the finishing collection pause still does some
scanning via the worker thread. This might be a problem.
2015-03-23 15:34:02 -07:00
Mark Probst
af0a841ac1
[sgen] Don't re-check reference after marking in concurrent mark.
...
If the reference was modified, it was done by the mutator, in which case it will
have marked the card if necessary.
2015-03-23 15:34:02 -07:00
Sebastien Pouliot
298962b7dd
[tests] Tweak DateTime.AddMillisecondsOutOfRangeException* tests to work on ARM [ #28311 ]
2015-03-23 18:08:47 -04:00
Neale Ferguson
ca5bebb67c
Fix decimal comparison by using signed char comparison of signs; Fix size of jmp instruction sequence
2015-03-23 17:43:41 -04:00
Rodrigo Kumpera
cee3ef1011
Merge pull request #1631 from alexanderkyte/stringbuilder-referencesource
...
Switch to using referencesource StringBuilder, with runtime fixes and tests
2015-03-23 17:18:59 -04:00
Rodrigo Kumpera
01d33033b6
Merge pull request #1595 from directhex/randomize-tcp-ports-in-tests
...
Randomize tcp ports in tests
2015-03-23 17:09:13 -04:00
Rodrigo Kumpera
6e60374fc3
[threading] Use a RT signal for abort when possible.
2015-03-23 16:09:36 -04:00
Zoltan Varga
fc846a4acb
[arm] Fix OP_ATOMIC_LOAD_R4.
2015-03-23 14:25:17 -04:00
Marek Safar
919684c7af
[system] Don't replace CategoryAttribute value with key when not found. Fixes #28331
2015-03-23 17:44:02 +01:00
Zoltan Varga
68106cd2f5
Fix a warning.
2015-03-23 11:51:39 -04:00
Marek Safar
52003dc6f7
[corlib] System.Resources from reference sources
2015-03-23 16:49:15 +01:00
Jo Shields
85c7025f9d
Add port randomization to ClientWebSocketTest and HttpListenerTest
...
These two are consistently failing due to port re-use. Other hard-coded
ports exist, but let's target the *known* issues primarily, and can
handle the others ad-hoc if they demonstrate that they're problematic.
2015-03-23 14:42:16 +00:00
Jo Shields
02981d6bc0
Add a helper class to assign a random port for a test.
...
This helps in cases where two copies of the test suite are
running simultaneously, and both want to use the same hard-coded
ports in tests.
2015-03-23 14:40:44 +00:00
Marc Kohaupt
9af71e92aa
fixed case-sensitive file name for cross compilation
2015-03-23 14:43:14 +01:00
João Matos
2255f5d2b3
Merge pull request #1646 from myrup/master
...
TimeZoneInfo.Local improvements
2015-03-23 13:02:47 +00:00
Marek Safar
2dd0f1aa0b
[corlib] MethodBase from reference sources
2015-03-23 10:59:32 +01:00
Marek Safar
c32bc77dba
[corlib] Member|TypeInfo from reference sources
2015-03-23 09:25:59 +01:00
Marek Safar
78b63f29d5
[system.windows.forms] Update failing test
2015-03-23 09:25:58 +01:00
Zoltan Varga
6a74b1952f
[runtime] Throw an exception on allocation failure from Marshal.AllocHGlobal/ReAllocHGlobal. Fixes #28290 .
2015-03-22 03:56:09 -04:00
Zoltan Varga
0e692a4699
[aot] Remove support for non-separate llvm mode.
2015-03-22 01:44:03 -04:00
Zoltan Varga
3b7b1d0ee3
[jit] Remove support for LLVM_API_VERSION < 4.
2015-03-22 01:32:17 -04:00
Jonathan Pryor
44bccacc12
Merge pull request #1641 from joelmartinez/docs-monodoc-mdoc-patches
...
monodoc/mdoc patches
2015-03-21 08:23:22 -04:00
Zoltan Varga
afd07af772
[jit] Enable partial sharing only in full-aot mode.
2015-03-21 05:18:04 -04:00
Zoltan Varga
525132a68b
[jit] Unify the handling of the type parameters in generic sharing. Instead of using the generic parameters of the generic definition for reference types, use a generated type parameter with gshared_constraint set to MONO_TYPE_OBJECT.
2015-03-20 21:38:33 -04:00
Sebastien Pouliot
48d64eb82a
[tests] Some of the new decimal tests (ported from MS tests) do not work on every culture, this set one that works for them
2015-03-20 15:25:52 -04:00
Marek Safar
93310d9e66
[corlib] Remove unmanaged type IsVisible path. Fixes #28235
2015-03-20 17:38:19 +01:00
Marek Safar
50b27bb659
[corlib] Enable legacy LCID api
2015-03-20 14:50:43 +01:00
Marek Safar
b5562aac99
[mcs] Test update
2015-03-20 14:50:43 +01:00
Marek Safar
32f1d4fa07
Revert "Fix more System.Web tests."
...
This reverts commit 7fa35b58ca .
2015-03-20 14:50:42 +01:00
Marek Safar
97384e4371
[corlib] Pointer from reference sources
2015-03-20 14:50:42 +01:00
João Matos
af0be5ce1c
[runtime] Check for MSVC instead of non-GCC in mono_threads_core_set_name.
...
This is just a small cleanup and will also work for Clang since it defines _MSC_VER in MSVC-compatible mode.
2015-03-20 13:03:55 +00:00
Marek Safar
2c95d347b6
[corlib] More simple System.Reflection types from reference sources
2015-03-20 12:25:07 +01:00
Zoltan Varga
7fa35b58ca
Fix more System.Web tests.
2015-03-20 07:04:42 -04:00
João Matos
c4969d2e1a
Merge pull request #1647 from svedm/master
...
Fix duplicate sub-expressions
2015-03-20 11:02:52 +00:00
Svetoslav Karasev
6bbd7e7c4a
Fix duplicate sub-expressions
2015-03-20 15:56:59 +05:00
Marek Safar
e373163859
[corlib] Add new test
2015-03-20 11:20:58 +01:00
myrup
2e90ab901d
Fixed TimeZoneInfo.Local windows xp issue
...
Windows xp StandardName property has an exception when system time is UTC.
2015-03-20 10:50:43 +01:00
Marek Safar
d7c4554b90
[corlib] MemberInfoSerializationHolder from reference sources. Fixes generics serialization and other issues
2015-03-20 10:39:58 +01:00
Marek Safar
4913b6b537
[system.web] Update failing test
2015-03-20 10:17:55 +01:00
myrup
48bf9b6d29
Added null check
...
CreateLocal could fail in an unexpected manner. The change re-enables fall back to environment variable "TZ" and allows TimeZoneInfoNotFoundExceptions to be thrown instead of NullReferenceException.
2015-03-20 09:42:34 +01:00
Zoltan Varga
ad7370256c
Merge pull request #1645 from myrup/master
...
Fixed TimeZoneInfo.Local on windows xp
2015-03-19 23:51:21 -04:00
Zoltan Varga
c43e4dd749
[aot] Fix support for direct icalls in llvm mode.
2015-03-19 23:25:45 -04:00
Zoltan Varga
3fe087c453
[jit] Use unique castclass caches in all cases. Fixes #27787 .
2015-03-19 22:45:49 -04:00
Zoltan Varga
c3facda138
[runtime] Fix the isinst_with_cache wrapper on 64 bit platforms.
2015-03-19 22:44:43 -04:00
myrup
9abf43e02a
Fixed TimeZoneInfo.Local on windows xp
...
Fall back to “StandardName” subkey when “TimeZoneKeyName” isn’t present.
2015-03-20 00:39:19 +01:00
Zoltan Varga
e2614fc56e
[sdb] Add support for TypedReferences. Fixes #28181 .
2015-03-19 19:33:26 -04:00
Zoltan Varga
9a01841382
[corlib] Implement FieldInfo.SetValueDirect ().
2015-03-19 18:59:52 -04:00
Stone Gislason
12ee824f5f
[eval] Allow class attributes
2015-03-19 21:50:20 +00:00
Marek Safar
939a8f904b
[corlib] Return top-level parameter custom attributes when no base methods exists. Fixes #28184
2015-03-19 22:43:00 +01:00
Zoltan Varga
adccb63177
[io-layer] Avoid closing std file descriptors on shutdown. Fixes #28098 .
2015-03-19 17:35:46 -04:00
Marek Safar
d437ea4bbc
[corlib] TypedReference from reference sources
2015-03-19 22:00:11 +01:00
Marek Safar
840c5b7e41
Merge pull request #1642 from vestild/modulebuilder-definetype
...
[System.Reflection.Emit] fix typo in ModuleBuilder.DefineType
2015-03-19 21:45:42 +01:00
Vlad Zaitsev
bd82bd3689
[System.Reflection.Emit] fix typo in ModuleBuilder.DefineType
2015-03-20 00:42:06 +05:00
João Matos
0ff25ec2d5
[mini] Small code cleanup, check for iOS host instead of Apple/ARM.
2015-03-19 18:44:40 +00:00
João Matos
86093bbe48
[windows] Fixed thread async suspend assert.
...
This should be asserting for 1 instead of 0, this way we actually assert that the thread was resumed.
2015-03-19 18:44:40 +00:00
João Matos
13a1b2e747
[windows] Remove some cruft used by the old Windows installer.
2015-03-19 18:44:40 +00:00
Marek Safar
375408f92a
[runtime] Remove unused icall
2015-03-19 16:28:10 +01:00
Joel Martinez
6a35acd4e1
[monodoc] Added PlatformDocApi to the list of valid related sections.
...
The use case here is when you are documenting a managed wrapper on top of a native platform API. This related link can be used to link to the original platform documentation for that member. This lets the reader look up the semantics of the native call without you having to duplicate the documentation in the managed reference docs; leaving you to focus your energies on documenting any unique considerations when calling this managed API.
Example:
```xml
<related type="PlatformDocAPI" href="https://msdn.microsoft.com/en-us/library/system.console.writeline ">Microsoft documentation for <c>System.Console.WriteLine</c></related>
```
2015-03-19 10:41:50 -04:00
Joel Martinez
1e45f99905
[monodoc] Fixed issue generating EcmaCref URLs.
...
If you have a URL of the form ``T:System.Collections.Generic.Dictionary`2``, it parses correctly, but the `EcmaDesc` instance returned by the parser will throw an exception if you try to call the `.ToEcmaCref ()` method. This patch resolves this issue and returns a correctly formatted URL in this instance. Unit test included.
2015-03-19 10:41:50 -04:00
Joel Martinez
89882a6776
[mdoc] Fixes an update issue with generic and non-generic members.
...
The existing update was not doing a good job of matching members that have both generic and non-generic members. So for example, if you had a method, `Foo<T>`, and added a non-generic version in a future update (`Foo`); you could end up with a situation where one of the members was being duplicated.
2015-03-19 10:41:48 -04:00
Sebastien Pouliot
d2b1d45390
[mono-api-html] Small simplification when 'breaking' does not apply to the rendering
2015-03-19 08:33:28 -04:00
Sebastien Pouliot
fccf4b6345
[mono-api-html] Include base type changes in API diffs
2015-03-19 08:32:36 -04:00
Marek Safar
a0f0aa6213
[corlib] Default FieldInfo Get|SetValueDirect should throw NotSupportedException
2015-03-19 12:42:43 +01:00
Marek Safar
c1bca01981
[System] Fix SafeSocketHandle race introduced in 9ae88709db.
...
at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00014] in /Users/marek/git/mono/external/referencesource/mscorlib/system/throwhelper.cs:56
at System.Collections.Generic.List`1[System.Threading.Thread].get_Item (Int32 index) [0x0000e] in /Users/marek/git/mono/external/referencesource/mscorlib/system/collections/generic/list.cs:199
at System.Net.Sockets.SafeSocketHandle.ReleaseHandle () [0x00052] in /Users/marek/git/mono/mcs/class/System/System.Net.Sockets/SafeSocketHandle.cs:79
at System.Runtime.InteropServices.SafeHandle.RunRelease () [0x00091] in /Users/marek/git/mono/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs:203
at System.Runtime.InteropServices.SafeHandle.Dispose (Boolean disposing) [0x00019] in /Users/marek/git/mono/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs:171
at System.Runtime.InteropServices.SafeHandle.Dispose () [0x00003] in /Users/marek/git/mono/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs:150
at System.Net.Sockets.Socket.Dispose (Boolean disposing) [0x0004d] in /Users/marek/git/mono/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:1168
at System.Net.Sockets.Socket.Dispose () [0x00003] in /Users/marek/git/mono/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:1174
at System.Net.Sockets.Socket.Close () [0x00009] in /Users/marek/git/mono/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:1185
at System.Net.Sockets.TcpListener.Stop () [0x0000d] in /Users/marek/git/mono/mcs/class/System/System.Net.Sockets/TcpListener.cs:296
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StopListening (System.Object data) [0x00022] in /Users/marek/git/mono/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpServerChannel.cs:257
at System.Runtime.Remoting.Channels.Tcp.TcpChannel.StopListening (System.Object data) [0x00013] in /Users/marek/git/mono/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpChannel.cs:105
at System.Runtime.Remoting.Channels.ChannelServices.UnregisterChannel (IChannel chnl) [0x00057] in /Users/marek/git/mono/mcs/class/corlib/System.Runtime.Remoting.Channels/ChannelServices.cs:463
at MonoTests.Remoting.CallsDomainServer.Stop () [0x00012] in /Users/marek/git/mono/mcs/class/System.Runtime.Remoting/Test/BaseCalls.cs:445
at (wrapper remoting-invoke-with-check) MonoTests.Remoting.CallsDomainServer:Stop ()
at (wrapper xdomain-dispatch) MonoTests.Remoting.CallsDomainServer:Stop (object,byte[]&,byte[]&)
2015-03-19 10:16:28 +01:00
Zoltan Varga
29e00446a2
[corlib] Implement TypedReference:MakeTypedReference ().
2015-03-19 04:18:10 -04:00
Zoltan Varga
1361534ce0
Rename TypedReference test file to TypedReferenceTest.cs.
2015-03-19 04:15:35 -04:00
Marek Safar
561b80fb24
[corlib] Add TypedReference test
2015-03-19 09:08:02 +01:00
Zoltan Varga
ec0d2d0688
[runtime] Extract mono-config-dirs.c into a separate automake convenience library so only that file depends on the MONO_BINDIR etc. defines given on the command line. This enables ccache to work on build done with different prefixes.
2015-03-19 03:22:04 -04:00
Zoltan Varga
f699d17ff5
[runtime] Disable the locking of archives in libtool, it was a workaround around an old darwin bug which got fixed years ago: http://lists.gnu.org/archive/html/bug-libtool/2009-05/msg00062.html .
2015-03-19 03:20:01 -04:00
Zoltan Varga
b1f0605dde
[runtime] Add a new mono-config-dirs.c file which is the only one depending on the MONO_CFG_DIR etc. defines defined in metadata/Makefile.am.
2015-03-19 02:05:07 -04:00
Alex Rønne Petersen
954ddf4a88
[profiler] Fix finding methods in other domains than the current one.
...
In certain cross-domain scenarios, the method we're executing
is not necessarily emitted in the current domain. So we need
to scan all domains for it.
2015-03-19 01:34:08 +01:00
Alex Rønne Petersen
73bd556820
Add scripts/mono-symbolicate to .gitignore.
2015-03-19 01:33:43 +01:00
Joel Martinez
252e56b02c
[mdoc] Updated csproj to target .NET 4.5
2015-03-18 15:32:38 -04:00
Stephen McConnel
49ecc710a7
Show thumbnail images in SWF.(Open,Save)FileDialog
...
This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=28025 .
2015-03-18 12:55:48 -05:00
João Matos
50b4bff820
Merge pull request #1639 from alexrp/profiler-mingw
...
[profiler] Don't build the profiler on Windows.
2015-03-18 16:27:28 +00:00
Alex Rønne Petersen
435c2c4467
[profiler] Don't build the profiler on Windows.
2015-03-18 17:25:27 +01:00
Marcos Henrich
a769e74c53
[System] Fixed RemoveConnectionGroup concurrent issue.
...
CloseConnectionGroup can concurrently call RemoveConnectionGroup and remove a group that has added to removeList.
We now check that the group still exists before removing it.
Fixes #19823 .
2015-03-18 14:47:42 +00:00
Marcos Henrich
086eff3d60
[System] ServicePoint.CheckAvailableForRecycling is now private.
2015-03-18 14:46:09 +00:00
Marcos Henrich
5740faf124
[System] Test ServicePoint.CloseConnectionGroup concurrent issues.
...
Covers #19823 .
2015-03-18 14:34:26 +00:00
Marek Safar
a96ca57f7f
[corlib] Update mobile tests
2015-03-18 12:01:10 +01:00
Marek Safar
88a1275377
[corlib] Default Egypt calendar is gregorian. Fixes #27725
2015-03-18 12:01:10 +01:00
João Matos
940732839d
Merge pull request #1637 from soimort/fix-build
...
Fix build on Linux and Windows
2015-03-18 09:26:14 +00:00
Mort Yao
376a9f2d88
[runtime] Fix build for Linux
2015-03-18 17:01:48 +08:00
Mort Yao
00493fa308
[runtime] Add missing semicolon in mono_rand_try_get_bytes ()
2015-03-18 17:01:47 +08:00
Marek Safar
81016c43ec
[corlib] Disable more remoting code for mobile
2015-03-18 09:58:58 +01:00
Marek Safar
33338af95e
Revert "Fixes build"
...
This reverts commit 0f25e60f9c .
2015-03-18 09:58:24 +01:00
Marek Safar
0f25e60f9c
Fixes build
2015-03-18 09:47:09 +01:00
Marek Safar
455dd3867c
[System.Runtime.Serialization.Formatters.Soap] Updated to work with reference sources serialization
2015-03-18 09:19:35 +01:00
Zoltan Varga
c338de5815
[gsharedvt] Make sure the gsharedvt method we use in class_type_info () is not partially shared.
2015-03-17 21:18:59 -04:00
Alex Rønne Petersen
796f6ccded
Merge pull request #1636 from alexrp/profiler-stuff
...
[profiler] Redesign buffer flushing and method reporting.
2015-03-17 23:02:00 +01:00
Alex Rønne Petersen
bcf59453f0
Merge pull request #1635 from alexrp/core-clr-properties
...
Implement CoreCLR security properties on reflection info types.
2015-03-17 23:01:50 +01:00
Zoltan Varga
6549f7ea7c
[runtime] Revert part of 2e3ba21e80.
2015-03-17 17:20:13 -04:00
Atsushi Eno
51ba090596
[xlinq] add test from bug #18171 (partly).
2015-03-18 04:16:25 +08:00
Ludovic Henry
3033429e66
[threadpool] Add licensing header
2015-03-17 19:27:06 +00:00
Ludovic Henry
620c5f5e3d
[threadpool] Integrate the microsoft ThreadPool into it's own System.Threading.Microsoft namespace
...
This will let us have both the Mono and the Microsoft ThreadPool at the same time.
To switch to the Microsoft one, set the MONO_THREADPOOL environment variable to "microsoft". It will default to the Mono one.
Support by the runtime is also implemented.
2015-03-17 19:05:04 +00:00
Ludovic Henry
a4e986024f
[runtime] Move random generator code out of icall, to utils so it can be used by the runtime
2015-03-17 19:03:19 +00:00
Ludovic Henry
8eda12decf
[runtime] Add CPU usage utility function
2015-03-17 19:03:19 +00:00
Zoltan Varga
bd22565c26
[jit] Avoid disabling direct calls to icalls on arm64+llvm.
2015-03-17 14:20:25 -04:00
Marek Safar
be5a532ce0
[corlib] Bump corlib version for 8d097349b3 (icall added)
2015-03-17 19:18:27 +01:00
Marek Safar
a4426f51b6
[System.Runtime.Remoting] Update internal TypeFilter levels
2015-03-17 19:18:27 +01:00
João Matos
8ac788afb3
[genproj] Re-generated the class library projects.
2015-03-17 18:15:58 +00:00
João Matos
7c4825231d
[genproj] Remove System.Xml pre-processing file as it's not needed anymore.
...
We do not rely on jay for this anymore since the switch of System.Xml to reference sources.
2015-03-17 18:15:57 +00:00
João Matos
dc1bb8c3d0
[genproj] Ignore temporary project generation inputs.
2015-03-17 18:15:57 +00:00
João Matos
13db9ed7b7
[genproj] Added support for mcs "/-getresourcestrings" switch.
2015-03-17 18:15:57 +00:00
João Matos
f339f61965
[genproj] Remove non .NET 4.5 solutions from being generated.
2015-03-17 18:15:57 +00:00
Marek Safar
43065be098
[corlib] Fixes remoting response message arguments assignment
2015-03-17 17:42:11 +01:00
Marek Safar
d09e8d10a5
[corlib] Keep only one remoting MessageDictionary, it's special cased in binary serialization
2015-03-17 17:03:42 +01:00
Alex Rønne Petersen
ae58dce822
[profiler] Redesign buffer flushing and method reporting.
...
The main goal of this change is to ensure that all methods have a `TYPE_JIT`
event emitted in the stream before they are referenced in other events. Before
this change, `TYPE_JIT` events could arrive out of order or not be emitted at
all because of generic sharing.
We now use a separate thread for writing log buffers to the output file.
Whenever a method is referenced in a TLS log buffer, we add it to a TLS list of
methods. When we ship the TLS log buffer off to the writer thread, we also send
the TLS list of methods. The writer thread first goes over all the methods and,
if some of them haven't had a `TYPE_JIT` event emitted yet, emits them to a
temporary buffer which is flushed just before flushing the main log buffer.
This approach ensures that `TYPE_JIT` events will *always* come before the
events that reference them.
Bookkeeping of which methods have been emitted to the output stream is done in
a global, concurrent hash table. Before a thread adds a method to its TLS list
of methods, it checks if the method is in the hash table. If it is, we know
that the method has already been emitted to the output stream, so it isn't
added to the list. The writer thread is the only thread that updates the hash
table (which happens when it flushes the temporary method buffer). So,
eventually, all TLS method lists will end up being empty because all methods
have been emitted to the output stream.
2015-03-17 16:35:45 +01:00
Alex Rønne Petersen
481bd0d83d
[profiler] Make perf syscall work on ARM64.
2015-03-17 16:35:45 +01:00
Alex Rønne Petersen
95d65503e6
[profiler] Clean up some unused declarations.
2015-03-17 16:35:45 +01:00
Alex Rønne Petersen
45045502b8
[mini] Expose mono_aot_get_method () as an API-unstable function.
...
This will be used by the profiler.
2015-03-17 16:35:45 +01:00
Alex Rønne Petersen
b4ab5e85ac
[mini] Expose an API-unstable mono_get_jit_info_from_method () function.
...
This will be used by the profiler.
2015-03-17 16:35:44 +01:00
Alex Rønne Petersen
cdc74e07e2
[mcs] Ignore .dep_dirs-* files.
2015-03-17 16:35:44 +01:00
Alex Rønne Petersen
62e93bfda7
[configure] Add a --disable-perf-events flag to disable perf on Linux.
2015-03-17 16:35:44 +01:00
Alex Rønne Petersen
91a06cb652
[corlib] Implement security properties on FieldInfo/MethodInfo.
2015-03-17 16:32:04 +01:00
Alex Rønne Petersen
69ee842753
[coreclr] Add mono_security_core_clr_field_level () function.
2015-03-17 16:31:31 +01:00
Marcos Henrich
9ae88709db
[System] Fixed SafeSocketHandle concurrency problem.
...
When ReleaseHandle was called by RegisterForBlockingSyscall's DangerousRelease the current thread would be in blocking_threads but there would be no blocking system call to interrupt.
2015-03-17 15:13:09 +00:00
Marcos Henrich
29dc0ae194
[runtime] Assert that thread_resume returns KERN_SUCCESS.
2015-03-17 15:13:09 +00:00
Marcos Henrich
288659611b
[runtime] Fixed thread_abort_safely not interrupting accept.
...
For some reason accept can only be interrupted by thread_abort.
We do not want to use thread_abort by default because it may abort non-atomic operations at an arbitrary point.
The problem was fixed by calling thread_abort_safely, and make sure the target thread was interrupted by calling thread_abort afterwards.
In this change thread_abort is only called if thread_abort_safely returns KERN_SUCCESS, which *should* mean that the target thread has already left the kernel code by the time thread_abort is called.
2015-03-17 15:13:09 +00:00
Neale Ferguson
e92937676c
s390x-codegen.h : Fix instruction definition and add instruction format variant
...
mini-s390x.h : Enable profile coverage
suport-s390x.h : Add processor facility definitions
2015-03-17 10:35:21 -04:00
Alexander Kyte
9d6859ddf2
[corlib] Fixed change in 4b4ddb66b3 that prevented use of remoting fast path.
2015-03-17 10:24:47 -04:00
Marek Safar
14370f53dd
[system.date] Fix DefaultValue expression serialization
2015-03-17 14:04:39 +01:00
Atsushi Eno
59267a16c4
[xlinq] add test from bug #14856 .
2015-03-17 18:56:10 +08:00
Atsushi Eno
ee9fd48289
[xml] add test from bug #2917 .
2015-03-17 18:55:34 +08:00
Marek Safar
b0e3d25ad0
[corlib] Always pass ProxyCheckCast check
2015-03-17 09:37:01 +01:00
Marek Safar
88f4e24f02
[corlib] Add missing public type
2015-03-17 09:36:39 +01:00
Marek Safar
8d097349b3
[corlib] Serialization from reference sources
2015-03-17 08:03:58 +01:00
Zoltan Varga
0605e2d596
[jit] Add exception checks after direct calls to icalls by inlining the wrapper.
2015-03-17 02:32:06 -04:00
Zoltan Varga
c6576781c5
[jit] Disable direct icalls for now to fix the build.
2015-03-17 00:55:02 -04:00
Zoltan Varga
ce80f5559e
[jit] Split the CEE_CALLI conv into a separate switch case to simplify the logic in the CEE_CALL/CEE_CALLVIRT case.
2015-03-17 00:54:15 -04:00
Zoltan Varga
88fadaef9b
[amd64] Fix aot support in throw_pending_exception ().
2015-03-17 00:05:46 -04:00
Zoltan Varga
b0ad5d776d
[runtime] Allocate objects outside the lock in mono_string_is_interned_lookup ().
2015-03-16 22:16:51 -04:00
Zoltan Varga
d04e09ac0c
Merge pull request #1633 from BrzVlad/fix-w32-pinvoke
...
[x86] Handle stack pop done by native stdcalls.
2015-03-16 21:34:41 -04:00
Zoltan Varga
0aeaa71f1d
[jit] Add support for directly calling normal icalls. Enable it for a few perf-sensitive classes like Math.
2015-03-16 20:34:46 -04:00
Vlad Brezae
bba332f502
[x86] Handle stack pop done by native stdcalls.
...
The problem was caused with the introduction of the pushless backend. We have to compensate for the arguments being popped by native stdcall callees, to keep param_area from shrinking. Fixes #27597
2015-03-16 14:59:32 -07:00
Zoltan Varga
f45cb311c1
[aot] Enable direct calls to icalls in aot mode, disable them when the 'direct-calls' aot option is used.
2015-03-16 17:49:01 -04:00
Zoltan Varga
453e3cf5fe
[aot] Remove obsolete 'iphone-abi' option.
2015-03-16 17:24:40 -04:00
Zoltan Varga
5d2973e535
[io-layer] Avoid the usage of atexit (), clean up handles normally.
2015-03-16 16:23:00 -04:00
Vlad Brezae
388e3efe0d
[sgen] Write barrier nursery checks might be needed
...
For the case of non-concurrent collector we don't want to mark stores from the heap to the heap, since it would add sgen overhead. When aot compilling we don't know whether the GC will be concurrent or not, so we fallback to the write barrier method.
2015-03-16 12:22:05 -07:00
Vlad Brezae
149534c76c
[aot] Add aot support for write barrier.
...
We emit two write barriers, for the case of the concurrent and non-concurrent collector in the mscorlib image. All calls to the write barrier are made through the plt, calls which are resolved according to the GC configuration at runtime.
2015-03-16 12:22:05 -07:00
Vlad Brezae
18a3d58565
[sgen] Differentiate the concurrent and nonconcurrent method wbarriers
2015-03-16 12:22:04 -07:00
Vlad Brezae
f3141cbf45
[aot] Fix allocation over structure size.
2015-03-16 12:22:04 -07:00
Vlad Brezae
c8b9d1e04f
[jit] Handle pointers for aot separately from CEE_MONO_LDPTR
2015-03-16 12:22:03 -07:00
Vlad Brezae
e2875c2180
[sgen] Remove option for unaligned nurseries.
2015-03-16 12:22:03 -07:00
Marek Safar
d9dc2f64b0
[system] Update wrong test
2015-03-16 20:09:48 +01:00
Alexander Kyte
62277e8162
Added/modified tests for marshalling and remoting of referencesource StringBuilder implementation.
2015-03-16 11:42:57 -04:00
Alexander Kyte
14ec387555
[Runtime] Altered the marshalling logic for StringBuilders to handle referencesource version.
2015-03-16 11:42:57 -04:00
Alexander Kyte
9a7a39551e
Revert "Revert "[corlib] StringBuilder from reference sourcers""
...
This reverts commit 772c45aaf9 .
Conflicts:
external/binary-reference-assemblies
mcs/class/corlib/Makefile
mcs/class/corlib/System.Text/StringBuilder.cs
mcs/class/corlib/corlib.dll.sources
2015-03-16 11:42:56 -04:00
João Matos
29fc1bb5d6
[mini] Fixed the build.
...
Missed this one on https://github.com/mono/mono/commit/86155e72da0aa0cc1e546dd2dd5acee0db398c38 .
2015-03-16 14:57:38 +00:00
João Matos
a807f99a7d
[runtime] Fixed thread async suspend on Windows.
...
Move the ResumeThread () calls out of the assert and check for 0 (which means that the thread was resumed) instead of using the Mach-specific KERN_SUCCESS on Windows.
Fixes the Windows/MSVC build.
Related to https://github.com/mono/mono/commit/296347f .
2015-03-16 13:54:43 +00:00
João Matos
a1538d1687
[runtime] Added missing function mono_threads_core_interrupt on Windows.
2015-03-16 13:53:01 +00:00
João Matos
86155e72da
[msvc] Renamed ResumeThread since it conflicts with a Windows function.
2015-03-16 13:50:38 +00:00
Marcos Henrich
7b558417ac
[runtime] Added function mono_process_get_times.
...
With the new function it is possible to retrieve other processes start, user and kernel times.
In mach start time is available without special privileges but user and kernel times still require privileges.
2015-03-16 11:44:28 +00:00
Marcos Henrich
4c600e1fc5
[runtime] Added function mono_100ns_datetime_from_timeval.
...
The added function is required to convert timeval to datetime ticks.
2015-03-16 11:44:28 +00:00
Marcos Henrich
6b2bf67ff9
[runtime] Added helper function sysctl_kinfo_proc.
...
Refactored mono_process_get_name sysctl code to use sysctl_kinfo_proc to retrieve the kinfo_proc data structure.
2015-03-16 11:44:28 +00:00
Marcos Henrich
5f8489c59a
[System] Test StartTime of processes returned by GetProcesses.
...
Covers #26363 .
2015-03-16 11:44:28 +00:00
Marek Safar
f482b9bd9b
[corlib] Attribute from reference sources. Fixes #27982 and similar
2015-03-16 11:01:37 +01:00
Zoltan Varga
e31c6d80c6
[aot] Bump aot file format version.
2015-03-16 01:12:36 -04:00
Zoltan Varga
050520a485
[aot] Fix mono_aot_method_hash () to avoid depending on the name of the type arguments used to inflate classes.
2015-03-16 01:06:58 -04:00
Zoltan Varga
43318e0e16
Fix the cross compiler build.
2015-03-15 23:04:31 -04:00
Zoltan Varga
de2bfdf78b
Bump referencesource to pick up 7ce7271612320b265e3a4a42d96a779b218a9dce.
2015-03-15 22:46:54 -04:00
Miguel de Icaza
addc8c1b85
Merge pull request #1617 from keneanung/OdbcCommandExceptionOnNoData
...
Add NoData as valid return state for Statements with params
2015-03-15 10:54:26 -04:00
Miguel de Icaza
30b99d3271
Merge pull request #1627 from mono/tooltask-fixes
...
[Microsoft.Build.Utilities] Make properties in ToolTask available in 4.0 xbuild
2015-03-15 10:52:07 -04:00
João Matos
77ee431aa9
Merge pull request #1628 from akoeplinger/resxresourcereader-order
...
[WinForms] Make ResXResourceReader enumerator return values in same order as resx
2015-03-15 09:16:45 +00:00
Zoltan Varga
f2a67e6fc7
[jit] Add support for char/boolean to mini_type_get_underlying_type ().
2015-03-15 03:08:45 -04:00
Zoltan Varga
c9a51b2dc6
[aot] Rename the find_extra_method... functions to find_aot_method...
2015-03-15 02:38:55 -04:00
Zoltan Varga
716bcd9e6d
[jit] Fix the detection of whenever we are compiling a gsharedvt method in the presence of partial shared methods.
2015-03-15 02:17:40 -04:00
Zoltan Varga
3c0b6b8422
[runtime] Remove ldscript support, its no longer needed with explicit visibility declarations.
2015-03-14 22:08:03 -04:00
Alexander Köplinger
76a01d3500
[WinForms] Make ResXResourceReader enumerator return values in same order as resx
...
This fixes an issue when building dotnet/corefx and all the SR.cs files are modified
because Mono used a HashTable internally in ResXResourceReader and it returned the
elements in a different order than MS.NET.
Even though this isn't explicitly mentioned in the docs, the MS.NET implementation returns
the elements in the same order as they appear in the resx and we should do the same.
2015-03-15 02:28:56 +01:00
Zoltan Varga
5bd3e2bfc8
[jit] Set the names of the gparams used during generic sharing so it includes the type they are constrained to.
2015-03-14 16:16:46 -04:00
Zoltan Varga
7adfa541a0
Fix the build.
2015-03-14 15:12:49 -04:00
Alexander Köplinger
151383a64d
[Microsoft.Build.Utilities] Make properties in ToolTask available in 4.0 xbuild
...
The properties were introduced with MSBuild 4.0 (e.g. https://msdn.microsoft.com/en-us/library/microsoft.build.utilities.tooltask.logstandarderroraserror(v=vs.100).aspx ) and shouldn't be inside a XBUILD_12 ifdef.
2015-03-14 19:10:06 +01:00
Zoltan Varga
e9aff0910f
Fix the aot compiler.
2015-03-14 02:17:57 -04:00
Rodrigo Kumpera
54be6b1d53
[threading] Fix signal registration on posix.
2015-03-13 12:36:44 -07:00
Rolf Bjarne Kvinge
d4490c9763
Fix spelling.
2015-03-13 18:29:55 +01:00
João Matos
5b985a4daa
[aot] Wrap the commands we pass to Windows's system() in double quotes.
...
We need an extra set of quotes around the whole command to properly handle commands
with spaces since internally the command is called through "cmd /c.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=27899 .
2015-03-13 17:14:40 +00:00
João Matos
6fc403d545
[aot] Escape the command executables with quotes to deal properly with spaces in paths.
2015-03-13 17:10:54 +00:00
João Matos
925d3844ba
[aot] Ensure the LLVM tools path ends with a directory separator appropriate to the system.
2015-03-13 17:09:41 +00:00
Marek Safar
8b3440425d
[system] Make httplistener to accept case insensitive protocols. Fixes #26858
2015-03-13 17:42:33 +01:00
Rolf Bjarne Kvinge
cbdd18ef89
[mono-api-html] Render generic parameter constraints.
...
Makes changed constraints show up in diffs.
2015-03-13 16:44:55 +01:00
Marcos Henrich
a4c453967e
[System] Replaced static constructor with field initialisation.
2015-03-13 12:39:26 +00:00
João Matos
815e7befb3
Merge pull request #1606 from alexanderkyte/debug-finalizers
...
[Runtime] Added logging around finalizers
2015-03-13 09:42:22 +00:00
João Matos
b61747cd90
Merge pull request #1618 from alexanderkyte/remoting-fix
...
[Runtime] Fixed remoting bug where too specific a type reflected.
2015-03-13 09:39:48 +00:00
Zoltan Varga
37dbebe114
[jit] Use mini_get_underlying_type () in a few places in the amd64 backend.
2015-03-13 02:41:34 -04:00
Zoltan Varga
75e58b9b5f
[jit] Finish support for valuetype based sharing in JIT mode, not enabled yet.
2015-03-13 01:28:00 -04:00
Zoltan Varga
061019283b
[jit] Add a new MONO_RGCTX_INFO_ELEMENT_KLASS info type and use it instead of MONO_RGCTX_INFO_KLASS on klass->element_class, the latter doesn't work with valuetype sharing.
2015-03-12 19:30:02 -04:00
Rodrigo Kumpera
777dbc17d5
[metadata] Handle denormalized value type encoding of builtins.
...
All primitive types have a short encoding format that avoid using
a typeref token.
It's possible to encode them in another, longer, form with ELEMENT_TYPE_VALUETYPE + a typeref token.
Up to now, this was never seen in the wild so we never supported it.
This patch allows long form encoding of primitives.
2015-03-12 18:50:22 -04:00
Rodrigo Kumpera
3af402a0d0
[threading] Fix a race condition between managed suspend/abort and GC STW.
...
STW and managed suspend share a lock to ensure there is only one active suspend initiator.
This originally caused a problem in the managed suspend path as it could be async suspended while it was
in the middle of the suspend protocol (check if top of stack is managed, install abort handlers, etc).
This was worked around by putting that inside a suspend critical section. The resulting code was horrible
as suspend boundaries became unstructured (yeah, pretty stupid idea on my end). Not only that but it had
a race condition.
If a thread doing managed suspend raced with a STW and lost, it would block on the global suspend lock to
finish. That thread would be blocked inside a critical section - the single thing you must not do inside one.
This could be reproduced by stressing mono/tests/sgen-new-threads-dont-join-stw.
The solution is to execute the managed suspend sequence in the same fashion as of a STW. IOW, take locks,
suspend, do stuff, maybe resume and drop locks.
The critical part is the "do stuff" one, which is different for abort and suspend, but everything else
is the same. So we wrap that into a callback and put the common parts in mono-threads. This gives
us structured locking and suspend boundaries.
This won't cause a GC to take longer to init as the critical section would block the STW from progressing
anyways.
2015-03-12 18:50:22 -04:00
Mark Probst
df1e884553
[runtime] Fix warnings.
2015-03-12 15:40:28 -07:00
Zoltan Varga
9fa5a88211
[jit] Throw the proper exception on integer overflow from div/rem if MONO_ARCH_NEED_DIV_CHECK is defined.
2015-03-12 18:19:40 -04:00
Zoltan Varga
63bd1dfcf7
[jit] Add another test for gsharedvt+vtype byref argument passing.
2015-03-12 16:54:54 -04:00
Miguel de Icaza
e2f1f5cec6
Add documentation information about IRI parsing
2015-03-12 16:18:54 -04:00
Marcos Henrich
84d573e0b0
[corlib] Added exception to fail tests on non aborted system calls.
...
While running tests if a socket is closed while blocking system calls are pending an exception is thrown.
A socket should not be closed when a blocking system call is pending.
The purpose of the exception is to inform us when AbortRegisteredThreads is not working.
2015-03-12 18:23:56 +00:00
Marcos Henrich
c3f906d975
[runtime] Check that thread_suspend returns KERN_SUCCESS.
...
mono_threads_core_abort_syscall no longer calls thread_abort_safely in case thread_suspend returns errors.
2015-03-12 18:23:56 +00:00
Marcos Henrich
aee6b8f147
[runtime] Updated Socket_to_SOCKET to use SafeSocketHandle.
...
The type of field of Socket.socket was changed from IntPtr to SafeSocketHandle.
2015-03-12 18:23:55 +00:00
Rodrigo Kumpera
afc0d2abe2
[aot] Better report errors when loading methods.
2015-03-12 14:09:48 -04:00
Rodrigo Kumpera
0f212a3fa4
[mono-error] When fetching the error message for native usage, include assembly, type and member fields after the message.
2015-03-12 14:08:14 -04:00
João Matos
a678f96f78
[eglib] Fixed file being created without read/write permission on Windows.
...
This bug manifested itself as files being written to disk with 0 bytes.
Fixes the AOT compiler on Windows not working properly.
https://bugzilla.xamarin.com/show_bug.cgi?id=27900
2015-03-12 16:41:21 +00:00
Marek Safar
ec4fed0076
[mcs] Don't crash after reporting missing type in type arguments of generic method run in probing mode. Fixes #27737
2015-03-12 17:24:46 +01:00
Marcos Henrich
8a3ae30450
[corlib] TimeZoneInfo.TryGetTransitionOffset overflow checks.
2015-03-12 13:13:41 +00:00
Marek Safar
b736f37cc4
[system] Fixes mobile build
2015-03-12 13:24:36 +01:00
Marcos Henrich
504715b441
[corlib] Fixed DateTime overflow check in TimeZoneInfo.
2015-03-12 09:02:33 +00:00
Zoltan Varga
e908e4a6be
Revert "[runtime] Fix mono_class_instance_size () to work with dynamically created types."
...
This reverts commit 501f0aa645 .
Revert this as it breaks some corlib tests.
2015-03-12 04:54:03 -04:00
Zoltan Varga
501f0aa645
[runtime] Fix mono_class_instance_size () to work with dynamically created types.
2015-03-11 21:39:25 -04:00
Mark Probst
55f1ac1bb5
[runtime] Remove unused ves_icall_type_is_subtype_of().
2015-03-11 16:02:00 -07:00
Zoltan Varga
f9eea170d1
[jit] Enable the gsharedvt testcase which now works.
2015-03-11 18:47:54 -04:00
Mark Probst
adb9681393
Merge pull request #1621 from schani/fix-warnings
...
[runtime] Fix warnings.
2015-03-11 13:37:31 -07:00
Mark Probst
2e3ba21e80
[runtime] Fix warnings.
2015-03-11 13:28:38 -07:00
Rodrigo Kumpera
e7aa80048e
[io-layer] When checking if a file is a program check both read and execute permissions. Fixes #27565
...
The original behavior of only checking for read permission broke sudo on OSX which only have the execute permission set.
2015-03-11 12:27:20 -04:00
Rodrigo Kumpera
518dee1837
[threading] Split unwind state into sync and async.
...
Having a single unwind state means writes to it must be synchronized between sync and async suspend. We can't
have the state be broken as it could lead to bad unwinding or GC marking.
The original solution was to have an additional state in the self suspend path that signals it's writing to the
thread state and thus any async suspend must give up and let it finish. This ended up been overly complicated
as this requires two additional states instead.
By having a pair of unwind states both can write concurrently without the fear of clashing. This makes fetching the state
a little bit trickier but worth the trouble.
The simplified design has a much smaller state space, which is easier to reason about.
2015-03-11 12:26:37 -04:00
Rodrigo Kumpera
fe784fbca9
[threading] Change request async suspend to return 3 states instead of one to account for async racing to the middle of a self suspend.
...
When begin async suspend lands in STATE_SUSPEND_IN_PROGRESS, the initiator don't need to perform an async suspend, it just needs to wait.
If a self suspend is promoted to an async suspend, it must be added to the pending ops set. This ensure that it will be waited otherwise
the suspend initiator might witness an unfinished self suspend and assert when fetching the thread state.
The alternative would be to change finish async suspend to account for the possibility of witnessing STATE_SUSPEND_PROMOTED_TO_ASYNC.
Solving this way requires less async suspends and doesn't increase the valid state space.
2015-03-11 12:26:37 -04:00
Rodrigo Kumpera
296347fc88
[threading] Rework suspend code to be based on a state machine and eliminate known races in the process.
...
The new suspend machinery is based around a single word state machine that is manipulated using CAS.
This solves the first set of problems with the current approach, the lack of atomicity and the impossibility of
doing race free manipulation of protected state. This is specially acute when doing a self suspend.
Suspend data must be atomically protected while we prepare to self suspend so a resume request won't race with the current
thread putting itself to sleep. This is a classical problem that calls for a mutex/conditional variable pair. Except that all
locks in the suspend path must be suspend safe. Wait, WHAT?
A Suspend Safe Lock is a primitive that is obstruction free in the face of the kernel suspending a thread either performing a
lock operation or waiting on a lock to become available. This, unfortunately, is not possible with pthread_mutex on OSX. The
only safe primitive are kernel semaphores, for which doesn't exist conditional variables for.
So back to locking and self-suspend. We need a lock because the existing thread state is not atomic but we can't use a
mutex/condvar pair so we're left with racy code. Yay! The fix is using CAS over a single variable.
Another change was the hardening of the suspend/resume code on posix targets. First we replace a semaphore wait with
sigsuspend for async suspend. This is needed since sem_wait is not async-signal safe (yet sem_post is). Second, we now
respect interruption requests by having a pair of suspend signals, one with SA_RESTART and one without.
Onto the design of the suspension system, a few concepts that are useful looking around.
* Self suspend: This is when the thread decides to suspend itself.
* Async suspend: This is when a thread decides to suspend another thread.
* Suspend Initiator: This the name of a thread that decided to suspend one or more other threads. This is important
since all suspending threads will notify it when they are suspended. There can be only one initiator in the system
at a given time.
* Suspension count: Number of resume calls before a thread is back to running state.
There are 7 states that can happen while a thread is runnable:
* Running: just running...
* (Async|Self) Suspended: Suspended, the difference comes into play when resuming.
* (Async|Self) Suspend Requested: Suspend requested, but not completed. See more below for the discussion on why the request state is needed.
* Suspend In Progress: Self suspend started saving its state thus async suspend should not modify it.
* Suspend Promoted to Async: Async tried to suspend a thread in the middle of a self suspend, it wants to be notified.
Now to the suspension protocol and how it happens on a high level view.
Suspension starts with a suspend request, which bumps the suspend count by one. This suspend request can be fulfilled either
by an async or self suspend action. This is confusing as there's only one initiator but any number of threads can be self suspending.
Async suspend then performs a platform specific action such as posix signals that forces a transition on the target. In the case
of self suspend, it depends on the thread polling its state and trigger the transition.
This works fine except that the suspend state is one huge struct with tons of fields. To control concurrent access to it we use a
single initiator in the case of async suspend and we put the thread in a transitional "saving my state" in the case of self suspend.
In the case of async suspend, the initiator must wait for all 1+ threads to notify back that they have suspended. Only after that
it's possible to know if the async suspend request actually worked or not (we might have hit a dying thread).
Together with this, there's an optional implementation of STW in sgen that can use this new machinery. To enable it set the
MONO_ENABLE_UNIFIED_SUSPEND env var for now while it gets more testing.
2015-03-11 12:26:36 -04:00
Marek Safar
0c5357521a
[system] Fixes InvalidCastException in OpenReadAsyncCallback
2015-03-11 17:20:28 +01:00
Marcos Henrich
6173a3e162
[runtime] Replaced unsafe thread_abort calls.
2015-03-11 16:06:45 +00:00
Marek Safar
a114dcdf75
[corlib] TypeDelegator from reference sources
2015-03-11 16:44:21 +01:00
Jo Shields
577482e336
[msvc] Change target MSVC release from v120 to v120_xp
...
They're basically the same thing, but v120 has DX10+ capabilities and v120_xp
is DX9 only. Since we're not building against DirectX, the difference is
purely academic - but changing the value to v120_xp means MSVC binaries run
on XP+, not Vista+
2015-03-11 15:23:27 +00:00
Marek Safar
115042a207
[runtime] Make read_enum_value endian aware
2015-03-11 15:52:16 +01:00
Marek Safar
db7f9b7be7
[Microsoft.Build.Engine] Fix invocation flags not to contain both CreateInstance and Invoke
2015-03-11 13:33:38 +01:00
Marek Safar
7c260b6c87
[System.ComponentModel.DataAnnotations] Update test as validation attributes needs to be public
2015-03-11 13:25:41 +01:00
Jo Shields
1d33de4a70
[msvc] Refresh .def files
2015-03-11 12:06:16 +00:00
Jo Shields
7b452e2ba9
Bump winconfig.h to 4.1.0
2015-03-11 10:13:44 +00:00
Jo Shields
c127ea46a3
Use MSVC2013 for *all* mono.sln dependants
2015-03-11 10:00:11 +00:00
Jo Shields
22fdb9dfb0
Add _WIN32_WINNT to Release definition, not just Debug
2015-03-11 09:48:59 +00:00
Marek Safar
8057adf2e8
[corlib] Fixes build, add missing file
2015-03-11 10:40:06 +01:00
Marek Safar
5ecee9a0c8
[corlib] Type from reference sources
2015-03-11 10:09:11 +01:00
Marek Safar
a53e9778b3
[mcs] Check operator parameter types using common declaration type
2015-03-11 10:09:10 +01:00
Zoltan Varga
c8ba3e9f48
[runtime] Make the size of the pseudo classes created by make_generic_param_class () the same as a valuetype with one field of the appropriate type.
2015-03-11 00:08:04 -04:00
Zoltan Varga
82fd40573c
[jit] Reorganize the gshared code a bit to make it easier to add support for valuetype sharing.
2015-03-10 21:56:16 -04:00
Zoltan Varga
ccaf2f6917
[jit] Handle type variables in mini_emit_stobj ().
2015-03-10 21:39:21 -04:00
Zoltan Varga
7a6cf0aceb
[jit] Move some gshared related code to mini-generic-sharing.c.
2015-03-10 19:47:47 -04:00
Zoltan Varga
f0ba602f11
[jit] Rename 'constrained_call' to 'constrained_class' to better reflect its type.
2015-03-10 19:43:57 -04:00
Zoltan Varga
17cb2cec62
Fix some bugs in 92ca06aa7d. Fixes #26989 .
2015-03-10 17:29:14 -04:00
Zoltan Varga
14180ae433
[jit] Fix the handling of byref locals in mono_allocate_stack_slots2 ().
2015-03-10 17:29:14 -04:00
Mark Probst
e28cc925ec
[tests] Test case for #27147 .
2015-03-10 13:55:00 -07:00
Mark Probst
cd6e7ba894
[sgen] Fix a bug in 64 bit LOS cardtable scanning. Fixes #27147 .
2015-03-10 12:24:30 -07:00
Alexander Köplinger
ee307ef1e5
Fix the build broken in 40ba1978bc
2015-03-10 11:53:17 +01:00
Miguel de Icaza
40ba1978bc
Merge pull request #977 from jasonleenaylor/bug-18558
...
Fix for Bug 18558
2015-03-10 14:40:33 -04:00
Marcos Henrich
f220c03e04
Merge pull request #1579 from esdrubal/aotsp
...
Sequence points and symbolicate improvements
2015-03-10 16:33:32 +00:00
Marcos Henrich
b7e8000915
Merge pull request #1612 from esdrubal/socketsh
...
Changed Socket to used SafeHandle instead of IntPtr.
2015-03-10 16:22:12 +00:00
Zoltan Varga
1a67a7820e
Fix the build.
2015-03-10 01:28:57 -04:00
Zoltan Varga
8e4f5b9570
Fix a crash introduced by 15c813d8fd.
2015-03-10 00:36:45 -04:00
Zoltan Varga
27a8dc5fc9
[runtime] Add support for generic params with gshared constraints to mono_type_get_basic_type_from_generic ().
2015-03-09 22:07:44 -04:00
Zoltan Varga
15c813d8fd
[runtime] Make the image->gsharedvt_types into an array.
2015-03-09 20:57:32 -04:00
Zoltan Varga
6e1386a78a
[runtime] Handle gparams constrained to vtypes correctly in mono_class_array_element_size ().
2015-03-09 20:57:31 -04:00
Marek Safar
9df95ccd67
[system] Remove closed connection groups from service point manager. Fixes #25254
2015-03-10 00:26:13 +01:00
João Matos
ea36fb88d5
Merge pull request #1620 from alexanderkyte/bug-27755
...
Fixed early termination of string parsing on non-space whitespace.
2015-03-09 20:39:41 +00:00
Marcos Henrich
5d9a63de3e
[mono-symbolicate] make check now tests aot with and w/o .msym.
2015-03-09 19:17:21 +00:00
Marcos Henrich
9e1853076b
[runtime] Added --aot option gen-seq-points-file.
...
.msym file is now only generated if option gen-seq-points-file is used.
2015-03-09 19:17:21 +00:00
Marcos Henrich
748bd496a0
[mono-symbolicate] Updated README to the same content as man page.
2015-03-09 19:17:20 +00:00
Marcos Henrich
06a984fc80
[mono-symbolicate] Added tool man page and script.
2015-03-09 19:17:19 +00:00
Marcos Henrich
05fd9e873c
[mono-symbolicate] Replaced mcs --debug flag usage with -debug.
2015-03-09 19:17:19 +00:00
Marcos Henrich
3d96830ae0
[mono-symbolicate] Fixed wrong Directory.Exists check.
2015-03-09 19:17:18 +00:00
Marcos Henrich
a9180782f3
[runtime] Updated comment with wrong corlib path.
2015-03-09 19:17:17 +00:00
Marcos Henrich
06377638be
[runtime] emit_exception_debug_info no longer adds seq point flag on release.
2015-03-09 19:17:17 +00:00
Marcos Henrich
f07bfe9fb3
[runtime] ves_icall_get_trace can now return a -1 IL offset.
...
This change was made so StackFrame dumps now show a native offset when the IL offset is unknown.
The native offset can be used by mono-symbolicate tool to retrieve an IL offset from a .msym file.
2015-03-09 19:17:16 +00:00
Marcos Henrich
c47e3d5962
[mono-symbolicate] make check now also runs test with AOT.
2015-03-09 19:17:15 +00:00
Marcos Henrich
f2b8e2a936
[mono-symbolicate] Tool is now using .msym files with AOT.
...
With AOT sequence points are stored in a .msym file.
As the sequence point data is not avaible at run time, AOT stack traces display a native offset.
mono-symbolicate tool is now able to retrieve an IL offset from a method name, native offset, and the data stored on the .msym file.
The IL offset can then be use to retrieve a filename and line from a .mdb file.
2015-03-09 19:17:15 +00:00
Marcos Henrich
707c481cd0
[corlib] Added icall System.Diagnostic.StackFrame.GetILOffsetFromFile.
...
This method is required by the tool mono-symbolicate.
2015-03-09 19:17:14 +00:00
Zoltan Varga
1acd65dc65
Disable SecurityFrame, the runtime code in declsec.c creates cross-domain references which cause GC crashes when running the System.Web testsuite.
2015-03-09 15:15:04 -04:00
Marcos Henrich
dfaa57f513
[runtime] Moved some seq point code from mono/mini to mono/metadata.
...
Created files metadata/seq-points-data.c and .h.
Sequence points data structures were moved to metadata so we can perform icalls on them.
2015-03-09 19:03:35 +00:00
Marcos Henrich
345e2f50f0
[runtime] AOT now uses file to store release mode sequence points.
...
Sequence point data is now stored in a .msym file.
This change removes the sequence points memory overhead from assemblies to be deployed on devices.
2015-03-09 19:03:35 +00:00
Marcos Henrich
91553a5cd1
[runtime] Added SeqPointData used to write/load sequence points.
2015-03-09 19:03:35 +00:00
Marcos Henrich
19b513f9df
[runtime] Improved seq_point_info_write/read has_debug_data encode.
2015-03-09 19:03:35 +00:00
Marcos Henrich
56383167fe
[mono-symbolicate] Changed files to use new tool name.
2015-03-09 19:03:34 +00:00
Marcos Henrich
7c5b81f99b
[symbolicate] Renamed symbolicate to mono-symbolicate.
...
Renamed the tool to a name that will not conflict with other installed tools.
2015-03-09 19:03:34 +00:00
Marcos Henrich
d17b393e11
[runtime] Fixed Process.GetProcesses ().
...
Process.GetProcesses () was not returning any processes.
2015-03-09 17:40:31 +00:00
Alexander Kyte
4e6a94e2a4
[Remoting] Fixed remoting bug where too specific a type reflected.
2015-03-09 13:07:39 -04:00
Alexander Kyte
c49d92bff9
[Remoting] Moved helper methods from CAD call class to parent class to enable remoting fix.
2015-03-09 13:07:27 -04:00
Alexander Kyte
2d0a5da8b4
Fixed early termination of string parsing on non-space whitespace.
2015-03-09 12:41:02 -04:00
João Matos
6397c8da1d
Merge pull request #1622 from akoeplinger/fix-datetime-test
...
[corlib] Fix timezone dependent DateTimeOffset test
2015-03-09 14:23:56 +00:00
João Matos
05c587cb39
[runtime] Fixed Windows mono_threads_core_get_stack_bounds to work with cross-compiled targets.
2015-03-09 14:22:01 +00:00
Alexander Köplinger
bb3bc6ddc9
[corlib] Fix timezone dependent DateTimeOffset test
...
Instead of trying to recreate the date with the current timezone, we should make the date assume UTC and compare against that.
2015-03-09 10:21:49 -04:00
Alexis Christoforides
22d5581e87
[DataContractJsonSerializer] Allow abstract base classes in lists. Fixes #26998
...
Abstract classes can still have subclasses with KnownType attributes, which are allowed in deserialization.
This used to work as the '__type' hint was always honored no matter the type, and broke with https://github.com/mono/mono/commit/71e152accc727089faffa6b4fd6bf58cb62636cf which removed that behavior.
2015-03-09 01:23:27 -04:00
Alex Rønne Petersen
98f62a74f8
Merge pull request #1619 from akoeplinger/flaky-dataflow-test
...
[Dataflow] Disable flaky FaultExecutingConsume () test
2015-03-08 22:05:47 +01:00
Alexander Köplinger
2b5da76670
[Dataflow] Disable flaky FaultExecutingConsume () test
...
It fails randomly on Jenkins and my own CI. To reproduce, just wrap the body of the test in while(true) and run for a few minutes.
I tested on MS.NET as well and it fails the same way there, so it's not Mono's implementation of Dataflow.
Filed https://bugzilla.xamarin.com/show_bug.cgi?id=27757 for tracking.
2015-03-08 21:51:48 +01:00
Zoltan Varga
03f9477d60
[jit] Rename MonoGenericParam->serial to 'gshared_constraint', use it to calculate object sizes/layouts correctly if a generic param matches a non-reference type during gsharing.
2015-03-07 22:59:34 -05:00
Miguel de Icaza
f1ad4d5bee
[UnixRegistry] Fix leak ( #25559 ), remove races.
...
There was a memory leak caused by not having a lookup mechanism for
the RegistryKey. In addition, the entire code to dispose code was
never used (due to the leak), and it was wrong.
In addition, added locking to the "values" field, which currently was
racy.
No test cases, the repro is to run the above code for about 5 minutes.
2015-03-06 21:18:51 -05:00
João Matos
4f458a4ff7
Enable x86 cross compilation on Windows.
2015-03-06 18:15:37 +00:00
João Matos
8bdbe69fd7
Do not try to use the native GCC linker when targeting Android from Windows.
2015-03-06 17:42:36 +00:00
João Matos
635fe7a37d
Fixed Windows system commands calls with non-ASCII paths.
...
This is a bit of an hack but it works for now... ideally we should be processing the Unicode command line flags passed by the CRT at startup instead of trying to convert the MBCS string to a wide string.
2015-03-06 17:42:36 +00:00
Sebastien Pouliot
9c38772f09
Remove the EXPORT ciphers and related code path
...
That was still useful in 2003/2004 but the technical and legal landscape
changed a lot since then. Removing the old, limited key size, cipher
suites also allow removed additional parts of the code that deals with
them.
2015-03-06 10:35:27 -05:00
Sebastien Pouliot
b371da6b2d
Remove the client-side SSLv2 fallback.
...
There's almost no SSLv3 web site left so a v2 fallback is only extra
code we do not need to carry forward.
2015-03-06 10:34:59 -05:00
Sebastien Pouliot
1509226c41
TLS protocol: add handshake state validation
2015-03-06 10:34:14 -05:00
Miguel de Icaza
48992d4b3f
Merge pull request #1155 from steffen-kiess/json-string
...
Fix System.Json string handling and make order of JsonObject entries deterministic
2015-03-06 09:47:56 -05:00
Zoltan Varga
0a968edad3
[jit] Use mini_get_underlying_type () in one more place.
2015-03-05 17:59:42 -05:00
Zoltan Varga
c89496c89f
[jit] Add a make target for running the jit tests without the nunit output wrapper.
2015-03-05 17:53:55 -05:00
Zoltan Varga
29fce2eda9
[jit] Use mini_get_underlying_type () in a few more places.
2015-03-05 17:46:10 -05:00
Zoltan Varga
181093864f
[runtime] Remove the usage of MONO_INTERNAL, use MONO_API to mark exported functions and -fvisibility=hidden to exclude everything else.
2015-03-05 17:06:29 -05:00
Zoltan Varga
d7da3b09a1
[runtime] Remove the usage of MONO_INTERNAL, use MONO_API to mark exported functions and -fvisibility=hidden to exclude everything else.
2015-03-05 16:02:21 -05:00
Rodrigo Kumpera
64058140ee
[loader] If probing for a pinvoke fails, log the error mono_dl_symbol gives us.
...
We used to swallow the error, which is unhelpful.
The reason for that might be because we probe multiple names before giving up but
even then, it's ok log all attempts. It will make troubleshooting easy, even if we
have to go through a lot more log entries.
2015-03-05 15:12:36 -05:00
Zoltan Varga
53406a1e0c
[sdb] Avoid asserts on darwin when the thread deregistration code is ran from a pthread dtor. Fixes #27697 .
2015-03-05 15:02:28 -05:00
Zoltan Varga
f1b172fc2d
[runtime] Fix byref out marshalling of arrays with a size parameter. Fixes #27614 .
2015-03-05 14:24:50 -05:00
Sebastien Pouliot
f2e21ed3fa
[tests] IPInterfaceProperties DNS address does not currently work on iOS devices (since it read /etc/resolve.conf). Ignore it for XI until #27707 is fixed
2015-03-05 14:03:04 -05:00
Marek Safar
25a486ee92
[corlib] BaseType of by-ref types is null
2015-03-05 18:41:19 +01:00
Miguel de Icaza
64c50872d7
[System.ServiceModel.Web/WebMessageFormatter] Fix OperationContracts with void returns
...
WebMessageFormatter crashes when the OperationContracts had a void return type.
Fixes #20764 , patch from <[email protected] >
2015-03-05 11:33:26 -05:00
keneanung
aa3de31b70
Add NoData as valid return state for Statements with params
...
When using stements with parameters, the OdbcCommand would throw an exception
on ExecSQL when no row was returned. The commit adapts the change done in
5264613b6d for the case of unprepared statements
without parameters.
2015-03-05 17:08:04 +01:00
Marek Safar
65dba595ea
[corlib] Enum from reference sources
2015-03-05 14:37:09 +01:00
Marek Safar
13c1275569
Merge pull request #1615 from akoeplinger/fix-consolelogger-race
...
[Microsoft.Build.Enginge] Fix race in ConsoleLogger
2015-03-05 07:42:38 +01:00
Marek Safar
518c3bcac5
Merge pull request #1614 from akoeplinger/fix-memorycache-tests
...
[System.Runtime.Caching] Make some MemoryCache tests more reliable
2015-03-05 07:41:19 +01:00
Alexander Köplinger
aeffabc10f
[Microsoft.Build.Enginge] Fix race in ConsoleLogger
...
This occasionally made the BasicManualParallelBuilds test fail on Jenkins.
2015-03-05 03:46:50 +01:00
Zoltan Varga
ac75172a00
[build] Avoid redefining clean target in mcs/class/Makefile.
2015-03-04 20:09:22 -05:00
Zoltan Varga
54f7682968
[jit] Add a new mini_get_underlying_type () function which handles byref, enums, native types, and generic sharing. Use it in places where possible.
2015-03-04 20:03:30 -05:00
Alexander Köplinger
e5cf24acde
[System.Runtime.Caching] Make some MemoryCache tests more reliable
...
After MemoryCache was imported from referencesources, some tests started
failing occasionally. Cross-testing on MS.NET showed that you need to
access the cached item to make MemoryCache.GetCount() reliably return the
correct number after an item was expired from the cache.
Also removed __MonoTimerPeriod and __MonoEmulateOneCPU configuration variables,
they were used in Mono code before and don't make sense with the new code.
2015-03-04 13:46:04 -08:00
jason_naylor
60ef531176
Fix for the XMLSerializer bug 18558
...
* Find the type map element that is the most-specific to the
object in question, not the first type it is an instance of
Change-Id: I1867e790bf9f377ce0ae02871f4561b760e27624
2015-03-04 10:25:37 -06:00
jason_naylor
6b74a2814f
Test to reveal defect in XmlSerializer (Bug 18558)
...
Given the test data in this patch the wrong element name
is used when serializing TestSerializeSecondType
Change-Id: I8aff732dfd22f4f654fb42f2d3b987d7ce58d600
2015-03-04 10:25:12 -06:00
Atsushi Eno
6fdc2ecf07
Remove old System.Xml.Linq code.
2015-03-04 23:47:57 +08:00
Marek Safar
50db473790
[system.xml] Clean up build output
2015-03-04 13:45:25 +01:00
Atsushi Eno
9dc2beb577
bump referencesource, bring in the fix for bug #27258 .
2015-03-04 20:28:13 +08:00
Marcos Henrich
120351d4f5
[System] Replaced while loop logic with an if.
...
The while loop is unnecessary because Interlocked.CompareExchange in this case already guarantees that blocking_threads is not null.
2015-03-04 12:22:40 +00:00
Atsushi Eno
7964743ae0
Merge pull request #1613 from atsushieno/import-system-xml-linq
...
Import System.Xml.Linq from referencesource.
2015-03-04 16:05:42 +08:00
Atsushi Eno
60bc3cd67f
Merge branch 'master' into import-system-xml-linq
2015-03-04 12:59:51 +08:00
Atsushi Eno
51c8433b18
bump referencesource.
2015-03-04 12:58:42 +08:00
Atsushi Eno
854a2fba5f
XLinq in referencesource depends on S.R.Serialization.
2015-03-04 11:44:16 +08:00
Atsushi Eno
c90c434b8d
Merge branch 'master' into import-system-xml-linq
2015-03-04 11:44:07 +08:00
Miguel de Icaza
23625eff75
[Registry] Revert 826060172f until I fix the regression
2015-03-03 21:59:07 -05:00
Zoltan Varga
d651e3d670
Fix Microsoft.Build tests which got broken by some newline changes in ef380e3712.
2015-03-03 19:11:36 -05:00
Zoltan Varga
eb2bd2c1a8
Fix make dist.
2015-03-03 17:48:08 -05:00
Miguel de Icaza
1b7f975ba1
Style consistency with the rest of Mono's code
2015-03-03 17:26:23 -05:00
Zoltan Varga
34cdab89ff
[build] Delete class/lib/$(PROFILE) on clean.
2015-03-03 16:55:31 -05:00
Zoltan Varga
f88248ee17
[jit] Really enable partial generic sharing.
2015-03-03 16:46:37 -05:00
Alexander Köplinger
588046144a
appveyor.yml: switch away from unstable image and simplify script
...
The unstable image seemed to cause problems recently.
We should just use the default image and fetch Cygwin ourselves.
Also added caching of the Cygwin files and simplified the script a bit.
2015-03-03 22:35:36 +01:00
Miguel de Icaza
826060172f
[UnixRegistry] Fix leak ( #25559 ), remove races.
...
There was a memory leak caused by not having a lookup mechanism for
the RegistryKey. In addition, the entire code to dispose code was
never used (due to the leak), and it was wrong.
In addition, added locking to the "values" field, which currently was
racy.
No test cases, the repro is to run the above code for about 5 minutes.
2015-03-03 16:19:37 -05:00
Zoltan Varga
ef380e3712
Rename Managed.Windows.Forms to System.Windows.Forms for consistency.
2015-03-03 15:59:16 -05:00
Zoltan Varga
837b034d76
[jit] Enable partial generic sharing when not using AOT as an experiment.
2015-03-03 15:27:11 -05:00
Atsushi Eno
a314eac67e
Remove old System.Xml sources. bye bye.
2015-03-04 03:31:00 +08:00
Alexander Kyte
06163ca774
[Runtime] Added logging around finalizers
2015-03-03 14:17:14 -05:00
Atsushi Eno
cfa8bc07f6
import System.Xml.Linq from referencesource.
2015-03-04 02:40:49 +08:00
Marek Safar
ce10d3b2be
[corlib] Peek to attribute import from reference souces
2015-03-03 17:50:58 +01:00
Marek Safar
74793c47ab
[corlib] Apply activation attributes for IsContextful types only
2015-03-03 17:50:58 +01:00
João Matos
b91712816c
Support multiple options when processing the AOT flag "ld-flags".
2015-03-03 16:29:08 +00:00
Marcos Henrich
d26501a4d9
[runtime] Implemented mach and windows mono_threads_core_abort_syscall.
...
call_cancel_blocking_socket_operation relies on mono_threads_core_abort_syscall which will now work on mach and windows.
2015-03-03 16:07:44 +00:00
Marcos Henrich
7f5126dfaa
[System] Moved blocking system calls logic to SafeSocketHandle.
...
All the blocking system calls are now registered.
SafeSocketHandle.ReleaseHandle now aborts system calls before closing the socket.
2015-03-03 15:33:51 +00:00
Atsushi Eno
8e3da5fe7c
Update expected error message to match System.Xml referencesource.
2015-03-03 22:43:22 +08:00
João Matos
ef2db766e2
Merge pull request #1611 from mono/akoeplinger-patch-1
...
Readme: add badges for armel/armhf and split off community supported archs
2015-03-03 14:40:32 +00:00
Alexander Köplinger
8ac85a3121
Readme: add badges for armel/armhf and split off community supported archs
2015-03-03 15:06:18 +01:00
Marek Safar
a1487060c0
[corlib] Activator from reference sources
2015-03-03 14:28:34 +01:00
Atsushi Eno
e9ef998703
Merge pull request #1608 from atsushieno/import-system-xml-4
...
Import large chunk of System.Xml sources from referencesource.
2015-03-03 20:04:43 +08:00
Zoltan Varga
1a679a64fc
[aot] Fix thumb support with separate llvm modules.
2015-03-02 22:37:43 -05:00
Zoltan Varga
bc849e04bc
[arm] Fix support for backward branches in mono_arm_get_thumb_plt_entry ().
2015-03-02 22:37:20 -05:00
Zoltan Varga
ec67acc7ae
Disable bug-Xamarin-5278.exe for now to make the build green again, it was broken by 5d26590e79.
2015-03-02 20:39:01 -05:00
Zoltan Varga
65c4728162
Revert some accidental changes in c00a4c8003.
2015-03-02 20:20:53 -05:00
Zoltan Varga
c00a4c8003
[runtime] Fix the non-loaded llvm build.
2015-03-02 20:16:15 -05:00
Rodrigo Kumpera
49d81f6c73
Merge pull request #1610 from madewokherd/decimalbuild
...
Rename decimal functions to not conflict with win32 versions.
2015-03-02 14:26:09 -06:00
Vincent Povirk
8ea6384117
Rename decimal functions to not conflict with win32 versions.
2015-03-02 14:19:09 -06:00
Atsushi Eno
e7da0c1319
Merge branch 'master' into import-system-xml-4
2015-03-03 03:46:39 +08:00
Zoltan Varga
13685c2326
[build] Add the assemblies in LIB_REFS to LIB_MCS_FLAGS automatically to reduce duplication.
2015-03-02 14:03:56 -05:00
João Matos
fa5e78a8d7
Merge pull request #1609 from iainx/build-cov-for-osx
...
[COV] Set the correct link flags for OS X
2015-03-02 16:08:40 +00:00
Iain
07654fb2ea
[COV] Set the correct link flags for OS X
...
Cov needs to be linked using the flat namespace on OS X, the same way that proflog is linked or else it won't do anything.
2015-03-02 15:51:10 +00:00
Marcos Henrich
5194d5689e
[System] Socket.socket is now a SafeSocketHandle.
2015-03-02 14:32:53 +00:00
Marcos Henrich
ecf83bcb93
[System] Added SafeHandle overloads for Socket icalls.
...
Using a SafeHandle overload avoids handle reuse.
2015-03-02 14:32:52 +00:00
Marcos Henrich
fe767bf2c7
[System] Added SafeSocketHandle.cs.
...
Added an implementation of SafeHandle that will be used by System.Net.Sockets.Socket to store socket handles.
2015-03-02 14:32:50 +00:00
Atsushi Eno
510710e423
take out ThisAssembly from SR.cs, conflicts with the one in Sys.Data.
2015-03-02 21:32:07 +08:00
Marek Safar
31afb2659c
[mcs] Handle string constants inside interpolated string expression. Fixes #27533
2015-03-02 14:19:37 +01:00
Jo Shields
2175d73ac6
Add net_4_5_parallel_dirs to SUBDIRS, so it's included in "make dist"
2015-03-02 12:58:52 +00:00
Atsushi Eno
2fc5471e11
fix build; I only updated Consts.cs, not Consts.cs.in...
2015-03-02 19:35:32 +08:00
Atsushi Eno
751ecd3e5b
[xml] take out some types in Dummy.cs to better source files.
2015-03-02 19:12:39 +08:00
Atsushi Eno
20cfe2e4c1
XML error messages has changed again now that they are from referencesource.
2015-03-02 19:11:54 +08:00
Marek Safar
e17e4f170e
[mcs] Add cloning to string interpolation expressions. Fixes #27525
2015-03-02 10:16:48 +01:00
Atsushi Eno
4bdf5defdd
Add referencesource's [InternalsVisiblTo] attributes in System.Xml.dll.
2015-03-02 11:36:45 +08:00
Atsushi Eno
331e521fdc
[xml] Fix dropped lines in Makefile during merge.
2015-03-02 11:36:45 +08:00
Atsushi Eno
55d49237d0
Fix mobile build wrt. Res classes.
2015-03-02 11:36:44 +08:00
Atsushi Eno
c646ba01a3
Add referencesource-based message strings to the build.
...
It should be using RESOURCE_STRINGS, but mcs doesn't support its special
option for string resources for multiple files.
The resource .cs files are generated by genresstringcs.sh, but System.Xml.txt
contains some bogus characters that prevents source generation, so after
the tool has generated the sources, I manually fixed them.
It won't matter once mcs supports the option for multiple files anyways.
2015-03-02 11:36:44 +08:00
Atsushi Eno
0763126f4b
[xml] update message resources for referencesource.
2015-03-02 11:36:43 +08:00
Atsushi Eno
4e2bd09616
Update all mcs errors expected messages for referencesource changes.
2015-03-02 11:36:43 +08:00
Atsushi Eno
b91781b08f
Fix regression in mcs/tools/mdoc by giving referencesource-based message.
...
(The error message is actually created by ourselves.)
2015-03-02 11:36:43 +08:00
Atsushi Eno
91657324d6
[mdoc/Test] add missing DTD.
...
With referencesource, the XmlReader now requires the DTD in SYSTEM
declaration to exist. So just add the DTD.
2015-03-02 11:36:43 +08:00
Atsushi Eno
47e8337395
[msbuild] fixing referencesource import "regression".
...
It is about insignificant whitespace handling difference.
2015-03-02 11:36:42 +08:00
Atsushi Eno
cae1f99ef8
[Xml] another human readable exception message.
2015-03-02 11:36:42 +08:00
Atsushi Eno
82b6e115cc
[Xml] fix regression in winforms tests.
...
ResXResourceReaderTest checks that the argument file is in the error
message. We only have stub messages so far, hence it "regressed".
2015-03-02 11:36:42 +08:00
Atsushi Eno
b40dd06602
[WCF] fix mobile builds. Mono.Xml.XPath is gone.
2015-03-02 11:36:42 +08:00
Atsushi Eno
94f667b1f3
[Xml] add mobile XslCompiledTransform implementation.
...
XslCompiledTransform doesn't work without CodeDom and dynamic code
generation. This "implementation" just dispatches everything to XslTransform.
2015-03-02 11:36:42 +08:00
Atsushi Eno
281e3c0a11
[Xml] Removed XslCompiledTransform and co. Now monodroid builds.
...
It will be added as mere alias of XslTransform as mono used to do.
2015-03-02 11:36:41 +08:00
Atsushi Eno
e7b1d9d96e
[Sys.Xml] first onging mobile build work. It does NOT build for mobiles now.
...
Removed Configuration dependencies and codegenerator parts in XmlSerializer
as well as switching CodeIdentifier implementation to old mono stuff
as referencesource totally depends on CodeDom (mono doesn't).
2015-03-02 11:36:41 +08:00
Atsushi Eno
8d2cf588c9
[Xaml] fix EOL handling in tests. referencesource emits LF.
2015-03-02 11:36:41 +08:00
Atsushi Eno
6d3edb6643
[Sys.Xml] give understandable message and arguments for Xml_WrongToken.
2015-03-02 11:36:41 +08:00
Atsushi Eno
77c316c520
[XLinq] fix some "regressions" caused by referencesource switch.
...
EOLs are platform dependent on referencesource.
Turn NotDotNet into Ignore (as we're also importing buggy implementation).
2015-03-02 11:36:40 +08:00
Atsushi Eno
848916fb2b
[S.R.Serialization] explicitly add MS serialization schema if it's not in the set.
2015-03-02 11:36:40 +08:00
Atsushi Eno
3c4c9e5759
[Sys.Xml] swap xmlns:xsd and xmlns:xsi in serialized xml to remove "regression".
...
The order of those namespaces are insignificant, and the latest
combination of mono corlib (partly referencesource-d) and sys.xml
(referencesource except for XmlSerializer) caused this implementation
glitch.
2015-03-02 11:36:40 +08:00
Atsushi Eno
27d469af0d
[Sys.Data] fix wrong test in XmlDataDocument.
...
This doesn't match .NET behavior.
(Found by referencesource import, verified w/ .NET 4.5.)
2015-03-02 11:36:40 +08:00
Atsushi Eno
81e07b6e1a
[Sys.Data] Fix tests regarding XmlTextWriter EOL handling.
...
MS referencesource changed XmlTextWriter behavior regarding EOL so that
now it preserves CRLF as is, instead of replacing them with
XmlWriterSettings.NewLineChars (mono implementation behavior).
There are some tests that depend on old behavior. The entire points of
those XmlDataDocument tests are not about checking EOLs, so just replace
the test XML file to not contain CRLF.
2015-03-02 11:36:39 +08:00
Atsushi Eno
ff9d202ceb
[Sys.Data] fix DOM event order related issue caused by referencesource.
...
There is implementation mismatch in XmlDocument event order regarding
Load(). Take this code:
string xml = "<root><child>1</child></root>";
var doc = new XmlDocument ();
doc.NodeInserted += (o, e) =>
Console.WriteLine (e.Node.NodeType + e.Node.LocalName);
doc.LoadXml (xml);
This is mono output before referencesource:
Text#text
Elementchild
Elementroot
This is with referencesource:
Elementchild
Text#text
Elementroot
So, there are event order differences in our two implementations.
Now, XmlDataDocument depends on those XmlDocument events to fill DataRow
values. It worked fine with pre-referencesource System.Xml model, but
with referencesource it skipped to fill data row values.
This change makes sure to fill data row values from text node which are
added _after_ the parent node is added to the document.
2015-03-02 11:36:39 +08:00
Atsushi Eno
fd25cd14ca
[System.Data] fix another NRE that was exposed by referencesource.
2015-03-02 11:36:39 +08:00
Atsushi Eno
e8fa9b5229
[System.Data] MS implementation doesn't expect CRLF on *nix. Use Env.NewLine.
2015-03-02 11:36:39 +08:00
Atsushi Eno
a5ea493bdd
[System.Data] MS implementation does NOT expect CRLF in the output on *nix.
2015-03-02 11:36:39 +08:00
Atsushi Eno
eb71b01513
[System.Data] fix NRE that was exposed by referencesource.
2015-03-02 11:36:38 +08:00
Atsushi Eno
e7d2a05791
update dummy messages to somewhat understandable values.
2015-03-02 11:36:38 +08:00
Atsushi Eno
4990b4c47b
First step to import referencesource System.Xml.
...
It is not simply replacement because we have to workaround dynamic codegen
for Xamarin.iOS.
Also there were several tests failing with MS implementation (e.g. for
W3C DOM conformance), so we had to disable them.
There is one regression that rather needs to be fixed in Reflection.Emit.
Also, some WCF tests fail with this implementation. They need to be
investigated, reviewed and appropriately fixed.
2015-03-02 11:36:38 +08:00
Zoltan Varga
b862ff8acc
[jit] Rename mini-llvm.h to mini-llvm-loaded.c and make it a non-header file.
2015-03-01 22:15:09 -05:00
Zoltan Varga
e71fdeef4c
[runtime] Fix the loadable llvm build.
2015-03-01 18:36:26 -05:00
João Matos
b8467ef0dd
Merge pull request #1514 from directhex/master
...
Workaround for X509Certificate.RSA throwing an unhandled exception
2015-03-01 20:36:42 +00:00
Zoltan Varga
2d8af16663
[jit] Move aot method loading to mono_jit_compile_method_with_opt ().
2015-03-01 00:47:02 -05:00
Zoltan Varga
880fb9c3eb
[jit] Remove some dead code/includes.
2015-03-01 00:17:38 -05:00
Zoltan Varga
83e2223403
[runtime] Split mini.c into two files: mini.c contains the JIT code, while mini-runtime.c contains the runtime code, i.e. startup/shutdown, threading, tls, etc.
2015-03-01 00:03:07 -05:00
Zoltan Varga
f6ea703e09
Fix a warning.
2015-02-28 22:56:31 -05:00
Zoltan Varga
ac637b0fa1
[build] Avoid changing System.Xml.Linq references to System.XML.Linq during parallel build dependency calculation.
2015-02-28 20:56:52 -05:00
Zoltan Varga
0b4533dd59
[jit] Remove some dead code.
2015-02-28 17:01:28 -05:00
Zoltan Varga
4cd6718bf6
Merge pull request #1607 from davidmoore1/bug-27529
...
Bug 27529 Tool Tip appears behind menu
2015-02-28 16:19:26 -05:00
David Moore
f3ff59749f
Bug 27529 Tool Tip appears behind menu
...
In certain cases, hovering over a ToolStripMenuItem
that has a tool tip defined will result in the tool
tip appearing behind, and hidden by, the context
menu containing the item. The change is to cause
the tool tip to be pushed to the front when it is
displayed.
2015-02-28 11:00:05 -05:00
Jo Shields
d53ed1c8f8
Workaround for X509Certificate.RSA throwing an unhandled exception in ASN1 parsing of certificates with ECC public keys only.
2015-02-28 12:48:49 +00:00
Zoltan Varga
3ceb869495
[bcl] Enable parallel build for parts of the 4.5 class libs/tools.
2015-02-27 19:46:29 -05:00
Zoltan Varga
d5fcd29868
[llvm] Increase the size of a parameter array which was too small for some arm64 calling conventions.
2015-02-27 13:33:30 -05:00
Marek Safar
c47a456d29
[Microsoft.Build.Engine] Update missing method exception type
2015-02-27 19:08:33 +01:00
Marek Safar
001c0d17eb
[corlib] Throw correct exception for missing properties called via InvokeMember
2015-02-27 18:59:43 +01:00
João Matos
5927ede215
Added "ld-flags" to pass extra linker flags to the AOT linker pipeline.
2015-02-27 17:26:23 +00:00
Rodrigo Kumpera
ec8a06433f
Remove explicit support for 2.0, it will now use 4.5
2015-02-27 11:07:27 -05:00
Marek Safar
4f23050db1
[mcs] Better error reporting for wrong unexpected escaped characters. Fixes #27441
2015-02-27 16:57:35 +01:00
Zoltan Varga
c947640d2a
Merge pull request #1605 from iainx/cov-install-coverage-filter
...
Check the coverage hash exists before accessing it
2015-02-27 10:41:07 -05:00
iain holmes
7ce0c7c9bb
Check the coverage hash exists before accessing it
...
If a profiler has not installed a coverage filter, or the coverage filter has returned FALSE, then calls to mono_profiler_coverage_get trigger a assertion failed warning in g_hash_table_lookup.
2015-02-27 15:28:31 +00:00
Zoltan Varga
f4e7da7e0c
Merge pull request #1604 from iainx/cov-install-coverage-filter
...
[cov] Install a coverage filter
2015-02-27 10:25:02 -05:00
Marek Safar
9b4e5bb49b
[corlib] Implement Activator invocation on params constructor with conversion from object
2015-02-27 14:43:25 +01:00
Zoltan Varga
8b43cc0761
Merge pull request #1603 from iainx/coverage-null-protect
...
Check for valid coverage info before dereferencing it.
2015-02-27 08:07:48 -05:00
iain holmes
5e9bbbc27e
Check for valid coverage info before dereferencing it.
...
If a profiler had requested MONO_PROFILE_COVERAGE events and not installed a
coverage filter, then the coverage info is NULL and a crash quickly followed
2015-02-27 12:35:40 +00:00
Marek Safar
2ec7528ec5
Bump reference sources to fix #27492
2015-02-27 13:13:01 +01:00
Marek Safar
23603fe1bd
[corlib] Add DefaultDllImportSearchPathsAttribute
2015-02-27 13:02:35 +01:00
Marek Safar
5d26590e79
[corlib] Binder from reference sources
2015-02-27 12:06:17 +01:00
Marek Safar
739afc39be
[build] Use resource strings for library builds only
2015-02-27 11:35:05 +01:00
iain holmes
e91693fbb8
[cov] Install a coverage filter
2015-02-27 10:13:54 +00:00
Zoltan Varga
2656bf0cc7
[build] Fix a bug in 37983f7fc3.
2015-02-26 23:30:35 -05:00
Zoltan Varga
37983f7fc3
[build] Add dependency information for class libraries using a LIB_REFS variable which lists the assemblies a given assembly depends on to build.
2015-02-26 22:27:27 -05:00
Zoltan Varga
5cf4cbde3a
[bcl] Remove some net 1.0 stuff from Makefiles.
2015-02-26 18:06:29 -05:00
Zoltan Varga
c38f5406a7
Merge pull request #1602 from cdettmering/master
...
Fixing ToolStripManager.RevertMerge
2015-02-26 17:54:40 -05:00
Chad Dettmering
9fe0952221
Fixed up formatting to comply with Mono coding guidelines
2015-02-26 17:47:03 -05:00
Chad Dettmering
2550e73081
Changed System.Windows.Forms.ToolStripManager.RevertMerge to return
...
false when given a null argument instead of throwing an exception.
According to the msdn here:
https://msdn.microsoft.com/en-us/library/b4e35dwy%28v=vs.110%29.aspx
this method should never throw an exception. This was also confirmed
with the official Microsoft runtime.
This change is released under the MIT license.
2015-02-26 17:31:49 -05:00
Zoltan Varga
4c9cd80099
[jit] Disable direct calls to icalls when using llvm, llvm can't handle direct calls to 64 bit addresses (tests/jit-float.exe fails).
2015-02-26 15:18:56 -05:00
Rolf Bjarne Kvinge
6fe661159c
Ignore a few decimal tests on mobile, according to #27269
...
https://bugzilla.xamarin.com/show_bug.cgi?id=27269
2015-02-26 20:01:06 +01:00
Zoltan Varga
d32a4bd512
[runtime] Use mono_set_pending_exception () in some places in icalls. Avoid using it for throwing exceptions returned by mono_thread_execute_interruption (), since that seems to cause problems.
2015-02-26 13:08:34 -05:00
Zoltan Varga
690183aa08
[runtime] Disable the "bridge-implementation=tarjan,major=marksweep-conc|ms-conc-tarjan-bridge" sgen tests which currently fail.
2015-02-26 12:57:14 -05:00
Rolf Bjarne Kvinge
d79c519b39
Don't use _NSGetEnviron on arm64.
2015-02-26 13:55:30 +01:00
Rolf Bjarne Kvinge
1dbe593001
Restrict IOKit usage to desktop OSX.
...
IOKit is a private framework in iOS, so it can't be used (and
no headers are provided, so it doesn't even compile).
2015-02-26 13:49:59 +01:00
João Matos
4b6173d11f
Fixed compilation on Linux targets without linux/serial.h.
...
/Users/builder/data/lanes/monodroid-mavericks-master/7de6731a/source/mono/support/serial.c:25:26: fatal error: linux/serial.h: No such file or directory
#include <linux/serial.h>
The header is only available on Android NDK API level >= 21.
2015-02-26 12:09:17 +00:00
Zoltan Varga
c9b2e3e4c2
Merge pull request #1599 from StephenMcConnel/bug-26887-A
...
Prevent right click from triggering ToolStrip.OnItemClicked
2015-02-25 19:49:27 -05:00
Rodrigo Kumpera
abd5c65999
[sgen-bridge] Fix all the bridges after the change to have descriptor loading happen outside of scanning.
...
This changes all bridges to use the _safe variant of sgen_obj_get_descriptor. Bridge processing happens in
the post-scan world, before objects get untagged.
2015-02-25 18:16:23 -05:00
Stephen McConnel
0c95513a0e
Prevent right click from triggering ToolStrip.OnItemClicked
...
This addresses https://bugzilla.xamarin.com/show_bug.cgi?id=26887
(along with a previous fix).
2015-02-25 17:00:30 -06:00
Rodrigo Kumpera
e02337995e
Fix my last commit to properly include the tarjan test suite.
2015-02-25 17:54:51 -05:00
Rodrigo Kumpera
1d57482131
Add the tarjan bridge to the test matrix.
2015-02-25 17:50:46 -05:00
Rodrigo Kumpera
68dcdcaac6
[sgen] Fix the sgen bridge test suite. Oh my.
2015-02-25 17:43:42 -05:00
Rodrigo Kumpera
132d9511ff
Merge pull request #1598 from mono/revert-1593-new_suspend
...
Revert "This introduces the new suspend machinery. Right now the unified...
2015-02-25 16:39:59 -06:00
Rodrigo Kumpera
43a734f579
Revert "This introduces the new suspend machinery. Right now the unified STW is disabled for sgen."
2015-02-25 17:39:26 -05:00
Atsushi Eno
03ff64f6e1
bump referencesource.
2015-02-26 05:16:13 +08:00
Rodrigo Kumpera
5786bd0ce9
Merge pull request #1597 from akoeplinger/remove-ef
...
Remove EntityFramework from class libs
2015-02-25 15:01:28 -06:00
Zoltan Varga
0bab8ed6a0
[runtime] Remove definitions of MONO_SHARED_DIR from scripts, its not needed anymore.
2015-02-25 15:45:22 -05:00
Alexander Köplinger
c1bbee0b95
Remove EntityFramework from class libs
...
We currently ship a horribly outdated version of EF. This is unnecessary since EF is on NuGet and has an active set of users using it on Unix.
Miguel gave his +1 on the mailing list already.
2015-02-25 21:24:52 +01:00
Rodrigo Kumpera
9e79098001
Merge pull request #1593 from kumpera/new_suspend
...
This introduces the new suspend machinery. Right now the unified STW is disabled for sgen.
2015-02-25 13:53:36 -06:00
Zoltan Varga
f30e78bcab
[jit] Make the opcode emulation jit icalls callable without a wrapper in some cases.
2015-02-25 14:48:50 -05:00
Miguel de Icaza
ccaf0cc44c
[SslClientStream] Prevent crashes when a connection is closed
...
When a socket has been closed as part of the negotiation, the
SendAlert method would crash when trying to reuse the socket.
Add try/catch around this to prevent this.
Fixes #19334
2015-02-25 12:01:15 -05:00
Miguel de Icaza
2f953191fc
Merge pull request #1584 from zevane/patch-2
...
Limit the lock to the writing operation
2015-02-25 10:32:00 -05:00
Miguel de Icaza
5b2d5b4bf4
[Serial] Add support for high baud rates to MacOS
2015-02-25 10:27:43 -05:00
Miguel de Icaza
87357b51e9
[serial,signal] Add support for Linux arbitrary baud rates + drop Apple legacy poll support
...
This patch brings support for arbitrary baud rates in Linux, from patch:
https://bugzilla.xamarin.com/show_bug.cgi?id=8207
Which has been MIT licensed (see mono-devel-list).
In addition, while testing the patch, discovered that we are using
fakepoll.h on MacOS which was there to support Tiger-era broken poll
implementations.
The details about the lack of poll support come from this document
that is now only available on web.archive.org:
http://web.archive.org/web/20030604064847/http://developer.apple.com/technotes/tn2002/tn2071.html
And the original Mono bug that reported the problem in 2008, followed
by the fixes is reported and discussed here:
https://bugzilla.novell.com/show_bug.cgi?id=384227
The source of the problem, confirmed by an Apple employee at the time
(form the bug) is that poll sometimes results in returning POLLHUP
when a POLLIN was expected:
http://curl.haxx.se/mail/lib-2005-05/0122.html
This web site tracks the behavior of poll (POLLHUP and POLLIN) across
Posix implementations when you reach an end of file:
http://www.greenend.org.uk/rjk/tech/poll.html
2015-02-25 10:20:44 -05:00
Marek Safar
0b7afa989d
[system.net.http] Add another workaround for incompatible mono Uri handling. Fixes #27386
2015-02-25 12:28:47 +01:00
Marek Safar
6ee0adb342
[System.Net.Http] Change relative uri test to not require internet access
2015-02-25 08:45:03 +01:00
Atsushi Eno
06334e4f24
remove replaced and unused Encoding code.
2015-02-25 15:20:23 +08:00
Atsushi Eno
8d24d4dc74
Merge pull request #1590 from atsushieno/import-diagnostics-trace
...
Import System.Diagnostics.Trace from referencesource
2015-02-25 15:14:53 +08:00
Atsushi Eno
c4929cbf9c
remove replaced System.Diagnostics.Trace family code.
2015-02-25 15:13:27 +08:00
Zoltan Varga
93a5401ee0
Revert "[runtime] Use mono_set_pending_exception () in some places in icalls."
...
This reverts commit d0d0d29320 .
Revert this as it caused too many test failures.
2015-02-24 18:20:41 -05:00
Atsushi Eno
4add6e6c44
[xml] add missing CONFIGURATION_DEP
2015-02-25 07:18:34 +08:00
Zoltan Varga
281c3842d3
[runtime] Declare ICALL_EXPORT as MONO_API so it works with -fvisibility=hidden.
2015-02-24 18:07:26 -05:00
Zoltan Varga
47ef0fd121
Fix a warning.
2015-02-24 18:07:26 -05:00
Zoltan Varga
623f54afed
[runtime] Remove some dead definitions.
2015-02-24 18:07:26 -05:00
Marek Safar
48daad9728
[Mono.XBuild.Tasks] Fixes versioning with newer than 4.0 special msbuild profiles
2015-02-25 00:04:51 +01:00
Rodrigo Kumpera
b0d6f33857
bump master version of mono.
2015-02-24 17:28:10 -05:00
Rodrigo Kumpera
59c82ade25
[threading] Rework suspend code to be based on a state machine and eliminate known races in the process.
...
The new suspend machinery is based around a single word state machine that is manipulated using CAS.
This solves the first set of problems with the current approach, the lack of atomicity and the impossibility of
doing race free manipulation of protected state. This is specially acute when doing a self suspend.
Suspend data must be atomically protected while we prepare to self suspend so a resume request won't race with the current
thread putting itself to sleep. This is a classical problem that calls for a mutex/conditional variable pair. Except that all
locks in the suspend path must be suspend safe. Wait, WHAT?
A Suspend Safe Lock is a primitive that is obstruction free in the face of the kernel suspending a thread either performing a
lock operation or waiting on a lock to become available. This, unfortunately, is not possible with pthread_mutex on OSX. The
only safe primitive are kernel semaphores, for which doesn't exist conditional variables for.
So back to locking and self-suspend. We need a lock because the existing thread state is not atomic but we can't use a
mutex/condvar pair so we're left with racy code. Yay! The fix is using CAS over a single variable.
Another change was the hardening of the suspend/resume code on posix targets. First we replace a semaphore wait with
sigsuspend for async suspend. This is needed since sem_wait is not async-signal safe (yet sem_post is). Second, we now
respect interruption requests by having a pair of suspend signals, one with SA_RESTART and one without.
Onto the design of the suspension system, a few concepts that are useful looking around.
* Self suspend: This is when the thread decides to suspend itself.
* Async suspend: This is when a thread decides to suspend another thread.
* Suspend Initiator: This the name of a thread that decided to suspend one or more other threads. This is important
since all suspending threads will notify it when they are suspended. There can be only one initiator in the system
at a given time.
* Suspension count: Number of resume calls before a thread is back to running state.
There are 7 states that can happen while a thread is runnable:
* Running: just running...
* (Async|Self) Suspended: Suspended, the difference comes into play when resuming.
* (Async|Self) Suspend Requested: Suspend requested, but not completed. See more below for the discussion on why the request state is needed.
* Suspend In Progress: Self suspend started saving its state thus async suspend should not modify it.
* Suspend Promoted to Async: Async tried to suspend a thread in the middle of a self suspend, it wants to be notified.
Now to the suspension protocol and how it happens on a high level view.
Suspension starts with a suspend request, which bumps the suspend count by one. This suspend request can be fulfilled either
by an async or self suspend action. This is confusing as there's only one initiator but any number of threads can be self suspending.
Async suspend then performs a platform specific action such as posix signals that forces a transition on the target. In the case
of self suspend, it depends on the thread polling its state and trigger the transition.
This works fine except that the suspend state is one huge struct with tons of fields. To control concurrent access to it we use a
single initiator in the case of async suspend and we put the thread in a transitional "saving my state" in the case of self suspend.
In the case of async suspend, the initiator must wait for all 1+ threads to notify back that they have suspended. Only after that
it's possible to know if the async suspend request actually worked or not (we might have hit a dying thread).
Together with this, there's an optional implementation of STW in sgen that can use this new machinery. To enable it set the
MONO_ENABLE_UNIFIED_SUSPEND env var for now while it gets more testing.
2015-02-24 17:14:28 -05:00
Zoltan Varga
d0d0d29320
[runtime] Use mono_set_pending_exception () in some places in icalls.
2015-02-24 16:42:13 -05:00
Rodrigo Kumpera
0b3822a9e1
Merge pull request #1591 from akoeplinger/remove-npgsql
...
Remove Npgsql from class libs
2015-02-24 14:41:16 -06:00
Alexis Christoforides
2df1c787bf
[Decimal] Fix C89 compliance in decimal-ms.c
2015-02-24 12:21:24 -08:00
Marek Safar
665a55d4f8
[facades] Add missing System.ServiceModel.Primitives forwarders to MT profile. Fixes #27338
2015-02-24 20:29:34 +01:00
Marek Safar
2984695832
[corlib] Use HGlobalUnmanagedMemoryStream directly from MonoTouch timezoneinfo
2015-02-24 20:15:56 +01:00
Alexander Köplinger
762bc0bbe6
Remove Npgsql from class libs
...
This has been requested by the maintainers of Npgsql a few times already (https://bugzilla.xamarin.com/show_bug.cgi?id=23119 ) and we should do it for Mono 4.0.
Miguel gave his +1 on the mailing list already.
2015-02-24 20:12:40 +01:00
João Matos
b528a79db5
[runtime] Upgraded Jay MSVC project to VS 2013.
2015-02-24 18:46:11 +00:00
João Matos
220afd9d49
[runtime] Fixed the MSVC build.
...
Even though this seems like it's just moving the files around in the project, for some reason it makes a difference to VS.
2015-02-24 18:46:04 +00:00
Rodrigo Kumpera
46c30d31f8
[sgen] Introduce SgenThreadInfo::suspend_done.
...
This variable must be set to all threads that have been properly suspended. This is
an initial step to simplify suspend state and use explicitly named variables instead
of hiding state in stopped_ip / stopped_domain.
2015-02-24 13:33:49 -05:00
Rodrigo Kumpera
6bd7be2081
Add suspend done everywhere else.
2015-02-24 13:33:49 -05:00
Atsushi Eno
525c47a7f3
Bring back DefaultTraceListener because it already works better for mono.
2015-02-25 01:23:35 +08:00
Atsushi Eno
d6bd25591b
import System.Diagnostics.Trace etc. from referencesource.
2015-02-25 00:54:38 +08:00
Atsushi Eno
c34def6299
bump referencesource to include System.Diagnostics changes.
2015-02-25 00:04:49 +08:00
Marek Safar
6f14f86357
[system.net.http] Accept header with multiple values. Fixes #27352
2015-02-24 16:55:01 +01:00
Rodrigo Kumpera
e9836b3511
Merge pull request #1587 from kumpera/cleanup_threading
...
This is a small cleanup of the threading API.
2015-02-24 09:02:24 -06:00
Marek Safar
f35b4f0996
[corlib] BinaryWriter/BinaryReader from reference sources
2015-02-24 10:33:45 +01:00
Marek Safar
6a415e894c
[corlib] UnmanagedMemoryStream from reference sources
2015-02-24 10:28:35 +01:00
Atsushi Eno
9f5a54b33e
bump referencesource (more BIGENDIAN fixes for UnicodeEncoding).
2015-02-24 12:56:17 +08:00
Zoltan Varga
cd4cb57572
[runtime] Fix the non-msvc build.
2015-02-23 20:41:30 -05:00
Zoltan Varga
3d984f7feb
[runtime] Mark mono_set_pending_exception () as a cold function, so calling code is generated out-of-line.
2015-02-23 20:05:40 -05:00
Zoltan Varga
40e8a35f27
[jit] Use mono_set_pending_exception () instead of throwing exceptions in JIT icalls.
2015-02-23 20:05:05 -05:00
Rodrigo Kumpera
7b6bb72285
[threading] Don't suspend a thread running out of its thread bounds.
2015-02-23 17:41:28 -05:00
Rodrigo Kumpera
b093d2384f
[threading] compute thread boulds on thread registration.
2015-02-23 17:41:27 -05:00
Zoltan Varga
aa4768dafb
[runtime] Disable some dyncall/gsharedvt fullaot tests on amd64.
2015-02-23 16:52:36 -05:00
Zoltan Varga
3eeb285c9a
[bcl] Fix Console support on ios, the TextWriter class from the reference sources called TextWriter:Write(char), so stdout was never flushed.
2015-02-23 16:08:39 -05:00
Rodrigo Kumpera
4e1dca9d5e
[threading] When checking if a thread is in a critical region, ask the GC too.
...
MonoThreads was previously ignoring sgen's in_critical_region, which could lead
to a thread suspended inside a gc critical region leading to the GC not been able
to STW.
2015-02-23 15:54:04 -05:00
Rodrigo Kumpera
8a133f2d7e
[threading] Introduce mono_thread_info_is_live and move all thread state testing to inside MonoThread.
2015-02-23 15:47:17 -05:00
Zoltan Varga
d20fb1aa2e
[jit] Make mono_thread_interruption_checkpoint () return the exception which needs to be thrown and throw it from the managed method/wrapper which called it.
2015-02-23 14:19:20 -05:00
Marek Safar
e3e6f308fd
[system] Bymp reference sources to get correct category names
2015-02-23 19:24:17 +01:00
Marek Safar
602287a0da
Bump reference sources for stream api update
2015-02-23 18:14:45 +01:00
Ludovic Henry
a81a3ce4a1
[mdoc] Update few failing tests
2015-02-23 11:27:22 -05:00
Marek Safar
a5f6ff93ed
[mdoc] Update few failing tests
2015-02-23 17:15:44 +01:00
Marek Safar
04c5ac7f7e
[system.core] Switch to dynamic visitor from reference sources and remove unused files
2015-02-23 17:03:43 +01:00
Marek Safar
31b143fdc1
[build] 3.10 bump for bootstrap was too much
2015-02-23 13:40:31 +01:00
Atsushi Eno
45d731a8bc
bump referencesource (fix encoding endianness).
2015-02-23 20:24:59 +08:00
João Matos
82dbc244da
Merge pull request #1586 from vkargov/master
...
[runtime] Prioritize loading a profiler library from the installation dir.
2015-02-23 11:11:52 +00:00
Marek Safar
e220c8f7cb
[build] Bump bootstrap mono requirement to 3.10 which does not have problems with flow-analysis in external/referencesource/mscorlib/system/text/asciiencoding.cs
2015-02-23 11:29:42 +01:00
Marek Safar
d2978f3833
Merge pull request #1580 from akoeplinger/msbuild-3B-escape
...
[Microsoft.Build.Engine] Fix bug with escaped semicolon and spaces
2015-02-23 10:42:27 +01:00
Marek Safar
8408ce4b5d
Merge pull request #1585 from akoeplinger/msbuild-makerelative
...
[Microsoft.Build.Engine] Implement MakeRelative() predefined property function
2015-02-23 07:36:11 +01:00
Vladimir Kargov
e3cfac464b
[runtime] Prioritize loading a profiler library from the installation dir over standard libarary paths.
2015-02-23 07:02:20 +03:00
Ludovic Henry
6e9c5ab5b3
[Linq] Replace implementation by Microsoft reference sources
2015-02-22 23:00:42 -05:00
Zoltan Varga
674a2849b4
[aot] Fix thumb support when using separate llvm modules.
2015-02-22 00:31:41 -05:00
Zoltan Varga
d8b896bb7c
[runtime] Add a --disable-visibility-hidden flag to disable the usage of -fvisibility=hidden for now.
2015-02-21 18:41:00 -05:00
Zoltan Varga
4249eba7f2
[runtime] Export a few more symbols.
2015-02-21 18:32:10 -05:00
zevane
4751c10f9c
Limit the lock to the writing operation
...
I initially discarded this change, because locking BaseSet (name, sec), didn't prevent the threads from trying to add the same key. That said, following the code, the point at which it actually fails is in NameObjectCollectionBase.BaseAdd, lines 331 and 332. The threads were arriving the second line at the same time:
if (_entriesTable[name] == null)
_entriesTable.Add(name, entry);
In brief, it's safe to call BaseSet twice with the same key, so it's safe to lock only the call to BaseSet
2015-02-20 20:04:01 +01:00
Alexander Köplinger
51297ed7ab
[Microsoft.Build.Engine] Fix bug with escaped semicolon and spaces
2015-02-19 00:19:31 +01:00
Alexander Köplinger
2850b1274c
[Microsoft.Build.Tasks] Added tests for escaped semicolon and space
2015-02-18 22:41:48 +01:00
Alexander Köplinger
e70880d895
[Microsoft.Build.Tasks] Fix bug in test method
...
The if check was inverted, so the actual test code didn't run.
2015-02-18 09:44:32 +01:00
Martin Potter
30c0309f15
Lower-case the host in Uri.TryCreate to match behavior of constructors
...
On Microsoft's implementation of the Uri class, the contructors and TryCreate method both lower-case the host. This commit fixes the issue where the constructors lower-cased the host but the TryCreate method did not.
2014-08-21 06:43:52 -07:00
Steffen Kieß
d65e93b74f
Use SortedDictionary in System.Json.JsonObject
...
Currently JsonObject uses a Dictionary and JsonValue does not sort the keys
in SaveInternal(). As iterating over a Dictionary returns the values in
random order, this causes the JSON string to be non-deterministic.
Switching to SortedDictionary makes sure that the same object always will
produce the same JSON string.
The keys are sorted using StringComparer.Ordinal to produce the same order
in all locales.
2014-07-11 16:13:41 +02:00
Steffen Kieß
1a021c1e79
Fix handling of strings in System.Json
...
- Escape control characters, as required by JSON spec
- Escape invalid surrogate pairs
- Escape characters invalid in JavaScript strings
- Escape "</" for HTML script tags
- Fix serialization of chars
- Remove unused variable in JavaScriptReader.cs
- Add tests
2014-07-11 15:46:25 +02:00