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
Alexander Köplinger
f3f1799700
Ensure MakeRelative() works even when basePath doesn't end in slash
2015-02-22 20:41:29 +01:00
Alexander Köplinger
0a8592dc5b
[Microsoft.Build.Engine] Implement MakeRelative() predefined property function
2015-02-22 20:09:31 +01: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
Marek Safar
321bb7200c
Merge pull request #1573 from akoeplinger/msbuild-import-empty
...
[Microsoft.Build.Engine] Ignore import with empty project attribute when condition is false
2015-02-21 13:22:01 +01:00
João Matos
b92e728081
Merge pull request #1583 from akoeplinger/fix-genproj-line-endings
...
[genproj] Fix line endings in generated file to be CRLF
2015-02-20 20:14:15 +00:00
Atsushi Eno
684f9b08a5
Merge branch 'master' of github.com:mono/mono
...
(some commits occurred while I have been cherry-picking a lot of "they are
in import-system-xml branch but it works with existing sys.xml" stuff.)
work in master
2015-02-21 03:35:57 +08:00
Atsushi Eno
545cdaf8f7
[WCF] XmlWriter.WriteAttributeString(string,string) does not accept xml:*.
...
It needs LocalName. So use other overloads instead.
2015-02-21 03:33:23 +08:00
Atsushi Eno
6499ba871d
[XLinq] create new instance of XmlSchemaInfo for each XObject from XmlReader.
...
In referencesource, XmlReader.SchemaInfo does not return different instances
for each node at its state but just returns the XmlReader itself (which
implements IXmlSchemaInfo). Hence, if we just set the corresponding
IXmlScemaInfo to each XObject, it results in inconsistent state.
This fixes two regressions in ExtensionsTest (XAttributeFailValidate and
XAttributeThrowExceptionValidate).
2015-02-21 03:32:44 +08:00
Atsushi Eno
923ed6b241
[Sys.Security] don't expect XmlNode.ChildNodes returns the same instance.
...
It did in mono implementation. It doesn't on referencesource.
2015-02-21 03:31:39 +08:00
Atsushi Eno
d9184320f7
[Configuration] skip whitespaces in the settings xml.
...
This is required after we switch to referencesource, which somehow
preserves whitespaces during deserialization from xml.
2015-02-21 03:29:21 +08:00
Atsushi Eno
2951e3b6d8
[Xaml] XamlXmlWriter should flush output when disposing.
...
With referencesource, XmlWriter for TextWriter buffers the output.
When closing XamlXmlWriter, it does not flush the output, causing
the buffered XmlWriter output discarded in the wild.
2015-02-21 03:28:44 +08:00
Atsushi Eno
3001bd0d94
[WCF] for certain kind of Messages, do now write BodyContents twice.
2015-02-21 03:28:07 +08:00
Atsushi Eno
a1d5c9c48d
[Sys.Xml] when deserializing XmlNode, use XmlReader's NameTable.
2015-02-21 03:26:10 +08:00
Atsushi Eno
abb3e7dcfc
[WCF] fix wrong using scope on XmlWriter in security token serializer test.
2015-02-21 03:25:29 +08:00
Atsushi Eno
cdb4002190
[WCF] do not use XmlReader.Name to check LocalName.
...
It won't match for prefixed ones.
2015-02-21 03:24:54 +08:00
Atsushi Eno
358275e836
[WCF] Do not expect XmlElement.FirstChild is non-whitespace here.
...
Fix several regressions caused by referencesource Sys.Xml import.
2015-02-21 03:24:12 +08:00
Atsushi Eno
a0dece2329
[S.R.Serialization] fix referencesource glitch in XmlMtomDictionaryWriter.
...
MTOM writer didn't expect multiple top-level elements are rejected at
ConformanceLevel.Auto, neiher do against Write[Start/End]Document() with
such elements.
Also Flush is often needed before directly writing to the Stream(Writer).
EOLs handling was also inconsistent between referencesource and old mono.
2015-02-21 03:23:15 +08:00
Atsushi Eno
a3383d1be5
[S.R.Serialization] add missing attributes in MS serialization namespace.
...
This fixes another regression which failed to load Test ns22.xsd.
2015-02-21 03:22:08 +08:00
Atsushi Eno
74e70ff985
[Sys.Xml] don't use XmlSchemaElement.ElementType anymore. MS doesn't use it.
...
XML Schema compilation is done in referencesource.
XmlSchemaImporter is based on mono code. Hence this glitch happened.
The following regression is fixed:
1) MonoTests.System.Xml.Serialization.XmlSchemaImporterTests.DefaultTypeTopLevelElementImportsAllComplexTypes : System.InvalidOperationException : 'Root' is missing.
at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMapping (System.Xml.XmlQualifiedName name) [0x0005a] in /svn/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs:453
at MonoTests.System.Xml.Serialization.XmlSchemaImporterTests.DefaultTypeTopLevelElementImportsAllComplexTypes () [0x00039] in /svn/mono/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSchemaImporterTests.cs:1104
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /svn/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
2015-02-21 03:19:06 +08:00
Atsushi Eno
d41451bcbf
Our XmlDictionaryWriter implementation expects XmlReader at non-Initial state.
...
It is to fix glitch between mono Sys.Xml and referencesource.
2015-02-21 03:16:58 +08:00
Atsushi Eno
c56064b05c
[Sys.Data] DataSet.ReadXmlSchema(): use LocalName instead of Name on XmlReader.
...
MS referencesource Sys.Xml uncovered this bug.
2015-02-21 03:16:15 +08: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
Zoltan Varga
2202e97c33
[aot] Fix the emission of llvm plt entries.
2015-02-20 14:00:17 -05:00
Marek Safar
cfbb82b747
[corlib] Fixes build with old UnmanagedMemoryStream
2015-02-20 18:46:31 +01:00
Atsushi Eno
49d79191ca
Add missing new I18N DefaultEncoder class.
2015-02-21 00:52:26 +08:00
Atsushi Eno
3f355da212
Add old mono Encoder and use it in MonoEncoding to keep compatibility.
...
There was some glitch in CP932 encoding and referencesource Encoder
that caused error in Convert(), shown in System.XML tests.
To avoid this, bring back old Encoder as we used before and keep
compatible processing.
It might be buggier, but doesn't regress. We may be able to bring nlp-
based Encodings later too.
2015-02-21 00:52:20 +08:00
Zoltan Varga
392200a812
[runtime] Export the GC bridge api functions.
2015-02-20 11:51:19 -05:00
Miguel de Icaza
0e8701a161
Merge pull request #1582 from zevane/patch-1
...
Make the class thread-safe
2015-02-20 11:23:50 -05:00
Marek Safar
6800659e8c
[corlib] Remove ResourceCloseHandler usage
2015-02-20 17:07:15 +01:00
Marek Safar
01db1cc9ad
[corlib] Add more internal apis
2015-02-20 15:09:14 +01:00
Marek Safar
ed2510cc14
[build] Handle multiple entries in RESOURCE_STRINGS
2015-02-20 13:34:18 +01:00
Marek Safar
7a57bd6b3d
Bump reference sources to revert Add read-only interfaces to some collections
2015-02-20 11:25:23 +01:00
Marek Safar
8e90a963d6
Use more resource text strings from reference sources
2015-02-20 11:16:18 +01:00
Marek Safar
71533001b8
[System.Runtime.Serialization] Makefile cleanup
2015-02-20 09:57:30 +01:00
Marek Safar
f364eca194
[System.Numerics] Cleanup Makefile
2015-02-20 09:52:44 +01:00
Marek Safar
b1941bc08a
[System.ComponentModel.DataAnnotations] Makefile clean-up
2015-02-20 09:44:37 +01:00
zevane
b3ddd74efb
Make the class thread-safe
...
If two threads request the same section, which isn't yet cached, both try to insert it into the cache, causing a "Key duplication when adding...". It's neccesary to lock the getter. This solves bugs #5263 , #7785 , #18303
2015-02-20 09:12:47 +01:00
Marek Safar
754793df9e
[corlib] Switch to official mscorlib.txt
2015-02-20 08:49:17 +01:00
Miguel de Icaza
414d11f976
Bring referencesource messages that were just published by Microsoft
2015-02-19 21:02:49 -05:00
Zoltan Varga
285f867593
[aot] Fix the emission of dwarf debug info.
2015-02-19 20:24:38 -05:00
Zoltan Varga
5fc41fcb56
[aot] Emit dwarf emission on arm64.
2015-02-19 20:02:39 -05:00
Zoltan Varga
af3c010407
[llvm] Fix a bug introduced by 61ae03fef1.
2015-02-19 18:53:37 -05:00
Zoltan Varga
c3611d4d3b
[llvm] Mark methods with the NOINLINING attribute as non-inlinable.
2015-02-19 17:17:20 -05:00
Zoltan Varga
61ae03fef1
[llvm] Refactor the calling convention handling code a bit, add support for returning fp structures by value.
2015-02-19 17:04:07 -05:00
Ludovic Henry
986e58d530
[tpl] Increase wait timing in test suite to adapt to the slower ramp up of the ThreadPool
2015-02-19 15:49:19 -05:00
Zoltan Varga
127602a843
[aot] Enable LLVM level inlining.
2015-02-19 14:34:33 -05:00
Marek Safar
fbe7c55a56
[system.web] Tests update
2015-02-19 20:12:52 +01:00
Marek Safar
6e488234ae
[WindowsBase] Implement Vector formattable ToString
2015-02-19 20:12:52 +01:00
Marek Safar
ea43322c29
[corlib] BufferedStream from reference sources
2015-02-19 20:12:51 +01:00
Zoltan Varga
689a615a71
[llvm] Mark methods with clauses as noinline.
2015-02-19 14:06:20 -05:00
Zoltan Varga
e869cc56a5
[jit] Fix the overflow checks in the liveness2 pass since the liveness ranges are stored as signed ints.
2015-02-19 14:05:51 -05:00
Zoltan Varga
ae9d99d2d3
[aot] Fix catching exceptions in gshared methods on amd64.
2015-02-19 13:26:23 -05:00
Alexander Köplinger
042a9afd50
[genproj] Fix line endings in generated file to be CRLF
...
The template uses CRLF everywhere, so we should generate the same to avoid mixed line endings.
2015-02-19 19:23:23 +01:00
Zoltan Varga
eb7ed887ac
[llvm] Mark the mono_aot_personality () function as used, to prevent llvm from optimizing it away.
2015-02-19 12:10:02 -05:00
Zoltan Varga
08b8f74db5
[runtime] Export a few functions needed by xam.mac.
2015-02-19 11:41:11 -05:00
Jo Shields
2750f4970d
Add ReferenceSources/mscorlib.txt to EXTRA_DIST (fixes distcheck)
2015-02-19 16:11:28 +00:00
Marek Safar
65347a166e
[corlib] Text streams from reference sources
2015-02-19 17:04:14 +01:00
Marek Safar
ce4e2497be
[corlib] Use public TextWriter.Synchronized for Console synchronization and leave stream closing handling to underlying stream
2015-02-19 16:42:57 +01:00
Marek Safar
1425ace040
[corlib] Stream, MemoryStream from reference sources
2015-02-19 13:04:46 +01:00
Marek Safar
8da38a9e4a
[corlib] Access null stream using public property
2015-02-19 13:04:46 +01:00
Marek Safar
ffc36ef3bd
[corlib] Rename IsDirectorySeparator method to match reference sources
2015-02-19 13:04:46 +01:00
Alex Rønne Petersen
9af7d9083a
Stop building with -Wdeclaration-after-statement since we're C99 now.
2015-02-19 11:04:59 +01:00
Zoltan Varga
f8c5acaf45
[aot] Fix an assertion.
2015-02-18 20:35:47 -05:00
Zoltan Varga
2c1b64477b
[llvm] Emit null checks for remainders as well.
2015-02-18 19:15:12 -05:00
Zoltan Varga
5e0b127e15
[llvm] Emit null checks in div opcodes if needed.
2015-02-18 19:04:51 -05:00
Zoltan Varga
a0c1fb5a1a
[aot] Fix binary search in the code offsets table when emitting llvm code separately.
2015-02-18 19:04:08 -05:00
Zoltan Varga
98316e0be1
[aot] Fix the computation of LLVM code ranges.
2015-02-18 18:24:49 -05:00
Alexander Köplinger
51297ed7ab
[Microsoft.Build.Engine] Fix bug with escaped semicolon and spaces
2015-02-19 00:19:31 +01:00
Jo Shields
2d6092f45e
Ensure check-seq-point target exits immediately on failure.
2015-02-18 23:14:19 +00:00
Zoltan Varga
2c69ccd9f0
[jit] Disable llvm support for the atomic load/store opcodes for now to fix corlib test failures.
2015-02-18 17:31:02 -05:00
Zoltan Varga
77f4176af0
[aot] Handle separate blocks of llvm and jitted code correctly.
2015-02-18 17:10:57 -05:00
Alexander Köplinger
2850b1274c
[Microsoft.Build.Tasks] Added tests for escaped semicolon and space
2015-02-18 22:41:48 +01:00
Mark Probst
fee8ae7ef6
[sgen] Correctly calculate size of zero-based one-dimensional non-vector arrays.
2015-02-18 12:43:31 -08:00
Marek Safar
a803d17038
[mcs] Make compiler output deterministic. Fixes #26842
2015-02-18 20:02:31 +01:00
Zoltan Varga
28a2664d4a
Merge pull request #1576 from McSherry/patch-1
...
revises GZipStream ctor parameter names
2015-02-18 13:41:08 -05:00
Zoltan Varga
04ba85af27
[runtime] Really fix the loadable LLVM build.
2015-02-18 13:39:08 -05:00
Liam McSherry
dd939ec86a
revises GZipStream ctor parameter names
...
By changing the names of the parameters, code that uses .NET GZipStream constructors[1][2] with named parameters can use this GZipStream without change.
[1]: https://msdn.microsoft.com/en-us/library/as1ff51s(v=vs.110).aspx
[2]: https://msdn.microsoft.com/en-us/library/27ck2z1y(v=vs.110).aspx
2015-02-18 18:32:43 +00:00
Jo Shields
9f5a7ae769
Just avoid BSD sed altogether.
2015-02-18 18:29:01 +00:00
Jo Shields
85f78490d2
More fixes for BSD sed breaking check-seq-point target
2015-02-18 17:42:15 +00:00
Jo Shields
dad995933c
Further fixes to check-seq-point test
2015-02-18 17:17:21 +00:00
Jo Shields
afc70b2b7e
Fix test suite on OSX
2015-02-18 16:54:54 +00:00
Zoltan Varga
5e4ee3ccea
[runtime] Fix the loadable LLVM build.
2015-02-18 11:43:32 -05:00
Marek Safar
038b3b6cea
Bump ikdasm to fix crashes on mobile mscorlib
2015-02-18 17:05:16 +01:00
João Matos
08ea547ec4
Merge pull request #1575 from mono/revert-1574-patch-1
...
Revert "revises GZipStream ctor parameter names"
2015-02-18 16:00:06 +00:00
João Matos
f0a399e640
Revert "revises GZipStream ctor parameter names"
2015-02-18 15:59:39 +00:00
João Matos
fb9ae0f835
Merge pull request #1574 from McSherry/patch-1
...
revises GZipStream ctor parameter names
2015-02-18 15:59:16 +00:00
Liam McSherry
1f07b1320c
revises GZipStream ctor parameter names
...
By changing the names of the parameters, code that uses .NET GZipStream constructors[1][2] with named parameters can use this GZipStream without change.
[1]: https://msdn.microsoft.com/en-us/library/as1ff51s(v=vs.110).aspx
[2]: https://msdn.microsoft.com/en-us/library/27ck2z1y(v=vs.110).aspx
2015-02-18 15:55:01 +00:00
João Matos
8e87cce42c
[profiler] Fixed an Android build regression introduced by 2b74940f64.
2015-02-18 15:29:57 +00:00
Zoltan Varga
bfafeddc2b
[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported. Use a separate SHARED_CFLAGS variable so it only affects a subset of libs.
2015-02-18 08:12:32 -05:00
Zoltan Varga
0927b86347
Revert "[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported."
...
This reverts commit 8a5a230aec .
Revert this as it still causes test failures.
2015-02-18 08:11:22 -05:00
João Matos
7e9504a10d
[monodis] Fixed building against LLVM-compiled Mono.
2015-02-18 12:49:01 +00:00
João Matos
b50b381226
Merge pull request #1572 from directhex/emit-nunit-xml-in-unmanaged-tests
...
Emit NUnit representation of check-seq-points target.
2015-02-18 12:26:09 +00:00
Jo Shields
a34e257fd2
Emit NUnit representation of check-seq-points target.
...
This generates an XML representation of the check-seq-points target,
as separate tests, which can be easily tracked by anything which
parses NUnit output (e.g. Jenkins or other CI systems). For example,
we are currently regressed on this on ARM.
2015-02-18 12:10:39 +00:00
Marek Safar
da706a2058
[corlib] Removes extra bufffer from FileStream async mode writes. Fixes #27086
2015-02-18 12:56:36 +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 Baulig
a20a0459be
Merge pull request #1464 from akoeplinger/fix-portable-target
...
[xbuild] Only execute PCL target "ImplicitlyExpandTargetFramework" when corresponding property is true
2015-02-18 08:12:08 +01:00
Alexander Köplinger
bf3d9609ba
[Microsoft.Build.Engine] Ignore import with empty project attribute when condition is false
...
<Import Project="$(Variable)" Condition="false" /> causes an exception otherwise when Variable is not set.
Also added a test for condition referencing extension path after discussion in https://github.com/akoeplinger/mono/commit/f13d9cb5dacbb5c9f758d6dd8b9aacf46b5508b6
2015-02-18 07:38:41 +01:00
Miguel de Icaza
aeb24275bc
Merge pull request #1563 from directhex/emit-nunit-xml-in-unmanaged-tests
...
Generate NUnit interpretation of whether "mono --regressions" passed
2015-02-17 23:27:58 -05:00
Zoltan Varga
8a5a230aec
[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported.
2015-02-17 19:05:03 -05:00
Zoltan Varga
2b74940f64
[runtime] Link the logging profiler against eglib.
2015-02-17 19:03:39 -05:00
Zoltan Varga
065f41d168
[runtime] Export mono_threads_attach_tools_thread ().
2015-02-17 19:03:39 -05:00
Marek Safar
4d91c8e7d2
[build] Remove misused bootstrap profile definition
2015-02-17 21:58:23 +01:00
Marek Safar
451e14e4c8
[corlib] Remove duplicate source files
2015-02-17 21:43:23 +01:00
Marek Safar
c495250fde
[corlib] Replace resource keys with actual messages during compilation
2015-02-17 21:43:22 +01:00
Rodrigo Kumpera
04eeb70c8c
Merge pull request #1570 from mono/fix27010
...
Bug 27010 - Difference in Assembly.GetExportedTypes with .NET
2015-02-17 13:49:05 -06:00
Alex Rønne Petersen
8bf480fc62
Merge pull request #1571 from evincarofautumn/fix-warning
...
[utils] Fix warning in Makefile.am.
2015-02-17 19:58:14 +01:00
Jon Purdy
f14d23b7f0
[utils] Fix warning in Makefile.am.
2015-02-17 10:56:15 -08:00
João Matos
b8dec77eea
[mini] Improve the driver to handle more cases of incompatible cross-compilation targets.
2015-02-17 16:12:49 +00:00
João Matos
ac8ae330c7
[metadata] Do not try to use host context members when cross-compiling.
2015-02-17 16:12:11 +00:00
João Matos
85e5ebbfa9
[metadata] Add missing ARM64 object offsets.
...
This fixes the mobile products build with Mono master.
2015-02-17 16:11:21 +00:00
Zoltan Varga
0ba6d1777d
[aot] Fix the emission of ElementAddr wrappers.
2015-02-17 07:46:11 -05:00
Zoltan Varga
4c8a1a6733
[runtime] Link monodis against libmonoruntime instead of libmono which can be a dynamic lib.
2015-02-17 06:59:29 -05:00
Zoltan Varga
ff2cfae862
[gsharedvt] Implement support for multi-dimensional arrays in gsharedvt methods.
2015-02-17 06:57:43 -05:00
Zoltan Varga
acbe5f52d5
Fix a warning.
2015-02-17 05:44:58 -05:00
Marek Safar
673e8fa8ee
[mcs] Single name meaning relaxation to match roslyn
2015-02-17 10:59:33 +01:00
Alex Rønne Petersen
33ad107825
Update refsrc to get read-only interface changes for System/System.Core.
2015-02-17 10:53:10 +01:00
Marek Safar
877e8ce941
[mcs] Fixes check for overriden auto-properties.
2015-02-17 08:14:21 +01:00
Ungureanu Marius
818d229538
Bug 27010 - Difference in Assembly.GetExportedTypes with .NET
2015-02-17 06:41:12 +02:00
Alex Rønne Petersen
235f543d94
[mini] Fix a crash on armel.
2015-02-17 02:04:15 +01:00
Zoltan Varga
6ee1b1b565
[jit] Add tests for arm64 gsharedvt argument passing.
2015-02-16 16:07:03 -05:00
Zoltan Varga
175c1a521d
[jit] Add tests for arm64 gsharedvt argument passing.
2015-02-16 15:20:17 -05:00
Alexander Köplinger
8f7a551c0c
[Microsoft.Build.Tasks] Rethrow exception in Copy task
...
This way we don't lose the original stacktrace.
2015-02-16 19:05:00 +01:00
Marek Safar
724c1becc1
Add new test
2015-02-16 17:03:50 +01:00
Marek Safar
ed517ad778
[mcs] Implements dictionary initializers on pointer types
2015-02-16 16:48:24 +01:00
Miguel de Icaza
aef0b3e04c
Merge pull request #1542 from ninjarobot/UriTemplateMatchException
...
Fix to UriTemplate.Match to properly handle query parameters without a v...
2015-02-16 10:19:44 -05:00
Miguel de Icaza
5715cdc582
[System.ServiceModel] Prevent server crash when client disconnect
...
This patch is an updated version of a pull request (377) from Rob
Wilkens to fix #5926
2015-02-16 10:01:22 -05:00
João Matos
bccf5cf121
[aot] Re-organize JSON dumping code.
2015-02-16 12:48:05 +00:00
João Matos
d9234357f6
Revert "[aot] Re-organize JSON dumping code."
...
This reverts commit 25969466b5 .
2015-02-16 12:46:29 +00:00
João Matos
b4926395c6
[git] Ignore Doxygen-related generated files.
2015-02-16 12:39:03 +00:00
Zoltan Varga
25969466b5
[aot] Re-organize JSON dumping code.
2015-02-16 12:38:40 +00:00
Marek Safar
bc57fda921
Merge pull request #1568 from akoeplinger/xbuild
...
[Microsoft.Build.Tasks] Implement retries in Copy task and add a stub.
2015-02-16 07:54:54 +01:00
Atsushi Eno
90b1124402
Merge branch 'import-text-encoding-2'
2015-02-16 14:34:19 +08:00
Alexander Köplinger
40c0dfcf93
[Microsoft.Build.Tasks] Add stub for UseHardlinksIfPossible to Copy task
...
Creating hardlinks in .NET doesn't have a nice API and using Mono.Unix/Pinvoke doesn't
seem worth the effort at this point since the feature is off by default on msbuild as well.
2015-02-16 01:50:07 +01:00
Alexander Köplinger
baaf07c104
[Microsoft.Build.Tasks] Implement retries in Copy task
2015-02-16 01:38:06 +01:00
Atsushi Eno
e4b2bc75aa
[sys.xaml] serialize string value as string, do not try ValueConverter.
...
Fixed some xwt object serialization.
2015-02-16 03:32:49 +08:00
Zoltan Varga
bcd70a77a7
[jit] Fix a regression introduced by 00a28a7dfd which disabled liveness2 for most methods.
2015-02-14 15:51:11 -05:00
Zoltan Varga
bca66a090d
[arm64] Add a test for vtype by ref returns in dyn calls.
2015-02-13 17:54:31 -05:00
João Matos
874d17321d
[runtime] Fixed TLS detection on AMD64 to support cross-compilation.
2015-02-13 16:45:46 +00:00
Marek Safar
52c33f00ff
[mcs] Better error reporting after delegate probing failed. Fixs #27043
2015-02-13 17:42:41 +01:00
João Matos
e3279063de
[aot] Added JSON dumping support.
...
This is enabled by passing "aot=dump" to the Mono AOT driver and will create a JSON file in the working directory with the name of the assembly.
It's still a work-in-progress and will see improvements in the data dumped as it's needed.
2015-02-13 16:41:07 +00:00
Marek Safar
b9c8a612b7
[mcs] Set fixed buffer layourt wihout StructLayoutAttribute when possible. Fixes #27020
2015-02-13 16:49:22 +01:00
Marek Safar
8d3c6d44f8
[corlib] Random from reference sources
2015-02-13 15:05:43 +01:00
Marek Safar
da9546edfd
[corlib] MissingMember exceptions from reference sources
2015-02-13 14:58:40 +01:00
Marek Safar
09b16951bc
[corlib] UnitySerialization from reference sources
2015-02-13 14:45:46 +01:00
Marek Safar
8157ba59ce
[system.net.http] Parsing of nested parens inside comment. Fixes #27036
2015-02-13 14:37:32 +01:00
Marek Safar
1128af49cf
[mcs] Resolve using aliases on demand to fix issue with nested types. Fixes #27001
2015-02-13 14:37:31 +01:00
João Matos
08014c4629
[monodis] Attempt to fix the Cygwin build.
...
CCLD monodis.exe
../../mono/metadata/.libs/libmonoruntimesgen-static.a(libmonoruntimesgen_static_la-opcodes.o): In function `mono_opcode_name':
/cygdrive/c/projects/mono-817/mono/metadata/opcodes.c:63: multiple definition of `mono_opcode_name'
../mini/.libs/libmonosgen-2.0.dll.a(d001720.o):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
2015-02-13 12:43:06 +00:00
Atsushi Eno
f47937f8f3
avoid reflection in EncodingHelper.
...
as per https://github.com/mono/mono/pull/1566#discussion_r24653304
2015-02-13 18:25:49 +08:00
Atsushi Eno
59dc2b42c8
[encoding] import referencesource encoding foundation types.
...
This change does not involve Windows-specific NLS-based encodings.
We will be still using I18N assemblies until we make more grand design
changes (Xamarin products premise those assemblies).
This also fixes bug #23771 and probably more.
2015-02-13 16:41:05 +08:00
Zoltan Varga
2a3385da86
Fix a warning.
2015-02-13 02:16:16 -05:00
Alex Rønne Petersen
61e8b5e6d0
[mini] Add a MONO_ARM_FORCE_SOFT_FLOAT environment variable.
2015-02-13 08:08:44 +01:00
Zoltan Varga
8a3b8e716f
[runtime] Overwrite logging profiler output files automatically.
2015-02-13 00:39:48 -05:00
Zoltan Varga
f16a4a1975
[runtime] Export mono_personality (), which is accessed from llvm compiled code.
2015-02-13 00:29:24 -05:00
Zoltan Varga
b45199d288
[corlib] Fix a race in LazyTest.EnsureSingleThreadSafeExecution ().
2015-02-13 00:15:52 -05:00
Zoltan Varga
82554c4e89
[runtime] Add a SHARED_CFLAGS autoconf var which can be used to pass the -fvisibility=hidden flag.
2015-02-13 00:10:51 -05:00
Rodrigo Kumpera
19a22ede0d
Merge pull request #1439 from BrzVlad/feature-managed-allocator
...
[jit] Optimize the managed allocator fastpath for small objects
2015-02-12 17:43:52 -06:00
Atsushi Eno
93ce056a76
Merge pull request #1496 from echampet/serializers
...
System.Xml.Serialization: fix xml serializers generation for Web Services
2015-02-13 05:08:10 +08:00
Atsushi Eno
33694c02b3
[encoding] as part of referencesource import, use new EncodingHelper class.
...
This will remain after importing referencesource and offer mono-only
internals for some classes. This involves icall (owner class) change.
2015-02-13 04:24:47 +08:00
Marek Safar
2ca5117fd2
[system] Mark ping MT implementation as broken
2015-02-12 19:09:08 +01:00
João Matos
ccf89b6b5b
[runtime] Fixed TLS detection on x86 to support cross-compilation. Fixes #26969 .
...
https://bugzilla.xamarin.com/show_bug.cgi?id=26969 .
2015-02-12 17:40:13 +00:00
Zoltan Varga
83ae5b92ac
[runtime] Fix an automake warning.
2015-02-12 12:29:37 -05:00
Zoltan Varga
679f9b44a5
[runtime] Fix an initialization race when using custom marshallers.
2015-02-12 12:13:54 -05:00
João Matos
98a88d8009
Merge pull request #1534 from haf/bugs/hmac-wrong-keysizes
...
Bugs/hmac wrong keysizes
2015-02-12 16:46:00 +00:00
Marek Safar
72eb18f84d
[system] More linker friendly tests
2015-02-12 17:00:34 +01:00
Jo Shields
12baa6e696
Generate NUnit interpretation of whether "mono --regressions" passed
2015-02-12 15:22:17 +00:00
Zoltan Varga
d7ae2816fe
Merge pull request #1562 from vkargov/master
...
[runtime] Mark TLS variables as explicitly used
2015-02-12 10:03:40 -05:00
Vladimir Kargov
16ee025230
[runtime]
...
Mark TLS variables as explicitly used to avoid their unwarranted deletion
by the compiler overlooking their usage in inline assembly sections.
2015-02-12 17:45:34 +03:00
João Matos
90185288b1
[aot] Fixed LLVM assembly generation for non-Mach targets.
...
Fixes bugzilla #26964 .
2015-02-12 13:42:46 +00:00
Marek Safar
45448a3f16
[corlib] Add timeout to more tests
2015-02-12 14:21:24 +01:00
Zoltan Varga
9eea9b6d70
[aot] Fix emission of symbol sizes which got broken by 05cd4225b2.
2015-02-12 07:49:08 -05:00
Marek Safar
3af8147e4d
[system] Add old monotouch test codepath
2015-02-12 13:24:16 +01:00
Marek Safar
3d3c8b9bc6
[system.core] Fix wrong 405f9534df
2015-02-12 13:20:10 +01:00
Zoltan Varga
0871f1f266
Revert "[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported."
...
This reverts commit 90e86725ac .
Revert this as it causes many test failures.
2015-02-12 06:47:09 -05:00
Zoltan Varga
b64c24b4ea
[runtime] Export mono_gc_toggleref_add ().
2015-02-12 06:45:45 -05:00
Zoltan Varga
90e86725ac
[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported.
2015-02-12 05:22:52 -05:00
Zoltan Varga
17eadbf010
[runtime] Define MONO_API_EXPORT properly for gcc, and define MONO_DLL_EXPORT so it is actually used during the build.
2015-02-12 05:21:50 -05:00
Zoltan Varga
029753034f
Revert "[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported."
...
This reverts commit beb1463b6c .
Revert this for now as it breaks loading symbols from the mono executable on osx.
2015-02-12 04:51:06 -05:00
Marek Safar
52227a1e6d
[runtime] Return strongly typed array from GetModules to match managed signature. Fixes a crash with strongly typed enumerator
2015-02-12 10:09:06 +01:00
Marcos Henrich
b3aec8113a
[corlib] Fixes commit ceef1e2.
...
We want to remove the module check from GetMethodToken not SetUserEntryPoint.
2015-02-12 08:59:21 +00:00
Zoltan Varga
4ef4090a22
[runtime] Export symbols from libtest.
2015-02-12 03:53:26 -05:00
Zoltan Varga
250cd40b86
[runtime] Remove unused MONO_ARCH_SAVE_REGS declarations.
2015-02-12 03:46:49 -05:00
Zoltan Varga
b34c3f6f64
[jit] Remove unused MONO_ARCH_SAVE_REGS declarations.
2015-02-12 03:32:58 -05:00
Zoltan Varga
d9259e59e1
[monodis] Build monodis against the static mono libraries.
2015-02-12 03:04:39 -05:00
Zoltan Varga
beb1463b6c
[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported.
2015-02-12 02:25:19 -05:00
Sebastien Pouliot
cfc0d6fc73
[linker] Do not update the Scope on TypeSpecification (fix mmp regression tests)
2015-02-11 15:38:48 -05:00
Zoltan Varga
6f572dcc58
Merge pull request #1561 from main--/patch-1
...
Only call string.Format in Debug.Assert if really necessary
2015-02-11 13:49:53 -05:00
main()
2e6efb3149
Only call string.Format in Debug.Assert if really necessary
...
Right now (without this change), Debug.Assert **always** formats its string parameters, even if doing so wouldn't be necessary because the condition is true. This has a huge impact on code that asserts frequently because it assumes that calling Assert(true, ...) is cheap.
2015-02-11 19:42:29 +01:00
Marek Safar
ceef1e2379
Merge pull request #1560 from esdrubal/xlstregression
...
[corlib] ModuleBuilder.GetMethodToken no longer has a module check.
2015-02-11 17:17:27 +01:00
Marcos Henrich
9eb81476bd
[corlib] ModuleBuilder.GetMethodToken no longer has a module check.
...
.NET implementation is able to get method tokens from other modules.
This was causing a regression on a System.Xml.Xsl.XslTransformTests.Bug487065 while using referencesource's System.Xml implementation.
2015-02-11 15:59:37 +00:00
Marcos Henrich
1e7a4a2114
[corlib] Test GetMethodToken ability to get other modules' tokens.
...
.NET implementation is able to get method tokens from other modules.
2015-02-11 15:59:36 +00:00
João Matos
f1006fbbe0
[msvc] Upgrade the projects to require VS2013.
2015-02-11 15:55:43 +00:00
Alex Rønne Petersen
628f3d998b
Use -std=gnu99 as we rely on the linux macro in some places.
2015-02-11 16:50:59 +01:00
Marek Safar
2326fa0721
Bump reference sources
2015-02-11 16:42:40 +01:00
Zoltan Varga
46357aee0b
[runtime] Enable C99 mode.
2015-02-11 10:32:34 -05:00
Zoltan Varga
984a13d908
[runtime] Use ISO C __typeof__ instead of typeof () in one place.
2015-02-11 10:32:13 -05:00
Zoltan Varga
3b85df9c0d
Fix the loadable llvm build.
2015-02-11 09:44:45 -05:00
Sebastien Pouliot
b6d6280821
[linker] Ignore null type arguments in MarkWithResolvedScope
...
It's ignored in MarkType but it breaks calling Resolve in this case
2015-02-11 09:01:35 -05:00
Marek Safar
8db46e61fd
[corlib] Fixes build
2015-02-11 14:04:35 +01:00
Zoltan Varga
a42f4d8d22
Merge pull request #1559 from directhex/emit-nunit-xml-in-unmanaged-tests
...
Add NUnit XML emission to the managed runtime test runner.
2015-02-11 08:00:18 -05:00
Jo Shields
84a8428de1
Add NUnit XML emission to the managed runtime test runner.
...
This makes it easy to plug failures from the runtime tests into a visualisation, such as Jenkins' jUnit display system.
2015-02-11 12:48:45 +00:00
Zoltan Varga
078968540f
Make the managed test runner the default in mono/tests, run with make M=0 to use the old one.
2015-02-11 07:47:39 -05:00
Zoltan Varga
9b617125bd
[llvm] Maps structs made up of floats/doubles to llvm structs containing floats.
2015-02-11 07:02:45 -05:00
Marek Safar
4e27a21367
[system] Fix ping process exit code check
2015-02-11 12:04:50 +01:00
Marek Safar
f97001e2c8
[system] updates fixed test
2015-02-11 10:47:54 +01:00
Marek Safar
405f9534df
[system.core] Update aes test to match imported code
2015-02-11 09:43:17 +01:00
Marek Safar
ec2e126dfd
[mcs] Additional fix for #26892
2015-02-11 09:21:20 +01:00
Sebastien Pouliot
d07822286c
[linker] Resolve types inside custom attributes since they might refer to types in assemblies we won't be keeping [ #26752 ]
...
Custom attributes encoding means it's possible to have a scope that will
point into a PCL facade even if we (just before saving) will resolve all
type references.
Since all other references can be made on the _real_ assembly and that
we do not want to include any facade assembly just for this we need to
resolve those type and update their scope.
2015-02-10 21:04:02 -05:00
João Matos
325744cb85
[build] Fixed the MSVC build.
2015-02-10 15:14:16 +00:00
Marek Safar
9b9b96980b
[corlib] Guid from reference sources
2015-02-10 15:42:13 +01:00
Marek Safar
86e2bada8a
[mcs] Fixes failing test
2015-02-10 15:42:13 +01:00
Marcos Henrich
b94c4cdce1
[corlib] Calling 'tzi.exe -i' now prints olson transitions.
2015-02-10 10:44:35 +00:00
Marcos Henrich
7169eeb5e0
[corlib] Updated make target tzi.exe
2015-02-10 10:39:29 +00:00
Marcos Henrich
8473c6db7e
Moved android-dump-tzdata make target to corlib.
...
Reason: All TimeZoneInfo related files are now all in corlib directory.
2015-02-10 10:32:30 +00:00
Zoltan Varga
2f95909242
Merge pull request #1557 from StephenMcConnel/bug-26887
...
Prevent right click from triggering ToolStripItem.HandleClick
2015-02-10 04:25:34 -05:00
Marek Safar
158487fe94
Rename binary reference assemblies location
2015-02-10 10:21:29 +01:00
Marek Safar
85ee5582f6
[eval] Add C#6 using handling
2015-02-10 10:12:43 +01:00
Zoltan Varga
e26e45cf2f
Merge pull request #1558 from ermshiperete/fixCrash
...
[MWF] Fix NullReferenceException introduced by commit a080a7d
2015-02-10 04:05:26 -05:00
Damien Daspit
f7593c22b0
[MWF] Fix NullReferenceException introduced by commit a080a7d
...
Change-Id: I5709063cc7eecc01fd1e2978cd8aac096060c31e
2015-02-10 09:59:50 +01:00
Marek Safar
a74bac2da2
[mcs] Fixed casts rules don't apply to strings and arrays. Fixes #26892
2015-02-10 09:31:22 +01:00
Marek Safar
c7a4778737
[mcs] Resolve delegate optional parameters only once. Fixes #26840
2015-02-10 08:49:50 +01:00
Zoltan Varga
8562a498f3
[jit] Factor out the gsharedvt constrained call handling code into a separate function.
2015-02-10 02:27:13 -05:00
Zoltan Varga
382cf74c98
[jit] Fix some issues with constrained gsharedvt calls to be able to handle some cases encountered with the new MS reference source code.
2015-02-10 02:20:32 -05:00
Zoltan Varga
b8f1a79295
Increase some trampoline buffer sizes.
2015-02-09 23:08:57 -05:00
Zoltan Varga
d7b1944dce
Bump referencesource.
2015-02-09 22:40:50 -05:00
Zoltan Varga
c83aeed35f
Bump referencesource to e6af770c424af46f78d3b8f90eebbb2e0d7953a2.
2015-02-09 22:35:07 -05:00
Alex Rønne Petersen
23fa25b4b5
Revert "[mini] Implement atomic exchange with xchg on x86."
...
This reverts commit c96e58280c .
Getting this to work right with regards to register allocation
is turning out to be more complicated than it seems. Going to
abandon this for now.
2015-02-10 03:01:33 +01:00
Alex Rønne Petersen
c96e58280c
[mini] Implement atomic exchange with xchg on x86.
2015-02-10 01:49:18 +01:00
Stephen McConnel
e9cf1dc44a
Prevent right click from triggering ToolStripItem.HandleClick
...
This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=26887 .
2015-02-09 18:39:18 -06:00
Zoltan Varga
8856edd6d3
Disable some full-aot tests on amd64 since it doesn't support dyn calls/gsharedvt.
2015-02-09 19:09:21 -05:00
Alex Rønne Petersen
0366b81069
[mini] Implement atomic exchange with xchg on amd64.
2015-02-09 23:41:30 +01:00
Marek Safar
d2994b1b3d
[corlib] Remove unused file
2015-02-09 23:15:16 +01:00
Marek Safar
8d9e34a098
[corlib] Keep file names ordered
2015-02-09 23:14:45 +01:00
Marek Safar
1bfa0567dc
Merge pull request #1556 from atsushieno/import-text-encoding
...
import referencesource CharUnicodeInfo and remove some runtime char tables.
2015-02-09 20:09:04 +01:00
Alex Rønne Petersen
8aaed197ca
Revert "[mini] Implement atomic exchange with xchg on x86/amd64."
...
This reverts commit 1a319806fe .
This seems to cause memory corruption that results in random
SGen crashes, especially in Roslyn.
2015-02-09 19:32:15 +01:00
Ludovic Henry
449666271a
[runtime] Lower log level of "counters not enabled" message in counters
2015-02-09 13:12:11 -05:00
Atsushi Eno
c72628cf46
Remove unused unicode category data (which is now charinfo.nlp).
2015-02-10 01:43:10 +08:00
João Matos
48b7a501b0
Initialize the counters support before registering new ones.
...
This bug manifests itself in mkbundle'd programs that use the machine config support. Under this case, we can end up registering counters before initializing the counter support in the runtime:
```
* thread #1 : tid = 0x141dec, 0x003ebdff mtouch-32`mono_counters_register(name=0x0042f7e3, type=2048, addr=0x00b81288) + 31 at mono-counters.c:218, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
* frame #0 : 0x003ebdff mtouch-32`mono_counters_register(name=0x0042f7e3, type=2048, addr=0x00b81288) + 31 at mono-counters.c:218
frame #1 : 0x0025c3f6 mtouch-32`mono_loader_init + 198 at loader.c:106
frame #2 : 0x0025f005 mtouch-32`mono_dllmap_insert(assembly=0x00000000, dll=0x00d0a0c0, func=0x00000000, tdll=0x00d0a0d0, tfunc=0x00000000) + 53 at loader.c:1321
frame #3 : 0x002c28ca mtouch-32`dllmap_start(user_data=0x00d0a0b0, element_name=0x00d0a0a0, attribute_names=0x00d0a030, attribute_values=0x00d0a040) + 698 at mono-config.c:290
frame #4 : 0x002c2010 mtouch-32`start_element(context=0x00d09fa0, element_name=0x00d0a0a0, attribute_names=0x00d0a030, attribute_values=0x00d0a040, user_data=0xbffffb68, error=0x00000000) + 240 at mono-config.c:176
frame #5 : 0x0040ba6d mtouch-32`monoeg_g_markup_parse_context_parse(context=0x00d09fa0, text=0x00b72f30, text_len=240, error=0x00000000) + 1965 at gmarkup.c:351
frame #6 : 0x002c0a93 mtouch-32`mono_config_parse_xml_with_context(state=0xbffffb68, text=0x00b72f30, len=240) + 147 at mono-config.c:440
frame #7 : 0x002c09eb mtouch-32`mono_config_parse_memory(buffer=0x00b72f30) + 123 at mono-config.c:482
frame #8 : 0x00001e6d mtouch-32`install_dll_config_files + 29
frame #9 : 0x00001c86 mtouch-32`mono_mkbundle_init + 22
frame #10 : 0x000029db mtouch-32`main + 331
frame #11 : 0x00001c65 mtouch-32`start + 53
```
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=24605 .
2015-02-09 17:40:04 +00:00
Atsushi Eno
d8aba3fa75
replace CharUnicodeInfo with that of referencesource and update runtime.
...
CharUnicodeInfo had conversion methods for uppercase/lowercase
conversion, and they are actually used by TextInfo. So moved them.
Then added another icall for "lite" version of internal character table
loader.
The new CharUnicodeInfo depends on "charinfo.nlp" resource file, which
does not exist in referencesource but can be generated by coreclr build
tools (as src/mscorlib/src/System/Globalization/Tables/CharInfo.nlp).
The coreclr rev. that built this specific checkin was c4eb037.
2015-02-10 00:47:16 +08:00
Marek Safar
0daaf302a5
[corlib] Update failing test
2015-02-10 02:01:29 +10:00
Marek Safar
fe40c28be0
Merge pull request #1555 from JetBrains/unrecognized_pragma
...
Skip unrecognized #pragma directive
2015-02-09 11:17:32 +01:00
Miguel de Icaza
d12c06df59
Fix the build
2015-02-08 13:52:29 -05:00
Leonid Shalupov
e9b8cb6682
Add test for skipping unrecognized #pragma directive
2015-02-08 19:09:25 +01:00
Leonid Shalupov
c4890a882a
Skip unrecognized #pragma directive
2015-02-08 19:09:02 +01:00
Zoltan Varga
8628fd051b
[jit] Remove unused disable_vtypes_in_regs variable.
2015-02-08 03:23:53 -05:00
Miguel de Icaza
4489d2399d
[monop] Port to use IKVM.Reflection, add -xi and -xa options to easily lookup Xamarin.Android and Xamarin.iOS types
2015-02-07 22:44:50 -05:00
Zoltan Varga
cc6e967a23
[sdb] Use a variant of g_path_get_basename () which can handle windows paths as well. Fixes #26436 .
2015-02-07 22:37:50 -05:00
Zoltan Varga
66f5f06469
Revert "[llvm] Maps structs made up of floats/doubles to llvm structs containing floats."
...
This reverts commit bc9c77280f .
Revert this as it breaks pinvoke2.exe.
2015-02-07 22:07:06 -05:00
Zoltan Varga
e179554eee
Revert "Fix the loadable llvm build."
...
This reverts commit dfe6b21b5e .
Revert this as it breaks pinvoke2.exe.
2015-02-07 22:06:47 -05:00
Zoltan Varga
1f14a9721b
Fix the loadable llvm build.
2015-02-07 18:01:43 -05:00
João Matos
1a341220c6
[decimal] Fixed the Windows build.
...
Works around the following compile error:
```/Users/triton/Development/mono/mono/metadata/decimal-ms.h:3:16: error: redefinition of 'struct tagDEC'
typedef struct tagDEC {
^
In file included from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/unknwn.h:37:0,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/objidl.h:477,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/objbase.h:66,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/ole2.h:17,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/wtypes.h:12,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/winscard.h:10,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/windows.h:97,
from /Users/triton/Development/mono/mono/io-layer/io-layer.h:24,
from /Users/triton/Development/mono/mono/metadata/process.h:17,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/unistd.h:11,
from /Users/triton/Development/mono/mono/metadata/icall.c:27:
/Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/wtypes.h:452:16: note: originally defined here
typedef struct tagDEC {
^
```
2015-02-07 14:21:35 +00:00
Zoltan Varga
dfe6b21b5e
Fix the loadable llvm build.
2015-02-07 07:56:26 -05:00
Miguel de Icaza
bc68eda84d
Merge pull request #1552 from mono/ms-decimal
...
Bring the CoreCLR Decimal support to Mono.
2015-02-07 00:05:15 -05:00
Zoltan Varga
bc9c77280f
[llvm] Maps structs made up of floats/doubles to llvm structs containing floats.
2015-02-06 19:12:03 -05:00
Miguel de Icaza
d1ff413081
Make referencesource point to mono/referencesource's mono branch
2015-02-06 17:39:44 -05:00
Miguel de Icaza
b8f68cc3f4
[Decimal] Remove old decimal from the metadata directory
2015-02-06 17:28:37 -05:00
Jeffrey Stedfast
f2c6ec43dc
[Mono.Debugger.Soft] Fixed StackFrame.Domain logic to not blow up
2015-02-06 17:24:57 -05:00
Zoltan Varga
ad38eb5cac
[arm64] Add r4 opcodes.
2015-02-06 16:18:29 -05:00
Miguel de Icaza
e4ee7a5e1f
Remove old implementation of Decimal support, it served us well
2015-02-06 15:56:27 -05:00
Miguel de Icaza
97f01eac96
Merge branch 'master' into ms-decimal
2015-02-06 15:54:31 -05:00
Miguel de Icaza
b1ca045003
[Decimal] Add test cases from the bugs that this branch fixes
2015-02-06 15:51:14 -05:00
Miguel de Icaza
9e13adae4b
[Decimal] Expand test suite with Microsoft's CoreFX Decimal tests
2015-02-06 15:25:58 -05:00
Miguel de Icaza
c13ecfcdee
[Decimal] Fix another missing cast, makes the entire Mono test suite pass
2015-02-06 14:54:49 -05:00
Miguel de Icaza
d72f9a0fc7
[Decimal] Set the reserved field, fix signed to unsigned cast mistakes from the port, document places where MS does not explicitly set reserved; Down to 1 failure
2015-02-06 14:09:40 -05:00
Zoltan Varga
7656a6beb4
Merge branch 'r4fp-ir'
2015-02-06 13:40:16 -05:00
Zoltan Varga
5a61d55c7f
Fix the build.
2015-02-06 13:37:47 -05:00
Zoltan Varga
76b0aebf27
Add mixed r4/r8 opcodes to binary opcodes.
2015-02-06 13:32:03 -05:00
Zoltan Varga
32f6084793
Exclude the float32 optimization from -O=all.
2015-02-06 13:32:03 -05:00
Zoltan Varga
067ab06be1
Implement arm support.
2015-02-06 13:32:02 -05:00
Zoltan Varga
c77eb2b62e
Add LLVM support.
2015-02-06 13:32:02 -05:00
Zoltan Varga
e0caebb53a
Fix OP_MOVE_F_TO_I4 and OP_MOVE_I4_TO_F in float32 mode.
2015-02-06 13:32:02 -05:00
Zoltan Varga
1d6362cdbd
Add support for generating 32 bit floating point code when operating on floats.
...
Design:
- Handle r4 types in the front-end normally like other types.
- Controlled using a 'float32' optimization flag, may become the default in the future.
- new stack type STACK_R4.
- new set of opcodes prefixed by 'R', use the same vregs as 'F' opcodes.
- opcodes which worked with r4 values are used as before, but generate different code
in the back end (OP_R4CONST/OP_LOADR4_MEMBASE/OP_STORER4_MEMBASE_REG, etc.).
2015-02-06 13:30:19 -05:00
Miguel de Icaza
0a7d65e63e
[Decimal] Fix enumeration values, down to 2 failures
2015-02-06 12:46:17 -05:00
Marek Safar
b927fa8ee6
[corlib] Imports messages from coreclr project
2015-02-06 18:37:32 +01:00
Jeffrey Stedfast
fcd44bb0d5
[Microsoft.Build.Utilities] Fixed to make unit tests pass again
2015-02-06 12:24:18 -05:00
Alex Rønne Petersen
1f6c5e8be7
[mini] Bump move_f_to_i4/move_i4_to_f insn sizes on x86.
2015-02-06 17:55:58 +01:00
Marek Safar
815c1bd287
Merge pull request #1551 from directhex/fix-missing-System.Web.ApplicationServices-sources
...
Move files which were split out in 4.0 from System.Web...
2015-02-06 17:55:54 +01:00
Marek Safar
9a26c9ef5f
[mcs] Correctly import metadata constant with mismatched type and value. Fixes #24675
2015-02-06 17:54:59 +01:00
Jo Shields
f3d505ed1e
Ensure missing test_op_il_seq_point.sh is shipped in tarballs.
2015-02-06 10:48:47 -05:00
Alex Rønne Petersen
cb085a39c5
[mini] Remove OP_ICONV_TO_R8_RAW since OP_MOVE_I4_TO_F does the same thing.
2015-02-06 16:45:14 +01:00
Alex Rønne Petersen
2bb9ed862c
[mini] Use a spill var for float <-> int data transfer opcodes on x86.
2015-02-06 16:45:14 +01:00
Alex Rønne Petersen
1046214694
[mini] Remove some unnecessary amd64 codegen macros (we already had them with different names).
2015-02-06 16:45:14 +01:00
Jo Shields
eb53f82111
Move files which were split out from System.Web into System.Web.ApplicationServices into the latter's directory. They no longer need to be in the former, since we no longer build the 2.0 profile they were originally part of. This fixes "no rule to make target" errors on tarball builds, caused by those files no longer being shipped in tarballs (make dist does not traverse a ../ boundary, so it wasn't enough for them to be listed in System.Web.ApplicationServices' manifest by System.Web's folder)
2015-02-06 10:17:54 -05:00
Miguel de Icaza
a51ac80865
Merge pull request #1550 from tpetazzoni/mips-fix
...
mono-context.h: fix build on MIPS
2015-02-06 09:50:33 -05:00
Sebastien Pouliot
375b749fca
[tests] Fix TypeDescriptorTests compilation when NUnitLite is used
2015-02-06 09:37:21 -05:00
Marek Safar
c7ad272b9a
[mcs] Fix cloning of labels from outer anonymous block. Fixes #26736
2015-02-06 15:14:26 +01:00
Marek Safar
baa2c983b3
[mcs] Replace 1684 warning turned into error with unique 7069 error code
2015-02-06 15:14:26 +01:00
Thomas Petazzoni
8f489c24e1
mono-context.h: fix build on MIPS
...
The mono-context.h file uses definitions such as mips_fp and mips_sp,
which are defined in <mono/arch/mips/mips-codegen.h>, but this file is
not included, leading to build failures.
This fix is similar to 4437ecea91 (for
ARM).
Signed-off-by: Thomas Petazzoni <[email protected] >
2015-02-06 14:56:10 +01:00
João Matos
88e35ade18
[runtime] Fixed potential memory leak in a8390dcd63.
2015-02-06 12:46:24 +00:00
João Matos
a8390dcd63
[runtime] Fixed marshalling bug in mono_marshal_get_native_func_wrapper.
...
It was caused by a mismatch of the `sig` and `csig` variables when looking the wrapper in the marshalling cache.
This was manifesting as the following crash in all Monodroid programs:
```
#0 mono_type_hash () at /Users/joao/Dev/droid/mono/mono/metadata/metadata.c:1390
#1 0x7512edf4 in mono_signature_hash () at /Users/joao/Dev/droid/mono/mono/metadata/metadata.c:4957
#2 0x75115d18 in signature_pointer_pair_hash () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#3 0x751dca10 in rehash () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#4 0x751dcbe0 in monoeg_g_hash_table_insert_replace () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#5 0x75119570 in mono_mb_create_and_cache_full () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#6 0x75127390 in mono_marshal_get_native_func_wrapper () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#7 0x75127780 in mono_ftnptr_to_delegate () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
```
Originally introduced in https://github.com/mono/mono/pull/1540 .
2015-02-06 12:35:45 +00:00
Marek Safar
6733010353
Merge pull request #1508 from slluis/fix-20966
...
Generate proper Link metadata for resources in imported projects
2015-02-06 11:05:40 +01:00
Marek Safar
a62823ac14
Merge pull request #1549 from esdrubal/tziathens
...
[corlib] Fixed TimeZoneInfo.TryGetTransitionOffset.
2015-02-06 09:18:01 +01:00
Marcos Henrich
5df4852b1a
[corlib] Fixed TimeZoneInfo.TryGetTransitionOffset.
...
Olson TZ transitions are in UTC, and TryGetTransitionOffset used the TZ standard time.
TryGetTransitionOffset was comparing UTC with TZ standard times thus DST transitions could be obtained some hours before their start.
TryGetTransitionOffset is now changing provided times to UTC before comparing them with the transition times.
Fixes #25050 .
2015-02-06 09:30:51 +02:00
Marcos Henrich
0c5347ad43
[corlib] Added test to TimeZoneInfoTest. Covers #25050 .
2015-02-06 06:20:54 +00:00
Miguel de Icaza
9241773f5c
[Decimal] Fix structure definitions, down to 3 failures from Mono test suite
2015-02-06 00:42:44 -05:00
Miguel de Icaza
9d31706582
[Decimal] Down to six failures in Mono's test suite
2015-02-06 00:23:52 -05:00
Miguel de Icaza
98e9d352e4
[Decimal] Fix basic decimal startup issues
2015-02-05 22:56:41 -05:00
Miguel de Icaza
fd78f734ea
[Build] Make the code build with old bootstrapped environments
2015-02-05 22:11:59 -05:00
Miguel de Icaza
09abacdd14
[Decimal] Fix the build for unresolved symbols with some C compilers
2015-02-05 22:11:35 -05:00
Alex Rønne Petersen
36a5363ef7
[mini] Remove now-unneeded clob spec for move_f_to_i4 on amd64.
2015-02-06 03:47:40 +01:00
Miguel de Icaza
5bde5effed
Merge pull request #1548 from akoeplinger/stubs
...
[bcl] Added a few stubs for missing APIs
2015-02-05 21:01:38 -05:00
Zoltan Varga
1445d4821c
[runtime] Update valgrind headers to the ones from valgrind 3.10.1. Fixes #26688 .
2015-02-05 20:53:21 -05:00
Miguel de Icaza
dda1b86e64
[Decimal] Completed the methods in decimal-ms.c
...
This completes the list of methods in decimal-ms.c that are surfaced
to the Decimal class. This change also swaps out the Decimal class
from Mono to the Microsoft implementation.
This has not been tested yet, beyond the compiler being able to read
decimals (it did crash without it).
CoreCLR has two different bits of code for SearchScale, it looks like
one is just old and has not been updated. Moved to the new one, and
updated the code to pass the extra data that is missing from the
former one.
2015-02-05 18:25:48 -05:00
Zoltan Varga
a5f77df5e1
[amd64] Avoid clobbering sreg1 in OP_MOVE_F_TO_I4.
2015-02-05 17:16:53 -05:00
Zoltan Varga
00a28a7dfd
[jit] Avoid live range indexes overflowing for large basic blocks in the liveness pass. Fixes #26732 .
2015-02-05 17:16:53 -05:00
Rodrigo Kumpera
8b4a2f2bd6
[runtime] Plug a loader error leak.
2015-02-05 17:15:42 -05:00
Zoltan Varga
54c312fa93
Revert "[jit] Avoid live range indexes overflowing for large basic blocks in the liveness pass. Fixes #26732."
...
This reverts commit 98f665aba9 .
Revert this as it causes assertions on methods with large basic blocks.
2015-02-05 16:53:26 -05:00
Sebastien Pouliot
6bd76b142d
Bump referencesource to disable some CAS usage
2015-02-05 15:55:09 -05:00
Alexander Köplinger
890ca8595e
Fix error message to mention git instead of svn
...
Just a nitpick, but I saw this in a build log and thought I'd fix it.
2015-02-05 21:30:58 +01:00
Sebastien Pouliot
7145c08255
[linker] Only consider [Preserve] (i.e. without any parameters) on assembly-level as meaning 'preserve everything inside this assembly'.
2015-02-05 15:20:55 -05:00
Sebastien Pouliot
7b29d5abb2
[linker] Preserve types given to custom attributes - even if they are inside an array [ #26030 ]
2015-02-05 15:19:46 -05:00
Sebastien Pouliot
a7a4de9dd5
[linker] Do not process custom attribute fields unless there are some (avoids memory allocation for collections)
2015-02-05 15:18:47 -05:00
Mark Probst
fe56186215
Merge pull request #1546 from evincarofautumn/faster-binprot
...
Make sgen-grep-binprot faster.
2015-02-05 11:55:26 -08:00
Jon Purdy
b299715e36
[sgen] Make sgen-grep-binprot faster.
...
fread() spent a great deal of time locking, and we called malloc() once for
each entry. Replacing fread() with read() plus manual buffering, as well
as replacing malloc() with a static buffer, improves throughput by an
order of magnitude.
This also adds an '--input' option for reading from a stream other than
standard input.
2015-02-05 11:53:08 -08:00
Neale Ferguson
d19817ad9c
Use float<->integer instructions for move operations
2015-02-05 14:36:54 -05:00
Jeffrey Stedfast
f076746dd7
[Microsoft.Build.Utilities] Fixed MSBuildErrorParser to be more robust
2015-02-05 13:43:14 -05:00
Marek Safar
ecaa5d7faf
[mcs] Prefer not missing type for ambiguous imported types. Fixes #26753
2015-02-05 18:25:18 +01:00
Alexander Köplinger
92af367655
[bcl] Added a few stubs for missing APIs
...
They are required for the upcoming System.Web port.
2015-02-05 18:09:40 +01:00
Marek Safar
52ce4a07b2
[corlib] TimeZoneInfo.ConvertTimeToUtc maximum datetime handling
2015-02-05 07:25:49 -05:00
Marek Safar
8442408da0
[runtime] Fixes setting FileVersionInfo managed booleans
2015-02-05 12:34:16 +01:00
Marek Safar
26a31a583b
[xbuild] Fix When Condition with a user comment
2015-02-05 11:49:59 +01:00
Marek Safar
6b908c2f34
[build] remove unused defines
2015-02-05 11:28:40 +01:00
Marek Safar
7c0da3c990
[corlib] BitConverter from reference sources
2015-02-05 10:48:49 +01:00
Alex Rønne Petersen
4c887f7ba4
[mini] Really fix the float <-> int data transfer instructions on arm.
...
The ARM_CVTS/ARM_CVTD macros have somewhat deceptive names: They
describe the source data type, not the target data type.
2015-02-05 04:59:47 +01:00
Miguel de Icaza
5b2bb8c901
[decimal] Microsoft's unmanaged code for decimal support
...
This is a port of the CoreCLR Decimal support to C and to the Mono
coding conventions. In the process of porting the code, I removed a
bunch of COM-isms and some Windows-isms that were just workaround with
compatibility typedefs and replaced it instead with stdint.h data
types as well as Mono assertions.
There are still a few methods missing, and the managed library is not
plugged yet (both constructors likely need to be altered to be managed
proxies to the init method).
2015-02-04 21:45:03 -05:00
Alex Rønne Petersen
136f17a024
Merge pull request #1541 from alexrp/mcs-build-cleanup
...
Clean up mcs build system
2015-02-05 03:13:59 +01:00
Miguel de Icaza
dee36bfa52
Start work to generate dependencies
2015-02-04 21:05:29 -05:00
Alex Rønne Petersen
2baec073f4
[mini] Implement float <-> int data transfer instructions in the LLVM backend.
2015-02-05 02:03:38 +01:00
Rodrigo Kumpera
3b38dffbc4
[test] Add verifier test for cgt_un and valuetypes.
2015-02-04 17:08:47 -05:00
Rodrigo Kumpera
ff87fbe74d
[verifier] Properly verify CGT_UN when used with reference value and the null literal.
2015-02-04 17:06:38 -05:00
Zoltan Varga
98f665aba9
[jit] Avoid live range indexes overflowing for large basic blocks in the liveness pass. Fixes #26732 .
2015-02-04 14:00:17 -05:00
Zoltan Varga
257620d383
[runtime] Enable the new interrupt code on arm64.
2015-02-04 13:22:38 -05:00
Marek Safar
03c62b9023
Move TimeZoneInfo tests to corlib
2015-02-04 19:09:14 +01:00
Marek Safar
da7d598940
[system.xml] Disable failing test, requires reference source implementation
2015-02-04 18:46:30 +01:00
Marek Safar
798e9c0c41
[corlib] Fix overflow in TimeZoneInfo utc conversion
2015-02-04 17:55:41 +01:00
Marek Safar
22c8cc477f
[mcs] update error message
2015-02-04 17:55:41 +01:00
Marek Safar
b75b33ab83
[corlib] Boolean from reference sources
2015-02-04 17:55:41 +01:00
Radek Doulik
598920ce36
[android] disable TLS on android/x86_64
...
- otherwise we assert in sgen allocator
in sgen-gc.h:EMIT_TLS_ACCESS_NEXT_ADDR
thru sgen-alloc.c:create_allocator
- note that it is also disabled for ARM[64] and X86
on android
2015-02-04 17:16:22 +01:00
Marek Safar
96eca3b925
[System] More TypeDescriptor tests
2015-02-04 15:49:41 +01:00
Marek Safar
9e396e4022
[corlib] Add test for #17626
2015-02-04 15:36:51 +01:00
Marek Safar
aa4ba602fc
[corlib] DateTime from reference sources
2015-02-04 15:36:51 +01:00
Alex Rønne Petersen
29a4519b5f
Revert "[runtime] Fixed allowing non-object complex arguments to cgt.un"
...
This reverts commit 38f878ce9d .
This broke the build: http://wrench.mono-project.com/Wrench/WebServices/Download.aspx?workfile_id=3704132
2015-02-04 15:28:44 +01:00
Alex Rønne Petersen
c294093080
[mini] Hopefully fix float <-> int data transfer instructions on x86. x87 sucks.
2015-02-04 14:58:03 +01:00
Alex Rønne Petersen
5ad8b5d9d4
[mini] Fix float <-> int data transfer instructions on arm/mips.
2015-02-04 14:42:43 +01:00
Alex Rønne Petersen
b48718ed54
[mini] Fix x86/arm build.
2015-02-04 14:42:43 +01:00
João Matos
057af01163
Fixed System.Net.NetworkInformation tests to work with MonoTouch.NUnitLite.
2015-02-04 13:21:40 +00:00
João Matos
acbf7557e4
[runtime] Added autoconf support for AMD64 Android cross compilation.
2015-02-04 13:08:32 +00:00
Alex Rønne Petersen
1a319806fe
[mini] Implement atomic exchange with xchg on x86/amd64.
2015-02-04 13:18:13 +01:00
Alex Rønne Petersen
5ca71a7700
[mini] Use new float <-> int move opcodes to implement r4/r8 CAS/Exchange.
2015-02-04 12:05:59 +01:00
Alex Rønne Petersen
afd8928030
[mini] Add new instructions for moving data between float and int regs.
...
These perform no conversions (other than any necessary single <-> double
conversions). They simply copy the raw data back and forth.
2015-02-04 12:05:59 +01:00
Alex Rønne Petersen
9095bc0d14
[mini] Apply the dreg != sreg1 optimization to OP_(F)MOVE in all backends.
2015-02-04 12:05:58 +01:00
Alex Rønne Petersen
1d3ec567aa
[mini] Fix some cases where intrinsics did not have a stack type set.
2015-02-04 12:05:58 +01:00
Radek Doulik
a99d8a396d
[android] do not use tkill on android/amd64(x86_64) as well
2015-02-04 09:54:00 +01:00
Alex Rønne Petersen
00725c15bc
Merge pull request #1543 from alexanderkyte/master
...
[runtime] Fixed allowing non-object complex arguments to cgt.un
2015-02-04 04:53:29 +01:00
Alexander Kyte
38f878ce9d
[runtime] Fixed allowing non-object complex arguments to cgt.un
2015-02-03 22:43:50 -05:00
Zoltan Varga
a85fe92f45
[amd64] Add missing amd64_sse_cvtss2si_reg_reg_size() codegen macro.
2015-02-03 20:44:26 -05:00
Vlad Brezae
bea7d8a600
[jit] Pass the aligned object size to the managed allocator.
2015-02-03 23:51:59 +00:00
Vlad Brezae
29659f7623
[jit] Optimize the managed allocator fastpath
...
Send the instance_size as an argument to the managed object allocator to reduce memory dereferences from the vtable in the generated code.
2015-02-03 23:51:58 +00:00
Zoltan Varga
989301647e
Merge pull request #1545 from akoeplinger/fix-windows-build
...
Fix Windows build
2015-02-03 15:58:12 -05:00
Alexander Köplinger
0b2a537abf
Fix Windows build
...
It was broken by c731686feb
2015-02-03 10:40:03 -08:00
Miguel de Icaza
38a2f62b2f
Updated the order file generated by following the instructions in msvc/scripts/README
2015-02-03 11:48:38 -05:00
Marek Safar
0b32ad8dfc
[corlib] TimeSpan from reference sources
2015-02-03 16:20:55 +01:00
João Matos
58ae0ae309
[corlib] Fixed tests to work with NET_2_1 define.
2015-02-03 14:11:32 +00:00
Marek Safar
6427a13879
[corlib] DateTimeOffset from reference sources
2015-02-03 11:58:48 +01:00
Marek Safar
5937d3a70c
[corlib] DateTimeFormatInfo and friends from reference sources
2015-02-03 10:30:30 +01:00
Marek Safar
98ecb517a7
[system] Add support for redirected http web-request with disabled AllowWriteStreamBuffering (empty streams only). Fixes #26640
2015-02-03 10:25:03 +01:00
Rodrigo Kumpera
98658d9091
[runtime] Replace a call to mono_get_method_full to mono_get_method_checked.
2015-02-02 22:36:15 -05:00
Alex Rønne Petersen
e55268f3ab
Remove old centum tests stuff.
...
Despite what the makefiles would have you believe, this was never
actually used when running the test suites. Don't ask me why - my
make-fu isn't good enough. Regardless, it's a bad idea to only
run tests for a specific set of assemblies. If some tests fail or
are unstable, they should be fixed, or disabled and have a bug
filed. Sweeping them under the rug like this is the wrong thing
to do. Incidentally, this commit doesn't add any new failures.
2015-02-03 03:41:15 +01:00
Alex Rønne Petersen
c740b9831d
Remove now-obsolete System.Web.Extensions(.Design)_1.0 assemblies.
...
These are no longer built in the newer profiles.
2015-02-03 03:41:14 +01:00
Alex Rønne Petersen
351e94964c
Remove obsolete profiles and profile checks from the build system.
...
* Removed all old profiles from VALID_PROFILE checks.
* Removed most logic under checks like ifeq (net_2_0), $(PROFILE)) as
it is dead code now that those old profiles are gone.
* Simplified the list of assemblies in mcs/class/Makefile now that we
only have one profile.
* LIBRARY_NEEDS_POSTPROCESSING has been removed as it was only used by
old 1.x assemblies that no longer exist.
* Build logic that sets MONO_PATH now points to mcs/class/lib/net_4_5
instead of mcs/class/lib/net_2_0.
2015-02-03 03:41:14 +01:00
Alex Rønne Petersen
43a0088f3f
Remove some leftover old 1.x, 2.x, 3.x profile ifdefs.
...
We no longer support these profiles so these code paths are dead.
2015-02-03 03:41:14 +01:00
Zoltan Varga
1b41e15f91
Avoid recompiling a test on every run.
2015-02-02 19:30:30 -05:00
Zoltan Varga
d504f17272
Revert "Switch System.Web.ApplicationServices to referencesource"
...
This reverts commit ea88432e49 .
Revert this as it breaks the System.Web tests.
2015-02-02 18:20:45 -05:00
Zoltan Varga
e2193970c9
Revert "Include hard-coded strings (SR.cs-style) rather than using AppliCationServicesStrings.Designer.cs"
...
This reverts commit b88fc96610 .
Revert this as it breaks the System.Web tests.
2015-02-02 18:20:23 -05:00
Rodrigo Kumpera
9621471d3a
[io-layer] Small portability fix.
2015-02-02 17:39:38 -05:00
Jonathan Pryor
52eceb5460
[System.Core/Android] Update TimeZone database self test.
...
The `make tzi.exe` target had bitrotted, and the
`make android-dump-tzdata` target generated inadvertent/unintentional
errors. Fix the makefile so that things build and run.
2015-02-02 15:20:39 -05:00
Marek Safar
d8cbfdfbb1
[corlib] Makes AggregateException output visible
2015-02-02 20:26:52 +01:00
João Matos
d9f9ba0d8b
[corlib] Fixed xammac build.
2015-02-02 15:53:02 +00:00
João Matos
b6df249cc2
[corlib] Fixed build with NET_2_1 define.
2015-02-02 15:51:50 +00:00
Rolf Bjarne Kvinge
f3b7aa8afc
[System.Xml] Overwrite instead of append so that subsequent executions doesn't end up with garbage in the output.
2015-02-02 13:51:42 +01:00
Rodrigo Kumpera
03a28d987a
[jit] Fix bad_method_regression_2 when SSA is enabled on 32bits.
2015-02-01 19:20:17 -05:00
Dave Curylo
7cbeed36fd
Fix to UriTemplate.Match to properly handle query parameters without a value. No longer throws IndexOutOfRangeException and the parameter is added to the resulting UriTemplateMatch.QueryParameters field with a null value, same as in .NET.
...
This change is released under the MIT license.
2015-01-31 07:21:03 -05:00
Zoltan Varga
3edd4ffe6b
Merge pull request #1540 from esdrubal/marshallingcache
...
[runtime] Added native_func_wrapper_cache.
2015-01-31 02:42:34 -05:00
Zoltan Varga
910ebf9438
[jit] Increase the inline memcpy/memset cutoff to 8 machine words.
2015-01-30 23:50:28 -05:00
Zoltan Varga
1f5b328219
[llvm] Add a new LLVMArgAsFpArgs argument passing convention which means an argument is passed as a set of fp scalar arguments, i.e. HFAs on arm64.
2015-01-30 20:59:55 -05:00
Zoltan Varga
4b2d1f0edc
Fix a warning.
2015-01-30 19:15:24 -05:00
Zoltan Varga
4bd4e7539a
[arm] Enable llvm for methods with struct arguments larger than 2 words.
2015-01-30 17:46:43 -05:00
Zoltan Varga
d4077516ed
[runtime] Disable a test which fails with llvm/gcc.
2015-01-30 15:43:22 -05:00
Rodrigo Kumpera
c731686feb
Don't include the poll backed directly into the threadpool source code.
2015-01-30 14:07:52 -05:00
Rodrigo Kumpera
ebf7c45f74
[runtime] Skip the finalizer thread while it's sleeping.
2015-01-30 14:07:52 -05:00
Marcos Henrich
09c48bc964
[runtime] Added native_func_wrapper_cache.
...
mono_marshal_get_native_func_wrapper now uses native_func_wrapper_cache indexed by SignaturePointerPair,
Using SignaturePointerPair index instead of MonoMethod index avoids problems when one native function needs multiple wrappers.
e.g: when the managed code creates delegates for function pointers with parameters that require different marshallings.
This fixes bug 26127.
2015-01-30 17:01:45 +00:00
Marcos Henrich
e8f48de9bb
[runtime] Renamed SignatureMethodPair to SignaturePointerPair.
...
Changed field MonoMethod* method to gpointer pointer.
This change was done because we need in some cases to use a signature pointer pair.
2015-01-30 15:26:03 +00:00
Marek Safar
26618719fe
Merge pull request #1539 from directhex/use-referencesource-for-System.Web.ApplicationServices
...
Include hard-coded strings (SR.cs-style) rather than using AppliCationServicesStrings.Designer.cs
2015-01-30 15:13:37 +01:00
Jo Shields
b88fc96610
Include hard-coded strings (SR.cs-style) rather than using AppliCationServicesStrings.Designer.cs
...
This avoids depending on a missing .resources file with string translations in it
2015-01-30 14:09:15 +00:00
João Matos
6fa8f480dd
Merge pull request #1538 from directhex/use-referencesource-for-System.Web.ApplicationServices
...
Switch System.Web.ApplicationServices to ReferenceSource.
2015-01-30 12:45:38 +00:00
Jo Shields
ea88432e49
Switch System.Web.ApplicationServices to referencesource
...
Due to the removal of the net_2_0 profile, the files in ../System.Web/System.Web.Security aren't included in make dist anymore since they aren't used in System.Web (the classes got moved to System.Web.ApplicationServices.dll in .NET 4).
This breaks the tarball builds, as System.Web.ApplicationServices relies
on those files, so we now include the ReferenceSource equivalents instead.
2015-01-30 12:44:47 +00:00
Rodrigo Kumpera
2436f4c059
[runtime] Use MonoError instead of loader error with signature parsing.
2015-01-30 01:03:01 -05:00
Sebastien Pouliot
998dbd5a9d
Bump referencesource to disable CAS calls on System.Componentmodel.TypeDescriptor [ #26554 ]
2015-01-29 19:58:45 -05:00
Alex Rønne Petersen
f3d7670010
[mini] Fix Enum.HasFlag () intrinsic emitting a bad OP_LCEQ on 32-bit.
2015-01-30 01:10:31 +01:00
Zoltan Varga
8b6ae32c26
Fix the dreg op the long_ccc instructions, those instructions return ints.
2015-01-29 19:09:43 -05:00
Mark Probst
d43c5b2723
Merge pull request #1537 from evincarofautumn/color-binprot
...
Add color mode to sgen-grep-binprot.
2015-01-29 14:09:14 -08:00
Jon Purdy
b63d941ba0
[runtime] Add color mode to sgen-grep-binprot.
...
When searching for a pointer with '--color' or '-c', the field in a
protocol entry that matched will be highlighted; when searching for
multiple pointers, they will be highlighted in different colors
according to their order on the command line. When highlighting more
than six pointers, colors will be reused.
2015-01-29 13:51:27 -08:00
Jon Purdy
9df536fcc6
[runtime] Fix incorrect labels in sgen-grep-binprot output.
2015-01-29 12:52:13 -08:00
Miguel de Icaza
4bc5170cb5
Add more detail
2015-01-29 15:39:59 -05:00
Miguel de Icaza
9e53c70376
[lldb] Document and install the mono.py file for LLDB
2015-01-29 15:33:48 -05:00
Zoltan Varga
2457f29139
Fix a warning.
2015-01-29 15:29:45 -05:00
Alex Rønne Petersen
bc13a8125e
[mini] Fix decomposition of long opcodes in VolatileRead ()/VolatileWrite () intrinsics.
2015-01-29 19:06:33 +01:00
Alex Rønne Petersen
8221afc2bc
Optimize Enum.HasFlag () implementation and recognize it in the JIT.
...
The previous implementation did a ton of reflection and boxing making
it about 4x slower than it should be. This new (native) implementation
simply memcpy ()s the values out of the Enum objects and then does the
bitwise AND.
In addition, the JIT now recognizes this common IL pattern:
<push int or long ptr>
<push int or long>
box MyFlagsEnum
constrained. MyFlagsEnum
callvirt instace bool class [mscorlib] System.Enum::HasFlag (class [mscorlib] System.Enum)
This is generated from C# code such as:
MyFlagsEnum a = ..., b = ...;
a.HasFlag (b);
When the operand types of the `box` and `constrained.` instructions are
the same, we can skip all the slow stuff that HasFlag () normally does
and simply turn the whole thing into this IR:
<this> = loadi4_membase <this_ptr>
<temp> = int_and <this> <flag>
icompare <temp> <flag>
<result> = int_ceq
This is about 60x faster than the old HasFlag () without any JIT support
and about 15x faster than the new HasFlag () native implementation.
Also, added missing argument checks to HasFlag ().
2015-01-29 19:06:33 +01:00
João Matos
32db079545
[build] Updated the class library MSBuild projects.
2015-01-29 17:02:08 +00:00
Rodrigo Kumpera
7551802f99
Merge pull request #1536 from esdrubal/noreuse
...
[runtime] MonoIO methods using SafeHandle now prevent handle reuse.
2015-01-29 10:15:05 -06:00
João Matos
8c8eb43638
[System.Core] Fixed interpreter build.
2015-01-29 16:11:37 +00:00
Miguel de Icaza
27da886fe8
[FtpWebRequest] Add test for bug #26312 , issue was fixed by bringing .NET's implementation
2015-01-29 10:45:59 -05:00
Marcos Henrich
cfbd2c797b
[runtime] MonoIO methods using SafeHandle now prevent handle reuse.
...
This reverts partially commit 753229c72dd9f2b63beb097700e350164b887c2.
Marshallers are not called for ICalls parameters so the change of ICalls parameters to SafeHandle did not prevents handle reuse.
To prevent handle reuse ICalls are no longer called directly.
Instead we call a method that receives a SafeHandle and wraps the ICall call with safeHandle.DangerousAddRef and safeHandle.DangerousReleaseRef.
This guarantees that the safe handle reference countererence does not reach zero before or while the ICall, thus avoiding the handle beeing released and possibly reused.
2015-01-29 15:27:57 +00:00
Marek Safar
01557ce516
[system.core] Fixes MT build
2015-01-29 15:54:54 +01:00
Marcos Henrich
d08bfead6f
[symbolicate] Added tool README.
2015-01-29 13:13:00 +00:00
Rodrigo Kumpera
dc953f8095
[eglib] [io-layer] Have a single wrapper around getdtablesize. This removes the duplicate on io-layer and exports the eglib one.
2015-01-28 20:28:13 -05:00
Zoltan Varga
d547860431
[mdoc] More updates to expected test output.
2015-01-28 20:15:28 -05:00
Alex Rønne Petersen
55b090587d
[mini] Prefer OP_ICEQ over OP_CEQ in i4 CAS intrinsics.
2015-01-29 01:17:06 +01:00
Zoltan Varga
57a302ce03
[arm64] Add tests for loading of sbyte/bool arguments passed on the stack.
2015-01-28 18:39:24 -05:00
Rodrigo Kumpera
3798f91417
[profiler] Report methods not found in async mode due to AOT.
2015-01-28 18:25:46 -05:00
Rodrigo Kumpera
bb83aaa4f0
[utils] Fix mono_dl_build_path termination logic.
2015-01-28 18:25:45 -05:00
Rodrigo Kumpera
1e47df3c7b
[runtime] Fix appdomain loading event ordering.
2015-01-28 18:25:41 -05:00
Kai Ruhnau
46b5b849ae
Populate the RequestingAssembly property of ResolveEventArgs
2015-01-28 18:15:30 -05:00
Zoltan Varga
98949d2e25
Merge pull request #1535 from StephenMcConnel/bug-26523
...
Fix the default behavior of ToolStripLayoutStyle.Table
2015-01-28 17:54:38 -05:00
Stephen McConnel
aa7bfb2359
Fix the default behavior of ToolStripLayoutStyle.Table
...
This addresses https://bugzilla.xamarin.com/show_bug.cgi?id=26523 .
2015-01-28 16:52:40 -06:00
Alex Rønne Petersen
962c9682ab
[mini] Add some missing atomic instructions to cpu-arm64.md.
2015-01-28 23:48:36 +01:00
Ludovic Henry
2c524916b7
[runtime] Fix #26307 "Random crash due to threading issue in new threadpool heuristics code"
...
By locking `threads_lock` before launching the thread, we guarantee that the thread is not going to remove itself from `threads` before we actually add it to `threads`.
2015-01-28 15:56:07 -05:00
Zoltan Varga
d1647dabf8
Merge pull request #1533 from jbevain/pdb2mdb-roslyn
...
[pdb2mdb] Skip unknown pdb metadata
2015-01-28 15:45:26 -05:00
Rodrigo Kumpera
36afbc6563
Merge pull request #1510 from BrzVlad/fix-file-map
...
Fix file map
2015-01-28 14:18:19 -06:00
Mark Probst
5f70b2e00b
Merge pull request #1527 from ludovic-henry/master
...
[runtime] Generate binary protocol functions and structure with macro
2015-01-28 10:12:50 -08:00
Alex Rønne Petersen
5b1bce5693
[mini] Add atomic load/store instructions for float/double.
2015-01-28 18:29:09 +01:00
Alex Rønne Petersen
40ad17a1c3
[mini] Lower atomic load/store instruction sizes on ARM.
2015-01-28 18:29:09 +01:00
Alex Rønne Petersen
133aad946c
[mini] Fix some warnings.
2015-01-28 18:29:09 +01:00
João Matos
78e28d1121
[runtime] Fixed mono_dl_open_file to work in Android.
2015-01-28 17:21:22 +00:00
Ludovic Henry
b9da8d3f1e
[runtime] Generate binary protocol functions and structure with macro
...
You just have to edit mono/metadata/sgen-protocol-def.h to generate a new binary protocol entry type
2015-01-28 11:51:51 -05:00
Marcos Henrich
4f2b974bfa
[symbolicate] Added symbolicate.expected.
...
The added file Test/symbolicate.expected contains the value that we expect to find in Test/out/symbolicate.out.
make check now uses Test/symbolicate.expected.
2015-01-28 16:35:13 +00:00
Marcos Henrich
c052b2618c
[runtime] Duplicated instructions OP_IL_SEQ_POINT are now removed.
...
Sequences of OP_IL_SEQ_POINT instructions are now reduced to only the instruction.
This removes about half of the generated sequence point instructions.
2015-01-28 16:35:13 +00:00
Henrik Feldt
789d43622e
[crypto] Re-instantiate for Invariants() test
2015-01-28 17:13:02 +01:00
Henrik Feldt
0b8d94d285
[crypto] check key length in test
2015-01-28 16:51:11 +01:00
Marek Safar
b23077459a
[System.Core] More reference sources
2015-01-28 16:30:19 +01:00
Marek Safar
f90fe36593
[corlib] Move Aes.cs to corlib
2015-01-28 16:30:19 +01:00
Marek Safar
895f9cc39e
[system.core] Profiles cleanup
2015-01-28 16:30:18 +01:00
Marek Safar
cba3edec90
[corlib] Move TimeZoneInfo source files to assembly they are used
2015-01-28 16:30:18 +01:00
Marek Safar
a303b38586
[system.core] Cleanup TimeZoneInfo ifdefs
2015-01-28 16:30:18 +01:00
Henrik Feldt
7fc8c726ad
[crypto] Key size 128 bytes for HMACSHA512
...
Using recommended key size according to MSDN (1) and RFC4868 (2).
(1): https://msdn.microsoft.com/en-us/library/w5y83hkf%28v=vs.110%29.aspx
(2): https://tools.ietf.org/html/rfc4868
2015-01-28 16:28:24 +01:00
Henrik Feldt
c72f6c2fb5
[crypto] Key size 128 bytes for HMACSHA384
...
Using recommended key size according to MSDN (1) and RFC4868 (2).
(1): https://msdn.microsoft.com/en-us/library/h43559cy%28v=vs.110%29.aspx
(2): https://tools.ietf.org/html/rfc4868
2015-01-28 16:28:24 +01:00
Henrik Feldt
ad4a6a5369
[crypto] Key size 64 for HMACSHA256
...
Using recommended key size according to MSDN (1) and RFC4868.
Fixes #23808 - https://bugzilla.xamarin.com/show_bug.cgi?id=23808
(1): https://msdn.microsoft.com/en-us/library/9c9tf8wc%28v=vs.110%29.aspx
(2): https://tools.ietf.org/html/rfc4868 - under
2.1.1. Data Origin Authentication and Integrity Verification Usage
2015-01-28 16:28:09 +01:00
Henrik Feldt
f3d2c41b26
[crypto] Key size 64 for HMACSHA1
...
This HMAC cipher accepts any key size (1), took from RFC2104, which uses
the full 64 bytes of key since it has a block length of 64 bytes.
(1): https://www.ietf.org/rfc/rfc2104.txt - Chapter 2: Definition of HMAC
2015-01-28 16:27:54 +01:00
Henrik Feldt
1caf94bec7
[crypto] Key size 64 for HMACRIPEMD160
...
This HMAC cipher accepts any key size (1), took 64 bytes from MSDN (2)
(1): https://tools.ietf.org/html/rfc2857 - chapter 3 keying material
(2): https://msdn.microsoft.com/en-us/library/8k00xhf0%28v=vs.110%29.aspx
2015-01-28 16:27:41 +01:00
João Matos
786edf7ad6
[msvc] Updated runtime project files.
2015-01-28 15:09:14 +00:00
João Matos
cde444ffb0
[runtime] Windows build fixes.
2015-01-28 15:07:17 +00:00
Jb Evain
974526dd3c
[pdb2mdb] Skip unknown pdb metadata
...
This patch allows pdb2mdb to convert pdb files containing
metadata items emitted by the Roslyn compiler.
2015-01-28 15:36:46 +01:00
Alex Rønne Petersen
4d72abb180
[mini] Fix a few cases where incorrect vreg types were being allocated for intrinsics.
2015-01-28 14:36:49 +01:00
Alex Rønne Petersen
c6fb35d47d
[mini] Fix stack type for atomic intrinsics involving IntPtr.
2015-01-28 14:36:49 +01:00
Rolf Bjarne Kvinge
2bdeceed14
[mono-api-html] Take arity into account when comparing methods.
...
Fixes a crash when there are two methods overloaded by arity:
System.InvalidOperationException: Sequence contains more than one matching element
at System.Linq.Enumerable.Single[XElement] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00038] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/System.Core/System.Linq/Enumerable.cs:2371
at System.Linq.Enumerable.SingleOrDefault[XElement] (IEnumerable`1 source, System.Func`2 predicate) [0x00007] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/System.Core/System.Linq/Enumerable.cs:2445
at Xamarin.ApiDiff.MemberComparer.Find (IEnumerable`1 target) [0x00019] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/MemberComparer.cs:72
at Xamarin.ApiDiff.MemberComparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x0003c] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/MemberComparer.cs:83
at Xamarin.ApiDiff.MemberComparer.Compare (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x000a2] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/MemberComparer.cs:55
at Xamarin.ApiDiff.ClassComparer.Modified (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x0005b] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/ClassComparer.cs:210
at Xamarin.ApiDiff.Comparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x00093] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/Comparer.cs:80
at Xamarin.ApiDiff.ClassComparer.Compare (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x00055] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/ClassComparer.cs:67
at Xamarin.ApiDiff.NamespaceComparer.Modified (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x0001a] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/NamespaceComparer.cs:75
at Xamarin.ApiDiff.Comparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x00093] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/Comparer.cs:80
at Xamarin.ApiDiff.NamespaceComparer.Compare (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x00055] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/NamespaceComparer.cs:49
at Xamarin.ApiDiff.AssemblyComparer.Modified (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x0002b] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/AssemblyComparer.cs:70
at Xamarin.ApiDiff.Comparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x00093] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/Comparer.cs:80
at Xamarin.ApiDiff.AssemblyComparer.Compare () [0x0004a] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/AssemblyComparer.cs:50
at Xamarin.ApiDiff.Program.Main (System.String[] args) [0x00328] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/ApiDiff.cs:164
2015-01-28 14:17:17 +01:00
Alex Rønne Petersen
416cbef8d8
[mini] Recognize and optimize Thread.VolatileRead ()/VolatileWrite ().
2015-01-28 13:30:57 +01:00
Alex Rønne Petersen
90d942e1c5
[mini] Recognize and optimize the new 4-parameter CAS overload.
2015-01-28 11:57:06 +01:00
Alex Rønne Petersen
9f3f9b174c
[corlib] Add a new generated test file to .gitignore.
2015-01-28 11:57:06 +01:00
Jo Shields
559b0b2c67
Missing bracket from 8b10cef3
2015-01-28 10:50:32 +00:00
Marek Safar
d5febd5365
[mdoc] update expected delegate exceptions
2015-01-28 10:07:15 +01:00
Zoltan Varga
e5d76a7074
[amd64] Add 32bit fp codegen macros.
2015-01-27 20:25:56 -05:00
Rodrigo Kumpera
417fc5e789
[runtime] Cleanup networking init/shutdown code.
2015-01-27 18:35:38 -05:00
Rodrigo Kumpera
8b10cef344
[utils] Cleanup the dynamic loading code and split the platform specific code into multiple files.
...
This makes the actual code much simpler to read and work with as we can clearly see what's done on each
target.
2015-01-27 17:59:33 -05:00
Zoltan Varga
69dc4238a2
Merge pull request #1530 from StephenMcConnel/bug-26478
...
Fix TextBox display to handle kerning fonts
2015-01-27 16:47:24 -05:00
Stephen McConnel
3280b20650
Fix TextBox display to handle kerning fonts
...
Many fonts, including the default DejaVu Sans, use kerning between
certain character pairs. This resulted in garbled or even invisible
display during typing of strings with a lot of kerning going on. An
attempt is made to retain the current speed-optimized implementation
while using accurate, slower string width measurements when needed.
See https://bugzilla.xamarin.com/show_bug.cgi?id=26478 for details.
2015-01-27 15:40:11 -06:00
Marcos Henrich
81af7de23d
[symbolicate] Makefile fixes.
2015-01-27 18:54:18 +00:00
Zoltan Varga
ec1244784c
Add tools/symbolicate to the build.
2015-01-27 13:49:30 -05:00
Marek Safar
6a0b61634d
[corlib] Remove redundant checks from delegate::combine
2015-01-27 19:46:55 +01:00
Zoltan Varga
d2ec22099a
[sdb] Avoid errors when a vtype method is invoked with the InvokeOptions.Virtual flag set.
2015-01-27 13:09:59 -05:00
Marek Safar
0d1f48b9e1
[mcs] Fix type inference fixing to filter all candidates
2015-01-27 18:53:17 +01:00
Atsushi Eno
057623eb7c
Merge pull request #1529 from alistair/xmlreader_read_to_next_sibling_bug
...
XmlReader.ReadToNextSibling(string) doesn't match .net behaviour
2015-01-28 01:04:26 +08:00
Marek Safar
a24bb201eb
Revert referencesource change from 9ac4b5b7a7
2015-01-27 17:58:29 +01:00
Marek Safar
52a93b2dbb
Revert to broken scope reference indexing
2015-01-27 17:58:29 +01:00
Marcos Henrich
0e3f9853ac
[symbolicate] Added target check to Makefile.
...
Target check verifies that symbolicate is capable of returning a debug stacktrace from a release stackframe.
2015-01-27 16:25:16 +00:00
Alistair Bush
aba3b1a915
Unit test for reproduction of XmlReader.ReadToNextSibling behaviour
2015-01-28 04:17:52 +13:00
Marek Safar
3abac7458e
Update ikvm
2015-01-27 16:14:54 +01:00
João Matos
b655fb35c6
[runtime] Fixed MONO_STRUCT_OFFSET to work with non-cross builds.
2015-01-27 15:06:08 +00:00
Alex Rønne Petersen
157db2ae27
[corlib] Switch to reference source System.Threading.SpinLock.
2015-01-27 13:05:28 +01:00
Alex Rønne Petersen
4f5195edd2
[mini] Make intrinsic method signature checks more robust.
...
This is so we can avoid miscompiling things left and right
when new overloads are added. For example, before this patch,
we miscompiled the new 4-parameter CAS () overload.
2015-01-27 13:05:28 +01:00
Marcos Henrich
951299ddae
test_op_il_seq_point.sh now properly generates tmp files.
2015-01-27 10:59:14 +00:00
Marcos Henrich
b457329942
test_op_il_seq_point.sh now calls mono with option --compile-all=1
...
Calling mono with flag --compile-all=1 avoids running the code and possible stdout problems and it also compiles every method.
As test_op_il_seq_point.sh now only compiles it is now capable of testing libraries and executables that are expecting parameters.
2015-01-27 09:37:48 +00:00
Zoltan Varga
2140250e4f
[corlib] Wait for tasks to finish in some Tasks tests to prevent races between tests.
2015-01-26 19:59:06 -05:00
Vlad Brezae
8b914ca48b
When map size is 0, use the aligned size of the file.
...
As MS does.
2015-01-26 15:08:15 -08:00
Vlad Brezae
08f78b1615
Fail on mappings that exceed the file size.
...
As MS does.
2015-01-26 15:08:14 -08:00
Vlad Brezae
495cd1500b
Fix handling of mappings over file size.
...
Add tests.
2015-01-26 15:08:14 -08:00
Vlad Brezae
3f81926327
Fix truncation of newly created map files.
...
File truncation could skip due to the fact that st_size field is only initialized for already existing files.
2015-01-26 15:06:53 -08:00
Zoltan Varga
85d7771306
[sdb] Avoid errors when a static method is invoked with the InvokeOptions.Virtual flag set.
2015-01-26 17:59:32 -05:00
Rodrigo Kumpera
89ed7a9018
[runtime] Check for sigaction been present when trying to use signals.
2015-01-26 16:30:43 -05:00
Rodrigo Kumpera
b3a4976b6d
[utils] Explicitly check if the system has mincore instead of relying on mmap been present.
2015-01-26 16:30:42 -05:00
Zoltan Varga
b97979906b
[runtime] Add infrastructure code for getting/setting Thread.Priority.
2015-01-26 15:13:46 -05:00
Rodrigo Kumpera
9ac4b5b7a7
[runtime] Introduce MonoError into mono_metadata_parse_method_signature_full.
2015-01-26 14:50:36 -05:00
Rodrigo Kumpera
a4188b73cd
Fix loader error <> MonoError interop.
2015-01-26 14:26:18 -05:00
Marek Safar
3632d51916
[corlib] Report constructor ContainsGenericParameters by inspecting parent type. Fixes #26412
2015-01-26 18:12:00 +01:00
Marek Safar
8fcdfeda92
Update reference sources to correctly fix #26375
2015-01-26 17:41:53 +01:00
Alex Rønne Petersen
1a858cbfbd
[runtime] Use MonoBoolean in icall signature, not gboolean.
2015-01-26 17:14:51 +01:00
João Matos
20eb41f97a
[runtime] Fixed the iOS build.
...
Failure caused by https://github.com/mono/mono/commit/2f1b464beb14a1b6b6099a03fc332493293bef35 .
```
../../../../../mono/mono/utils/mono-proclib.c:104:8: error: use of undeclared identifier 'errno'
if (errno != ENOMEM)
^
../../../../../mono/mono/utils/mono-proclib.c:104:17: error: use of undeclared identifier 'ENOMEM'
if (errno != ENOMEM)
```
2015-01-26 14:59:39 +00:00
João Matos
b52a468f49
Partial revert of "Fixes mobile build"
...
This reverts commit 4d3877d23b .
We cannot remove this file as the build logic is expecting it since we override it from mono-extensions.
```System/Guid.cs(42,7): error CS0246: The type or namespace name `Crimson' could not be found. Are you missing an assembly reference?```
2015-01-26 14:59:39 +00:00
Marek Safar
fc81c9a972
Revert corlib changes from 268627a68b
2015-01-26 15:50:58 +01:00
Marek Safar
268627a68b
[mcs] Emit catch scope with correct start offset. Also fixes local variable scope index reference. Fixes #25358
2015-01-26 15:46:03 +01:00
Alex Rønne Petersen
506d405b98
Fixup for 2644152b06.
...
Accidentally committed an incomplete patch.
2015-01-26 14:11:20 +01:00
Marek Safar
b3c4d9d786
Merge pull request #1521 from esdrubal/fshandle
...
[corlib] FileStream now uses SafeFileHandle.
2015-01-26 13:46:05 +01:00
Marcos Henrich
7a81fd5b30
[corlib] FileStream now uses SafeFileHandle.
...
FileStream now stores a SafeFileHandle instead of a IntPtr handle.
Added ObjectDisposedException to more methods.
2015-01-26 12:27:44 +00:00
Marcos Henrich
753229c72d
[corlib] Changed some MonoIO methods to use SafeHandle.
2015-01-26 12:27:42 +00:00
João Matos
6c65d62a14
[System] Fixed mobile build.
2015-01-26 12:03:17 +00:00
Jo Shields
cd9db9cb45
Merge pull request #1525 from akoeplinger/fix-dynamicdata-test
...
[System.Web.DynamicData] Fix MetaColumnTest.Attributes() test
2015-01-26 10:31:36 +00:00
Alex Rønne Petersen
33e5da7a47
Revert "[runtime] Fix getting main thread's stack size with musl."
...
This reverts commit 67d84faecb .
This is not enough on its own to fix sigaltstack support with musl.
2015-01-26 07:11:51 +01:00
Alex Rønne Petersen
67d84faecb
[runtime] Fix getting main thread's stack size with musl.
...
See the code for an explanation of this mess.
2015-01-25 16:14:23 +01:00
Alexander Köplinger
cb3835ba9e
[System.Web.DynamicData] Fix MetaColumnTest.Attributes() test
...
It started failing when code from MS referencesource was imported.
I checked on MS.NET and the list of attributes is now the same on Mono
(except an additional __DynamicallyInvokableAttribute on MS.NET).
2015-01-25 15:05:16 +01:00
Alex Rønne Petersen
36589008a4
[runtime] Fix build when using musl libc.
2015-01-25 08:30:34 +01:00
Zoltan Varga
1d5f1c4760
Merge pull request #1522 from StephenMcConnel/bug-26258
...
Fix occasional rendering problem in TextBoxes
2015-01-24 22:10:10 -05:00
Zoltan Varga
2f1b464beb
[runtime] Avoid failures in Process.GetProcesses () when the number of processes is above 400. Fixes #26382 .
2015-01-24 21:14:53 -05:00
Zoltan Varga
b21fe11d6c
[runtime] Allow spaces after commas in generic instances passed in Type.GetType (). Fixes #26384 .
2015-01-24 19:22:54 -05:00
Zoltan Varga
f342649f75
[jit] Properly inflate method signatures used in CEE_NEWOBJ opcodes. Fixes #26346 .
2015-01-24 19:11:11 -05:00
Marek Safar
4d3877d23b
Fixes mobile build
2015-01-24 09:25:35 +01:00
Alex Rønne Petersen
94a922305a
[mini] Fix setting stack type for some atomic instructions.
...
Fixes some assertion failures introduced by 78141114e3 .
2015-01-24 08:47:10 +01:00
Zoltan Varga
0efa5704f4
Fix the build.
2015-01-23 20:13:05 -05:00
Alex Rønne Petersen
4d24ccadc6
[mini] Implement OP_MEMORY_BARRIER on MIPS.
2015-01-24 01:08:02 +01:00
Alex Rønne Petersen
f457dee224
[mini] Fix CAS atomic ordering under LLVM.
...
AcquireRelease [0] and SequentiallyConsistent [1] are not equivalent.
[0] http://llvm.org/docs/Atomics.html#acquirerelease
[1] http://llvm.org/docs/Atomics.html#sequentiallyconsistent
2015-01-24 01:08:02 +01:00
Alex Rønne Petersen
c118dae7d3
[mini] Add atomic load/store instruction definitions for ARM64.
2015-01-24 01:08:02 +01:00
Alex Rønne Petersen
5bf4ab138d
[mini] Implement atomic load/store instructions on ARM.
2015-01-24 01:08:02 +01:00
Alex Rønne Petersen
52bfd89d96
[mini] Implement atomic load/store instructions on x86.
2015-01-24 01:08:02 +01:00
Alex Rønne Petersen
c25ff177fd
[mini] Implement atomic load/store instructions on AMD64.
2015-01-24 01:08:01 +01:00
Alex Rønne Petersen
df625319bb
[mini] Implement atomic load/store opcodes in the LLVM backend.
...
Requires a newer Mono LLVM fork and is only enabled on MONO_API_VERSION >= 4.
2015-01-24 01:08:01 +01:00
Alex Rønne Petersen
3198e62024
[mini] Add new atomic load/store opcodes with acq/rel/seq semantics.
...
These are emitted by recognizing Interlocked and Volatile methods. They allow
us to generate more efficient instruction sequences on certain architectures
(e.g. ARM64 which has specialized load-acquire and store-release instructions).
2015-01-24 01:08:01 +01:00
Alex Rønne Petersen
78141114e3
[mini] Also match Interlocked.Exchange<T> () in mono_method_to_ir ().
2015-01-24 01:08:01 +01:00
Alex Rønne Petersen
e901b3377c
[mini] Memory barrier fixes, simplifications, and optimizations.
...
* Barrier semantics is now specified as acquire, release, and sequentially
consistent. This is in line with CIL/.NET semantics and also maps better to
LLVM's fence types.
* Use the mfence instruction for memory barriers on AMD64 as it's smaller
(and presumably also faster).
* We now emit specific barriers when using LLVM instead of always emitting
sequentially consistent barriers.
* Barriers emitted for the CIL volatile prefix instruction are now more
specific instead of always being sequentially consistent.
* Fixed emission of CEE_MONO_MEMORY_BARRIER in SGen's managed allocators. For
some reason (that I haven't had time to look into), mono_mb_emit_op ()
clobbers the barrier kind operand. This meant that in many cases we ended
up not actually emitting any barriers because the switches in the backends
didn't handle the clobbered values. mono_mb_emit_i4 () seems to work.
* Fixed handling of CEE_MONO_MEMORY_BARRIER in mono_method_to_ir (). Since it's
a custom opcode, the opcode is actually 2 bytes long. Another source of
barriers not actually being emitted.
2015-01-24 01:08:01 +01:00
Alex Rønne Petersen
2644152b06
Add an internal Interlocked.CompareExchange () icall overload needed by MS BCL.
2015-01-24 01:08:01 +01:00
Martin Baulig
3bcd0eb9de
Bump referencesource to un-break Xamarin Studio.
...
See https://bugzilla.xamarin.com/show_bug.cgi?id=26375 .
2015-01-24 00:48:16 +01:00
João Matos
be92f03550
[runtime] Get Mono's LLVM API version from the LLVM repo when cross compiling.
...
The previous code was hardcoding Mono's LLVM API version which was less than ideal. The API has been bumped twice since without this being updated.
This depends on a recent Mono LLVM version, at least https://github.com/mono/llvm/commit/607aeaae423da73e6ddfe49af4741fa1bc5f9e78 .
2015-01-23 16:46:32 +00:00
João Matos
6d17bd5611
[mini] Include signal.h in mini.c.
...
This fixes Monodroid cross build, which broke with https://github.com/mono/mono/commit/adca49cdd28e7c7b0cc65073167c143cc5f52fdd .
Error:
```
/Users/joao/Dev/droid/mono/mono/mini/mini.c:6645:31: note: each undeclared identifier is reported only once for each function it appears in
/Users/joao/Dev/droid/mono/mono/mini/mini.c: In function 'mono_sigsegv_signal_handler':
/Users/joao/Dev/droid/mono/mono/mini/mini.c:6704:31: error: 'SIGSEGV' undeclared (first use in this function)
mono_handle_native_sigsegv (SIGSEGV, ctx, info);
```
2015-01-23 16:41:16 +00:00
João Matos
73292633fc
[runtime] Check for signal.h when targeting Win32.
...
This fixes Monodroid cross build, which broke with https://github.com/mono/mono/commit/adca49cdd28e7c7b0cc65073167c143cc5f52fdd .
2015-01-23 16:40:07 +00:00
Marek Safar
a09f7c6f7b
Revert "[System] Remove network interface operational status test."
...
This reverts commit 519582150d .
2015-01-23 13:46:49 +01:00
Marek Safar
a4a6ad39f8
[corlib] Add more tests
2015-01-23 13:46:26 +01:00
João Matos
519582150d
[System] Remove network interface operational status test.
...
This test is proving to be problematic since the status of interfaces can be different on OSs.
2015-01-23 12:38:41 +00:00
Marek Safar
b18af252e9
Fixes 579084d1f7 commit
2015-01-23 13:21:15 +01:00
Marek Safar
dc462a850b
[corlib] Increase timeout of failing test
2015-01-23 11:45:42 +01:00
Marcos Henrich
92f04b8636
[corlib] Added tests for FileStream SafeHandle.
2015-01-23 10:41:53 +00:00
Marek Safar
140d6e440c
[system] Implement Android specific domain name. Fixes #26305
2015-01-23 11:23:10 +01:00
Marek Safar
579084d1f7
[system] Fixes failing test
2015-01-23 11:08:28 +01:00
Marek Safar
772c45aaf9
Revert "[corlib] StringBuilder from reference sourcers"
...
This reverts commit ef6b35a009 .
2015-01-23 10:42:06 +01:00
Marek Safar
ef6b35a009
[corlib] StringBuilder from reference sourcers
2015-01-23 10:24:10 +01:00
Zoltan Varga
5090e3557a
[sdb] Move the checking of the various debugger attributes to one function to make it easier to add support for DebuggerStepperBoundaryAttribute.
2015-01-22 18:44:39 -05:00
Martin Baulig
335258b147
[System]: Add new internal Socket APIs.
2015-01-22 23:10:56 +01:00
Zoltan Varga
879cd1bed1
[runtime] Add a preliminary mono support mode for lldb. Currently, pretty printing some runtime types is supported.
2015-01-22 16:42:56 -05:00
Zoltan Varga
af7a963fc0
[runtime] Use the new one parameter ctor to create RuntimeWrappedException objects.
2015-01-22 16:01:49 -05:00
Marek Safar
066bbf8b21
[corlib] Remove current timezone specific tests
2015-01-22 15:55:08 -05:00
Marek Safar
f30d7e21a8
[Microsoft.Build.BuildEngine] Update failing test
2015-01-22 21:33:53 +01:00
Martin Baulig
f0abad3748
Bring Internal.cs, Logging.cs and _LoggingObject.cs.
2015-01-22 20:28:10 +01:00
Martin Baulig
c7d14ed7d8
Fix KeyContainerPermission.SetFlags().
2015-01-22 20:27:07 +01:00
Martin Baulig
5311437f06
Make TraceSource.GetSupportedAttributes() "protected internal".
2015-01-22 20:26:59 +01:00
Martin Baulig
dcfd3f23d1
The class needs to be called `FriendAccessAllowedAttribute'.
2015-01-22 20:26:52 +01:00
Mark Probst
14eda7354d
[sgen] MONO_GC_DEBUG options to not run finalizers.
2015-01-22 14:04:00 -05:00
Stephen McConnel
e62a37d332
Fix occasional rendering problem in TextBoxes
...
See https://bugzilla.xamarin.com/show_bug.cgi?id=26258 for details.
2015-01-22 12:26:42 -06:00
Zoltan Varga
a9af48a4a6
Fix the build.
2015-01-22 12:27:03 -05:00
Zoltan Varga
412f680e56
[runtime] Make RuntimeWrappedExceptions work with the new reference source version of RuntimeWrappedException.
2015-01-22 12:20:26 -05:00
Martin Baulig
20d845ca07
Merge pull request #1156 from felfert/master
...
Fixed Bug #21135 - Deadlock in WebConnectionStream
2015-01-22 17:21:24 +01:00
Marek Safar
7c3c908458
[corlib] referencesources update
2015-01-22 17:04:26 +01:00
Crisdut
7c39ab701b
Add unit test for the bug #1849
2015-01-22 15:41:59 +00:00
Crisdut
8098123ec2
Fix the bug #1849
2015-01-22 15:41:59 +00:00
Marek Safar
ea6a13d413
Remove unused files
2015-01-22 16:05:40 +01:00
Marek Safar
5352329186
[corlib] Calendars from reference sources
2015-01-22 16:05:40 +01:00
Marek Safar
346894957c
[corlib] generic collections from reference sources
2015-01-22 16:05:40 +01:00
Marek Safar
585c1278cb
Merge pull request #1520 from madrang/SafeHandleFix
...
Small fix for SafeHandle Disposing
2015-01-22 11:33:04 +01:00
Neale Ferguson
c9722940db
Add memory barrier support using BCR 14,0
2015-01-22 05:12:17 -05:00
Marc-Andre Ferland
b4776f20c7
Small fix for SafeHandle Disposing
2015-01-22 01:55:01 -05:00
Zoltan Varga
0c4cc7160a
Merge pull request #1518 from akoeplinger/remove-only-net11-ifdef
...
[bcl] Remove ONLY_1_1 defines from class libs
2015-01-21 23:08:47 -05:00
Zoltan Varga
6cf56cbb2f
[amd64] Fix r8->int conversions. Fixes #26219 .
2015-01-21 15:00:06 -05:00
Zoltan Varga
03724e8d79
[arm64] Add a test for vtypebyref parameters in gsharedvt trampolines.
2015-01-21 13:48:12 -05:00
Zoltan Varga
e478ab8364
Merge pull request #1519 from akoeplinger/remove-net35-ifdef
...
[bcl] Remove NET_3_5 defines from class libs
2015-01-21 12:53:56 -05:00
Alexander Köplinger
2a978a42f1
[bcl] Remove NET_3_5 defines from class libs
2015-01-21 17:59:27 +01:00
Alexander Köplinger
d4d7374efc
[bcl] Remove ONLY_1_1 defines from class libs
...
This is not used anymore.
2015-01-21 17:18:30 +01:00
João Matos
1e25d67aef
[runtime] Fix sigsev signal handler Win32 build.
...
This was broken by: https://github.com/mono/mono/commit/45704daf22d1cec17851ce011ee391137932c471
2015-01-21 13:06:33 +00:00
João Matos
c28e73de04
Merge pull request #1517 from akoeplinger/fix-network-test
...
[System] Skip loopback interfaces in the FirstInterfaceOperationalStatus() test
2015-01-21 12:27:39 +00:00
Marek Safar
50f2b63442
[corlib] Contracts and CompilerServices from reference sources
2015-01-21 11:46:03 +01:00
Marek Safar
4fd0f05f66
[corlib] Fixes more SafeHandle failing tests
2015-01-21 11:46:03 +01:00
Marek Safar
018e826d47
Merge pull request #1502 from madrang/SafeHandle.CloseTestDispose
...
Test that closing handle will release managed resource by calling Dispose
2015-01-21 09:11:28 +01:00
Marek Safar
912dda4613
Merge pull request #1504 from madrang/SafeHandle.SetInvalidRelease
...
Allows refs to be released after the handle is set as invalid.
2015-01-21 09:11:12 +01:00
Rodrigo Kumpera
ebfa2d2b40
[runtime] Remove debug spew.
2015-01-20 15:31:21 -05:00
Zoltan Varga
76558bd382
Merge pull request #1516 from DavidKarlas/getThreadsHang
...
[sdb] Fixed GetThreads deadlock if thread was started or stopped during GetThread
2015-01-20 15:01:20 -05:00
Rodrigo Kumpera
75a4c28352
[runtime] Introduce mono_ldtoken_check and replace usage of the unchecked one with it.
2015-01-20 12:50:50 -05:00
Rodrigo Kumpera
6a348cfc32
[runtime] Weave MonoError into method_from_method_def_or_ref.
2015-01-20 12:50:50 -05:00
Rodrigo Kumpera
7650568113
[runtime] mono_type_create_from_typespec is no longer used by the runtime, it doesn't need to create a loader error.
2015-01-20 12:50:50 -05:00
Rodrigo Kumpera
4bb01e4a2d
[runtime] Remove last usage of mono_class_get. Moving it and its _full variant to the bad to call set.
2015-01-20 12:50:50 -05:00
Rodrigo Kumpera
53424f1fae
[runtime] Weave MonoError in mono_metadata_interfaces_from_typedef_full.
2015-01-20 12:50:49 -05:00
Rodrigo Kumpera
b2c5eaba5d
[runtime] Weave MonoError into more of the loader code.
2015-01-20 12:50:49 -05:00
Rodrigo Kumpera
cd4a89e234
[runtime] Add more error checking.
2015-01-20 12:50:49 -05:00
Rodrigo Kumpera
e9fc37d44e
[runtime] Introduce the usage of mono_class_get_checked in most of the runtime.
2015-01-20 12:50:49 -05:00
Rodrigo Kumpera
027609046e
[runtime] Explicitly call mono_class_setup_methods to fail types with bad methods.
2015-01-20 12:50:49 -05:00
Rodrigo Kumpera
047116c246
[runtime] Introduce mono_get_method_checked.
2015-01-20 12:50:48 -05:00
Rodrigo Kumpera
5995bb0ccb
[runtime] switch to checked variant of mono_get_method_constrained.
2015-01-20 12:50:48 -05:00
Rodrigo Kumpera
b8775906b1
[runtime] Introduce mono_get_method_constrained_checked.
2015-01-20 12:50:48 -05:00
Rodrigo Kumpera
a40ade5fef
[runtime] mono_get_method_constrained_with_method now uses MonoError.
2015-01-20 12:50:48 -05:00
Rodrigo Kumpera
6d09e35a0f
[runtime] Introduce MonoError into get_method_constrained.
2015-01-20 12:50:47 -05:00
Rodrigo Kumpera
396d0623ad
[runtime] Fix a loader error leakage.
2015-01-20 12:50:47 -05:00
Rodrigo Kumpera
8e18aca8cf
[runtime] Introduce MonoError into mono_get_method_from_token.
2015-01-20 12:50:47 -05:00
Rodrigo Kumpera
20526d840d
[runtime] Move the runtime to use the checked variants of mono_class_inflate_generic_method.
2015-01-20 12:50:47 -05:00
Rodrigo Kumpera
0a159bb035
[runtime] Move method_from_methodspec to use MonoError.
2015-01-20 12:50:46 -05:00
Rodrigo Kumpera
a0056ed85b
[runtime] Make method_from_memberref use MonoError.
2015-01-20 12:50:46 -05:00
Marek Safar
d13b92edb1
[System] Extract NetworkInterface factory and implement LoopbackInterfaceIndex for more platforms
2015-01-20 15:04:32 +01:00
Marek Safar
2c472f0670
Merge pull request #1513 from akoeplinger/remove-net20-ifdefs
...
[bcl] Remove more NET_2_0 checks from class libs
2015-01-20 13:29:40 +01:00
Marek Safar
52cace8bb5
[corlib] Update System.Numeric mobile public key
2015-01-20 13:25:55 +01:00
Marek Safar
191cde43ad
[System.Numerics] Update to latest mscorlib
2015-01-20 13:09:43 +01:00
Marek Safar
429fd07df8
[corlib] Primitive types from reference sources
2015-01-20 12:23:29 +01:00
David Karlaš
948689360b
[sdb] Fixed GetThreads deadlock if thread was started or stopped during GetThreads call.
...
Regression introduced in 52b168e336
2015-01-20 11:29:44 +01:00
Zoltan Varga
7ef5dfed95
[sgen] Disable PREFETCH_CARDS when using xcode4 as it causes gcc to crash.
2015-01-19 17:06:43 -05:00
Marek Safar
c1a50591da
[corlib] Fixed failing covert test
2015-01-19 22:38:49 +01:00
Marek Safar
cde677dbaf
[corlib] Add more convert checks
2015-01-19 19:50:36 +01:00
Mark Probst
abc0bc6fbe
[sgen] Fix clearing ephemerons and weak links on domain unload.
...
At some point we zeroed all the unloaded domain's objects first, and then we cleared
weak links, ephemerons, etc. Because the objects were zeroes, we only had to
check that the vtable was null. Now we do it the other way around: clear weak links,
ephemerons, ..., and then zero objects. Obviously we now need to check for the
object's domain, because their vtables will not be null.
2015-01-19 09:57:23 -08:00
Marek Safar
6f802b490c
[corlib] Fixes ToDateTime for primitive types
2015-01-19 16:23:03 +01:00
Marek Safar
519ddb9895
[corlib] Char from reference sourcers
2015-01-19 16:23:03 +01:00
João Matos
435f968102
[runtime] Workaround missing net/route.h in iOS SDK.
2015-01-19 15:07:49 +00:00
Marek Safar
c5e4cfc9fb
[corlib] More system types from reference sources
2015-01-19 14:07:53 +01:00
Marek Safar
9aefc2627b
[corlib] Type's GetInterfaceMap has no implementation
2015-01-19 14:07:53 +01:00
Marek Safar
8c41fbe08f
[runtime] Remove Convert icalls
2015-01-19 14:07:53 +01:00
João Matos
396d9dbeb1
Merge pull request #1404 from woodsb02/mono-route
...
Add mono/metadata/mono-route.c for non-Linux ParseRouteInfo_local
2015-01-19 12:53:56 +00:00
Marek Safar
66a679268c
[corlib] System.Convert from reference sources
2015-01-19 11:14:04 +01:00
Alexander Köplinger
ff71a0fa40
[System] Skip loopback interfaces in the FirstInterfaceOperationalStatus() test
...
The status of loopback interfaces is always 'Unknown' on Linux.
This fails the test so we need to skip them.
2015-01-19 10:30:29 +01:00
Ben Woods
1e0c63e953
Add mono/metadata/mono-route.c for non-Linux ParseRouteInfo_local
...
Add #ifdef to ignore code in mono/metadata/mono-route.c if OS=linux
Also remove mono-route.c from msvc/libmonoruntime.vcxproj (Windows)
Add #ifdef to ensure mono/metadata/mono-route.h code is not included
on Linux
Change to using #if defined(PLATFORM_MACOSX) || defined(PLATFORM_BSD)
Use sizeof(addr) for maximum length of IP address string, instead of the hard-coded 16.
Should the size of addr ever change it will keep us from disaster in case if shrinking the array length.
Also, do not ignore snprintf return value - check for truncated output and act accordingly if it happens.
Add Tests for System.Net.NetworkInformation/IPInterfacePropertiesTest.cs and System.Net.NetworkInformation/NetworkInterfaceTest.cs
Remove accidental Copyright
add a space before the opening parenthesis, as shown in the coding guidelines.
Indent TestFixture to align with coding style of newer Test classes
Use G_N_ELEMENTS(mib) instead of sizeof(mib) / sizeof(mib[0])
2015-01-19 07:05:32 +08:00
Zoltan Varga
a3f3abf8fd
[arm64] Add a test for r4 hfa parameter passing in gsharedvt trampolines.
2015-01-18 11:32:22 -05:00
Zoltan Varga
12f36fd126
[arm64] Add a test for hfa parameter passing in gsharedvt out trampolines ( #26085 ).
2015-01-17 20:29:05 -05:00
Zoltan Varga
aeb7813213
[runtime] Fix aot-tests.cs.
2015-01-17 20:13:35 -05:00
Zoltan Varga
25246e4c3b
[arm64] Add tests for dyn calls with floats.
2015-01-17 15:55:20 -05:00
Zoltan Varga
8cd6feb66b
[arm64] Increase the size of the dyn_call instruction, and the buffers used during dyn calls.
2015-01-17 15:55:19 -05:00
David Karlaš
eb29fb3fa4
[sdb] ILInterpreter handle Br_S same as Br
2015-01-17 17:02:30 +01:00
David Karlaš
6953d781cd
[sdb] Fix deadlock in case of runtime disconnect while fetching frames(Bug 24434)
2015-01-17 16:24:30 +01:00
Alexander Köplinger
746650d1b9
[bcl] Remove more NET_2_0 checks from class libs
2015-01-17 05:45:39 +01:00
Miguel de Icaza
7d1cd56c5d
[System] ComponentModel, make it build in the MOBILE profile
2015-01-16 20:20:26 -05:00
Zoltan Varga
43a9f2af11
[bcl] Fix System.Threading.Tasks.Dataflow tests.
2015-01-16 19:49:00 -05:00
Mark Probst
9daffb747a
[sgen] Fix a concurrent collector bug.
...
Pinning is done in the worker thread, but reset in the main thread.
The main thread must wait for the worker jobs to finish until it can
reset pinning. We didn't do this before.
2015-01-16 16:00:11 -08:00
Zoltan Varga
d929a5d9ae
Merge pull request #1511 from akoeplinger/windows
...
[utils] Extract Windows-specific networking fallback into networking-windows.c
2015-01-16 17:26:34 -05:00
Zoltan Varga
ba6d6d74cd
[bcl] Fix the serialization of string arrays to IEnumerable<string> in the Json serializer. Fixes #25808 .
2015-01-16 14:11:51 -05:00
Marek Safar
014e3493b1
[System.Threading.Tasks.Dataflow] update atomicboolen location
2015-01-16 19:20:48 +01:00
Marek Safar
a844019685
[system.core] TaskExtensions from reference source
2015-01-16 19:01:40 +01:00
Marek Safar
8fa4f20578
Another build fix
2015-01-16 18:33:09 +01:00
Marek Safar
dc95e23048
Fixes build
2015-01-16 18:23:34 +01:00
Rodrigo Kumpera
45704daf22
[jit] Adjust the sigsegv handle to accomodate targets without siginfo.
2015-01-16 12:16:36 -05:00
Rodrigo Kumpera
adca49cdd2
[jit] First pass of portability fixes for the JIT.
2015-01-16 12:16:36 -05:00
Marek Safar
5a6e9cc4eb
[corlib] USe more types from System.Threading reference sources
2015-01-16 18:04:05 +01:00
Marek Safar
de222aa4be
[System.Core] System.Collections.Generic from reference sources
2015-01-16 16:55:36 +01:00
Marek Safar
2c439a5b84
[System.ServiceModel.Web] Update failing test
2015-01-16 16:32:03 +01:00
Alexander Köplinger
e1010a2e35
[utils] Extract Windows-specific networking fallback into networking-windows.c
2015-01-16 16:23:48 +01:00
Marek Safar
061d7f3fb1
[system.xml] Fix broken ClassMap logic which relied on order of hashtable elements
2015-01-16 16:21:22 +01:00
Marek Safar
b8d0752d82
[system.web] Update SqlDataSource test not to rely on idictionary order
2015-01-16 09:58:00 +01:00
Marek Safar
49721c35af
[WindowsBase] Fix incorrect test
2015-01-16 09:11:28 +01:00
Zoltan Varga
9661a1fba0
[runtime] Fix the build.
2015-01-15 19:17:19 -05:00
Zoltan Varga
3a4c4766fa
[sdb] Fix single stepping after a SetIP operation. Fixes #26033 .
2015-01-15 19:13:27 -05:00
Vlad Brezae
098121114a
Don't truncate the file to the page aligned size.
...
The second open attempt at opening would fail due to the capacity being smaller than the file size.
2015-01-15 15:27:50 -08:00
Miguel de Icaza
3619fe9c4c
[Mono.Posix] Add overloads to pass ints and pointers
2015-01-15 18:22:58 -05:00
Zoltan Varga
aae77596bf
[sdb] Rename 'restore_ctx' to 'restore_state' and change its type to MonoThreadUnwindState.
2015-01-15 17:33:10 -05:00
Marek Safar
76ad4fb9fe
[corlib] fixing TPL integration
2015-01-15 23:24:49 +01:00
Marek Safar
30ee7c53a4
[system] update failing tests
2015-01-15 23:13:36 +01:00
Ludovic Henry
9ac10ff321
[TPL] Replace implementation by Microsoft reference sources
2015-01-15 16:05:51 -05:00
Rodrigo Kumpera
18751d4475
Merge pull request #1458 from BrzVlad/feature-fat-cas
...
Poll-free fat locks
2015-01-15 14:54:12 -06:00
Zoltan Varga
5084172643
[runtime] Remap io-layer symbols using the prefix wapi_. Fixes #25821 .
2015-01-15 15:07:56 -05:00
Zoltan Varga
b27d024877
Fix a warning.
2015-01-15 14:42:01 -05:00
Martin Baulig
e129937283
[Mono.Security]: More exception debug foo.
...
Note: This patch may cause some ugly exception messages. This is intended to help
us debug and hopefully fix bug #19334 .
2015-01-15 19:08:46 +01:00
Martin Baulig
8670be04bf
[Mono.Security]: Test suite - we may not throw IOException as well here.
...
In fact, we should not ever throw ObjectDisposedException, but provide a
meaningful IOException. Still working on it.
2015-01-15 17:53:57 +01:00
Martin Baulig
60bd02c236
[Mono.Security]: Fix TLS Alert level." This breaks the System test suite.
...
Prevent further abuse (calling it before the fields have been assigned to)
by making the helper function static.
2015-01-15 17:53:57 +01:00
João Matos
d065c31a24
[msvc] Fixed the build.
2015-01-15 16:21:48 +00:00
Rodrigo Kumpera
e50db21610
Revert "[Mono.Security]: Improve error reporting when sending TLS Alerts fail."
...
This reverts commit 95eff24950 .
2015-01-15 11:04:32 -05:00
Rodrigo Kumpera
9b04cd4d29
Revert "[Mono.Security]: Fix TLS Alert level." This breaks the System test suite.
...
This reverts commit a036a6bf18 .
2015-01-15 10:57:58 -05:00
Zoltan Varga
34f074e4fa
Merge pull request #1507 from DavidKarlas/mdbRead0Line
...
[sdb] Fixed .mdb parsing when line equals 0
2015-01-15 10:39:55 -05:00
Marek Safar
46bdea893b
[corlib] System.Collections from reference sources
2015-01-15 16:16:42 +01:00
Martin Baulig
a036a6bf18
[Mono.Security]: Fix TLS Alert level.
2015-01-15 13:23:10 +01:00
Martin Baulig
95eff24950
[Mono.Security]: Improve error reporting when sending TLS Alerts fail.
2015-01-15 11:55:13 +01:00
Lluis Sanchez
639bf66171
Generate proper Link metadata for resources in imported projects
...
When importing a project that contains embedded resources, the id
of those resources must be generated using the path relative
to the project file that includes them, not relative to the
main project file. To fix this problem, we now generate a
Link metadata property for those resources that has the correct
relative path, and later this is used to generate the correct
id for the resource. We also now store a new metadata value
for all items (DefiningProjectFullPath) which contains the
path to the project file that defines the element. This is
used to check if an item was defined in an imported file,
in which case the Link assignment may need to be made.
This fixes bug BXC 20966.
2015-01-15 11:07:49 +01:00
Marek Safar
02782f4a1a
[system] System.Timer from reference sources
2015-01-15 10:05:50 +01:00
Marek Safar
bc6ea9d725
Merge pull request #1505 from esdrubal/tzifloatingrule
...
[System.Core] Fixed wrong DST of TimeZoneInfo with floating date rules.
2015-01-15 09:19:02 +01:00
David Karlaš
03082714c0
[sdb] Fixed .mdb parsing when line equals 0
2015-01-15 09:18:16 +01:00
Zoltan Varga
31ca4c480c
Merge pull request #1506 from akoeplinger/fix-paste-test
...
[MWF] Fix unicode string handling from clipboard paste in X11
2015-01-14 23:57:05 -05:00
Zoltan Varga
18561ff041
[sdb] Don't continue single stepping when reaching the same line if locations without debug info were reached during the single step.
2015-01-14 19:57:49 -05:00
Rodrigo Kumpera
e92b71af43
Sorry for breaking linux.
2015-01-14 19:26:13 -05:00
Rodrigo Kumpera
6f6e8586eb
[runtime] I can still find unguarded used of signal.h, amazing.
2015-01-14 19:21:36 -05:00
Zoltan Varga
025f351123
[sdb] Fix the detection of whenever an image has debug info or not.
2015-01-14 19:13:46 -05:00
Mark Probst
ae3b35aa23
Merge pull request #1466 from schani/stage-unified-card-table-scanning
...
Unified card table scanning
2015-01-14 14:56:12 -08:00
Zoltan Varga
4304c55302
Fix the build.
2015-01-14 17:48:51 -05:00
Marek Safar
f9917c3110
[corlib] Hashtable constructor with equality comparer needs to use it during initialization as well
2015-01-14 23:25:32 +01:00
Zoltan Varga
ea0159a4ac
[sdb] Fix a few places missed in 73d14781d2.
2015-01-14 16:56:57 -05:00
Marek Safar
5c3e91d094
[Microsoft.Build.Utilities] Replace use of ProcessStringDictionary with case insensitive dictionary. It shouldn't case insensitive on non-windows but that'd break msbuild compatibility
2015-01-14 22:31:42 +01:00
Marek Safar
b15de26512
Fixes build
2015-01-14 22:31:42 +01:00
Alexander Köplinger
9c05594fc5
[MWF] Fix unicode string handling from clipboard paste in X11
...
In the TextBoxTest.PasteTest () test case we copy the string "ABCD" to the clipboard.
We then try to paste it again and see if it's the same.
Internally in WinForms, the clipboard data is retrieved via an X11 API that returns
a pointer to the string. In this case, we have a unicode/utf16 string that usually
looks as follows in memory (2 byte per character):
65 'A'
0
-
66 'B'
0
-
67 'C'
0
-
68 'D'
0
-
0 '\0' end of string
0 potential garbage from here on
-
0
0
...
The bug is that we use Marshal.PtrToStringUni (), which reads until the
first null *char* not the first null *byte*.
Imagine if we get the following (happens sometimes):
65 'A'
0
-
66 'B'
0
-
67 'C'
0
-
68 'D'
0
-
0 '\0' end of string
230 <--- garbage, but considered part of a char by PtrToStringUni ()
-
47
56
-
74
43
...
This produces garbage like "ABCD㠯⭊" since PtrToStringUni () reads beyond the original string.
The fix is to use the nitems variable that is returned by the X11 API (it contains the
actual number of bytes in the string) and copy the bytes manually. We already do
the same for the UTF8 case above.
This fixes the TextBoxTest.PasteTest () that intermittently fails on Jenkins.
2015-01-14 22:31:30 +01:00
Zoltan Varga
73d14781d2
[sdb] Emit debug logs using g_print () on android, so it shows up in adb logcat output.
2015-01-14 16:29:54 -05:00
Marek Safar
053e618102
[system.net.http] Drop WebClient dependency
2015-01-14 21:41:49 +01:00
Marek Safar
a90491c257
[system] System.Collections.ObjectModel from reference sources
2015-01-14 21:41:48 +01:00
Zoltan Varga
d9341960de
[pdb2mdb] Fix the decoding of nested scopes.
2015-01-14 13:44:44 -05:00
Marek Safar
941ac41ac0
[system] System.Collections.Specialized from reference sources
2015-01-14 18:42:12 +01:00
Marek Safar
eb050de08a
[system] Add UnicodeDecodingConformance, UnicodeEncodingConformance
2015-01-14 18:18:07 +01:00
Marek Safar
4403146ada
[system] Switch to reference sources WebClient
2015-01-14 17:37:12 +01:00
Marek Safar
af11f84af0
[system] Cookies implementation from reference sources
2015-01-14 16:41:27 +01:00
João Matos
8811a8704f
[runtime] Do not use MONO_STRUCT_OFFSET for Win32-specific offsets.
...
We do not yet have auto-generated offsets for Win32 targets and this interacts in weird ways with the Android cross-compilers for Windows.
2015-01-14 15:28:11 +00:00
Marcos Henrich
e0278f8f69
[System.Core] Fixed wrong DST of TimeZoneInfo with floating date rules.
...
Fixes #26008
We do not want (transition.DayOfWeek - first) % 7 to be negative.
As (transition.DayOfWeek - first) cannot be lower than -7, adding 7 to it solves the issue.
2015-01-14 15:20:27 +00:00
Marcos Henrich
e4676f8a12
[System.Core] Added tests to TimeZoneInfoTest. Covers #26008 .
2015-01-14 15:20:16 +00:00
Alex Rønne Petersen
9c660cf0b9
Fix mono_handle_native_sigsegv () signature in the cross compiler case.
2015-01-14 13:52:14 +01:00
Zoltan Varga
1f32c791d4
Fix a deadlock introduced by 3f10c46468.
2015-01-13 21:52:31 -05:00
Zoltan Varga
a9e3b26344
Merge pull request #1500 from criteo-forks/criteo
...
Fix SpinLock.TryEnter
2015-01-13 20:31:07 -05:00
Vlad Brezae
3f16384da1
[amd64] Add monitor enter v4 fastpath.
2015-01-13 17:07:18 -08:00
Zoltan Varga
3f10c46468
[bcl] Break waits in KeventWatcher by closing the command fd instead of polling.
2015-01-13 18:58:02 -05:00
Zoltan Varga
3cf4d21f8a
[bcl] Put the files created by the HostFileChangeMonitor test into an additional subdir to avoid the file system watcher starting to watch system temporary files in the parent dir. Dispose file system watchers at the end of the test.
2015-01-13 18:56:14 -05:00
Vlad Brezae
5b0fbd4c9c
[x86] Add monitor enter v4 fastpath.
2015-01-13 14:26:33 -08:00
Zoltan Varga
c1b4366932
[bcl] Remove NET_4_5 defines from class libs.
2015-01-13 16:34:23 -05:00
Zoltan Varga
2375c74a64
[bcl] Remove NET_4_5 defines from tools.
2015-01-13 16:34:11 -05:00
Zoltan Varga
bfb9d6d5d9
[runtime] Move the monograph tool to tools/.
2015-01-13 16:25:19 -05:00
Zoltan Varga
032f313d5f
[bcl] Remove NET_4_0 defines from class libs.
2015-01-13 16:06:31 -05:00
Zoltan Varga
bc8041cbe5
[bcl] Remove NET_4_0 defines from tools.
2015-01-13 15:59:48 -05:00
Zoltan Varga
0985d4aa4b
[bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>.
2015-01-13 15:29:38 -05:00
Zoltan Varga
f54652de26
[bcl] Remove NET_2_0 defines from tools.
2015-01-13 15:13:27 -05:00
João Matos
7299191d96
Revert "[build] Add seq-points.c to the genmdesc to try to fix the Monotouch build."
...
This reverts commit 5510857e6b .
2015-01-13 17:53:18 +00:00
Marcos Henrich
80cd1c8a0f
[build] Updated csproj files.
2015-01-13 17:47:48 +00:00
Marcos Henrich
d19f5dc228
Fixed msvc/scripts/genproj.cs file seperator issue on UNIX.
...
On UNIX '\\' is a valid file name character.
In this case we have to replace '\\' for Path.GetFileNameWithoutExtension to work as expected.
2015-01-13 17:47:48 +00:00
Marcos Henrich
5b851f03a2
[System.ComponentModel.Composition] Updated Makefile thisdir.
...
Old thisdir was causing problems while doing make update-csproj on top dir.
2015-01-13 17:47:48 +00:00
João Matos
5510857e6b
[build] Add seq-points.c to the genmdesc to try to fix the Monotouch build.
2015-01-13 17:25:15 +00:00
Marc-Andre Ferland
80f72a9dd9
Allows refs to be released after the handle is set as invalid.
2015-01-13 12:06:49 -05:00
Marek Safar
5a781d6d56
[system.data] refresh mobile sources
2015-01-13 17:02:08 +01:00
Marek Safar
d0d5cd45de
[system.data] Update for DataSetExtensions as GetTableMappingBySchemaAction is now more restrictive.
2015-01-13 16:11:07 +01:00
Marek Safar
04dc09cbf8
[corlib] Close underlying synchronized stream. Fixes #25498
2015-01-13 14:57:55 +01:00
Marek Safar
7c2bf5f2a1
[system.net.http] Split reading headers and content in GetStreamAsync. Fixes #23966
2015-01-13 12:28:06 +01:00
Marek Safar
4736f957a6
[corlib] Add range checks to CharUnicodeInfo. Fixes #25895
2015-01-13 11:19:21 +01:00
Marek Safar
9ceced044e
[system.data] update mobile profile
2015-01-13 11:02:54 +01:00
Marek Safar
0042e68c2e
[system.data] Replace connection string builder from reference sources
2015-01-13 10:59:21 +01:00
Alex Rønne Petersen
20f9db583e
Fix the build on sigaltstack platforms.
2015-01-13 10:16:44 +01:00
Alex Rønne Petersen
b1099af6c7
Fix the Android build; use HAVE_SYS_SYSCTL_H instead of HAVE_SYS_IOCTL_H.
2015-01-13 09:43:58 +01:00
Alex Rønne Petersen
15312e93ab
Add an extension point for backtraces on native SIGSEGVs.
2015-01-13 09:20:06 +01:00
Alex Rønne Petersen
d1c6023b32
Propagate siginfo to mono_handle_native_sigsegv ().
...
Some platforms (e.g. Android) need this to get a backtrace in a signal handler.
2015-01-13 09:20:06 +01:00
Marek Safar
cb452cfff7
[system.data] Replace System.Data.SqlTypes from reference sources except SqlXml which depends on internal system.xml factory method
2015-01-13 09:19:11 +01:00
Marek Safar
696c08126c
[system.data] Switch to DbEnumerator from reference sources. Fixes #24935
2015-01-13 09:19:11 +01:00
Guillaume Turri
3d17efc13c
Fix SpinLock.TryEnter
...
Little and big endian cases were inverted. It can be seen e.g. from the
reference http://locklessinc.com/articles/locks , where the ticket algorithm
is given for little-endian machines
As a consequence, without this patch, if TryEnter succeeds, it increments
ticket.Value instead of ticket.User, which puts the SpinLock in a corrupted
state, and makes it impossible to release afterwards.
2015-01-13 08:47:09 +01:00
Miguel de Icaza
9d08d2b0d9
[Regex] Disable IL code generation until we figure out 25671
2015-01-12 23:23:23 -05:00
Miguel de Icaza
a4c7885f7d
[Mono.Posix] Add support for OSX F_NOCACHE
2015-01-12 23:13:58 -05:00
Marc-Andre Ferland
f7d2cb47c0
Test that closing handle will release managed resource by calling Dispose
2015-01-12 21:37:09 -05:00
Zoltan Varga
c38c9c6f25
[aot] Fix llvm support.
2015-01-12 19:38:01 -05:00
Zoltan Varga
037f47d973
[runtime] Fix the android build.
2015-01-12 18:08:39 -05:00
Zoltan Varga
ca327b1162
[runtime] Use a guint64 for device/inode instead of dev_t/ino_t since ino_t is defined as 32 bit on newer android versions, but inode values can actually be 64 bit.
2015-01-12 17:23:41 -05:00
Zoltan Varga
02696b4d21
Fix the build.
2015-01-12 17:20:01 -05:00
Zoltan Varga
3ccc4e92b2
[runtime] Remove an unused define.
2015-01-12 17:08:21 -05:00
Zoltan Varga
57f99de33d
[bcl] Fix a race in a System.Threading.Tasks test.
2015-01-12 17:02:39 -05:00
Zoltan Varga
05cd4225b2
[aot] Implement support for separate llvm object files when using static linking. Enable it on all platforms.
2015-01-12 16:45:07 -05:00
Zoltan Varga
472afb9fd7
[arm] Fix the decoding of backward branches in mono_arch_get_call_target ().
2015-01-12 16:45:07 -05:00
Marek Safar
bb9d05a5f5
[system] Fixes barrier file name
2015-01-12 20:07:33 +01:00
Zoltan Varga
1e5ddf741c
[aot] Add an 'llvm-outfile=' command line argument to specify the name of the assembly file holding the LLVM compiled code when the 'asmonly' option is used.
2015-01-12 13:41:54 -05:00
Marek Safar
e9b135baca
[system] Replace Barrier implementation from reference sources. Fixes #25928
2015-01-12 17:18:42 +01:00
Marek Safar
5728c1a3dd
[system.net.http] ProductInfoHeader collection parsing/formatting uses special separators. Fixes #19881
2015-01-12 16:47:04 +01:00
Radek Doulik
581ac48a56
do not use liblog's absolute path in DllImport
...
- let it for dllmap to specify the path of liblog
https://github.com/xamarin/monodroid/commit/e834a251d65cb8f677ee7140450ea11e09dbf5c8
- when checking if running on Android, check the 64bit liblog location as well
2015-01-12 15:28:15 +01:00
Marcos Henrich
2dabfdf453
[System.Runtime.Caching] Removed unused files.
...
referencesource files are used instead of the removed files.
2015-01-12 13:08:20 +00:00
Marek Safar
9652f056bc
[corlib] SafeHandle dispose can be called multiple times after closing. Fixes #25850
2015-01-12 14:05:38 +01:00
Marcos Henrich
bcfdc181eb
[runtime] update_liveness2 replaced wrong binary or with or.
2015-01-12 11:32:36 +00:00
Marcos Henrich
602a62377d
[runtime] update_liveness2 now handles OP_IL_SEQ_POINT.
2015-01-12 11:05:15 +00:00
Marek Safar
28f16c8991
[corlib] Fixes SafeHandle invalidHandleValue handling
2015-01-12 11:52:31 +01:00
Marcos Henrich
f0834d5407
Merge pull request #1455 from esdrubal/caching
...
[System.Runtime.Caching] .NET integration.
2015-01-12 08:27:48 +00:00
Marek Safar
7a7d04b618
Merge pull request #1499 from madrang/SafeHandleTesting
...
SafeHandle SetAsInvalid Testing
2015-01-12 00:13:40 +01:00
Marc-Andre Ferland
4288f7d687
More strict testing of SafeHandle.
...
SafeHandle.IsInvalid refer only to the handle value it self. Being true only if the handle is 0 || -1
In all cases, Releasing, Disposing or SetHandleAsInvalid does not change the handle value, so SafeHandle.IsInvalid will remain unchanged.
IsClosed will be true if the handle is released or if SetHandleAsInvalid is called.
The handle will not be released when calling Dispose if SetHandleAsInvalid was called.
The handle is not released at Dispose but when the last ref is removed by DangerousRelease
2015-01-11 18:10:06 -05:00
Zoltan Varga
b2e5b02817
runtime] Really fix a race condition in mono_remoting_marshal_init ().
2015-01-11 12:07:16 -05:00
Zoltan Varga
1fa2463bc3
[aot] Enable direct llvm object file emission on x86 as well.
2015-01-11 10:31:29 -05:00
Zoltan Varga
e3c000b256
[aot] Avoid duplicate symbol errors if two methods have the same cfg->method.
2015-01-11 10:26:41 -05:00
Marcos Henrich
b9e97c9957
test_op_il_seq_point.sh now properly tests AOT compilation.
...
Added missing option --aot
2015-01-11 14:53:13 +00:00
Marcos Henrich
4db0888798
test_op_il_seq_point.sh no longer prints empty lines.
2015-01-11 14:53:13 +00:00
Marcos Henrich
984d3df9b1
TestDriver now has option --quiet to disable Console outputs.
...
test_op_il_seq_point.sh does not work well when TestDriver produces outputs, calling the tests with option -q solves this.
2015-01-11 14:53:13 +00:00
Zoltan Varga
f663ba7ba7
[aot] Emit LLVM object files directly from llc on amd64.
2015-01-11 09:49:21 -05:00
Marcos Henrich
454d96dea6
test_op_il_seq_point.sh now prints whole diff.
2015-01-11 10:08:30 +00:00
Zoltan Varga
20113c5ec7
Fix warnings.
2015-01-10 23:04:05 -05:00
Zoltan Varga
d1beab3cd8
Fix the build.
2015-01-10 22:55:13 -05:00
Zoltan Varga
f717d75b69
Merge pull request #1498 from akoeplinger/fix-windows
...
Fix Windows build
2015-01-10 22:46:39 -05:00
Alexander Köplinger
6213c699d2
Fix Windows build
...
Some autoconf checks were missing when running on Windows.
Added stub for mono_get_local_interfaces back that was removed in b92e560d3f
for systems like Windows that have neither HAVE_SIOCGIFCONF nor HAVE_GETIFADDRS.
2015-01-10 22:09:18 +01:00
Marek Safar
9f9d9d25b3
[mcs] Auto-implemented properties must override all accessors of the overridden property
2015-01-10 18:51:01 +01:00
Marek Safar
aa5f851bec
[mcs] Contructors cannot be extern and have a constructor initializer
2015-01-10 18:51:01 +01:00
Marcos Henrich
55c0773505
test_op_il_seq_point.sh ignore diff unnecessary data.
2015-01-10 16:51:30 +00:00
Zoltan Varga
f6b3eb0e80
[aot] Emit a separate GOT for LLVM and JITted code, this avoids having to reference the extern got symbol from JITted code if the LLVM code is emitted into a separate module.
2015-01-10 11:24:42 -05:00
Zoltan Varga
9130a8641e
Add missing files to the windows build.
2015-01-10 10:07:41 -05:00
Zoltan Varga
edbde3b6be
Fix the windows build.
2015-01-10 08:18:25 -05:00
Marcos Henrich
3bcef7ef86
[System.Runtime.Caching] Updated MemoryCacheTest.
...
When config PhysicalMemoryLimitPercentage is not set or set to zero MemoryCache.PhysicalMemoryLimit value will depend on the total physical memory available.
2015-01-10 11:30:01 +00:00
Marcos Henrich
b78211356f
[System.Runtime.Caching] Improved CacheUsage sorting.
...
Now even if multiple MemoryCacheEntry are added to CacheUsage with the same date time CacheEntryCollection is able to sort them for removal in the same order.
2015-01-10 11:14:24 +00:00
Rodrigo Kumpera
6202a690ad
[utils][runtime] Another rounds of header cleanup.
2015-01-09 21:06:39 -05:00
Rodrigo Kumpera
48f0075b9d
[utils] Remove useless include.
2015-01-09 20:10:17 -05:00
Rodrigo Kumpera
e095e8b011
[metadata] Fix the build.
2015-01-09 20:09:18 -05:00
Rodrigo Kumpera
be917fb5ef
[metadata] Rename security.c to mono-security.c to avoid conflicts with some weird linkers.
2015-01-09 20:03:55 -05:00
Rodrigo Kumpera
7090ce602b
[io-layer] Fix another header missing a guard.
2015-01-09 19:46:51 -05:00
Rodrigo Kumpera
1f83d515cf
[metadata] Use new networking abtraction to fix targets without inet_ntop
2015-01-09 19:36:45 -05:00
Rodrigo Kumpera
4b98deb7c9
[utils] Add API to stringify a network address.
2015-01-09 19:36:45 -05:00
Zoltan Varga
92ca06aa7d
[jit] Add a MONO_PATCH_INFO_LDSTR_LIT patch type to handle strings which do not come from metadata, i.e. they are used in wrappers. Fixes #25891 .
2015-01-09 17:30:27 -05:00
Marek Safar
f52380fc7c
[mcs] Add string interpolation conversions
2015-01-09 23:27:18 +01:00
Rodrigo Kumpera
7b84b28673
[io-layer] Fix linux build.
2015-01-09 15:13:10 -05:00
Zoltan Varga
86a65282f6
Merge pull request #1497 from esdrubal/sq
...
Tests and fixes for OP_IL_SEQ_POINT
2015-01-09 13:37:58 -05:00
Marcos Henrich
5caa7a1491
[System.Runtime.Caching] MemoryCacheTest.Trim now checks LRU.
...
Entries are now removed in the least recently used order.
MemoryCacheTest.Trim was updated to check that entries are removed in LRU order.
2015-01-09 15:36:57 +00:00
Marcos Henrich
70d30f9de1
[System.Runtime.Caching] Updated MemoryCacheTest.TestCacheSliding.
...
Changed sliding expiration timeout from 1 second to 2 seconds.
2015-01-09 15:36:57 +00:00
Marcos Henrich
861b335181
[System.Runtime.Caching] Updated tests default PhysicalMemoryLimit.
...
MemoryCache.PhysicalMemoryLimit default value is now 99 instead of 98.
2015-01-09 15:36:57 +00:00
Marcos Henrich
80427367c2
[System.Runtime.Caching] .sources now uses referecensource files.
2015-01-09 15:36:57 +00:00
Marcos Henrich
88262cfa6e
[System.Runtime.Caching] Implemented referencesource missing classes.
...
Implemented classes UsageEntryRef, CacheUsage, ExpiresEntryRef and CacheExpires.
2015-01-09 15:36:56 +00:00
Marcos Henrich
bcf7e6e797
[System.Runtime.Caching] Copied SRef.cs from .NET.
...
.NET was using this to retrieve the size of an object graph, by using special logic on its GC.
This version of SRef is not doing that, because Mono does not provide that kind of computation.
As the changes that the GC would require to support this are not trivial, SRef returns a wrong size for now.
Known problems:
- CacheMemoryMonitor does not trim the cache when it reaches its memory size limit.
- IMemoryCacheManager.UpdateCacheSize is called with incorrect size.
2015-01-09 15:36:56 +00:00
Marcos Henrich
04285d5ad2
[System.Runtime.Caching] Copied R.Designer.cs from .NET
...
We will be using this version of R.Designer.cs with hard coded strings until Mono has access to .NET resources.
2015-01-09 15:36:56 +00:00
Marcos Henrich
b5d0ffe7dd
Added performance counter "Available Physical Memory".
...
Performance counter "Available Physical Memory" return the current
amount of ram that is not in use.
This was added to be used by System.Runtime.Caching .NET integration
that relies on the available system memory to resize the cache.
2015-01-09 15:36:56 +00:00
Etienne CHAMPETIER
81057618ac
System.Xml.Serialization: fix xml serializers generation for Web Services
...
(add a reference to System.Web.Services)
Without this patch we get the following exception after multiple call
to a soap web services:
Error while compiling generated serializer
/tmp/24ee1170/4996ddb2.cs(2519,27) : warning CS1522: Empty switch block
/tmp/24ee1170/4996ddb2.cs(969,29) : error CS0012: The type `System.Web.Services.Protocols.SoapHeader' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Signed-off-by: Frederic Mestayer <[email protected] >
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2015-01-09 15:02:10 +01:00
Alexander Köplinger
1db6835638
[utils] Remove duplicate socklen_t typedef from Windows build
...
This is already defined in ws2tcpip.h
2015-01-09 00:42:48 +01:00
Alexander Köplinger
d03e64a2ee
Merge pull request #1433 from akoeplinger/system.numerics-port
...
[System.Numerics] Ported code from MS referencesource
2015-01-09 00:34:31 +01:00
Zoltan Varga
2617698743
[aot] Enable emission of LLVM code into a separate file on amd64 in full aot mode. This requires emitting got accesses using normal assembly instead of emit_symbol_diff (), since clang cannot handle <sym> - . expressions if <sym> is an extern symbol.
2015-01-08 17:59:11 -05:00
Rodrigo Kumpera
2ce793efb6
[io-layer] Header usage grooming. Remove some unused headers and add config.h guards to others.
2015-01-08 17:46:54 -05:00
Miguel de Icaza
e397f7097a
Merge pull request #1495 from akoeplinger/fix-cancelrequestviaproxy
...
[System.Net.Http] Fix CancelRequestViaProxy() test that intermittently fails on Jenkins
2015-01-08 17:09:13 -05:00
Rodrigo Kumpera
41c1a773f9
[gc] Fix gc bitmap for array of pointers. They don't contain references
2015-01-08 15:37:18 -05:00
Rodrigo Kumpera
047b15f4e6
[utils] Fix linux compilation.
2015-01-08 15:18:23 -05:00
Rodrigo Kumpera
0959de07bf
[utils] Apparently ws2ipdef.h should not be included directly. Using ws2tcpip.h which is the recommended header.
2015-01-08 15:18:23 -05:00
Marek Safar
f776513488
[mcs] Add string interpolation grammar
2015-01-08 20:55:49 +01:00
Rodrigo Kumpera
c5d8151c22
[utils] Another round of windows fixing.
2015-01-08 12:33:48 -05:00
Rodrigo Kumpera
ab72a3d6ba
[utils] More portability cleanups.
2015-01-08 12:33:48 -05:00
Rodrigo Kumpera
2df9fc3e8c
[utils] Don't enable usage of sigaction unless the function is available.
2015-01-08 12:33:47 -05:00
Zoltan Varga
281b4a4abf
[runtime] Fix a race condition in mono_remoting_marshal_init ().
2015-01-08 12:15:04 -05:00
Rodrigo Kumpera
800a117da9
[utils] Don't special case android or FreeBSD when trying ucontext.h
2015-01-08 11:34:52 -05:00
Rodrigo Kumpera
373e055709
[utils] Small header sanitization. networking.h now include config.h
2015-01-08 11:34:03 -05:00
Rodrigo Kumpera
dd07fe7aaf
[utils] Another try to fix the windows build.
2015-01-08 10:57:56 -05:00
Alexander Köplinger
ab77341c6f
Only build the master branch on AppVeyor
2015-01-08 16:50:47 +01:00
Marcos Henrich
4629d64abd
[runtime] Makefile check now calls check-seq-points
...
check-seq-points now also checks AOT
2015-01-08 15:28:21 +00:00
Marcos Henrich
46a65b39bb
[runtime] mono_decompose_long_opts now handles OP_IL_SEQ_POINT.
2015-01-08 14:12:42 +00:00
Marcos Henrich
e5e97ddf35
test_op_il_seq_point.sh now checks sizes using diff.
...
Replaced sdiff with diff because sdiff cuts long line and we need to parse the code length from its output.
2015-01-08 14:01:51 +00:00
Marcos Henrich
2f5e9048a1
test_op_il_seq_point.sh no longer compares native code with AOT.
...
AOT compilation is also including non deterministic data into the generated native code.
2015-01-08 13:56:43 +00:00
Zoltan Varga
16b2539bab
[runtime] Another windows build fix.
2015-01-08 07:29:56 -05:00
Zoltan Varga
2368176d0f
[runtime] Add a header check for arpa/inet.h.
2015-01-08 06:16:42 -05:00
Zoltan Varga
62b4e3a314
[cominterop] Fix a crash by passing the proper value to mono_marshal_free_ccw (). Fixes #24638 .
2015-01-08 05:09:11 -05:00
Zoltan Varga
a568b19c13
[cominterop] Avoid crashes when the first item of a list is deleted and the list head was stored in a hash table. Fixes #24720 .
2015-01-08 05:05:08 -05:00
Zoltan Varga
b103884634
[runtime] Avoid Process.GetCurrentProcess ().HasExited asserting. Fixes #25720 .
2015-01-08 04:47:55 -05:00
Jo Shields
51f2a8c251
[msvc] 64-bit Windows still needs _WIN32_WINNT (for monoposixhelper)
2015-01-08 08:55:09 +00:00
Mark Probst
c389a66121
[sgen] Unified loop for scanning card tables.
...
We had previously used two separate loops for scanning card tables: One
loop that handled blocks where the object slots were larger than a single card,
and one loop where they were smaller. In the large case we would iterate over
the slots, check whether they were occupied, and if so, check their cards. In the
smaller case we would do it the opposite way: Check the card first, then check
the slots in the card.
For some workloads, the large loop resulted in lots of cache misses, because
we were fetching memory all over the blocks instead of just the cards. The small
loop, on the other hand, would sometimes scan objects twice, namely when they
crossed the boundary between two cards, and both cards were marked.
This new unified loop fixes both problems. We always look at the cards first,
and we keep a scan front pointer that prevents scanning objects more than
once.
2015-01-07 16:57:54 -08:00
Mark Probst
001c8a68ed
[sgen] Don't scan card tables differently based on object size.
...
For objects that were larger than a card we iterated over the objects in a block, rather
than iterate over the cards. To do that we had to load the object headers, which caused
cache misses. The card bits are consecutive, so they'll be in the cache.
2015-01-07 15:34:56 -08:00
Mark Probst
5d0069dec3
[sgen] Use a scan front pointer to avoid scanning objects twice from cardtable.
2015-01-07 15:34:56 -08:00
Mark Probst
6be120bde8
[sgen] Prefetching of blocks and cards in cardtable scanning.
2015-01-07 15:34:56 -08:00
Zoltan Varga
15e9a61807
[arm] Fix OP_ICLE_UN. Fixes #25798 .
2015-01-07 18:29:12 -05:00
Vlad Brezae
7786ec1408
[x86] Enable the monitor enter/exit fastpaths.
2015-01-07 14:21:45 -08:00
Vlad Brezae
efe2234b98
[amd64] Enable the monitor enter/exit fastpaths.
2015-01-07 14:21:14 -08:00
Vlad Brezae
753348a68b
Unmanaged implementation of spin free locks.
...
The commit addresses race issues between the waiting on the lock semaphore and the release of the lock. The entry count and the owner field are grouped together into the status field. Accesses to it are done using atomic cas operations so threads aren't lost waiting for release on the lock semaphore.
Disable native fastpaths for now, until they are updated to the new implementation.
2015-01-07 14:19:59 -08:00
Vlad Brezae
3327e1c25e
[amd64] Fix compilation error when monitor fastpaths are disabled
2015-01-07 14:03:12 -08:00
Vlad Brezae
b7482d9b22
Remove IL fastpaths for Monitor Enter/Exit.
2015-01-07 14:03:11 -08:00
Vlad Brezae
045422715f
[runtime] If possible, use fast tls for small_id storage.
2015-01-07 13:48:18 -08:00
Marek Safar
f41f2f0df1
[mcs] An argument to nameof operator cannot be extension method group
2015-01-07 21:06:11 +01:00
Marek Safar
c97ef02dc8
[mcs] update exception filters syntax to use yet another contextual keyword
2015-01-07 19:22:04 +01:00
Zoltan Varga
e2558972bd
[sdb] Enable the StackFrame.Domain property on stack frames which represent native transitions.
2015-01-07 10:59:17 -05:00
Marcos Henrich
93ffd56a4a
[runtime] Improved mono_local_cprop OP_IL_SEQ_POINT filtering.
...
Replaced more ins->next usages with mono_inst_next (ins, OP_IL_SEQ_POINT).
2015-01-07 14:11:16 +00:00
Marek Safar
50405e2e64
[mcs] Add reference to parent storey when this is hoisted in disconnected state machine. Fixes #25007
2015-01-07 14:02:12 +01:00
Marcos Henrich
0e90a8ccce
test_op_il_seq_point.sh can now tests with and without AOT
...
Without AOT only code size is checked
With AOT native code is checked.
We cannot compare the native code without AOT because some undeterministic data is stored in the middle of the code and there is no easy way of making the native code dumper ignore it.
2015-01-07 12:39:27 +00:00
Marcos Henrich
1aa885d086
test_op_il_seq_point.sh now compares native code with AOT only.
...
Comparing native code is only possible with AOT because it is almost deterministic.
A diff of the smallest method changed by OP_IL_SEQ_POINT is now printed to ease problem identification.
2015-01-07 11:56:21 +00:00
Zoltan Varga
9b294f1fc0
[aot] Enable separate llvm modules on amd64.
2015-01-07 03:49:01 -05:00
Zoltan Varga
bda99d7944
[aot] Enable emission of debug info for LLVM code if the LLVM code is emitted into a separate module.
2015-01-07 03:44:58 -05:00
Zoltan Varga
ac94e5c7cd
[aot] Add support for emitting the llvm code separately into a separate object file on amd64. Not enabled yet.
2015-01-07 03:11:49 -05:00
Zoltan Varga
eb0a3fe358
[aot] Allow the emission of the LLVM code into a separate .s/.o file. Not enabled yet.
2015-01-07 01:46:14 -05:00
Rodrigo Kumpera
b92e560d3f
[runtime] Change socket-io.c to use new API for local IP discovery.
2015-01-06 16:11:43 -05:00
Rodrigo Kumpera
0457b278f2
[utils] Add abstraction to retrive the local interface addresses.
2015-01-06 16:11:43 -05:00
Rodrigo Kumpera
da0acc6450
[runtime] IPV6 is now the norm so we can expect all systems to have it.
2015-01-06 16:11:43 -05:00
Zoltan Varga
f6ecbd11dc
[sdb] Bump protocol version to 2.39 so the single stepping changes can be detected by clients.
2015-01-06 15:14:09 -05:00
David Karlaš
1eb510ed44
[Sdb] Ignore hidden sequence points
2015-01-06 15:12:37 -05:00
David Karlaš
1187a32f28
[Sdb] With better mimicking of .Net debugging experience stepping out of method returns to method call instead of next statement
2015-01-06 15:12:17 -05:00
David Karlaš
ccf808281d
[Sdb] Fixed bug with STEP_DEPTH_MIN+STEP_SIZE_MIN which stopped on NONEMPTY_STACK sequence point in same method as it begin stepping
2015-01-06 15:12:16 -05:00
David Karlaš
1d195ac697
[Sdb] Removed exclusion of CEE_POP and CEE_NOP sequence point creation
2015-01-06 15:12:15 -05:00
David Karlaš
85c40f6784
[Sdb] Set filter on ss_req in ss_create because filter was never set condition "if ((ss_req->filter & STEP_FILTER_STATIC_CTOR) &&" in process_single_step_inner was nerver true
2015-01-06 15:12:15 -05:00
Zoltan Varga
a5c3f535cc
[sdb] Fix single stepping problems caused by missing seq point info in .mdb files. When stepping in, we have to put a single stepping breakpoint into the parent method, otherwise a missing seq point could cause the debugger to continue until it hits a method entry seq point.
2015-01-06 15:12:15 -05:00
Zoltan Varga
04753f184f
[sdb] Avoid putting implicit seq points at nops followed by a sym seq point.
2015-01-06 15:12:15 -05:00
Zoltan Varga
3ce94182e2
[sdb] Put seq points at nop's following calls as well.
2015-01-06 15:12:14 -05:00
Zoltan Varga
cd4cbc4c70
[sdb] Emit an implicit sequence point after every call and newobj instruction.
2015-01-06 15:12:14 -05:00
Zoltan Varga
6b43e2d103
[sdb] Avoid using implicit sequence points for methods without debug info in images which have debug info, like auto generated property accessors.
2015-01-06 15:12:14 -05:00
Rodrigo Kumpera
5229466676
[tests] Dump stdout/stderr on test failure.
2015-01-06 15:06:03 -05:00
Marek Safar
157083d1a5
[mcs] Additional fix for naming of nested types in attributes. Second fix of #24172
2015-01-06 19:22:51 +01:00
Rodrigo Kumpera
ab0be9bbee
[networking] mono_socket_address_init should set len to the size of sockaddr_* and not *_addr.
2015-01-06 13:12:08 -05:00
Zoltan Varga
a9a87caa20
[runtime] Fix a crash in FieldInfo.GetRawConstantValue () if a dynamic field doesn't have a default value, but has the HasDefault flag set.
2015-01-06 12:59:30 -05:00
Zoltan Varga
96b25f0d82
[jit] Add a test for #25487 .
2015-01-06 12:22:01 -05:00
Zoltan Varga
3a74470db6
Merge pull request #1493 from BrzVlad/vtune-integration2
...
Vtune integration
2015-01-06 04:00:09 -05:00
Rodrigo Kumpera
36128150d1
[io-layer] Remove some deadcode from the sockets code.
...
That function is no longer needed since nothing calls it.
This was effective dead code for ages as it would only be used by targets
with no ipv6. So, unless you're using Debian Potato, nothing to see here.
2015-01-05 18:50:43 -05:00
Rodrigo Kumpera
c87236f052
[sdb] Move sdb to use the new portable networking APIS.
...
This simplifies a lot of the code in some cases and enables some ports
to have access to previously disabled functionality (passive inferior).
2015-01-05 18:48:41 -05:00
Rodrigo Kumpera
98df6c7728
[runtime] Use the new network abstraction in the sockets code.
...
By using a single networking abstraction for name resolution we no longer
need to have two code paths, one for struct hostent and one for struct addrinfo. Good riddance.
More specifically.
We now use functions to fetch protocol numbers and not rely on inline ifdefs.
We use the single abstraction over name resolution, which allows us to have a single code
path to convert the native structure into a managed one.
Finally, we moved the polyfill logic for missing functionality to a separate file to make
things easier.
2015-01-05 18:40:34 -05:00
Rodrigo Kumpera
ab59edf8a5
[utils] Add a cross platform networking API for name discovery.
...
This meant to replace the ifdef hell that is part of the current socket code and to
modernize the sockets code on some targets.
For some reason we still relied on gethostbyname (and variants) in 2015.
Those functions were deprecated circa the KAME project - yes, I'm that old to remember it.
With that in mind, we now rely on getaddrinfo for all sane targets and drop straight to
the lowest common denominator when it's not available, which is gethostbyname/gethostbyname2.
This patch removes support for the glibc gethostbyname2_r extension. Which is not a practical
problem because all linux/android target we can realistically run on have getaddrinfo.
Sorry grampa, no Slackware 8.0 anymore.
This code has a simpler structure of whole file ifdefs as much as possible, which is
a blessing to OOT ports.
2015-01-05 18:29:02 -05:00
Rodrigo Kumpera
23b892dc3d
[configure] Add checks for some posix networking functions (getaddrinfo, gethostbyname2, gethostbyname, getprotobyname).
...
Some targets lack different combinations of those functions so we got to check them all.
2015-01-05 18:21:48 -05:00
Vlad Brezae
97c01a0adb
[profiler] Report code buffers to vtune.
2015-01-05 14:19:52 -08:00
Vlad Brezae
92128dfd4e
[profiler] Include vtune support for jitted methods in the build system.
...
In order to track emitted code with vtune you need to :
* pass --enable-vtune=yes to autogen.sh
* have in the LD_LIBRARY_PATH the path to the profiler libraries (ex $(installation_folder)/lib)
* pass argument --profiler=vtune to mono
2015-01-05 14:19:50 -08:00
Zoltan Varga
1b9729dbf6
[arm64] Mark the 'tailcall' opcode as a call. Fixes #25646 .
2015-01-05 15:22:16 -05:00
Alexander Köplinger
04170bbc67
Add build badge for debian-ppc64el to README.md
2015-01-05 19:20:04 +01:00
Marek Safar
81bd20edbd
Fixes build
2015-01-05 19:13:16 +01:00
Marek Safar
a9dbf2f152
[system.net.http] Use HttpWebRequest without additional buffering. Fixes #25213
2015-01-05 18:02:03 +01:00
Zoltan Varga
27fd291b19
[aot] Avoid returning different names for the same method in get_debug_sym () if llvm fails for a method. Fixes #25107 .
2015-01-05 11:40:52 -05:00
Alexander Köplinger
4dce3c27d9
[System.Net.Http] Fix CancelRequestViaProxy() test that intermittently fails on Jenkins
...
Seems that on Jenkins, the request to the (non-existing) IP address used in the test returns before the 1s timeout,
causing the test to fail because the cancellation didn't fire.
Lowering the timeout to 1 millisecond should fix this.
I also verified that the test still correctly fails when the commit that fixed the original issue is reverted.
2015-01-05 16:41:30 +01:00
Marcos Henrich
6719c94da5
[runtime] Improved test_op_il_seq_point.sh
...
test_op_il_seq_point.sh now compares methods generated native code.
2015-01-05 14:56:18 +00:00
Zoltan Varga
56e0f4518f
Merge pull request #1492 from akoeplinger/fix-eglib-remap-test
...
Add g_getdtablesize to list of acceptable g_* symbols in mono, for test-eglib-remap
2015-01-05 08:06:58 -05:00
Marek Safar
cd3707a51f
[system] Fixes HttpWebRequest::AllowReadStreamBuffering
2015-01-05 12:48:29 +01:00
Zoltan Varga
63a167dbcb
Merge pull request #1491 from akoeplinger/fix-async_read
...
Fix unreliable async_read.exe test
2015-01-04 23:24:51 -05:00
Alexander Köplinger
0e298082d7
[System.Numerics] Ported code from MS referencesource
2015-01-04 11:26:42 +01:00
Zoltan Varga
7ab68ad32f
[aot] Get rid of the code offsets code since direct method addresses are used on all supported platforms.
2015-01-04 04:43:06 -05:00
Zoltan Varga
3e0c70415e
[aot] Avoid creating gsharedvt synchronized wrappers if gsharedvt is not enabled.
2015-01-04 04:19:39 -05:00
Zoltan Varga
b73e4a71a0
[aot] Use direct method addresses on x86/amd64.
2015-01-04 04:13:45 -05:00
Zoltan Varga
1f2fe37733
[aot] Refactor the MONO_AOT_FILE_FLAG_DIRECT_METHOD_ADDRESSES code a bit.
2015-01-04 04:11:45 -05:00
Zoltan Varga
25abc112ea
[aot] Split the unbox_trampolines table into two to separate the indexes and the method addresses/offsets.
2015-01-04 04:03:52 -05:00
Zoltan Varga
e8156a0c8c
[aot] Use nops as alignment padding on amd64 instead of zeros.
2015-01-04 03:07:47 -05:00
Alexander Köplinger
dd8d450575
Add g_getdtablesize to list of acceptable g_* symbols in mono, for test-eglib-remap
...
The method was added in cd9f3b5859 and caused the test to fail.
2015-01-04 08:59:35 +01:00
Alexander Köplinger
219d56df76
Fix unreliable async_read.exe test
2015-01-04 05:51:18 +01:00
Zoltan Varga
b7c3485cda
[runtime] Use the proper domain in mono_thread_destroy_domain_tls (). Fixes #25629 .
2015-01-03 13:36:02 -05:00
Zoltan Varga
a0395d390a
[jit] Disable the seq point tests for now, they seem to fail because of stdout buffering problems on osx.
2015-01-03 13:32:43 -05:00
Zoltan Varga
2e90c80f54
[runtime] Fix the LOCK_TRACER build.
2015-01-03 10:03:40 -05:00
Miguel de Icaza
a080a7d8a9
[Windows.Forms] DataGridViewTextBoxCell: do not use a shared editing control
...
This fixes the case of the System.ObjectDisposedException being thrown
when editing a text cell in a DataGridView control a second time.
The problem is that the static control would be disposed by the code in
DataGridView's EditingControlInternal, but this instance was reused over
and over.
Instead, we now createa new editing control every time that the TextBoxCell
is created.
The investigation for this bug took place here:
https://bugzilla.xamarin.com/show_bug.cgi?id=9653
Fixes also:
https://bugzilla.xamarin.com/show_bug.cgi?id=22297
2015-01-03 12:42:32 -02:00
Zoltan Varga
43aa9be05d
[jit] Fix some IL_SEQ_POINT filtering issues on x86.
2015-01-03 07:13:09 -05:00
Zoltan Varga
9514523876
[runtime] Implement FieldInfo.GetRawConstantValue () for dynamic types. Fixes #25690 .
2015-01-03 06:48:45 -05:00
Zoltan Varga
2d4209742d
[sdb] Fix the previous change by setting SingleStepReq.start_method when the request is created, not when single stepping is started, since the latter can happen multiple times for a single step request.
2015-01-03 06:01:22 -05:00
Zoltan Varga
1139f71dc2
[sdb] Avoid stepping out of the current method if it is a cctor if StepFilter.StaticCtor is used. Fixes #14277 .
2015-01-03 05:38:19 -05:00
Zoltan Varga
9d64590968
Merge pull request #1473 from esdrubal/sq
...
[runtime] Optimizations fixes for OP_IL_SEQ_POINT compatibility.
2015-01-03 04:40:22 -05:00
Zoltan Varga
9e03c10d8f
[jit] Fix the returning of vtypes of size less than 8 in registers by using the proper sized load instructions instead of always 8. Fixes #25631 .
2015-01-02 22:29:04 -05:00
Zoltan Varga
f9bcd25048
[pdb2mdb] Implement support for scopes. Fixes #25357 .
2015-01-02 21:08:59 -05:00
Zoltan Varga
46b15a2a6b
[bcl] Fix crashes when FieldInfo.GetValue () is called on a pointer field with a null value. Fixes #25664 .
2015-01-02 18:36:02 -05:00
Zoltan Varga
102f316ae2
[runtime] Avoid reading past the end of a MonoGenericParam structure in some cases. Fixes #25679 .
2015-01-02 17:58:40 -05:00
Marek Safar
40810cf076
[mcs] More special case handling for explicit type names documentation. Fixes #25544
2015-01-02 23:16:33 +01:00
Marek Safar
4ab03af16a
[corlib] Fix Type::GetEnumName/IsEnumDefined to return same value as Enum::GetName/IsDefined
2015-01-02 18:54:48 +01:00
João Matos
a3510a115a
Fixed metadata offsets for ARM64 support.
2015-01-02 16:30:14 +00:00
Alexander Köplinger
e50764ba04
Fix CookieContainerTest to use expiration date in the future
...
It is 2015 now, so the cookie is already expired and the test fails otherwise.
2015-01-02 16:54:22 +01:00
Marek Safar
e8796320bf
[corlib] Allow bool/char to enum conversions
2015-01-02 15:19:51 +01:00
Alexander Köplinger
c04f7e75bf
Add missing quote to string added in 156ab8c5fc
...
This would fail to compile otherwise when the PCL constant is defined.
2014-12-31 12:42:05 +01:00
Alexander Köplinger
45a6bc149d
Merge pull request #1081 from rneatherway/bug17537
...
Allow CLR binaries to be passed to Process.Start
2014-12-31 12:38:41 +01:00
Marek Safar
fe37c2458d
Merge pull request #1482 from akoeplinger/fix-codetaskfactory-2
...
[Microsoft.Build.Tasks] Rework CodeTaskFactory to use CodeDom and implement parameter support
2014-12-30 22:24:48 +01:00
Alexander Köplinger
cdc8071806
[Microsoft.Build.Tasks] Rework CodeTaskFactory to use CodeDom and implement parameter support
...
Removed the old string-based code and use CodeDom APIs for everything.
Implemented parameter support by adding the necessary properties to the generated class.
Fixed bug where the task references weren't passed to the compiler.
This should now work with VB code as well (assuming the compiler is installed).
2014-12-28 13:08:20 +01:00
João Matos
be8962df9c
[runtime] Added support for builds with cross-compiled LLVM.
2014-12-24 19:49:12 +00:00
João Matos
1c3d900853
[runtime] Fixed mini-llvm.c build with MinGW.
...
MinGW-w64 lacks a definition for bzero which we use in the rest of this file, provide a simple implementation that should get the job done.
2014-12-24 19:49:11 +00:00
João Matos
28ce82dbed
Merge pull request #1479 from mfoliveira/ppc64el-build-errors-v2-mit
...
Fix build errors in mono-context.c on ppc64el
2014-12-24 13:31:03 -05:00
Mauricio Faria de Oliveira
55fa0a561a
Fix build errors in mono-context.c on ppc64el
...
Build error #1 :
libtool: compile: gcc <...> -c mono-context.c -fPIC -DPIC -o .libs/mono-context.o
mono-context.c: In function 'mono_sigctx_to_monoctx':
mono-context.c:435:68: error: 'MONO_SAVED_GREGS' undeclared (first use in this function)
memcpy (&mctx->regs, &UCONTEXT_REG_Rn(uc, 13), sizeof (mgreg_t) * MONO_SAVED_GREGS);
^
mono-context.c:435:68: note: each undeclared identifier is reported only once for each function it appears in
mono-context.c:436:70: error: 'MONO_SAVED_FREGS' undeclared (first use in this function)
memcpy (&mctx->fregs, &UCONTEXT_REG_FPRn(uc, 14), sizeof (double) * MONO_SAVED_FREGS);
^
The MONO_SAVED_GREGS and MONO_SAVED_FREGS macros are defined in mini-ppc.h.
The problem happens because commit 7e056cd346
moved code using them from exceptions-ppc.h (which includes mini-ppc.h) to
mono-context.c (which doesn't), where they're not #included.
So, include mini-ppc.h in mono-context.c (in the existing powerpc ifdef block).
Signed-off-by: Mauricio Faria de Oliveira <[email protected] >
Build error #2 :
Now, it turns out mini-ppc.h doesn't know MonoMethod, MonoMethodSignature, and MonoObject.
So, include object.h (MonoObject), which includes metadata.h (MonoMethod and MonoMethodSignature),
in mini-ppc.h.
libtool: compile: gcc <...> -c mono-context.c -fPIC -DPIC -o .libs/mono-context.o
In file included from mono-context.c:427:0:
../../mono/mini/mini-ppc.h:37:2: error: unknown type name 'MonoMethod'
MonoMethod *method;
^
../../mono/mini/mini-ppc.h:306:31: error: unknown type name 'MonoMethodSignature'
mono_ppc_tail_call_supported (MonoMethodSignature *caller_sig, MonoMethodSignature *callee_sig) MONO_INTERNAL;
^
../../mono/mini/mini-ppc.h:306:64: error: unknown type name 'MonoMethodSignature'
mono_ppc_tail_call_supported (MonoMethodSignature *caller_sig, MonoMethodSignature *callee_sig) MONO_INTERNAL;
^
../../mono/mini/mini-ppc.h:312:27: error: unknown type name 'MonoObject'
mono_ppc_throw_exception (MonoObject *exc, unsigned long eip, unsigned long esp, mgreg_t *int_regs, gdouble *fp_regs, gboolean rethrow) MONO_INTERNAL;
^
Signed-off-by: Mauricio Faria de Oliveira <[email protected] >
2014-12-24 15:52:07 -02:00
João Matos
052dd2c94e
Merge pull request #1478 from mono/revert-1475-ppc64el-build-errors
...
Revert "Fix build errors in mono-context.c on ppc64el"
2014-12-24 11:43:37 -05:00
João Matos
30a7ba9808
Revert "Fix build errors in mono-context.c on ppc64el"
2014-12-24 16:42:17 +00:00
Miguel de Icaza
649f91f71b
[System.IO.Compression.FileSystem] Fix infinite loop in ZipFile.Open(string,ZipArchiveMode)
2014-12-24 08:38:12 -02:00
João Matos
074873ab99
Merge pull request #1475 from mfoliveira/ppc64el-build-errors
...
Fix build errors in mono-context.c on ppc64el
2014-12-23 10:11:59 -05:00
Mauricio Faria de Oliveira
e36ef8bda6
Fix build errors in mono-context.c on ppc64el
...
Build error #1 :
libtool: compile: gcc <...> -c mono-context.c -fPIC -DPIC -o .libs/mono-context.o
mono-context.c: In function 'mono_sigctx_to_monoctx':
mono-context.c:435:68: error: 'MONO_SAVED_GREGS' undeclared (first use in this function)
memcpy (&mctx->regs, &UCONTEXT_REG_Rn(uc, 13), sizeof (mgreg_t) * MONO_SAVED_GREGS);
^
mono-context.c:435:68: note: each undeclared identifier is reported only once for each function it appears in
mono-context.c:436:70: error: 'MONO_SAVED_FREGS' undeclared (first use in this function)
memcpy (&mctx->fregs, &UCONTEXT_REG_FPRn(uc, 14), sizeof (double) * MONO_SAVED_FREGS);
^
The MONO_SAVED_GREGS and MONO_SAVED_FREGS macros are defined in mini-ppc.h.
The problem happens because commit 7e056cd346
moved code using them from exceptions-ppc.h (which includes mini-ppc.h) to
mono-context.c (which doesn't), where they're not #included.
So, include mini-ppc.h in mono-context.c (in the existing powerpc ifdef block).
Signed-off-by: Mauricio Faria de Oliveira <[email protected] >
Build error #2 :
Now, it turns out mini-ppc.h doesn't know MonoMethod, MonoMethodSignature, and MonoObject.
So, include object.h (MonoObject), which includes metadata.h (MonoMethod and MonoMethodSignature),
in mini-ppc.h.
libtool: compile: gcc <...> -c mono-context.c -fPIC -DPIC -o .libs/mono-context.o
In file included from mono-context.c:427:0:
../../mono/mini/mini-ppc.h:37:2: error: unknown type name 'MonoMethod'
MonoMethod *method;
^
../../mono/mini/mini-ppc.h:306:31: error: unknown type name 'MonoMethodSignature'
mono_ppc_tail_call_supported (MonoMethodSignature *caller_sig, MonoMethodSignature *callee_sig) MONO_INTERNAL;
^
../../mono/mini/mini-ppc.h:306:64: error: unknown type name 'MonoMethodSignature'
mono_ppc_tail_call_supported (MonoMethodSignature *caller_sig, MonoMethodSignature *callee_sig) MONO_INTERNAL;
^
../../mono/mini/mini-ppc.h:312:27: error: unknown type name 'MonoObject'
mono_ppc_throw_exception (MonoObject *exc, unsigned long eip, unsigned long esp, mgreg_t *int_regs, gdouble *fp_regs, gboolean rethrow) MONO_INTERNAL;
^
Signed-off-by: Mauricio Faria de Oliveira <[email protected] >
2014-12-23 12:48:20 -02:00
Alex Rønne Petersen
95f9770413
Merge pull request #1472 from Aetf/zh-CHS-patch-fix-25554
...
Add zh-CHS parent_lcid handling
2014-12-22 18:50:07 +01:00
Mark Probst
b4f51ba8e9
[sgen] Fix debug output for descriptor types.
2014-12-22 09:48:03 -08:00
Marcos Henrich
e52f1e1f5a
[runtime] mini-arm sequence point vars are only required to debug.
2014-12-22 10:51:40 +00:00
Marcos Henrich
44cbf38ddd
[runtime] Do not emit seq points for entry/exit offsets on release.
...
METHOD_ENTRY_IL_OFFSET and METHOD_EXIT_IL_OFFSET are only used by the debugger agent.
2014-12-22 10:09:27 +00:00
Marcos Henrich
5054bd6233
[runtime] mono_if_conversion no longer breaks with OP_IL_SEQ_POINT.
...
mono_if_conversion now skips OP_NOP and OP_IL_SEQ_POINT while navigating through the instructions.
2014-12-22 10:03:12 +00:00
Aetf
7595f73821
fix coding style
2014-12-22 17:41:23 +08:00
Aetf
80d2c0a74f
Add zh-CHS parent_lcid handling
2014-12-22 14:25:33 +08:00
João Matos
dabfddfd28
Merge pull request #1470 from cmp-/fix-mutex-trylock-windows
...
Fix mono_mutex_trylock on Windows
2014-12-20 10:55:26 -05:00
cmp
d34764ab2c
Fix mono_mutex_trylock on Windows
...
mono_mutex_trylock is expected to return nonzero on failure, while
TryEnterCriticalSection returns nonzero on success.
2014-12-20 16:23:16 +01:00
Marek Safar
0fda579501
Merge pull request #1465 from akoeplinger/msbuild-getdirnameoffileabove
...
[xbuild] Implement GetDirectoryNameOfFileAbove ()
2014-12-20 00:09:49 +01:00
Marcos Henrich
6dfca8e721
[runtime] Check that sequence points have no effect on JIT code.
...
Added a test to check that each method of the test assemblies are JITed the same way with and without the sequence points enabled.
2014-12-19 20:53:46 +00:00
Zoltan Varga
3b5a261a1e
Merge pull request #1375 from echampet/cleanup
...
TARGET_J2EE cleanup.
2014-12-19 14:59:51 -05:00
Miguel de Icaza
156ab8c5fc
[Mono.DataConverter] Make it easier to use in PCL libraries
2014-12-19 14:55:25 -05:00
Marek Safar
da7bfbe539
Merge pull request #1469 from akoeplinger/msbuild-missing-api
...
[xbuild] Add missing property 'StandardOutputImportance' to ToolTask
2014-12-19 16:15:05 +01:00
Alexander Köplinger
a2f1dfbfcb
Respond to code review feedback
2014-12-19 03:51:58 +01:00
Alexander Köplinger
b4aa35a571
Respond to code review feedback
2014-12-19 03:45:25 +01:00
Ludovic Henry
22b3945b66
[runtime] Add support to trace generics
2014-12-18 15:47:43 -05:00
Ludovic Henry
4f3b70d511
[runtime] Fix #24605 : "counters not enabled" message with embeders
2014-12-18 15:47:42 -05:00
Alexander Köplinger
ece634029e
[xbuild] Add missing property 'StandardOutputImportance' to ToolTask
...
It's a stub and is currently not used by xbuild.
2014-12-18 19:58:51 +01:00
Alexander Köplinger
b52e2e25f6
[xbuild] Implement GetDirectoryNameOfFileAbove ()
...
The method looks for the given file starting at the given path and traverses
the directory tree up until the file is found or root is reached.
2014-12-18 14:58:50 +01:00
Marcos Henrich
58f1c53708
[runtime] mono_local_deadce no longer breaks with OP_IL_SEQ_POINT.
...
Replaced ins->prev usages with mono_inst_prev (ins, FILTER_NOP | FILTER_IL_SEQ_POINT).
2014-12-18 11:04:36 +00:00
Marcos Henrich
702061aed0
[runtime] Updated amd64 with better OP_IL_SEQ_POINT handling.
2014-12-18 10:53:07 +00:00
Marcos Henrich
f982e98f03
[runtime] OP_IL_SEQ_POINT no longer breaks mono_local_cprop
...
mono_local_cprop now uses mono_inst_next (ins, FILTER_IL_SEQ_POINT) which skips OP_IL_SEQ_POINT.
2014-12-18 10:32:36 +00:00
Marcos Henrich
7e6965d398
[runtime] mono_optimize_branches no longer breaks with OP_IL_SEQ_POINT.
...
bbn->code was replaced with mono_bb_first_inst (bbn, FILTER_IL_SEQ_POINT).
2014-12-18 09:00:01 +00:00
Marcos Henrich
77ee6e0e08
[runtime] mono_peephole_ins last_ins now skips OP_IL_SEQ_POINT.
2014-12-18 08:26:30 +00:00
Marcos Henrich
bfb5185aab
[runtime] Added helper methods to iterate MonoInst with filters.
...
Added methods mono_inst_next, mono_inst_prev, mono_bb_first_inst, mono_bb_last_inst
The added methods do respectively the same as ins->next, ins->prev, bb->code, bb->last_ins but skip the instruction until it matches the specified filter.
2014-12-18 08:15:53 +00:00
Alexander Köplinger
56ea776405
[xbuild] Only execute PCL target "ImplicitlyExpandTargetFramework" when corresponding property is true
...
This aligns xbuild with the MS.NET behavior.
2014-12-18 05:59:46 +01:00
Marcos Henrich
d4a2bab840
Merge pull request #1462 from ExonyLimited/fix-25442
...
Performance fix for TimeZoneInfo.GetApplicableRule(), addresses #25442
2014-12-17 07:28:17 +00:00
Craig Minihan
f0f976b985
Performance fix for TimeZoneInfo.GetApplicableRule(), addresses #25442
...
* Main use case - JSON.NET serialization of CLR objects containing DateTime fields, GetUtcOffset()=>GetApplicableRule() are the highest Mono methods in the profiler
* The property DateTime.Date access in the foreach is very expensive, this has been moved outside the foreach
* Performance for DateTime.Now passed as a parameter is 10x better than before
* This is the simplest possible change to yield an improvement, it would be better to replace the O(N) loop logic with a binary search - this yields a further 2-3x performance improvement, when master is building I may submit later
2014-12-16 17:19:36 -08:00
Marek Safar
bb3fe582d5
[build] Fix bootstrap profile dependencies lib location
2014-12-17 00:09:01 +01:00
Mark Probst
4266d3bc98
[sgen] Never inline sgen_par_object_get_size().
...
This makes at least graph4 a lot faster.
2014-12-16 13:19:16 -08:00
Marek Habersack
d8092c84a9
Bump the referencesource submodule
...
The new referenced commit in the submodule changes the macro used in the
mobile profile to disable CAS from MOBILE to DISABLE_CAS_USE
2014-12-16 21:50:11 +01:00
Marcos Henrich
67514a19d5
[runtime] remove_block_if_useless now ignores OP_IL_SEQ_POINT.
2014-12-16 20:28:27 +00:00
Marcos Henrich
2694840702
[runtime] mini-amd64 seq_point_info_var is only required to debug.
2014-12-16 20:28:27 +00:00
Marcos Henrich
ab392debf4
[runtime] Added gen-compact-seq-points option to MONO_DEBUG.
...
gen-compact-seq-points can be used to enable the generation of the sequence points data required to map native offsets to IL offsets.
2014-12-16 20:28:27 +00:00
João Matos
c021673939
Merge pull request #1336 from esdrubal/datatablereadxmlschema
...
DataTabe.ReadXmlSchema now handles non Schema base element.
2014-12-16 14:28:01 -05:00
João Matos
5742335f66
Merge pull request #1349 from martinjt/MachineKeyProtect
...
Implement MachineKey.Protect and MachineKey.Unprotect
2014-12-16 14:26:08 -05:00
João Matos
8597a88b69
Merge pull request #1459 from akoeplinger/fix-website-links
...
Updated the Mono website links in the man pages
2014-12-16 14:19:03 -05:00
João Matos
b5ddc30ebc
[System.IO.Compression] Fixed DeflateStream native error when handling empty input.
...
Bug: https://bugzilla.xamarin.com/show_bug.cgi?id=22346
2014-12-16 18:56:24 +00:00
Marek Safar
6c8b4c1e90
[buid] Fix bootstrap issue on cygwin
2014-12-16 16:00:14 +01:00
Alexander Köplinger
0c8492cbc6
Updated the Mono website links in the man pages
...
Even though the old links still work, we can save everyone an unnecessary redirect by using the new links.
2014-12-16 15:05:05 +01:00
Marek Habersack
c2dce69079
Fix command stream encoding for FTP requests.
...
Whenever a connection to an FTP server is established, FtpWebRequest
sends an option command to the server to enable UTF8 encoding for the
transfer. So far we've failed to check the request status of that
command and assumed that UTF8 is enabled but *also* failed to actually
use the encoding when sending commands (we had the ASCII encoding
hard-coded). This resulted in failed requests whenever a command named a
file or path which included non-ASCII characters. This patch does two
things:
* checks the status of the UTF8 enabling command and uses UTF8 encoding
only if it succeeded. Otherwise Encoding.Default is used.
* uses the encoding detected above for the command stream.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=24611
[Tests will follow at a later date]
2014-12-15 23:34:32 +01:00
Neale Ferguson
e78a3c6857
Add per thread profiling support to s390x
2014-12-15 14:13:00 -05:00
Jo Shields
f5e62d4d2f
Merge pull request #1456 from directhex/fix_Microsoft.Build.Execution.BuildManagerTest.BuildCommonResolveAssemblyReferences
...
Fix Microsoft.Build.Execution.BuildManagerTest.BuildCommonResolveAssemblyReferences
2014-12-15 18:38:53 +00:00
João Matos
e723d4ade5
[System] Relaxed Ping test to work under Linux.
...
So in Linux the PingTimeOut test was returning TtlExpired and failing the assertion. Since I'm not exactly sure how ping behaves under all platforms, relax the test to only make sure it doesn't succeed.
2014-12-15 17:06:27 +00:00
Jo Shields
70d3c7a23a
Use net_4_5 libraries for xbuild tests, regardless of target.
...
This works around failures caused by tests asking for other frameworks (like 4.0) on Mono 4.0, which only has 4.5
2014-12-15 16:59:48 +00:00
Jo Shields
d1a5f1d53a
Move XBUILD_FRAMEWORK_FOLDERS_PATH definition somewhere useful & export
...
This variable isn't being passed to the child xbuild process during testing, making it sorta useless.
2014-12-15 16:58:14 +00:00
Alexis Christoforides
e79dc945a5
[FileSystemWatcher] Properly handle multicast delegates.
...
Reverted the async delegate firing which is how Caching et al. expect FSW events; and properly handle the multicast case.
Also fixing a typo/regression in @2f1a136583c90cae805441e63b94bc4f277bb953
2014-12-15 11:05:19 -05:00
Marcos Henrich
25bcda516b
Bump referencesource
2014-12-15 15:54:46 +00:00
Jo Shields
9bd865ecc3
Force MSBuildExtensionsPath to point to in-tree xbuild data
...
As-is, on non-Mac, Xbuild looks for MSBuildExtensionsPath in the folder specified by --prefix, i.e. /usr/local/mono/xbuild by default (which may not & should not exist).
2014-12-15 14:32:18 +00:00
Jo Shields
5b591e1098
Revert "Use ";" not Empty as bad TargetFrameworkDirectory value"
...
This reverts commit 7b58afa1c8 .
Apparently this bad value passes on mac/wrench. So it's not a good failure condition for the test.
2014-12-15 13:37:19 +00:00
Jo Shields
7b58afa1c8
Use ";" not Empty as bad TargetFrameworkDirectory value
...
After manager.Build is called, a "null" empty for TargetFrameworkDirectory is
a string containing only ";" - a "good" value is the target framework
directory with a trailing ";". By testing for string.Empty, we don't actually
test whether the value has been correctly populated (causing all subsequent
failures).
2014-12-15 12:07:29 +00:00
Miguel de Icaza
d16a01fe98
[System.Runtime.Serialization] Further baby steps
2014-12-14 00:02:45 -05:00
Miguel de Icaza
8f32e290ad
[System.Runtime.Serialization] Dip toes into using ReferenceSource
2014-12-13 23:50:34 -05:00
Miguel de Icaza
db6468e61e
[Console/TerminfoDriver] Look in the TERMINFO directory if set
2014-12-13 23:49:51 -05:00
Miguel de Icaza
448f60e7f0
[System/SR] Brings some strings from .NET Core
...
Used the following script to do this:
var d = XDocument.Load ("Strings.resx");
foreach (var j in d.XPathSelectElements ("/root/data")){ var v = j.XPathSelectElement ("value"); Console.WriteLine ("\tpublic const string {0}=\"{1}\";", j.Attribute ("name").Value, v.Value); }
2014-12-13 19:58:06 -05:00
Miguel de Icaza
fda6bf1a33
[Console] Updated to terminfo renderer.
...
This brings .NET's parameterized terminfo renderer, various fixes and
semantic changes.
The existing implementation of the Console did not have a proper an
implementation of terminfo's parameterized sequences. Instead of
this, a collection of hacks existed to hardcode both light colors and
cursor position. These are now gone, since the parameterized strings
do contain the correct values for this.
The search path for terminfo now picks the most modern location for
terminfo. With the old paths in place.
The lookup for terminfo databases only supported the lookup based on
the first character of a terminal, so for example, for xterm this was
$terminfo_dir/x/xterm, but OSX and maybe other systems now store the
files in $terminfo_dir/78/xterm (where 78 is the hex representation of
'x', the first letter of the terminal name).
The fallback is still in place for other Unix systems.
We no longer use the built-in terminfo databases as the first pick,
instead we try to load the system terminfo database before we use the
built-in versions.
Worth figuring out if we want to remove the two built-in ones (Linux
and xterm) as broken terminfo databases are no longer the norm in Unix
and just keep the ansi one as a database of last resort.
This means that the console actually now gets high colors on MacOS,
not just Linux.
This also fixes the issue with consoles with more than 256 colors. As
reported in bug 18315.
2014-12-13 19:37:39 -05:00
Marek Safar
8a061c8c8e
Merge pull request #1451 from akoeplinger/fix-winforms-test
...
[MWF] Fix PropertyGridTest.PropertyGrid_ArrayParentTest by returning the correct value of PropertyCategoryDefault
2014-12-13 10:01:38 +01:00
Marek Safar
06a22be0a2
Merge pull request #1452 from esdrubal/xmlnamespace
...
[System.Xml.Linq] xmlns prefixes are no longer generated in some cases.
2014-12-13 10:01:11 +01:00
Marcos Henrich
aad3c917e4
[System.Xml.Linq] xmlns prefixes are no longer generated in some cases.
...
- XNodeWrite.FillXmlns was adding a prefix to the attribute when no prefix was found (prefix==null)
- XNodeWrite.LookupPrefix now returns string.Empty prefix when the namespace is the same as the element.
A string.Empty prefix explicitly states that it has no prefix whereas null states that prefix was not defined.
When LookupPrefix returns null for a namespace it means that a prefix should be generated first for anything that uses the namespace.
That is what XmlSerializationWriter.GetQualifiedName does.
Fixes #24300
2014-12-12 19:50:15 +00:00
Marcos Henrich
2039c7d499
[System.Xml.Linq] Test XmlSerializer with custom namespace.
...
Covers #24300 .
2014-12-12 19:01:51 +00:00
Alexander Köplinger
bb100049e1
[MWF] Fix PropertyGridTest.PropertyGrid_ArrayParentTest by returning the correct value of PropertyCategoryDefault
...
The code in ComponentModel (https://github.com/mono/referencesource/blob/7dc4e513eafd3fb30d34111948ef14c981264463/System/compmod/system/componentmodel/CategoryAttribute.cs#L276 ) looks up the category name by string concatenation, which means it wasn't captured in our SR.cs.
We also can't add the correct value for PropertyCategoryDefault as a string constant to SR.cs since the value is retrieved via GetObject () and we currently just return the parameter name there.
A short-term workaround is to just special case PropertyCategoryDefault in GetObject ().
2014-12-12 02:39:02 +01:00
Vlad Brezae
49830fb910
Populate small id field for MonoInternalThread structure.
2014-12-10 12:22:42 -08:00
Etienne CHAMPETIER
a4134641d8
[cleanup] WebConfigurationManager: remove hasConfigErrors
...
it's not used since 2009 (6a261e04ad )
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2014-12-01 23:57:19 +01:00
Etienne CHAMPETIER
227b0d1b55
[cleanup] System.Web*: remove TARGET_J2EE
...
done using unifdef
git grep -l TARGET_J2EE | grep -v ChangeLog | xargs -n1 unifdef -m -UTARGET_J2EE
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2014-12-01 23:57:18 +01:00
Martin Thwaites
8302b5782d
Implement MachineKey.Protect and MachineKey.Unprotect
2014-11-03 21:52:18 +00:00
Marcos Henrich
48d05afa0e
DataTabe.ReadXmlSchema now handles non Schema base element. Fixes #22501 .
2014-10-13 16:15:23 -04:00
Marcos Henrich
9e5d94e72b
Test DataTable.ReadXmlSchema with non Schema base element. Covers #22501 .
2014-10-13 16:15:03 -04:00
Robin Neatherway
b50e4a8728
Allow CLR binaries to be passed to Process.Start
...
On *nix files are not executable by default where on Windows they
are. This causes problems if installing a NuGet package on *nix that
contains .exe files intended to be used by build tasks. On Windows the
build will invoke these without complaining whereas on *nix the build
will fail with "Native error: cannot find file specified".
On mono, the action that will be taken is to pass the path to the .exe
file to mono as a command-line argument. If this was done in a shell it
would succeed whether or not the .exe file has the executable bit set,
so it seems that this should also succeed within a program.
With thanks to @akoeplinger for help designing the test.
I release this under the MIT license.
2014-09-14 18:44:02 +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
Fritz Elfert
ce9db9db3f
Fixed Bug #21135 - Deadlock in WebConnectionStream
2014-07-11 19:20:11 +02: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