Compare commits

..
899 Commits
Author SHA1 Message Date
Aleksey Kliger (λgeek) 3a980691bc Merge pull request #3344 from alexanderkyte/propagate_mono_error_async
[runtime] Propagate async MonoError to AsyncResult
2016-08-02 11:31:44 -04:00
Marek Safar ff24de4596 [bcl] Don't build not installed mobile assemblies 2016-08-02 10:23:04 +02:00
Aleksey Kliger (λgeek) 0f111ae86f Merge pull request #3340 from lambdageek/dev/invoke-unhandled-exception-hook
[runtime] Move mono_invoke_unhandled_exception_hook to metadata
2016-08-01 19:22:43 -04:00
Alexander Kyte dcf4d62881 Merge pull request #3345 from alexanderkyte/fix_mini_aot_flags
[runtime] Pass invariant AOT options to mini aot tests
2016-08-01 17:17:07 -04:00
Alexander Kyte c69ede50f2 Merge pull request #3269 from alexanderkyte/silence_zero_len
[runtime] Disable noisy warning
2016-08-01 16:41:45 -04:00
Aleksey Kliger e5dfc41368 [test] Fix sporadic Mono.Debugger.Soft ThreadpoolIOsinglestep failure.
ReadAsync size arg should not be greater than array.Length - offset.
2016-08-01 16:13:00 -04:00
Zoltan Varga fcf5c93cc4 Fix the build. 2016-08-01 15:36:58 -04:00
Alexander Kyte c337b093ef [runtime] Propagate async MonoError to AsyncResult 2016-08-01 15:26:44 -04:00
Zoltan Varga dd6eeb391e [runtime] Implement WaitForPendingFinalizers used cond vars instead of io-layer events. (#3315) 2016-08-01 15:22:57 -04:00
Aleksey Kliger 0896614b5c [threads] Call mono_invoke_unhandled_exception hook in mono_thread_internal_unhandled_exception.
When a GC or threadpool thread dies due to an unhandled exception,
invoke the unhandled exception hook to exit, instead of exiting directly.
2016-08-01 15:15:09 -04:00
Alexander Kyte 2fdca79292 [runtime] Pass invariant AOT options to mini aot tests 2016-08-01 15:09:31 -04:00
Alexander Köplinger 34bc55c89a Bump to include the F# bockbuild patch 2016-08-01 20:25:16 +02:00
Zoltan Varga 975291ac17 [arm] Use soft breakpoints on watchos. 2016-08-01 13:11:30 -04:00
Ludovic Henry 182be7ac05 Merge pull request #3342 from ludovic-henry/gc-domain-finalizer-sem
[gc] Replace domain finalizer request cond+mutex by a semaphore
2016-08-01 18:17:09 +02:00
Aleksey Kliger (λgeek) 8f8fc0efef Merge pull request #3335 from lambdageek/dev/system-reflection-assembly
[reflection] Move AssemblyName to managed
2016-08-01 10:41:37 -04:00
Aleksey Kliger b32a5ba469 [llvm] In default_mono_llvm_unhandled_exception call mono_invoke_unhandled_exception_hook to exit
instead of exiting directly.
2016-08-01 10:37:38 -04:00
Marek Safar eaf2ceb532 [Facades] Emit symbol files for lib like facades 2016-08-01 13:16:38 +02:00
Alexander Köplinger 11626cfe38 [man] Fix typo in environment variable name
The section was added in 410a200ecd but with the wrong name.
2016-08-01 12:13:31 +02:00
Ludovic Henry 2b53b83f5a [gc] Fix timeout in mono_domain_finalize 2016-08-01 11:14:06 +02:00
Ludovic Henry d55971068f [gc] Ensure we clean the DomainFinalizationReq 2016-08-01 08:43:57 +02:00
Ludovic Henry 99816b850b [gc] Replace domain finalizer request cond+mutex by a semaphore
This is possible because we only wait for it at one place, and only post it at one other place.
2016-07-30 11:58:41 +02:00
Zoltan Varga c1e65c7387 [arm] Implement support soft breakpoints + AOT. 2016-07-30 05:12:46 +00:00
Zoltan Varga 8c8e1f6dfe [sdb] Fix an aot assert. 2016-07-30 05:12:19 +00:00
Rodrigo Kumpera ff86e021c0 [corlib] Bring AssemblyName(string) to the happy C# world. 2016-07-29 16:18:15 -04:00
Rodrigo Kumpera 277aab6863 [corlib] Move Assembly::GetName to be implemented in managed.
This involves a few steps.

First define MonoAssemblyName in RuntimeStructs.cs

Then add some helped to decode blob arrays and handle hex digits.

Finally, move the actual implementation from native to managed.
2016-07-29 16:18:15 -04:00
Aleksey Kliger (λgeek) 35671f29a7 Merge pull request #3320 from lambdageek/dev/reflection-in-managed
[reflection] Marshal name strings from managed
2016-07-29 16:05:32 -04:00
Aleksey Kliger 00bf8defb4 [runtime] Move mono_invoke_unhandled_exception_hook to metadata
And call it consistently in thread start functions when the managed
thread start function returns with an exception.

(If coop is not enabled, the exception handler unwinds the thread and
when there's no handler invokes the unhandled exception hook via
jit_tls->abort_func, so this is just for the coop case.)

Fixes mono/tests/unhandled-exception-1.cs for coop and bitcode.
2016-07-29 12:55:35 -04:00
Aleksey Kliger c5d8e417e2 [reflection] Marshal name arg of RuntimeType.GetNestedTypes in managed code
Also do the name unmangling on the managed side.
2016-07-29 10:46:29 -04:00
Aleksey Kliger 21a9134c00 [reflection] RuntimeType.GetNestedTypes in managed 2016-07-29 10:46:29 -04:00
Aleksey Kliger e7da7e65db [reflection] Marshal name arg to some RuntimeType search methods
Marshal the name argument of Get{Methods,Properties}ByName,Get{Fields,Events}
in managed code.

Cleanup the corresponding icalls.
2016-07-29 10:46:29 -04:00
Aleksey Kliger 6fcec5e3cd [corlib] Add Mono.SafeStringMarshal struct
Allows safe allocation of native utf8 char* strings from managed
strings.

using (var h = new SafeStringMarshal (str)) {
   /* use h.Value IntPtr */
} // g_free'd by h.Dispose ()
2016-07-29 10:24:13 -04:00
Marek Safar 6af085036b [mcs] Recursive interface declaration check is needed for interfaces only. Fixes #42198 2016-07-29 15:21:12 +02:00
Marek Safar 540f271539 [mcs] Do exactly matching expression check for anonymous methods with successfully inferred return type only. Fixes #42611 2016-07-29 15:21:12 +02:00
Ludovic Henry d0fef1f2b4 Revert "[runtime] Add documentation to mono-os-{mutex,cond,sem} + Move to .c file"
This reverts commit 9ba062e5a1.
2016-07-29 12:35:44 +02:00
Ludovic Henry 816b393cff [gc] mono_os_cond_timedwait returns -1 on timeout, not ETIMEDOUT 2016-07-29 00:07:41 +02:00
Ludovic Henry 9ba062e5a1 [runtime] Add documentation to mono-os-{mutex,cond,sem} + Move to .c file 2016-07-29 00:07:40 +02:00
Aleksey Kliger d5090f6c35 [reflection] Plug more leaks. 2016-07-28 16:29:09 -04:00
Marek Habersack 19449f5f64 Fix a cut'n'paste error 2016-07-28 19:24:25 +02:00
Rodrigo Kumpera f1eb362a77 Merge pull request #3338 from lambdageek/dev/plug-ptrarray-leak
[reflection] Don't leak GPtrArray internal array
2016-07-28 11:21:01 -04:00
Alex Rønne Petersen 981e5b9c22 Merge pull request #3334 from alexrp/arm-cpu-detect-fix
[arm] Also check the 'model name' line for the architecture version.
2016-07-28 17:08:26 +02:00
Aleksey Kliger 4e2b72e678 [corlib] change Mono.SafeGPtrArrayHandle to a struct
Don't GC allocate short-lived internal garbage.
2016-07-28 10:59:14 -04:00
Aleksey Kliger e49968b916 [reflection] Don't leak GPtrArray internal array
`g_ptr_array_free (..., FALSE)` was the wrong thing here.  We always
want TRUE in our use cases.
2016-07-28 10:53:06 -04:00
Marek Safar 19a99abf16 [mcs] Add codegen for compound assigment of complex expressions with concatenated string using await inside params arguments. Fixes #42224 2016-07-28 14:13:11 +02:00
Alex Rønne Petersen 21298d817d [arm] Make HAVE_ARMV{5,6,7} macros override hwcap detection.
This is necessary on weird devices where the hwcap code might fail to detect
the ARM version it's running on (usually caused by differences in /proc/cpuinfo
output).
2016-07-28 04:32:19 +02:00
Vlad Brezae 3fd4d31a18 Merge pull request #2961 from schani/fix-sgen-refactoring
SGen fixes and refactorings
2016-07-27 23:04:34 +03:00
Vlad Brezae 722f24df51 Merge pull request #3328 from BrzVlad/finalizer-thread-exited2
[sgen] Avoid popping the entire finalizer queues if finalizers are su…
2016-07-27 22:59:27 +03:00
Marek Safar 575c8c9c51 [System.Core] Add MonoTODOAttribute to workaround linker bug with IVT from mscorlib 2016-07-27 21:50:39 +02:00
Alex Rønne Petersen 6dea2d4e0d [arm] Also check the 'model name' line for the architecture version.
Some Android devices for some reason have a 'model name' line instead of a
'Processor' line. On such devices, we would fail to detect the architecture
version at all, and end up thinking that it's ARMv4 (even if the runtime
was compiled for ARMv7).
2016-07-27 18:17:40 +02:00
Marek Safar 3fab4bc111 [mcs] Detect constant switch statement fall-through. Fixes #42585 2016-07-27 11:40:49 +02:00
Marek Safar 0bcf586cda [Facades] Remove duplicate System.IO.Compression 2016-07-27 09:40:51 +02:00
Zoltan Varga 941573a764 [sdb] Explicitly encode in the JIT debug info whenever there is precise information about variable locations instead of checking whenever the method has seq points. Fixes #42750. 2016-07-26 20:32:37 -04:00
Vlad Brezae eb92161b45 [sgen] Avoid popping the entire finalizer queues if finalizers are suspended
When we shutdown we set suspend_finalizers flag in metadata so we no longer run any finalizers. After recent changes, we avoid traversing gc hashes for finalizer enqueuing when this flag is set. The counterpart, popping the queues empty (even without running the finalizers) can still take some time, especially since we lock for each entry. Exit early from this loop if we no longer need to run finalizers.

Achieve this by setting a new flag inside sgen, instead of passing the address of suspend_finalizers all the time to the sgen api.
2016-07-27 03:09:53 +03:00
Aleksey Kliger (λgeek) 6b8e96c44d Merge pull request #3199 from lambdageek/dev/proxy-setter
[remoting] Convert mono_store_remote_field_new_checked to managed code
2016-07-26 12:47:45 -04:00
Marek Safar 00e633549a [mcs] Report interpolated strings feature. Fixes #42410 2016-07-26 17:47:09 +02:00
Marek Safar 6dc559d43d Merge pull request #3330 from madewokherd/compactframework
Remap the Compact Framework PublicKeyToken for assemblies it ships.
2016-07-26 16:26:02 +02:00
Marek Safar 568eea52dd [System.Text.Encoding.CodePages] Small improvements 2016-07-26 16:13:30 +02:00
Marek Safar 79c78c1a14 [mono-api-info] Add contract-api option 2016-07-26 15:09:22 +02:00
Marek Safar e4051335bd [mono-api-html] Ignore more non breaking virtual changes when enabled 2016-07-26 15:09:22 +02:00
Marek Safar 91acac03a4 [bcl] Update some of .net apis 2016-07-26 15:09:22 +02:00
Ludovic Henry 6bbd1e393d [semaphore] Return error for mono_os_sem_timedwait 2016-07-26 14:03:00 +02:00
Ludovic Henry 01814d4a19 [semaphore] Make mono_os_semaphore_* functions return more meaningful values
By asserting on error, we ensure that we return from these functions only when successfull, or when it makes sense to return an error (for example, timedwait return -1 only on timeout or interrupt).
2016-07-26 14:02:17 +02:00
Ludovic Henry 98284703de [mutex] Make mono_os_mutex_* functions return more meaningful value
By asserting on error, we ensure that we return from these functions only when successfull, or when it makes sense to return an error (for example, timedwait return -1 only on timeout).
2016-07-26 14:02:17 +02:00
Alexander Köplinger 0a042da3ef Merge pull request #3327 from rolfbjarne/bug41745
[System*] Disable tests that require working networking stack on watchOS.
2016-07-26 13:30:51 +02:00
Ludovic Henry 2bd1dbd79b [threadpool-ms] Fix use-after-unloaded of domain
The following scenario might happen:
 - thread A: returns from tpdomain D1, then parks
 - thread B: returns from tpdomain D1, D1 is unloading so it's removed with `domain_remove`
 - thread A: unparks, calls `domain_get_next` with tpdomain D1
  - domain_get_next asserts as it can't find tpdomain D1 in the list of domains

To fix that, we simply set the previous_tpdomain to NULL when unparking.
2016-07-26 13:22:34 +02:00
Rolf Bjarne Kvinge 51de6e83eb [System*] Add category for tests that use API that require BSD sockets.
We don't have access to BSD sockets on watchOS, so that API
doesn't work.

With this category we'll be able to exclude these tests.
2016-07-26 13:20:51 +02:00
Alexander Köplinger c2151a9177 Merge pull request #3331 from lambdageek/dev/test-for-42625
[debugger-agent] Regression test for #42625
2016-07-26 10:56:27 +02:00
Alexander Köplinger 53c4a18a9f Merge pull request #3262 from lindenlab/add_continuations_test
Added Mono.Tasklets test
2016-07-26 10:49:19 +02:00
Alexander Kyte f9fe0e4a6e [runtime] Accomplish BITCODE build symbol sharing with only make (#3329) 2016-07-26 01:02:25 -04:00
Dolphin Hawkins 9ab4146a00 Added Mono.Tasklets test 2016-07-25 20:19:19 -07:00
Aleksey Kliger 083b5368f4 [debugger-agent] Regression test for #42625
Check that we can suspend I/O blocked threadpool workers in coop GC mode.
2016-07-25 19:01:00 -04:00
Alexander Köplinger 3bd3c27288 [ci] Don't cd in run-test-acceptance-tests.sh
The other scripts like TESTCMD rely on paths being based off of the repo root.
2016-07-26 00:44:18 +02:00
Alexander Köplinger 51fbf83f95 [ci] Fix typo in run-jenkins.sh 2016-07-25 23:45:19 +02:00
Vincent Povirk 1f9b59421b Remap the Compact Framework PublicKeyToken for assemblies it ships. 2016-07-25 16:17:50 -05:00
Alexander Kyte ae64b9c42c Merge pull request #3324 from alexanderkyte/threads_unhandled_exc
[runtime] Call unhandled exception handler explicitly to fix for bitcode
2016-07-25 16:32:29 -04:00
Alexander Köplinger 9fe0da70bb [acceptance-tests] Remove folders from Roslyn script that we now ship after 8f130a6e17 2016-07-25 22:31:05 +02:00
Alexander Köplinger 0e8eeec63b [ci] Move acceptance-tests script from Jenkins into the repo
Yay, less state on Jenkins!
2016-07-25 22:05:02 +02:00
Alexander Köplinger fcff8ec192 Bump Mono version to 4.7.0 2016-07-25 21:02:24 +02:00
Mark Probst c7ce43dd76 [sgen] Fix and simplify some debugging stuff. 2016-07-25 11:06:55 -07:00
Mark Probst 84810b29d3 [sgen] Document sgen-copy-object.h 2016-07-25 11:06:55 -07:00
Mark Probst 98ece1e8cf [sgen] Fix major collection time accounting.
This was from when we did a nursery collection as part of the
finishing collection pause.  Now that we don't do that anymore, we
underaccount major collection times.
2016-07-25 11:06:55 -07:00
Mark Probst 14bdaa017c [sgen] Only do fence when concurrent collection is running.
The store/store fence incurs quite a high cost, so we only want it to
run when absolutely necessary.  The most efficient way is to
separately compile nursery object operations for when the concurrent
collector is running, so there has to be no dynamic check.

In the future we might want to try batching updates of references to
moved objects so we have to do only one fence per batch.
2016-07-25 11:06:55 -07:00
Mark Probst adc5b2b575 [sgen] Missing store/store fence. 2016-07-25 11:06:55 -07:00
Mark Probst 77c8f52a77 [sgen] Fix whole heap check. 2016-07-25 11:06:55 -07:00
Mark Probst 72d6789396 [sgen] Make unnecessary stack check into assertion. 2016-07-25 11:06:55 -07:00
Mark Probst 39939b44b2 [sgen] Don't crash in binary protocol flush when forcing. 2016-07-25 11:06:55 -07:00
Mark Probst b82d861215 [sgen] Flush binary protocol buffers when missing remsets.
The missing remset check uses the binary protocol to log missing
remsets it found.  Debugging is easier if we don't have to manually
flush the binary protocol.
2016-07-25 11:06:55 -07:00
Mark Probst 2e7cd1c658 [sgen] Remove stupid typedef. 2016-07-25 11:06:55 -07:00
Mark Probst 3898293822 [sgen] Get rid of the global gray queue. 2016-07-25 11:06:55 -07:00
Mark Probst d6138d6bad [sgen] Pass GC thread gray queue into jobs. 2016-07-25 11:06:55 -07:00
Mark Probst 2971171458 [sgen] Don't expose the worker's gray queue. 2016-07-25 10:52:59 -07:00
Mark Probst cec4077b43 [sgen] Give remset consistency check a proper name, and do it more often. 2016-07-25 10:52:59 -07:00
Mark Probst eef3e9acc4 [sgen] Don't be too fussy about missing remsets to pinned objects.
If a thread is interrupted after a reference write but before the corresponding
write barrier, the remset will be missing, but the object will be pinned.
2016-07-25 10:52:59 -07:00
Alexander Kyte 5d299ed3ee [runtime] Call unhandled exception handler explicitly to fix for bitcode 2016-07-25 12:12:34 -04:00
Alexander Kyte ce8e905118 Merge pull request #3325 from alexanderkyte/fix_bitcode_mini
[mobile_static] Pass correct MONO_LLVMONLY for bitcode script
2016-07-25 12:02:07 -04:00
Alexander Köplinger 398320339c [bcl] Implement System.Text.Encoding.CodePages.CodepagesEncodingProvider in the facade 2016-07-25 14:30:47 +02:00
Alexander Köplinger 52cb65fec0 Fix Windows build broken in 2c061c1885 2016-07-25 12:32:13 +02:00
Zoltan Varga 2c061c1885 [runtime] Implement the GC domain finalization event using conditional variables instead of an io-layer event. (#3316) 2016-07-24 17:19:27 -04:00
Alexander Kyte f8688a302e [mobile_static] Pass correct MONO_LLVMONLY for bitcode 2016-07-24 02:46:23 -04:00
Zoltan Varga f5ba317644 [runtime] Abort instead of stopping background threads on shutdown. Hopefully fixes #41644. (#3323) 2016-07-22 18:25:59 -04:00
Martin Baulig 02b577b436 [System]: Fix SystemCertificateValidator.EvaluateSystem() on Android. Fixes #41290.
After the latest code changes, we may land here with `errors == SslPolicyErrors.None`,
so we need to make sure that we actually set it to `RemoteCertificateChainErrors` if
the system validator returns an error.

(cherry picked from commit b4304354b1)
2016-07-22 14:40:15 -04:00
Alexander Köplinger dc4aa9d35e Merge pull request #3318 from akoeplinger/cleaner-mini-nunit
[mini] Explicitly turn nunit output on or off based on variable
2016-07-22 14:20:45 +02:00
Alexander Köplinger f8b1e5c9cd Merge pull request #3319 from akoeplinger/fix-mono.csharp
[Mono.CSharp] Fix test .sources to include ASTVisitorTest.cs
2016-07-22 01:46:28 +02:00
João Matos 324c1d3d10 Merge pull request #3322 from grendello/offsets-tool-xa
Modify the offsets dumper to work with Xamarin.Android
2016-07-22 00:44:38 +01:00
Vlad Brezae 200f8b2227 [sgen] Fix build 2016-07-22 02:16:36 +03:00
Marek Habersack 2e5644386a Modify the offsets dumper to work with Xamarin.Android
This is a handful of quick and dirty changes to make the utility
work with Xamarin.Android which uses a different directory layout
than monodroid.
2016-07-22 00:35:17 +02:00
Rodrigo Kumpera 223c12a73c Merge pull request #3289 from BrzVlad/fix-critical-finalizer
[sgen] Fix critical/normal finalization order at domain unload
2016-07-21 15:35:06 -07:00
Rodrigo Kumpera 3fc81be928 Merge pull request #3321 from BrzVlad/fix-block-state-membar
[sgen] Add missing memory barrier
2016-07-21 15:34:41 -07:00
Rodrigo Kumpera 94f505825b Merge pull request #3290 from BrzVlad/fix-finalizer-tests
[tests] Fix finalizer tests
2016-07-21 15:32:18 -07:00
Alexander Köplinger cf24de837e [mini] Explicitly turn nunit output on or off based on variable
Alternative implementation to 8f092147bb.

In CI we explicitly pass EMIT_NUNIT=1 and check-seq-points to generate the nunit xml and run the tests,
locally those are omitted. This avoids needing to sniff for Jenkins/Wrench variables.

Same for a9eec21d62, but we already pass V=1 in Jenkins.
2016-07-22 00:20:14 +02:00
Vlad Brezae 1979f8b295 [sgen] Add missing memory barrier
When doing the first phase of sweeping we tag the block pointer within the block list with a CAS, after which we own the block and we are free to update the state and do sweep computations on the block. When we finish this phase we directly write the untagged block pointer back in the list, making the block available to inspect by other threads. We need a write barrier before writting the untagged pointer back because, when another thread might acquire the block, it might encounter an invalid block state.
2016-07-22 01:14:53 +03:00
Zoltan Varga a9eec21d62 [runtime] Decrease the verbosity of the runtime test runner when not running under CI. 2016-07-21 18:12:15 -04:00
Alexander Köplinger b973ccf824 [Mono.CSharp] Fix test .sources to include ASTVisitorTest.cs
I noticed this while looking at why Mono.CSharp is registered as "crashed" in the the new
fullaot PR job on Jenkins. It turns out all tests were excluded in mobile_static which means
no NUnit xml was produced and that is exactly what the script then interprets as a crash.

I saw that ASTVisitorTest.cs was not included in the net_4_x tests as well, likely inadvertently.
It got bitrotten over the years so I had to fix it up a bit, now it compiles/runs on mobile_static as well.
2016-07-21 23:22:03 +02:00
Zoltan Varga 8f092147bb [ji] Run the mini tests without the emitnunit.pl script when not running under CI. 2016-07-21 15:44:04 -04:00
Alexander Köplinger d8d1fe64c1 [versions.mk] Make path to SUBMODULES.json based on srcdir (#3314)
Since acceptance-tests/Makefile (and llvm/Makefile) include scripts/submodules/versions.mk which evals versions.py which looks
for a SUBMODULES.json file in the current working directory we got confusing error messages if the build directory is not the src dir:

```
Traceback (most recent call last):
  File "../../mono/scripts/submodules/versions.py", line 22, in <module>
    submodules = json.load(open(CONFIG_FILE))
IOError: [Errno 2] No such file or directory: 'SUBMODULES.json'
```

Instead we now pass the path to SUBMODULES.json as a variable to versions.py and set it based on $(top_srcdir) so it works
even for out-of-tree builds.
2016-07-21 13:49:26 -04:00
Alexander Kyte 635799108e [runtime] Make AOT'ed TestDriver.dll dependency for builds (#3303) 2016-07-21 13:49:15 -04:00
Rodrigo Kumpera c1a3562e2d [mini] Fail methods that try to throw scalars. Fix hard crash from #42417. (#3312) 2016-07-21 13:48:34 -04:00
Alexander Kyte 7d238ddd5e [mobile_static] Use clang++ for the linker (#3308)
In order for our exception handling to work on linux, we need the
unwind-dw2-fde-dip implementation in libgcc to work with our
.o file. This requires that `--eh-frame-hdr` be passed by the linker.

By using clang++ as the linker, we will get this and other flags
necessary for correct interop with c++ libraries.
2016-07-21 13:47:19 -04:00
Marcos Henrich 5391cbb42b Merge pull request #3305 from esdrubal/response_stream_close
[System] Fix RequestCanceled ex on ResponseStream.Close
2016-07-21 12:43:26 +01:00
Rodrigo Kumpera 321e47404f Merge pull request #3306 from kumpera/fix_wait
[wapi] Fix timed wait code to not overflow. Fixes #42688
2016-07-20 17:58:12 -07:00
Alexander Kyte 13d63a296f [runtime] Only add Mono.Dynamic.Interpreter to mobile_static (#3302) 2016-07-20 16:08:09 -04:00
Alexander Kyte 7021327848 Merge pull request #3307 from alexanderkyte/aot_path
[mobile_static] Fix temp path for mcs/class AOT
2016-07-20 15:18:38 -04:00
Alexander Kyte 0b77f98b5d [mobile_static] Fix temp path for mcs/class AOT 2016-07-20 15:16:59 -04:00
Rodrigo Kumpera e62c5b001d [wapi] Fix timed wait code to not overflow. Fixes #42688
Wait math must always subtract ticks and get deltas. That way we avoid overflows.
2016-07-20 10:42:40 -07:00
Marcos Henrich 558a3c0dc6 [System] Fix RequestCanceled ex on ResponseStream.Close
Fixes issues where ResponseStream.Close would throw an exception when
peer had already closed the connection and ResponseStream.Close would
still try to communicating to peer that it was closing.

The issue was brought to our attention by failures on:
  - MonoTests.System.Net.WebRequestTest.TestReceiveCancelation
  - MonoTests.System.Net.HttpWebRequestTest.TestLargeDataReading
2016-07-20 18:31:32 +01:00
Zoltan Varga 9e3f1f3002 [amd64] Rewrite the handler block trampoline to use normal calls instead of jumps so the functions called from the calls execute with an aligned stack. 2016-07-20 12:17:38 -04:00
Zoltan Varga 1f39769fb0 [tests] Disable some more tests in the mobile_static profile. 2016-07-20 12:15:28 -04:00
Zoltan Varga 43401ebfe2 [runtime] Add a missing mono_error_init () in a DISABLE_APPDOMAINS codepath. 2016-07-20 11:26:00 -04:00
Zoltan Varga 52599a3afd [amd64] Fix stack alignment in the handler block trampoline. 2016-07-20 08:00:11 -04:00
Vlad Brezae c89f64aada [tests] Remove double inclusion of source file 2016-07-20 12:16:01 +03:00
Vlad Brezae 220b5f56b8 [tests] Fix flakiness on some tests that assume object finalization
A common pattern that we use across the test suite is to create objects on a new thread, join the thread, collect then expect certain objects to be dead/finalized since we assumed that thread to be no longer a source of pinning. This is not always the case since, after joining, the thread might still be alive and running unmanaged code related to the thread shutdown, which can reuse the stack that previously contained the managed references.

The workaround is to still allocate objects far down the stack, even if we are on a separate thread.

At the moment the helper can be used in tests which run under the TestDriver (since it's included in TestDriver.dll) and can also be included as a helper source for test bcl classes that need it.
2016-07-20 12:15:59 +03:00
Rodrigo Kumpera f136599a68 Merge pull request #3304 from kumpera/unlimited-abort
Change suspend abort timeout to infinite and fix timeout env
2016-07-20 00:06:56 -07:00
Marek Safar fe03a3809e Revert "[Facades] Add System.Runtime.InteropServices.PInvoke"
This reverts commit 6d13f594fa.
2016-07-19 22:18:55 -07:00
Marek Safar 6d13f594fa [Facades] Add System.Runtime.InteropServices.PInvoke 2016-07-19 22:14:09 -07:00
Rodrigo Kumpera 2549481594 [mono-threads] Change suspend abort timeout to infinite and fix timeout env var parsing. 2016-07-19 18:06:53 -07:00
Rodrigo Kumpera a9a6209e24 [utils] Introduce MONO_INFINITE_WAIT instead of checking for -1 all over the place. 2016-07-19 18:05:37 -07:00
Alexander Köplinger 22dd441823 Merge pull request #3300 from esdrubal/mono-sym-fixes
[mono-symbolicate] Fixes symbolicate.expected
2016-07-20 03:03:13 +02:00
Zoltan Varga 9b2942a03e [tests] Disable tests which are expected to fail in the mobile_static profile. 2016-07-19 19:15:26 -04:00
Alexander Köplinger 3f870685e0 Revert "[test] Mono.Debugger.Soft test for async I/O tasks"
This reverts commit cf94a6fcd4.

It seems this causes something that prevents the chroot from unmounting in the Linux builds on Jenkins,
resulting in an endless "can't unmount" loop and stuck builds. Reverting to see if this fixes it.
2016-07-20 01:03:41 +02:00
Zoltan Varga f783acb4d0 [jit] Add full aot support for handler block trampolines on amd64. 2016-07-19 17:52:46 -04:00
Zoltan Varga 910ede5369 [jit] Avoid aborting if mono_ldtoken_checked () fails in one place. 2016-07-19 16:49:30 -04:00
Zoltan Varga cb8c0ce99d [aot] Fix full-aot support for delegate virtual invokes. 2016-07-19 16:44:26 -04:00
Vlad Brezae 629529ecea [sgen] Fix critical/normal finalization order at domain unload
For objects that die at the same time, normal finalizers should be run before critical finalizers. When we were unloading a domain we were running finalizers for all objects in that domain without checking whether the finalizer is critical or not. Now we enqueue the objects first in the finalization queues so we can run all the normal finalizers before the critical ones.
2016-07-19 23:37:13 +03:00
Zoltan Varga 9552af4b1b [runtime] Reset the thread_info TLS key if thread registration fails. 2016-07-19 14:11:30 -04:00
Alexander Kyte 9d8e60bd10 [runtime] Fix leak in generic sharing 2016-07-19 14:08:51 -04:00
Alexander Kyte 4c12908921 [sgen/mono] Don't leak stack info struct 2016-07-19 14:08:25 -04:00
Marcos Henrich 61085e29df [mono-symbolicate] Fixes symbolicate.expected
Make all file locations in symbolicate.expected relative to mono
repository base directory.
2016-07-19 18:04:34 +01:00
Aleksey Kliger (λgeek) 44d346f73a Merge pull request #3294 from lambdageek/dev/fix-42625
[threadpool-ms] Switch to GC Safe mode in event_wait backends
2016-07-19 12:42:42 -04:00
Marcos Henrich 89e9e78ee8 Merge pull request #3283 from esdrubal/mono-sym-docs
Update mono-symbolicate README and man
2016-07-19 14:47:33 +01:00
Marcos Henrich 6d9336ef00 Merge pull request #3293 from esdrubal/mono-sym-fixes
Mono sym fixes
2016-07-19 14:43:03 +01:00
Zoltan Varga 3a642d6d75 [tests] Make some tests work with full-aot. 2016-07-19 07:58:56 -04:00
Marcos Henrich 4dc450cd1f Updated mono-symbolicate man. 2016-07-19 10:51:39 +01:00
Marcos Henrich c65757680d Updated mono-symbolicate README
Updated mono-symbolicate usage.

Added practical example.

Renamed mono-symbolicate README to README.md
2016-07-19 10:51:38 +01:00
Marcos Henrich 0fe366f5fb [mono-symbolicate] Fixes Directory Exists/Delete race condition. 2016-07-19 10:40:31 +01:00
Marcos Henrich b03eea92a9 [mono-symbolicate] Add mscorlib stacktrace to tests
BCL symbols are now added to tests symbol directories.

We now test a stacktrace with stackframes on mscorlib.
2016-07-19 10:30:50 +01:00
Marcos Henrich f30cca3836 [mono-symbolicate] Fixed options/command logic.
Options are now parsed before comand store-symbols.
2016-07-19 10:30:42 +01:00
Johan Lorensson e1ebf4bd34 Merge pull request #3297 from lateralusX/jlorenss/win-x64-fix-pinvoke-failures
Fixing 4 failing pinvoke tests in runtime test suite on windows x64.
2016-07-19 10:26:06 +02:00
lateralusX b4971fd9e8 Fixing 4 failing pinvoke tests in runtime test suite on windows x64.
Fix for the following failing pinvoke tests in runtime tests suite on win x64:

* pinvoke11.exe
* winx64structs.exe
* pinvoke_ppcs.exe
* pinvoke_ppcc.exe
2016-07-19 02:40:33 +02:00
Aleksey Kliger cf94a6fcd4 [test] Mono.Debugger.Soft test for async I/O tasks 2016-07-18 20:22:15 -04:00
Alexander Kyte 03207c185f Merge pull request #3092 from alexanderkyte/mobile_static_fix_runtime_tests
[mobile_static] Get mono/tests running on mobile_static
2016-07-18 19:38:50 -04:00
Alexander Köplinger 81cff6f08d Merge pull request #3295 from mhutch/fix-pcl-build
[xbuild] Fix PCL build
2016-07-19 00:51:48 +02:00
Zoltan Varga c5d1c0bf1d [llvm] Add mono_llvm_set_call_notail () helper function, not yet used. 2016-07-18 18:41:24 -04:00
Zoltan Varga c430e4bf71 [llvm] Mark as the OBJC_METHOD_VAR_NAME/OBJC_SELECTOR_REFERENCES globals as used to prevent llvm from optimizing them away. 2016-07-18 18:41:24 -04:00
Zoltan Varga b5c8153740 [llvm] Disable tail calls when using llvm 3.9. 2016-07-18 18:41:24 -04:00
Alexander Köplinger 18de6419a1 Fix tarball package build broken by 8f130a6e17
- Microsoft.WebApplication.targets was inadvertently removed.
- The new Microsoft.NuGet.Build.Tasks assembly sources were not getting dist'ed. Adding to DIST_ONLY_SUBDIRS fixes this for now,
  though we can maybe add it to SUBDIRS instead (but neither me nor Marek know for what exactly that's used)
2016-07-18 22:53:44 +02:00
Mikayla Hutchinson d4166edc13 [xbuild] Fix %Identity issues
Identity metadata is the exact, unmodified ItemSpec.
2016-07-18 16:47:03 -04:00
Mikayla Hutchinson 9eb8076d98 [xbuild] Update PCL targets 2016-07-18 16:47:01 -04:00
Mikayla Hutchinson 58231fec64 [xbuild] Framework path should have trailing slash 2016-07-18 16:46:50 -04:00
Vlad Brezae af7debca7d Merge pull request #3280 from BrzVlad/fix-stw-stack-start
[sgen] Initialize stack_start to 0 when a thread is signaled for stw
2016-07-18 23:45:31 +03:00
Zoltan Varga b3d6023194 [llvm] Add a workaround for 3.9 based llvm versions using 'x15' as the location of the rgctx argument on arm64 even through it is reserved. 2016-07-18 16:13:17 -04:00
Zoltan Varga d08285b3d1 [jit] Save/restore cfg->ip during inlining, so instructions emitted after a failed inline have the correct il offset. 2016-07-18 16:13:17 -04:00
Alexander Kyte 1aa82aca7f Merge pull request #3132 from alexanderkyte/libmono_safe_undefined
[runtime] Make mini still build when -no-undefined given
2016-07-18 16:04:17 -04:00
Alexander Kyte 73d2def898 [runtime] Don't build mobile_static on default preset, don't know which configuration to use 2016-07-18 15:48:56 -04:00
Alexander Kyte 50dad86017 [runtime] Disable tests for AOT that require on unsupported runtime features 2016-07-18 15:03:48 -04:00
Alexander Kyte a8a85e231b [runtime] Hardcode preset feature disables 2016-07-18 15:03:47 -04:00
Alexander Kyte fb9a0777f2 [mobile_static] Move PLATFORM_AOT_SUFFIX into configure.ac 2016-07-18 15:03:47 -04:00
Alexander Kyte be12fd0bf5 [mobile_static] AOT libs not aoted by the test runner 2016-07-18 15:03:47 -04:00
Alexander Kyte 1b4e23b3a4 [mobile_static] Skip all appdomain-related tests 2016-07-18 15:03:46 -04:00
Alexander Kyte 42f54aac93 [mobile_static] AOT assemblyresolve for tests 2016-07-18 15:03:46 -04:00
Alexander Kyte 2bffc4a424 [mobile_static] Build mono/tests bitcode files in subdirectories to make threadsafe 2016-07-18 15:03:45 -04:00
Alexander Kyte 9360b991d7 [mobile_static] Skip appdomain tests on mobile_static 2016-07-18 15:03:45 -04:00
Alexander Kyte 09e89205e5 [mobile_static] Make test runner aot each assembly individually 2016-07-18 15:03:44 -04:00
Alexander Kyte eca9a375e3 [mobile_static] Skip mcs compiler tests for mobile_static 2016-07-18 15:03:44 -04:00
Alexander Kyte 695e8f53ae [mobile_static] Skip verifying ilasm.exe on mobile_static
ILASM.exe has features which a mobile_static runtime will not support.
It is invoked with an external mono when used in the runtime.
We skip it here because otherwise it will fail to verify.
2016-07-18 15:03:43 -04:00
Alexander Kyte c4465679d9 [mobile_static] Configure mini fullaot tests to work with mobile_static 2016-07-18 15:03:43 -04:00
Alexander Kyte 5222073ae4 [mobile_static] Enable Mono.Simd namespace to fix mini tests 2016-07-18 15:03:42 -04:00
Alexander Kyte e8029e1474 [mobile_static] Use mobile_static paths in mono/mini tests when necessary 2016-07-18 15:03:42 -04:00
Alexander Kyte 83871537b9 [mobile_static] Blacklist mono/tests sgen tests for mobile_static 2016-07-18 15:03:41 -04:00
Alexander Kyte 997ef7a007 [mobile_static] Pass aot options to mono/tests test runner if applicable 2016-07-18 15:03:41 -04:00
Alexander Kyte 955ddd33ac [mobile_static] AOT the mono/tests test runner when AOTing tests 2016-07-18 15:03:40 -04:00
Alexander Kyte 8e06b430a1 [mobile_static] Make mono/tests runner handle steps necessary for mobile_static 2016-07-18 15:03:40 -04:00
Alexander Kyte f7cccf2c52 [mobile_static] Move AOT build / run flags to make accessible in /mono 2016-07-18 15:03:39 -04:00
Alexander Kyte b1d611fa86 [mobile_static] Don't include Mono.Posix dependency to test driver 2016-07-18 15:03:39 -04:00
Alexander Kyte 78d1c677d7 [mobile_static] Don't try to use SIGKILL to get test stacktrace if Mono.Posix not available 2016-07-18 15:03:39 -04:00
Alexander Kyte d7582973dc [mobile_static] Blacklist runtime tests for mobile_static profile 2016-07-18 15:03:38 -04:00
Alexander Kyte 32a599ea28 [mobile_static] Make preset AOT_RUN_FLAGS and AOT_BUILD_FLAGS available to /mono 2016-07-18 15:03:38 -04:00
Alexander Kyte a88eb4f43c [mobile_static] Set MCS build options for mobile_static to feature gate runner 2016-07-18 15:03:37 -04:00
Alexander Kyte a06eeefb6e [mobile_static] Ensure the mobile_static profile builds ilasm 2016-07-18 15:03:37 -04:00
Alexander Kyte 26b2798a2d [runtime] Get ilasm.exe compiling with mobile_static 2016-07-18 15:03:36 -04:00
Aleksey Kliger 853500ac4c [threadpool-ms] Switch to GC Safe mode in event_wait backends
Fixes [Bugzilla #42625](https://bugzilla.xamarin.com/show_bug.cgi?id=42625)
2016-07-18 14:52:30 -04:00
Zoltan Varga 5648faa97d [llvm] Fix the DISABLE_JIT build. 2016-07-18 14:06:39 -04:00
Zoltan Varga 8161e9e3b0 [aot] Add a gen-seq-points-file deprecated option. 2016-07-18 14:05:39 -04:00
Marcos Henrich 876a906e42 [mono-symbolicate] Handle wrapper stackframes 2016-07-18 17:04:19 +01:00
Marcos Henrich 574e1a6e9b [mono-symbolicate] Fixes type with namespace not found 2016-07-18 17:04:19 +01:00
Marcos Henrich 203bd56b70 [mono-symbolicate] Adds log messages.
Added logger to mono-symbolicate, so we can add debug, warning and error
log messages.
2016-07-18 17:03:58 +01:00
Zoltan Varga 722afbd65f [runtime] Fix small issues from https://github.com/mono/mono/pull/3278. 2016-07-18 12:03:13 -04:00
Zoltan Varga 0e97e079fa [tests] Reduce a test iteration in process-leak.exe so it doesn't take minutes to run. 2016-07-18 11:44:45 -04:00
Mark Probst a82c1ae261 [runtime] A bunch of small fixes. 2016-07-18 11:36:25 -04:00
Marcos Henrich d817c0a129 Merge pull request #3264 from esdrubal/tzi_dst
[corlib] Implements TZI.IsDST(DateTimeOffset)
2016-07-18 16:01:54 +01:00
Marcos Henrich 6ec2a9cacb [mono-symbolicate] Fix crash while overwriting symbols 2016-07-18 13:55:29 +01:00
Marcos Henrich 7dbc89bf8f [mono-symbolicate] Fixes crash on stackframes w/o MVID
Wrapper stack frames don't have MVID or IL associated.
ex: (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
2016-07-18 13:55:29 +01:00
Marcos Henrich 5c4313d3dc [mono-symbolicate] Display error when MVID folder not found
Display error instead of crashing with exception.
2016-07-18 13:55:29 +01:00
Marek Safar 7b903d2758 [Facades] Remove dulicate subdirs include 2016-07-15 21:15:27 +02:00
Mikayla Hutchinson 8f130a6e17 Merge pull request #3282 from mhutch/netstandard-build
PCL5/netstandard MSBuild support
2016-07-15 15:11:49 -04:00
Mikayla Hutchinson 7ff0d66da4 [build] Fix resgen in child profiles 2016-07-15 13:07:27 -04:00
Mikayla Hutchinson cf5cf7cb3c [xbuild] Clearer distinction between versioned and unversioned files 2016-07-15 13:07:26 -04:00
Mikayla Hutchinson 4a6176c71e [xbuild] Use RESOURCE_DEFS to compile resx 2016-07-15 13:07:25 -04:00
Mikayla Hutchinson 3e74952787 [xbuild] Rename internal target to match MSBuild
The PCL targets depend on its name.
2016-07-15 13:07:24 -04:00
Mikayla Hutchinson 46e4193511 [xbuild] Fix warning with netstandard projects
This fixes an inconsistency where xbuild would add System.Core
references to all builds, and MSBuild would only add them for
.NETFramework.

This change could break user XA/XI/XM projects on Mac if the user has
manually removed the explicit System.Core reference from the project,
however such projects would already be broken on Windows.
2016-07-15 13:07:22 -04:00
Mikayla Hutchinson e48600af1d [xbuild] Fix NuGet tasks build 2016-07-15 13:07:16 -04:00
Mikayla Hutchinson 4c1bd63c73 [xbuild] Install PCL5 framework 2016-07-15 13:07:09 -04:00
Mikayla Hutchinson 64013e21a1 [xbuild] Install PCL targets from buildtools 2016-07-15 13:07:00 -04:00
Mikayla Hutchinson 152343d063 [xbuild] Update NuGet tasks to VS2015 Update 3 2016-07-15 13:06:45 -04:00
Mikayla Hutchinson 91fc604c58 Add dotnet/buildtools submodule
Using the openportabletargets branch in order to get
https://github.com/dotnet/buildtools/pull/643
2016-07-15 13:04:48 -04:00
Alexander Köplinger ae5611d4ff [xbuild] Add Microsoft.NuGet.Build.Tasks.dll MSBuild task
This is required for interoperating with project.json-based NuGet package configuration files
(not to be confused with DNX or AspNet Core which use it as a project file too) from MSBuild/xbuild.

The task hooks into the build process, resolves assembly references from the nuget package cache
and injects them into the compilation project so the csproj doesn't need to be modified when
adding new references/packages.

It is the first step on our road to PCL5/NuGet3.
2016-07-15 13:04:48 -04:00
Aleksey Kliger (λgeek) f3c5893d99 Merge pull request #3286 from lambdageek/dev/refl-to-managed
[reflection] RuntimeType  Event and Property search partly in managed
2016-07-15 12:58:12 -04:00
Zoltan Varga 1ad5c0a021 [jit] Fix some alignment issues in mono_unwind_ops_encode_full (). 2016-07-15 12:43:28 -04:00
Marek Safar 0f51a82c63 [Facades] Build System.Drawing.Primitives only on profiles with no external dependencies inside bcl 2016-07-15 18:26:05 +02:00
Johan Lorensson 3125d1bdc7 Merge pull request #3285 from lateralusX/jlorenss/win-x64-native-valuetype-abi
Rewrite of Windows x64 value type ABI to support DirectX wrapper libraries on JIT and full AOT.
2016-07-15 17:13:28 +02:00
Marek Safar 84acce6fca [Facades] System.Drawing.Primitives use type fowarders in monotouch profile when available 2016-07-15 16:37:28 +02:00
Alexander Köplinger d95e84201f [bcl] Don't build System.Net.Http.WebRequest.dll on mobile
It's not shipped in Xamarin.iOS and Xamarin.Android, so we shouldn't build it for these profiles.
2016-07-15 14:06:23 +02:00
Marek Safar 5aaaf9295b Revert "[Facades] Exclude System.Drawing.Primitives from watch profile"
This reverts commit 6db2cae90c.
2016-07-15 12:27:05 +02:00
Marek Safar 6db2cae90c [Facades] Exclude System.Drawing.Primitives from watch profile 2016-07-15 12:09:03 +02:00
Zoltan Varga 198bf460a6 [llvm] Add generic IR implementations of some SIMD opcodes, not used yet. 2016-07-15 05:21:07 -04:00
Marek Safar 64b7e70f0d Merge pull request #3274 from Unity-Technologies/fix-path-getfullpath-windows
Fix Path.GetFullPath for roots on Windows
2016-07-15 10:31:33 +02:00
lateralusX 5ae220a3b2 Smaller formatting adjustments based on feedback. 2016-07-15 10:19:37 +02:00
Zoltan Varga c20575195b Merge pull request #3287 from JustArchi/patch-1
Fix compilation of AOT-less Mono
2016-07-15 01:54:08 -04:00
Łukasz Domeradzki 1731145974 Fix compilation of AOT-less Mono
```
aot-runtime.c:5838:1: error: expected identifier or ‘(’ before ‘{’ token
 {
 ^
```
2016-07-15 05:23:53 +02:00
Aleksey Kliger 04c4e9a918 [reflection] Move System.RuntimeType.GetPropertiesByName to managed 2016-07-14 19:15:35 -04:00
Aleksey Kliger abb3af7f52 [reflection] Add System.Reflection.PropertyInfo.GetPropertyFromHandle method
Also add Mono.RuntimePropertyHandle struct representing a native MonoProperty pointer.

Also add ves_icall_System_Reflection_PropertyInfo_internal_from_handle_type icall
that wraps mono_property_get_object_checked.
2016-07-14 19:13:52 -04:00
Aleksey Kliger 83dd71ae23 [runtime] Add finalizer to SafeGPtrArrayHandle 2016-07-14 17:58:47 -04:00
Zoltan Varga 3776f68d0f [llvm] Fix an enable debug info generation for llvm master. 2016-07-14 16:49:28 -04:00
Aleksey Kliger 4fba2695b5 [reflection] mono_error_init
avoid a crash when there's a cache hit
2016-07-14 15:47:07 -04:00
Aleksey Kliger 70c2a93a48 [reflection] Move RuntimeType.GetEvents_internal to managed code 2016-07-14 15:19:57 -04:00
Aleksey Kliger fcb6f81336 [reflection] Add System.Reflection.EventInfo.GetEventFromHandle methods
Add new Mono.RuntimeEventHandle struct wrapping a pointer to a native MonoEvent

Add new icall
ves_icall_System_Reflection_EventInfo_internal_from_handle_type that's
mostly a wrapper around mono_event_get_object_checked.
2016-07-14 15:19:57 -04:00
Aleksey Kliger 932076d2f1 [runtime] Faster parent check in ves_icall_System_Reflection_FieldInfo_internal_from_handle_type
Use mono_class_has_parent for a faster supertypes check instead of
following the parent pointers.
2016-07-14 15:19:57 -04:00
lateralusX e53f07efa2 PInvoke methods using SetLastError get dropped on Windows x64 full AOT.
This happens because current implementation is doing a direct call to Win32
GetLastError in order to get the value before it get clobbered by the icall
setting the last error value in mono. When running AOT all constructs that tries
to call a method using a direct address will be dropped since that will not work
in full AOT. This results in incomplete compiled libraries causing runtime exceptions
in full AOT.

The fix on Windows x64 is to introduce a new OP code, GET_LAST_ERROR that will
retrieve the last error without clobbering it in the process. This is done by
emitting code reading the value directly from the TEB (thread environment block)
and will be lowered to just a move from the segment register holding the TEB data
structure on Windows x64. This is how GetLastError is doing this as well, but since
we won’t be able to call the method in a “safe” way in full AOT, using the segment
register directly will solve the issue. We use the segment register for accessing TLS,
so we already relying on the TEB structure.

NOTE, this will only be applied to Windows x64, full AOT for now.
2016-07-14 20:40:58 +02:00
Zoltan Varga 5ff5b9339f [llvm] Delete some dead code. 2016-07-14 14:31:20 -04:00
Zoltan Varga 3407b733f9 [llvm] Delete unused intrinsics. 2016-07-14 14:15:04 -04:00
Zoltan Varga 4a00eb9552 [sdb] Pass a MonoError* to mono_class_get_methods_by_name () instead of a MonoException*. 2016-07-14 13:49:02 -04:00
Zoltan Varga f052972681 Fix a warning. 2016-07-14 13:46:21 -04:00
lateralusX 06c0592f9d Fix a GC crash happening in full AOT compiled code where a delegate method can't
be detected at runtime. Since the process crash, lot of valuable information was never
written out to the console (like the managed stack trace) needed to effectively resolve
the issue.
2016-07-14 19:34:52 +02:00
lateralusX bd83be49c3 Add gsharedvt support for changed Windows x64 value type ABI. 2016-07-14 19:34:52 +02:00
lateralusX a4eeef2f2f Rewrite of Windows x64 value type ABI to support DirectX wrapper libraries.
Current implementation used different value type ABI’s depending on if call
was a managed->native, native->managed or managed->managed call. The implementation
was also overcomplicated since it was a tweaked copy from System V x64 value type
ABI with scenarios and conditions that wouldn’t apply to the Windows x64 value
type ABI. Having a uniform value type ABI when possible regardless of managed->native,
native->managed or managed->managed calls simplifies scenarios and reduce complexity.

While all the above are legitimate reasons the primary driving factor behind
the rewrite was a different issue. There are .NET wrapper libraries around DirectX API
used by game engines and other libraries that uses a pattern using a call into a stub
managed method that gets patched directly in the MSIL to a calli that will end up in a
native DirectX vtable method. In current ABI we can’t detect scenario like this, so arguments
are passed as if the call was a managed->managed call causing issues for value types. Since DirectX
uses value types a lot (vectors, matrixes etc.), this was a blocker getting these technologies
running on Windows using DirectX at all. Another approach could be to change the behavior of the
library, but this would require a major redesign of the library and since several of these libraries
are mature, that wasn’t a realistic option, especially since MS .NET runtime handles the libraries as is
without modifications.

The rewrite makes sure Windows x64 value type ABI follow the platform value type ABI in all scenarios.
2016-07-14 19:34:52 +02:00
Andi McClure 41b65b08a5 Merge pull request #3279 from xmcclure/tarjan-crash-2
Re-allow bridge callbacks to be set after GC init
2016-07-14 12:28:03 -04:00
Zoltan Varga 21b68dda9c [llvm] Implement some SIMD opcodes using LLVM IR instead of calling an llvm intrinsics. 2016-07-14 12:24:27 -04:00
Aleksey Kliger (λgeek) 26c3cfa0c5 Merge pull request #3281 from lambdageek/dev/g-ptr-array
[reflection] RuntimeType Field and Method search partly in managed
2016-07-14 11:32:58 -04:00
Marcos Henrich a4052f5f2b [corlib] Implements TZI.IsDST(DateTimeOffset)
Fixes #41349
2016-07-14 16:25:57 +01:00
Jonathan Chambers a034a2b627 Move check for slash inside of existing short path check and do a char comparison rather than a string comparison 2016-07-14 09:47:42 -04:00
Marcos Henrich 7efba04b66 [corlib] Test TZI.IsDST with DateTimeOffset.
Covers #41349
2016-07-14 13:26:21 +01:00
Marek Safar c75dcf579f [Facades] Remove wrong private facade 2016-07-14 14:23:46 +02:00
Marcos Henrich 9ddba8c671 Merge pull request #3276 from esdrubal/access_token_move
[corlib] Replaced SafeAccessTokenHandle.cs with ref source.
2016-07-14 10:27:19 +01:00
Marek Safar c1461e8453 [mcs] Add missing error message argument 2016-07-14 08:38:36 +02:00
Alexander Köplinger da04e24602 [bcl] Include all facade directories in the tarball
net_4_x_PARALLEL_SUBDIRS doesn't implicitly include all facades anymore after 10c5e72512.
2016-07-14 01:50:54 +02:00
Aleksey Kliger a586925967 [reflection] Managed RuntimeType.GetConstructors_internal 2016-07-13 18:22:40 -04:00
Marek Safar 1a1e1939c0 [Facades] Update list of full assemblies 2016-07-14 00:13:22 +02:00
Aleksey Kliger 1f09c7abaa [reflection] RuntimeType.GetMethodsByName in managed
Also:
  1. MethodBase.GetMethodFromHandleInternalType_native icall
  2. reimplemented the other MethodBase GetMethodFromHandleXXX methods
  in terms of this new icall.
  3. MonoError-ize mono_class_get_methods_by_name
2016-07-13 16:00:43 -04:00
Aleksey Kliger e46704ce90 [reflection] Managed version of RuntimeType.GetFields_internal 2016-07-13 16:00:41 -04:00
Andi McClure da895ba61a Back out pending_bridge_callbacks_mutex in previous commit
The mutex on pending_bridge_callbacks was overkill because the init
model for the mono runtime already enforces the callbacks being set on
the init thread. Added a couple comments to formalize this.
2016-07-13 15:49:04 -04:00
Zoltan Varga 64c6938512 Merge pull request #3240 from alexanderkyte/aot_compiler_leaks
[runtime] Fix aot compiler leaks
2016-07-13 15:03:14 -04:00
Vlad Brezae ab46df8888 [sgen] Initialize stack_start to 0 when a thread is signaled for stw
If we have an invalid SP in the suspended thread, we don't set stack_start in the thread info, expecting it to be 0 in order to signal a resume and suspend retry to the suspender thread. If the thread was already restarted before (from a different reason like IP in critical section), it would have a nonzero stack_start from the previous suspend, leading to an assertion in the previously described case.

This is also what we do on mach.
2016-07-13 20:04:51 +03:00
Marcos Henrich 725892b35c Merge pull request #3248 from esdrubal/web_request_abort
[System] EndRead now throws WebException on abort.
2016-07-13 17:41:22 +01:00
Marcos Henrich 1172aac102 Merge pull request #3268 from esdrubal/mono-sym-enable
[runtime] Enable compact seq point by default
2016-07-13 17:27:02 +01:00
Marcos Henrich 76a11d5b2d [corlib] Replaced SafeAccessTokenHandle.cs with ref source. 2016-07-13 17:24:37 +01:00
Aleksey Kliger dca84a114d [corlib] Add Mono.SafeGPtrArrayHandle
Wrap a GPtrArrayHandle struct in a safe handle that will free the
native resource after we're done.
2016-07-13 12:03:02 -04:00
Aleksey Kliger 121ed7c854 [corlib] Mono.RuntimeStructs.GPtrArray
and corresponding Mono.RuntimeGPtrArrayHandle
reflecting native GPtrArray struct in managed code.
2016-07-13 12:03:00 -04:00
Aleksey Kliger 6d79bc40a2 [reflection] Switch ves_icall_RuntimeType_GetFields_internal to GPtrArray
instead of MonoPtrArray.  Next step is to return the GPtrArray to
managed code, so using a stack allocated array won't work anymore.
2016-07-13 12:02:59 -04:00
Aleksey Kliger (λgeek) 71c524b8ba [logging] Default to stdout if MONO_LOG_DEST is unset (#3272)
Follow up to e70a8aca1c, do what the man
page says and default to stdout if MONO_LOG_DEST isn't specified.
2016-07-13 11:21:01 -04:00
Josh Peterson c005ca7358 Fix Path.GetFullPath for roots on Windows
On Windows, xbuild can fail with the somewhat obscure error message: "error : Error building target GetReferenceAssemblyPaths: UNC paths should be of the form \\server\share." This occurs because a call to Path.GetFullPath(@"\") returns the string "\" on Windows, when it should return a root path that includes the drive letter, like "C:\".

The code in xbuild tries to scan directories for files. Specifically, it looks for "\.*dll". If any .dll files exist in the root directory, each will be returned with the path "/\foo.dll". This path is used to create a FileInfo, and the exception about a UNC path occurs.

So if the path is "\" or "/" Path.GetFullPath should return the correct root path, including the drive letter, on Windows.

Here is the full call stack from xbuild:

Error building target GetReferenceAssemblyPaths: System.ArgumentException: UNC paths should be of the form \\server\share.
at System.IO.Path.InsecureGetFullPath (System.String path) <0x25343f0 + 0x003fb> in <filename unknown>:0
at System.IO.Path.GetFullPath (System.String path) <0x2534378 + 0x00013> in <filename unknown>:0
at System.IO.FileInfo..ctor (System.String fileName) <0x25fae20 + 0x00033> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileInfo:.ctor (string)
at System.IO.DirectoryInfo.GetFiles (System.String searchPattern) <0x25fa7c0 + 0x00087> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:GetFiles (string)
input, Int32 ptr, System.IO.DirectoryInfo directory, Boolean recursive) <0x25fa2b0 + 0x0016b> in <filename unknown>:0
input, Int32 ptr, System.IO.DirectoryInfo directory) <0x25fa270 + 0x0002f> in <filename unknown>:0
at Microsoft.Build.BuildEngine.DirectoryScanner.ProcessInclude (ITaskItem include_item, System.Collections.Generic.Dictionary`2 excludedItems, System.Collections.Generic.List`1 includedItems) <0x25d72d0 + 0x002ab> in <filename unknown>:0
at Microsoft.Build.BuildEngine.DirectoryScanner.Scan () <0x25d70e0 + 0x000ff> in <filename unknown>:0
at Microsoft.Build.BuildEngine.BuildItem.Evaluate (Microsoft.Build.BuildEngine.Project project, Boolean evaluatedTo) <0x25d5a50 + 0x005d3> in <filename unknown>:0
at Microsoft.Build.BuildEngine.BuildTaskItem.Execute () <0x25e5ad8 + 0x0002b> in <filename unknown>:0
at Microsoft.Build.BuildEngine.TaskBatchingImpl.Execute (IBuildTask buildTask, TaskExecutionMode taskExecutionMode) <0x25e3698 + 0x0004a> in <filename unknown>:0
at Microsoft.Build. BuildEngine.TaskBatchingImpl.Run (IBuildTask buildTask, TaskExecutionMode taskExecutionMode, System.Boolean& executeOnErrors) <0x25e50e0 + 0x0004f> in <filename unknown>:0
at Microsoft.Build.BuildEngine.TaskBatchingImpl.Build (IBuildTask buildTask, TaskExecutionMode taskExecutionMode, System.Boolean& executeOnErrors) <0x25e21b0 + 0x00097> in <filename unknown>:0
at Microsoft.Build.BuildEngine.TargetBatchingImpl.RunTargetWithBucket (System.Collections.Generic.Dictionary`2 bucket, Microsoft.Build.BuildEngine.Target target, System.Boolean& executeOnErrors) <0x25e14b8 + 0x00213> in <filename unknown>:0
at Microsoft.Build.BuildEngine.TargetBatchingImpl.Run (Microsoft.Build.BuildEngine.Target target, System.Boolean& executeOnErrors) <0x25e1360 + 0x000f7> in <filename unknown>:0
at Microsoft.Build.BuildEngine.TargetBatchingImpl.Build (Microsoft.Build.BuildEngine.Target target, System.Boolean& executeOnErrors) <0x25dfee0 + 0x00053> in <filename unknown>:0
at Microsoft.Build.BuildEngine.Target.DoBuild (System.Boolean& executeOnErrors) <0x25dfcf0 + 0x0004f> in <filename unknown>:0
2016-07-13 09:54:11 -04:00
Marek Safar 9a60311261 Merge pull request #3254 from mono/netstandard
[bcl] netstandard 1.6 support
2016-07-13 13:30:34 +02:00
Marcos Henrich 01600bef50 [runtime] Added gen-seq-points-file= deprecated option
Added gen-seq-points-file= back with deprecated message to avoid crashes
in application still using it.
2016-07-13 11:17:36 +01:00
Marcos Henrich 209c4246ad [runtime] Enable compact seq point by default
Enable compact seq points by default so that the stack trace have IL
offsets instead os native ones.

This changes will allow any stacktrace generated from now on to be
symbolicated using mono-symbolicate.

Deprecates options gen-compact-seq-points.
2016-07-13 10:52:27 +01:00
Marek Safar 10c5e72512 [bcl] netstandart 1.6 support 2016-07-13 11:02:10 +02:00
Mikayla Hutchinson e6334f9268 [mono-api-html] Add option to ignore breaking changes 2016-07-13 10:55:46 +02:00
Andi McClure 7114fd4236 Allow bridge callbacks to be set after GC init
This is cleanup to the previous emergency fix for bug 42469. The goal of that fix was to defer bridge processor initialization until after sgen init, but it introduced a requirement mono_gc_register_bridge_callback be called before sgen init. This breaks Xamarin Designer, which sets up callbacks late.

This patch introduces an sgen_init_bridge () which is called both at startup and after callbacks are set, and performs the initialization once all pieces are in place. Additional concurrency and style issues are also addressed.
2016-07-12 18:31:58 -04:00
Ludovic Henry ac19455304 Merge pull request #3224 from ludovic-henry/iolayer-extract-wait-handle
[io-layer] Extract handle lifetime + waiting + signalling to utils
2016-07-12 23:00:28 +02:00
Alexander Kyte ea6525cda8 [runtime] Disable noisy warning 2016-07-12 13:22:22 -04:00
João Matos 38ffd8781f [aot] Fixes strip tool invocation in to wrap paths in AOT compilation.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=34498.
2016-07-12 17:15:17 +01:00
Aleksey Kliger 4e6d44a447 Fix windows build after 162f843968 2016-07-12 12:10:07 -04:00
Aleksey Kliger (λgeek) f9851a7935 [corlib] Rewrite RuntimeType.GetGenericParameterConstraints (#3260)
* [corlib] Rewrite RuntimeType.GetGenericParameterConstraints

using managed code for managed object manipulation by surfacing the
native MonoGenericParamInfo struct to managed code as Mono.RuntimeStructs.GenericParamInfo

* [corlib] RuntimeType::GetGenericParameterAttributes can be managed code now.

* [corlib] Fix x86 breakage

RuntimeTypeHandle.GetGenericParameterInfo returns a pointer
Not a struct that's the same size as a pointer.  On the x86 Linux
calling convention they behave differently.
2016-07-12 11:16:59 -04:00
Andi McClure 9d91232d02 Merge pull request #3265 from xmcclure/tarjan-crash
Defer bridge processor init until after sgen init, fixing crash (bug 42469)
2016-07-12 11:11:46 -04:00
Zoltan Varga 162f843968 [amd64] Reorganize add_valuetype () to make it easier to use the platform calling convention for managed code as well. Implement dyncall support for passing/returning vtypes in registers. 2016-07-12 09:34:41 -04:00
Ludovic Henry 58ece251d7 [io-layer] Move handles out of the io-layer to utils/w32handle 2016-07-12 14:53:23 +02:00
Ludovic Henry ecd64d830a [io-layer] Inline init_handles_slot 2016-07-12 14:53:23 +02:00
Ludovic Henry e576b7dbfe [io-layer] Replace _WAPI_PRIVATE_HANDLES and _WAPI_PRIVATE_HAVE_SLOT by _wapi_handle_lookup_data 2016-07-12 14:53:23 +02:00
Ludovic Henry 11700bd8d0 [io-layer] Remove any remaining dependency of handles.c on other parts of the io-layer 2016-07-12 14:53:23 +02:00
Ludovic Henry c4e7dfb5ef [io-layer] Replace _WAPI_HANDLE_INVALID by INVALID_HANDLE_VALUE 2016-07-12 14:53:23 +02:00
Ludovic Henry f6aaaa11c5 [io-layer] Remove wapi_getdtablesize 2016-07-12 14:53:23 +02:00
Ludovic Henry dc49c2f3ed [io-layer] Move DuplicateHandle and CloseHandle to wapi.c 2016-07-12 14:53:23 +02:00
Ludovic Henry 1d5c330a78 [io-layer] Remove use of _wapi_has_shut_down 2016-07-12 14:53:23 +02:00
Ludovic Henry ab7d1a2e9f [io-layer] Remove unnecessary locking of _WAPI_SHARED_SEM_FILESHARE 2016-07-12 14:53:23 +02:00
Ludovic Henry 794ef7b32b [io-layer] Move _wapi_handle_spin to handles.c 2016-07-12 14:53:23 +02:00
Ludovic Henry db7cf6a3fa [io-layer] Move _WAPI_FD_HANDLE, _WAPI_SHARED_NAMESPACE and _WAPI_HANDLE_INVALID to handles-private.h 2016-07-12 14:53:23 +02:00
Ludovic Henry 931cbe5653 [io-layer] Remove pseudo global handle 2016-07-12 14:53:23 +02:00
Ludovic Henry 1916e35358 [io-layer] Allocate WapiHandle specific data on the heap 2016-07-12 14:53:23 +02:00
Ludovic Henry 986ddaea8e [io-layer] Register WapiHandleOps dynamically 2016-07-12 14:53:23 +02:00
Ludovic Henry 28d3395e3e [io-layer] Move WapiHandleType and WapiHandleOps to handles-private.h 2016-07-12 14:53:23 +02:00
Ludovic Henry 6c550a796b [io-layer] Extract _wapi_search_handle_namespace from handles.c 2016-07-12 14:53:23 +02:00
Ludovic Henry d3dc6dab7f [io-layer] Add typename and typesize handle operations 2016-07-12 14:53:23 +02:00
Ludovic Henry 8412c63395 [io-layer] Move _wapi_getpid out of handles.c 2016-07-12 14:53:23 +02:00
Ludovic Henry e088056d80 [io-layer] Add details operation on handle 2016-07-12 14:53:23 +02:00
Ludovic Henry 2a57a281ce [io-layer] Move io-layer initialization out of handles.c 2016-07-12 14:53:23 +02:00
Ludovic Henry fbc49edb16 [io-layer] Move file_share_hash to io.c 2016-07-12 14:53:23 +02:00
Ludovic Henry 92e0731741 [io-layer] Remove empty function _wapi_shm_semaphores_remove 2016-07-12 14:53:23 +02:00
Ludovic Henry b51db7c8b9 [io-layer] Remove unused _wapi_sem_id 2016-07-12 14:53:23 +02:00
Ludovic Henry adb587c1e9 [io-layer] Extract WapiHandleBase from _WapiHandleUnshared 2016-07-12 14:53:23 +02:00
Ludovic Henry 4b857e0841 [io-layer] Make _WAPI_PRIVATE_MAX_SLOTS and _WAPI_HANDLE_INITIAL_COUNT definition private 2016-07-12 14:53:23 +02:00
Ludovic Henry d244edc689 [io-layer] Make _wapi_global_signal_handle definition private 2016-07-12 14:53:23 +02:00
Ludovic Henry 3198424e93 [io-layer] Make _WapiHandleUnshared definition private 2016-07-12 14:53:23 +02:00
Ludovic Henry dd9eb54bb0 [io-layer] Factor Mutex and NamedMutex code 2016-07-12 14:53:23 +02:00
Ludovic Henry 2a234ddf58 [io-layer] Factor Semaphore and NamedSemaphore code 2016-07-12 14:53:23 +02:00
Ludovic Henry 677337daa8 [io-layer] Factor Event and NamedEvent code 2016-07-12 14:53:23 +02:00
Ludovic Henry 2214fd492b [io-layer] Make named handle use their equivalent non-named handle 2016-07-12 14:53:23 +02:00
Alexander Köplinger ec6fca56f3 Merge pull request #3267 from lateralusX/jlorenss/fix-win-build-missing-exports
Fix windows build issue due to missing export in def files.
2016-07-12 10:48:23 +02:00
lateralusX 5e296bd161 Fix windows build issue due to missing export in def files. 2016-07-12 09:24:38 +02:00
Zoltan Varga 265b8077b0 [runtime] Make mono_thread_resume_interruption () work during shutdown as well by checking for ThreadState_StopRequested as well. Hopefully fixes #41644. 2016-07-11 23:46:01 -04:00
Andi McClure a11bcf50f9 Defer bridge processor init until after sgen init (bug 42469)
mono_gc_register_bridge_callbacks is a function which the android implementation calls before initializing the runtime. One of the things this function previously did was initialize the default bridge processor if none has been initialized yet. However, because the function gets called before initializing the runtime, a bridge processor was never initialized. This lead to two bad effects:

- If a bridge processor was ever manually specified, the bridge processor would get initialized twice
- Tarjan crashes if initialized before sgen, so when Tarjan became the default bridge processor Android always crashed on launch

The default bridge processor is now initialized at the end of sgen_gc_init.
2016-07-11 17:51:56 -04:00
Andi McClure 9d7ff20924 More verbose error message when sgen_register_fixed_internal_mem_type fails 2016-07-11 17:51:36 -04:00
Aleksey Kliger 7a5121678d Fix Windows build 2016-07-11 16:16:33 -04:00
Rodrigo Kumpera 74b9df2e9f [runtime] Add mono_set_allocator_vtable which expose the eglib alloc vtable functionality. 2016-07-11 13:23:20 -04:00
Dolphin Hawkins 856447c71e Fixed up configure overridable allocators option. Moved g_vasprintf implementation to gstr which forwards to the system vasprintf when appropriate 2016-07-11 13:23:20 -04:00
Dolphin Hawkins 3e0eb1a54c Fixed eglib test build error 2016-07-11 13:23:20 -04:00
Dolphin Hawkins 12af7a43ba fixed formatting error 2016-07-11 13:23:20 -04:00
Dolphin Hawkins 6474f8e612 Enabled g_mem_set_vtable through the configure option --with-overridable-allocators and exposed through mono_set_allocator_vtable 2016-07-11 13:23:20 -04:00
Alexander Köplinger c516dda693 [eglib] Fix Windows build 2016-07-11 12:10:00 +02:00
Alexander Köplinger e076a50737 [eglib] Fix compilation on Windows after 3bebb7696e
eglib uses G_OS_WIN32 instead of HOST_WIN32 for the Windows-specific code.
2016-07-11 11:31:29 +02:00
Alexander Köplinger c61df4dc52 Fix tarball/package build that was broken by 0a8d5a08
The new header file wasn't included in the tarball.
2016-07-11 01:00:33 +02:00
Marcos Henrich ccc6d60a33 Merge pull request #3192 from esdrubal/sym-spec
mono-symbolicate spec implementation
2016-07-08 22:51:36 +01:00
Andi McClure 0a8d5a08af Merge pull request #3252 from xmcclure/tarjan-opt-basic
Cleanup on gc bridge to support future optimizations
2016-07-08 17:51:02 -04:00
Marcos Henrich caccc92c6a [mono-symbolicate] Use Mono.Options. 2016-07-08 22:45:49 +01:00
Marcos Henrich 820324d9cf [corlib] Lowercase and no '-' in metadata guids.
MVID and AOTID stacktrace metadata no longer displays guids with '-'.

Metadata is now also using lowercase instead of uppercase.

Changed mono-symbolicate and mono --aot to use the minimalistic GUIDs.
2016-07-08 22:45:49 +01:00
Marcos Henrich 21c0c0823a [corlib] StackTrace fixes.
Replaced static constructor with delayed initialization.

Fixed possible undeterministic order of dumped MVIDs.

Used AppendFormat when possible.

Added comment to StackTrace.AddMetadataHandler explaining that it can be
used with reflection by outside code, to avoid removing it or changing
its signature.

Added StringComparer.Ordinal to dictionary.
2016-07-08 22:45:49 +01:00
Andi McClure 31e1a2a947 Cleanup on gc bridge to support future optimizations
Consists mostly of
- Comments
- Consolidate duplicate dynarray implementations in new-bridge and
  tarjan-bridge into a single header full of statics
2016-07-08 17:40:58 -04:00
Marcos Henrich 19a53fe7b0 [corlib] Ignore metadata on stacktrace tests
StackTrace tests no longer fail with stacktrace metadata.
2016-07-08 22:40:38 +01:00
Marcos Henrich 53a596d8be [corlib] Add Metadata to inner exceptions. 2016-07-08 22:40:38 +01:00
Marcos Henrich eb349adf59 [corlib] Skip MVID of stackframes without method.
Fixes NRE caused by stackframes without any method assigned to them.
2016-07-08 22:40:38 +01:00
Marcos Henrich 8e44dfdcbb [corlib] GetAotId now returns null, if unavailable
Also fixes issue when mono_domain still doesn't have any executing
assembly set.
2016-07-08 22:40:38 +01:00
Marcos Henrich 602b8952d5 [mono-symbolicate] Improved Makefile
Makefile now stores managed assemblies into the msym dir.

Each test now uses a separate directory to store stacktraces outputs and
symbols.
2016-07-08 22:40:38 +01:00
Marcos Henrich bc8c201f1a [runtime] AOTID is now properly stored. 2016-07-08 22:40:38 +01:00
Marcos Henrich 0db79f08b3 [mono-symbolicate] Fixes last stacktrace issue.
Extracted Symbolicate.Process stacktrace dump logic into DumpStackTrace
method. Which can also be used to dump the last stack trace after the
process loop.
2016-07-08 22:40:38 +01:00
Marcos Henrich 0f9c5caa3c [mono-symbolicate] Fixes symbolication of AOTed
Sequence points are only required if native offsets are on the
stacktrace.

fix -- seq point info aot
2016-07-08 22:40:38 +01:00
Marcos Henrich 4895ed1d10 [mono-symbolicate] Adds store-symbols
mono-symbolicate can now be called:
   symbolicate store-symbols <msym dir> [<dir>]+

This will store in <msym dir> all the managed symbols found in the
provided directories.
2016-07-08 22:40:38 +01:00
Marcos Henrich 35f1ca3ae6 [mono-symbolicate] Implemented metadata parsing.
mono-symbolicate now parses stack traces with metadata at their end.

All the stack trace and metada are read, so that symbolicate can use
MVID and AOTID to retrieve the symbols from the msym directory..
2016-07-08 22:40:38 +01:00
Marcos Henrich eb8cc5ca57 [runtime] Added aot=msym-dir=<DIR>
Removed gen-seq-points-file.
.msym files are now stored into a a subfolder of the provided msym-dir.
The subfolder of each .msym are named as AOTID.
2016-07-08 22:40:38 +01:00
Marcos Henrich 98050688e3 [runtime] aot-compiler.c now stores AOTID in image
AOTID is now also displayed during compilation.
2016-07-08 22:40:38 +01:00
Marcos Henrich 3bebb7696e Moved ensure_directory_exists to eglib.
Moved ensure_directory_exists in apdomain.c to g_ensure_directory_exists
in eglib/src/gpath.c so it can be reused.
2016-07-08 22:40:38 +01:00
Marcos Henrich 15ddd55f04 [corlib] Added MVID metadata to StackTrace
The MVID metadata handler displays multiple MVID(s) followed by the
 comma separated list of StackFrame lines whose method belongs to the
module with the displayed MVID.
2016-07-08 22:40:38 +01:00
Marcos Henrich 59cccab00d [corlib] Added metadata handlers to StackTrace
Added a reflectable static method that can be used to customize data
displayed after a stack trace.

Added metadata handler that display the AOTID of the executing assembly.
2016-07-08 22:40:38 +01:00
Marcos Henrich c235a59c5c [corlib] Added icall Assembly.GetAotId 2016-07-08 22:38:22 +01:00
Marcos Henrich 3d03fb578d [runtime] Adds AOTID
AOTID is a GUID generated by the AOT compiler and stored along with the
native code.

The AOTID uniquely identifies the generated native assembly.

The AOTID is required when we want to map native offsets to IL offsets
and the sequence points mapping those values need to be determined.
2016-07-08 22:38:22 +01:00
Rodrigo Kumpera a9035d9e74 Merge pull request #3258 from lindenlab/mono4-continuations_fix
Add some tests for Mono.Tasklets Continautions
2016-07-08 16:06:57 -04:00
Kelly Washington 9bf8d670fb Merge branch 'master' into mono4-continuations_fix 2016-07-08 16:20:07 +00:00
Kelly Washington 436c2cf1b3 Add microthreading test to ContinuationsTest 2016-07-08 16:06:44 +00:00
Aleksey Kliger (λgeek) 9d496e241e [coop] Change handles to be pointers (#3249)
Previously handles were pointer-sized structs.  Unfortunately not all
calling conventions treat pointer-sized structs as pointers, so if we
wanted to interact with handles from wrappers, we would have to do
something complicated.

With the new design, `TYPED_HANDLE_DECL(MonoFoo)` will expand to:
```c
    typedef struct {
        MonoFoo *__obj;
    } MonoFooHandlePayload;
    typedef MonoFooHandlePayload *MonoFooHandle;
```
2016-07-08 10:36:04 -04:00
Marcos Henrich 6f261e6bb6 [System] EndRead now throws WebException on abort.
When a requast is aborted on .NET a WebException is thrown and not a
ObjectDisposedException as we were doing.

Fixes #41477
2016-07-08 14:42:52 +01:00
Marcos Henrich 4a1de1526b [System] Test ReadAsync Cancellation.
Covers #41477
2016-07-08 14:42:51 +01:00
Johan Lorensson 5aa397ecb7 Merge pull request #3247 from lateralusX/jlorenss/win-x64-lmf-exception
Fix crash in mono mini exceptions.exe regression test on win x64.
2016-07-08 08:24:04 +02:00
Zoltan Varga e262b595b2 [llvmonly] Fix support for synchronized methods. 2016-07-07 23:42:26 -04:00
Zoltan Varga ec8e6139f4 [runtime] Remove the 'The wrapper info for the wrapper is a WrapperInfo structure.' comments, this is now true for all wrappers. 2016-07-07 22:26:51 -04:00
Zoltan Varga 8f5380f8f3 [jit] Emit memory barriers for volatile STFLD opcodes. Fixes #42413. 2016-07-07 20:06:58 -04:00
Kelly Washington 38a299e011 Merge branch 'continuations-test' into mono4-continuations_fix 2016-07-07 23:13:11 +00:00
Zoltan Varga 5cee22f7f7 [aot] Fix the llc flags when using hardfp on arm. 2016-07-07 18:59:16 -04:00
Zoltan Varga c770a73d36 [aot] Allow the loading of llvm compiled code into a non-llvm runtime on arm and vice versa, the restriction is not needed any more. 2016-07-07 18:57:55 -04:00
Kelly Washington b4a00d1ea3 Add ContinuationsTest for Mono.Tasklets 2016-07-07 22:39:03 +00:00
Rodrigo Kumpera e23589a6cf Merge pull request #3250 from jbevain/cli-flags
Fix definition and handling of the Preferred32bit CLI flag in the verifier
2016-07-07 17:09:30 -04:00
Jb Evain 2a8146f287 [runtime] Fix the CLI_FLAGS_PREFERRED32BIT value 2016-07-07 13:07:58 -07:00
Jb Evain 13f0bf1210 [runtime] Fix the CLI Header flags check 2016-07-07 13:06:08 -07:00
Alexander Kyte 74accfab20 [runtime] Free rgctx_lazy_fetch_trampoline info 2016-07-07 15:22:25 -04:00
Alexander Kyte 9233a8dfbd [runtime] Free temporary aot buffer 2016-07-07 15:22:24 -04:00
Alexander Kyte 88797e515e [runtime] Free info_offsets used by emit_extra_methods 2016-07-07 15:22:23 -04:00
Alexander Kyte d3853bbe3d [runtime] Free last buf used by emit_extra_methods 2016-07-07 15:22:22 -04:00
Alexander Kyte b4e3a0ecd3 [runtime] Free temporary table 2016-07-07 15:22:21 -04:00
Alexander Kyte bc07893021 [runtime] Free patches list 2016-07-07 15:22:21 -04:00
Alexander Kyte c5fc049ef3 [runtime] Free temporary trampoline emitter buffer 2016-07-07 15:22:20 -04:00
Alexander Kyte a2a5e35856 [runtime] Free temporary class name table 2016-07-07 15:22:19 -04:00
Alexander Kyte 901ba00d0f [runtime] Free leaked buffer 2016-07-07 15:22:18 -04:00
Alexander Kyte 5f9e4d4122 [runtime] Free temporary pointer array 2016-07-07 15:22:17 -04:00
Alexander Kyte 8a5acf4c51 [runtime] Free temporary attr structure 2016-07-07 15:22:16 -04:00
Alexander Kyte 9d9f42dded [runtime] Don't leak a runtime invoke method builder 2016-07-07 15:22:15 -04:00
Alexander Kyte 8a31a248ed [runtime] Don't leak short-lived header 2016-07-07 15:22:14 -04:00
Alexander Kyte 0c12c23250 [runtime] Free leaked temporary parse 2016-07-07 15:22:13 -04:00
Alexander Kyte 0b6d8e9a37 [runtime] Prevent leak by copying list with no other references 2016-07-07 15:22:13 -04:00
Alexander Kyte 2d5ffcb8e3 [runtime] Free vars in linear_scan2 2016-07-07 15:21:53 -04:00
Alexander Kyte 5a5ada0ae2 [runtime] Free register info 2016-07-07 15:21:43 -04:00
Bennjamin Blast 8694ee1f46 Modify the configuration loader so that (#2758)
- A single dll can be mapped to different targets based on function name.
- The dllentry target can be omitted if it is the same as the source.

This change is released under the MIT license.
2016-07-07 14:47:33 -04:00
alenl2 00a7f1b7ad Fixed stack overflow issue in DuplexClientRuntimeChannel (#2172) 2016-07-07 14:19:22 -04:00
lateralusX 87afbc4422 Fix crash in mono mini exceptions.exe regression test on win x64.
Exceptions.exe regression test started to fail on win x64 release builds.
Turns out that the Visual Studio C compiler picked a different optimization
for release builds (due to a change of library type that uses a different default optimization level)
using RSI register in native code calling into JIT:ed code. If the JIT:ed code used reflection
and exceptions, that triggers InternalInvoke and lmf_filter, the code only
stored System V x64 non-volatile registers in the unwind information. On Windows,
RSI is also a non-volatile register (RDI as well) that needs to be preserved and
since the code didn’t include those in the unwind information, the correct RSI value
was not restored during the unwind. Once the control was handled back to the native
code it dereferenced RSI (that was set to 0) and crashed.

The fix is to make sure we store all non-volatile registers on x64 Windows
when we save an lmf so the unwind code can restore them when unwinding through
the lmf.
2016-07-07 17:24:49 +02:00
Aleksey Kliger 5b39ce65cc [mini] bump AOT version - WrapperType changed 2016-07-07 11:09:20 -04:00
Aleksey Kliger d1ace1652b [runtime] Remove STFLD_REMOTE wrapper type. 2016-07-07 11:09:19 -04:00
Aleksey Kliger 0423293064 [runtime] Remove mono_store_remote_field_new_icall.
It is dead code.
2016-07-07 10:59:03 -04:00
Aleksey Kliger 50a2f837a0 [remoting] call TransparentProxy::StoreRemoteField directly from STFLD_REMOTE wrapper.
Don't call via mono_store_remote_field_new_icall.
2016-07-07 10:59:03 -04:00
Aleksey Kliger 4e9cd385aa [remoting] Convert mono_store_remote_field_new_checked to managed code
Reimplement as System.Runtime.Remoting.Proxies.TransparentProxy:StoreRemoteField
2016-07-07 10:59:03 -04:00
Marek Safar 2d22bb12dc Merge pull request #3244 from henricm/fix-for-synchronization-attribute
Fix for lock release in SynchronizationAttribute
2016-07-07 14:25:59 +02:00
Zoltan Varga 1b9a6aaac7 [llvm] Enable atomic load/store support when using llvm master. 2016-07-07 04:41:54 -04:00
Zoltan Varga 7fa8d07125 [llvm] Use a custom memory managed for llvm master too, the default one allocates everything into a separate memory page. 2016-07-07 03:23:21 -04:00
Henric Müller 3de4092e85 Fix for lock release in SynchronizationAttribute
* Making sure ownerThread is not nulled unless lockCount is zero.
* Fixed so Locked property checks lockCount when determining if locked
   instead of _locked field which was never set.
* Added test for setting Locked property.
* Added test capturing the original issue.
2016-07-07 08:56:16 +02:00
Zoltan Varga 0c8c3aef22 [llvm] Fix some problems when using llvm master. Check the base pointer for null instead of the derived one in load/store opcodes. Avoid trying to name parameters representing empty structs, they have no llvm parameter. Avoid trying to patch calls from llvm code, they are made indirectly. 2016-07-07 00:55:38 -04:00
Andi McClure 64b3e392ae Merge pull request #3239 from xmcclure/default-tarjan
Switch Android GC bridge default from new-bridge to tarjan-bridge
2016-07-06 17:26:45 -04:00
Alexander Kyte 548f40b70a [runtime] Free patches array in aot compiler 2016-07-06 17:21:44 -04:00
Alexander Kyte 2be7465287 [runtime] Move mempools up, don't free methodheaders pointing into it after, etc 2016-07-06 17:13:33 -04:00
Alexander Kyte 54e98c46dc [runtime] Don't leak method header (significant leak size) in aot compiler 2016-07-06 17:13:32 -04:00
Alexander Kyte 332cf0af1c [runtime] Defer destruction of MonoCompile until patches have been emitted 2016-07-06 17:13:31 -04:00
Alexander Kyte 3cf76a8454 [runtime] Always free method header in method_to_ir 2016-07-06 17:13:30 -04:00
Alexander Kyte ae9c94e152 [runtime] Clean up method_to_callers table for llvm 2016-07-06 17:13:29 -04:00
Alexander Kyte 3731535084 [runtime] Don't leak temporary jump info struct
This represented 93k leaked allocations when aoting mscorlib
2016-07-06 17:13:28 -04:00
Alexander Kyte 3b4334e793 [runtime] Prevent leaking temporary 2016-07-06 17:13:27 -04:00
Alexander Kyte bd7292f9b4 [runtime] Free LLVM failure message 2016-07-06 17:13:26 -04:00
Alexander Kyte 60b0d0d7ac [runtime] Fix minor leak 2016-07-06 17:13:23 -04:00
Alexander Kyte 0445f85ec0 [runtime] Don't leak LLVM IR Builders 2016-07-06 17:11:43 -04:00
Marek Safar d4886043dc Merge pull request #3243 from mono/netstandard
[Facades] netstandard 1.6 updates
2016-07-06 21:35:02 +02:00
Alexander Köplinger b14dcc5163 [System] Bump timeout in TimerTest a bit
I saw this failing occasionally on iOS on Wrench:

```
[FAIL] TimerTest.AutoResetEventFalseStopsFiringElapsed :   #2 wrong elapsedCount
  Expected: 1
  But was:  0

	at MonoTests.System.Timers.TimerTest.AutoResetEventFalseStopsFiringElapsed () [0x00091] in /Users/builder/data/lanes/1411/b07703ed/source/xamarin-macios/external/mono/mcs/class/System/Test/System.Timers/TimerTest.cs:327 
	at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
	at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/data/lanes/1411/b07703ed/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:309 
```
2016-07-06 21:32:10 +02:00
Marek Safar 276c31d5ed [Facades] netstandard 1.6 updates 2016-07-06 12:57:33 +02:00
Zoltan Varga b07703ed57 [llvm] Fix JIT support with llvm master. 2016-07-06 03:36:06 -04:00
Johan Lorensson ee05c8a322 Multiple fixes for Windows x86 p/invoke test failures. (#3186)
* Fix for non GCC win x86 calling convention when passing empty structs over pinvoke.

Port of https://github.com/mono/mono/pull/3085 to Winwdows x86 fixing failures
in pinvoke2 tests:

test_0_marshal_empty_struct

* Fix for incorrect implementation of small struct (single float/double) on Windows x86.

Failure in pinvoke3 test_0_marshal_small_struct_delegate9 is caused by incorrect
implemented small struct ABI on Windows x86.

Windows x86 ABI for returning structs of size 4 or 8 bytes (regardless of type)
dictates that values are passed in EDX:EAX register pairs,
https://msdn.microsoft.com/en-us/library/984x0h58.aspx.
This is different compared to for example float or double return types
(not in struct) that will be returned in ST(0),
https://msdn.microsoft.com/en-us/library/ha59cbfz.aspx.

Fix disables the alternative to do special handling of structs with 1 float or double
and make sure same logic is always applied to all small structs regardless type
as dictated by Windows x86 ABI.

* mono_test_marshal_delegate_ref_delegate uses incorrect calling convention.

mono_test_marshal_delegate_ref_delegate called by pinvoke3::test_55_marshal_delegate_ref_delegate
uses incorrect calling convention. Mono assumes delegates to be stdcall but
current definitions will be cdecl, this will cause an incorrect stack pointer
on architectures where cdecl and stdcall are different (Windows x86). Test fails
with "corrupt" stack pointer on Windows x86.

* Smaller adjustment based on feedback.

* Changed boolean struct member to bit field (on both x86 and x64)
* Changed compare code style from 0 == x to x == 0 to comply with coding standard.
2016-07-06 00:32:08 -04:00
Johan Lorensson 4d9ffd3db2 Added support to build mono runtime as a static library. (#3231)
libmono will use static library when building its dynamic library. This gives
the option to build binaries that could link the static version of mono runtime
or use the dynamic version of the same library. The default build binaries still
link against the dynamic version of the runtime.
2016-07-06 00:28:02 -04:00
Zoltan Varga 4261bb6696 [llvm] Fix aot when using llvm master. 2016-07-06 00:19:50 -04:00
Alexander Köplinger 9ae0c7f099 Merge pull request #3242 from alexanderkyte/fix_docs
[runtime] Remove extraneous fi in docs build printing
2016-07-06 02:08:26 +02:00
Alexander Kyte cfa44850df [runtime] Remove extraneous fi in docs build printing 2016-07-05 20:07:39 -04:00
Alexander Köplinger a042e25e88 Merge pull request #3091 from alexanderkyte/mobile_static_fix_mcs_tests
[mobile_static] Allow mcs/class tests to run to completion
2016-07-06 00:12:21 +02:00
Zoltan Varga 00bf4b43d1 [bcl] Fix a random failure in a DataView test which happened because DataViewListener keeps a weak reference on the DataView and stops raising events if the view is GCd. Fixes #41035. 2016-07-05 16:30:21 -04:00
Andi McClure 086f9a53bc Switch Android GC bridge default from new-bridge to tarjan-bridge 2016-07-05 13:11:36 -04:00
Alexander Kyte 1a0c6a5a8c [mobile_static] Skip aot-ing ilasm 2016-07-05 12:22:27 -04:00
Alexander Köplinger 79e23ab784 Merge pull request #3236 from kumpera/coreclr-testsuite-fixes-2
Reduce coreclr test failures by 10. A bunch of fixes and a bunch of disables.
2016-07-05 16:27:14 +02:00
Aleksey Kliger (λgeek) 0d06b59726 [profiler] Actually link against libmono where necessary (#3232)
Previously $(LIBMONO) was empty and bitcode targets (which set
-no-undefined) had linker errors.
2016-07-05 10:21:55 -04:00
Marcos Henrich 8fad9cb484 Merge pull request #3226 from esdrubal/soap_headers_fix
[System.Web.Services] Fixes bad XmlMapping.Key.
2016-07-05 11:31:14 +01:00
Marcos Henrich 80d015b2df Merge pull request #3210 from esdrubal/connectasyncUHE
[System] Fixes ConnectAsync UnhandledEx
2016-07-05 10:46:03 +01:00
Rodrigo Kumpera 11e7e44399 Merge pull request #2958 from kumpera/visibility
Fix a visibility check bug
2016-07-04 15:46:33 -04:00
Rodrigo Kumpera 3d74189386 [jit] Set vret_var when emiting a jmp call. 2016-07-04 15:14:23 -04:00
Rodrigo Kumpera 113f0c4a18 [coreclr-tests] Disable a test that fails verification. 2016-07-04 14:08:54 -04:00
Rodrigo Kumpera 2b7b2f6a99 [coreclr-tests] Disable another broken test. 2016-07-04 10:27:37 -04:00
Rodrigo Kumpera 03b3030deb [coreclr-tests] Disable another broken test. 2016-07-04 10:24:07 -04:00
Marek Safar f66524ab9c [mcs] More tweaks in betterness improvements. Fixes #42057 2016-07-04 15:04:17 +02:00
João Matos f104d6b81c Merge pull request #3234 from tritao/zip_non_seekable_streams
[System.IO.Compression] Fixes ZipArchive to support non-seekable streams
2016-07-04 12:10:51 +01:00
Marek Safar 7493195f07 [System.Numerics.Vectors] Update type forwarders 2016-07-04 12:39:42 +02:00
Marek Safar 21dbf2ea4e [System.Numerics] Update .net 4.6 api 2016-07-04 11:28:07 +02:00
Alexander Kyte b10af779c3 [mobile_static] Use make parallelism to aot compile .dlls in parallel 2016-07-02 21:33:08 -04:00
Alexander Kyte accce74440 [mobile_static] Use MonoPInvokeCallbackAttribute on MobileStatic 2016-07-02 21:33:08 -04:00
Alexander Kyte 2af9da505d [mobile_static] Make Mono.CSharp excludes for tests that require compilation 2016-07-02 21:33:07 -04:00
Alexander Kyte cbda3a28d7 [mobile_static] Blacklist app domain creation test 2016-07-02 21:33:07 -04:00
Alexander Kyte cd04fa35c7 [mobile_static] Remove some duplicated excludes 2016-07-02 21:33:07 -04:00
Alexander Kyte f59ebb3ee0 [mobile_static] Fix misformatted excludes, tests excluded due to lack of System.Configuration 2016-07-02 21:33:07 -04:00
Alexander Kyte 2fbf908ef0 [mobile_static] Tracked down unpassable ServiceModel tests, blacklisted 2016-07-02 21:33:06 -04:00
Alexander Kyte 540e26a05b [mobile_static] Add MOBILE_STATIC to preprocessor guard 2016-07-02 21:33:06 -04:00
Alexander Kyte 8b5f755b2b [mobile_static] Blacklisted unpassable tests for System 2016-07-02 21:33:06 -04:00
Alexander Kyte ef65c56fa7 [mobile_static] Fix System.Runtime.Serialization tests with preprocessor
usage
2016-07-02 21:33:06 -04:00
Alexander Kyte b0faf2ad9a [mobile_static] Fix libraries provided when building System 2016-07-02 21:33:05 -04:00
Alexander Kyte 56b0093236 [runtime] Add System.Data app config. 2016-07-02 21:33:05 -04:00
Alexander Kyte ab33176867 [runtime] Implement TLS_OP_GET_REG on linux (#3227) 2016-07-02 20:26:04 -04:00
Zoltan Varga 7c3890bf49 [runtime] Abort the finalizer thread first instead of stopping it, to allow an orderly shutdown and to avoid hitting the 'finalizer_thread_exited' assert. Hopefully fixes #41833. (#3233) 2016-07-02 20:25:06 -04:00
João Matos 77e2521d8c [System.IO.Compression] Fixes ZipArchive to support non-seekable streams.
This is the same behavior as documented on MSDN.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=30686.
2016-07-02 02:02:25 +01:00
Rodrigo Kumpera 749dbde308 [jit] Add fixme to AA. 2016-07-01 20:08:44 -04:00
Rodrigo Kumpera 893faba65c [mini] Ensure that an endfinally outside of a finally block fails to JIT. 2016-07-01 20:08:38 -04:00
Rodrigo Kumpera 90e7004a63 [ilasm] Side with parent declaration when deciding if a type is an enum or a value type.
The conflict happens when a type is declared like this:

.class value private auto ansi serializable sealed foo extends [mscorlib]System.Enum

The value keyword would make it a value type and ignore the parent declaration.

.net ilasm favors the later, which makes more sense.
2016-07-01 20:08:28 -04:00
Rodrigo Kumpera 281fc599e3 [jit] Remove silly debug spew. 2016-07-01 20:08:20 -04:00
Rodrigo Kumpera 155dc6fb61 [coreclr-tests] Disable another test that depends on array size limits on .net. 2016-07-01 20:07:37 -04:00
Rodrigo Kumpera f580e18de5 [amd64] The prolog stack probe code sequence is 11 bytes each chunk and not 10. Fixes coreclr test. 2016-07-01 20:06:24 -04:00
Rodrigo Kumpera 8aba35630f [coreclr-tests] Disable some tests that are not supposed to work under mono. 2016-07-01 20:06:13 -04:00
Rodrigo Kumpera 028dba1a01 [jit] Return NULL on zero sized localloc. Fixes coreclr test. 2016-07-01 20:03:45 -04:00
Rodrigo Kumpera e56d29f7a3 [verifier] Do method visibility checks for virtual final methods. Enable type visibility for all methods. Fixes #5644.
I addressed the issue mentioned in the comments of mono_method_can_access_method:

* FIXME:
* with generics calls to explicit interface implementations can be expressed
* directly: the method is private, but we must allow it. This may be opening
* a hole or the generics code should handle this differently.
* Maybe just ensure the interface type is public.

The way to do it is to check access between gmds
2016-07-01 19:57:07 -04:00
Vlad Brezae 6b1b08cc60 Merge pull request #3211 from BrzVlad/fix-finalizer-thread-exited
[sgen] Speed up domain finalization at shutdown
2016-07-01 23:56:31 +03:00
Aleksey Kliger (λgeek) 8e61507bba [remoting] If remoting is disabled, don't assert looking for LoadRemoteFieldNew (#3229) 2016-07-01 11:11:54 -04:00
Vlad Brezae 77c26ff205 [sgen] Make suspend_finalizers volatile
It is used for signaling on separate threads.
2016-07-01 18:10:01 +03:00
João Matos 64b439f135 Merge pull request #3225 from tritao/zip_stream_getters
[System.IO.Compression] Fixed Zip entry stream length/position getters in Update mode
2016-07-01 15:05:57 +01:00
Zoltan Varga 7a0a39aed9 [llvmonly] Fix the name of a few llvmonly icalls. 2016-06-30 22:42:51 -04:00
Zoltan Varga 50cab13bc3 [llvmonly] Unwrap RuntimeWrapperExceptions if needed. 2016-06-30 22:31:12 -04:00
Zoltan Varga 098d79564b [sgen] Avoid throwing exceptions from inside the critical region in the managed allocators. (#3230) 2016-06-30 22:28:55 -04:00
Zoltan Varga 36f7bf2c22 [corlib] Mark some StackTrace/StackFrame methods as NoInlining to prevent llvm from inlining these methods, which breaks the stacktrace computation code in the runtime. 2016-06-30 22:07:54 -04:00
Zoltan Varga fe991525f6 [tests] Probe for a different type than System.IO.Pipes.PipeOptions which is not part of the mobile_static profile. Fixes #41955. 2016-06-30 21:15:05 -04:00
Zoltan Varga 9515b7047e [llvmonly] Avoid asserting when caching non-open generic instances. 2016-06-30 20:49:17 -04:00
Zoltan Varga 6c9b5969dc [llvmonly] Emit gsharedvt wrappers for Nullable.Unbox calls. 2016-06-30 20:48:42 -04:00
Zoltan Varga 2def45a262 [llvmonly] Fix a case where an ftnptr was invoked as a method address. 2016-06-30 20:35:26 -04:00
Zoltan Varga 60bee25211 [llvmonly] Fix invocation of string ctors. Emit Array.Set/Get wrappers for more types. 2016-06-30 19:34:50 -04:00
Zoltan Varga 44fed99f09 [jit] Avoid emitting seq points inside alloc wrappers, they contain critical regions, and if thread self suspend in the seq point handler, it cannot be suspended by other threads. Fixes #42191. 2016-06-30 17:40:24 -04:00
Marcos Henrich aa68415f7b [System.Web.Services] Fixes bad XmlMapping.Key.
Fixes #41564

Calling xmlImporter.ImportMembersMapping would set the key with the
underlying message type [1], thus if a service had remote calls using
the same types a key already exists exception would be thrown.

Furthermore reference source has special logic to set headers
XmlMappings key [2].

This pull request fixes the issue by overriding the XmlMappings.Key with
the values similar to those used in the reference source version.

[1] http://referencesource.microsoft.com/#System.Xml/System/Xml/Serialization/XmlMembersMapping.cs,28
[2] http://referencesource.microsoft.com/#System.Web.Services/System/Web/Services/Protocols/SoapReflector.cs,515
2016-06-30 18:12:44 +01:00
Marcos Henrich 631d5dd49f [System.Web.Services] Test Header sharing issue.
Covers #41564

When multiple methods shared soap header a duplicate key exception would
be thrown.

This issue only occurs on XAMMAC and MOBILE where the non reference
source serializer is still used.
2016-06-30 17:56:16 +01:00
Andi McClure 2a6315ca00 Restore NULL check which PR #3040/#3105 mistakenly removed (bug 41623) (#3219)
Could cause crash while stepping over in SDB.
2016-06-30 12:44:46 -04:00
João Matos 4fc860ec21 [System.IO.Compression] Fixed Zip entry stream length/position getters in Update mode.
This does away with the lazy writeable entry scheme in Update mode and converts the stream to be writeable when its opened in Update mode.

From local testing, .NET does the same in this case.

Fixes another issue reported by @Numpsy in https://github.com/OfficeDev/Open-XML-SDK/issues/64.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=42274.
2016-06-30 14:15:52 +01:00
João Matos c167f3abe3 Merge pull request #3216 from tritao/zip_duplicate_entries
[System.IO.Compression] Fixed handling of Zip archives with duplicate entries with same name.
2016-06-30 12:58:00 +01:00
Jon Purdy ee7491ffba [runtime] Document MonoDomain.static_data_array. (#3223)
Saw a confusing comment, updated it.
2016-06-30 03:00:36 -04:00
Alex Rønne Petersen f101186786 Merge pull request #3220 from alexrp/master
Revert changes to profiler library linking
2016-06-30 04:08:28 +02:00
Alex Rønne Petersen 46b920abb1 Revert "[profiler] Don't build shared libraries under bitcode."
This reverts commit cfd9870f83.

There is no need for this as of 79b99a989d8d4cf2636b738a623bb3656e048ebf.
2016-06-30 00:50:31 +02:00
Alex Rønne Petersen d577ffac0f [profiler] Link profiler libraries against libmono (revert of 92341a).
This caused issues with symbol resolution at runtime on Android and we haven't
seen any *actual* cases where linking against libmono caused problems.
2016-06-30 00:50:26 +02:00
Zoltan Varga f16741a60a [bcl] Add a workaround for a watchos limitation to a memory mapped file test. Fixes #41747. 2016-06-29 09:39:44 -04:00
João Matos 7a9a7b2373 [System.IO.Compression] Fixed handling of Zip archives with duplicate entries with same name.
.NET supports this, from MSDN: "If an entry with the specified path and name already exists in the archive, a second entry is created with the same path and name.".

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=42219.
2016-06-29 11:28:16 +01:00
João Matos 0d5ea337a6 Merge pull request #3214 from tritao/zip_new_entries_writes
[System.IO.Compression] Fixed writes to newly-created Zip archive entries in Update mode.
2016-06-29 11:20:44 +01:00
Aleksey Kliger (λgeek) 787e34ae2d [remoting] Convert mono_load_remote_field_new_checked to managed code (#3149)
* [remoting] Convert mono_load_remote_field_new_checked to managed code.

* [corlib] Expose runtime struct MonoRemoteClass and MonoClass to managed

Also expose  mono_class_get_type to managed code.

* [corlib] Add Mono.RuntimeClassHandle to encapsulate MonoClass*

and Mono.RuntimeRemoteClassHandle to encapsulate MonoRemoteClass*

* [runtime] mono_marshal_get_ldfld_remote_wrapper invoke the managed TransparentProxy.LoadRemoteFieldNew method directly

Don't bother going through a native call and back out to managed.

* [runtime] Get rid of MONO_WRAPPER_LDFLD_REMOTE

When the MONO_WRAPPER_LDFLD is operating on a proxy, it always invokes
the TransparentProxy::LoadRemoteFieldNew managed method

* [runtime] Remove dead mono_load_remote_field_new_icall

* [mini] Bump AOT file format version

Because we removed the LDFLD_REMOTE wrapper type so all the
MonoWrapperType enum values shifted.
2016-06-28 18:22:04 -04:00
Alexander Köplinger 842b97f3cd Merge pull request #3187 from akoeplinger/mstestsuite-on-prs
[ci] Add ms-test-suite step to default test runs
2016-06-28 21:35:42 +02:00
Alexander Köplinger f358a708c0 [ci] Skip ms-test-suite on non-OSX workers
Some locale tests are running into issues on Linux, they should be investigated separately.
2016-06-28 19:48:45 +02:00
João Matos dab5ef4d6e [System.IO.Compression] Fixed writes to newly-created Zip archive entries in Update mode.
This regression was reported by RichardW of Open XML SDK project.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=39282.
2016-06-28 17:59:00 +01:00
monojenkins 4239ddd9f1 Merge pull request #3204 from BrzVlad/fix-lock-free-alloc2
[utils] Fix retiring of live block for the lock free allocator

Freeing a block descriptor (along with the block) can happen either when freeing a pointer in the block (we do this in order to prevent situations where we need to wait for the next alloc in order to free a block), either when we acquire an empty block while allocating. Either way, in order to free a block descriptor, we need to acquire it first.

When freeing a slot in a block, we are checking if the block is now empty in which case we acquire the block descriptor in order to free it (along with the block). While doing so, we were failing to account for the case where, by the time we make the block descriptor empty and the time we acquire it, another thread would try to allocate from the same descriptor, see that it's empty, free it, allocate a new descriptor (which would happen to have the same address as the retired one) to fulfill the allocation and then set it as the active descriptor for the allocator. When the first thread finally acquires the descriptor, we need to double check that it is still empty since it might be logically a different descriptor than the one we actually freed from. In the unlikely case it's not empty, we need to put it back in the allocator's data structures.
2016-06-28 00:08:47 +01:00
Vlad Brezae 90e6a2d949 [sgen] Use sgen_qsort instead of qsort (#3205)
qsort is not signal safe.
2016-06-27 12:30:45 -04:00
Alexander Köplinger fdd84f680e Merge pull request #3202 from dlahoti/patch-1
make monodis exit with value 1 on an error
2016-06-27 13:07:08 +02:00
Marcos Henrich 992d27a8e6 [System] Fixes ConnectAsync UnhandledEx
Fixes #41616

ConnectAsyncCallback now throws an exception when called a second time.
ConnectAsync reuses SocketAsyncEventArgs in BeginConnect which
already updates its state and calls ConnectAsyncCallback.

The changes make sure that ConnectAsyncCallback no longer called on
ConnectAsync catch block, while the state is still updated with the
exception.
2016-06-27 10:42:05 +01:00
Marcos Henrich a05bc5465a [System] Test Unhandled Ex on ConnectAsync
Covers #41616

Our console runner is currently swallowing this test unhandled
exceptions.

To make it test show the failure I had to set legacyUnhandledExceptionPolicy
to 0 in mcs/class/lib/net_4_x/nunit-console.exe.config

Then running we can observe the crash by running:
make -C mcs/class/System check TESTNAME=System.Net.Sockets.SocketTest.ConnectAsyncUnhandledEx

Other tests appear to crash with legacyUEP set to 0, while the runner
shows no errors.
2016-06-27 10:42:05 +01:00
Vlad Brezae 3668b437ea [sgen] Speed up domain finalization at shutdown
When we cleanup the gc at shutdown, we no longer care about running the remaining finalizers so we set the suspend_finalizers flag. This flag skipped running the finalizers but we would still traverse and modify the sgen finalizer hashes (on an arm box this could take even longer than 1s and lead to finalizer_thread_exited assertion failure since it's over the 100ms limit).

Avoid traversing sgen finalization hashes as soon as we see that we are shutting down.
2016-06-25 17:43:00 +03:00
João Matos 5221f80822 Merge pull request #3209 from tritao/master
[System.IO.Compression] Fixed stream writes when Zip archive is opened in Update mode
2016-06-24 20:25:09 +01:00
Ludovic Henry 8892b1da77 Merge pull request #3208 from ludovic-henry/iolayer-remove-shared
[io-layer] Remove remaining pieces for cross-process mutex, semaphore and event
2016-06-24 19:23:30 +02:00
Neale Ferguson e70a8aca1c Enhanced logging - attempt 2.5 (#3191)
* Revert "Revert "Enhance log tracing""

This reverts commit 565c6ac080.

* Better handle legacy log handler processing with suggestions from lamdageek

* Remove unnecessary assignment

* Restore mono_trace_set_log_handler parameters to their original specification
2016-06-24 12:47:01 -04:00
Ludovic Henry 7d8b8c08c0 [io-layer] Replace remaining pthread_cond_t by mono_cond_t 2016-06-24 15:47:19 +02:00
Ludovic Henry f42c7004be [io-layer] Fix potential buffer overrun 2016-06-24 15:43:17 +02:00
Ludovic Henry 2e41a15c5e [io-layer] Remove _wapi_shared_layout
This effectively remove any remaining code regarding the cross-process sharing of certain io-layer facilities.
2016-06-24 15:30:47 +02:00
João Matos 4a4d34f489 [System.IO.Compression] Fixed stream writes when Zip archive is opened in Update mode.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=39282.

Also helps with https://github.com/OfficeDev/Open-XML-SDK/issues/64.
2016-06-24 01:27:46 +01:00
Alexander Köplinger cafe2f9290 Merge pull request #3207 from ntherning/fix_broken_libmonosgen_dll_on_cygwin
Fix broken libmonosgen-2.0.dll on Cygwin due to -ggdb3 flag in CFLAGS
2016-06-24 00:37:04 +02:00
Ludovic Henry 2cbdc10bfd [io-layer] Merge _WapiHandleShared type into _WapiHandleUnshared 2016-06-23 18:42:33 +02:00
Ludovic Henry a3fde0a6b9 [io-layer] Make shared and unshared handle have the same fields 2016-06-23 18:42:33 +02:00
Ludovic Henry c162a18223 [io-layer] Remove mutex and namedmutex pid field
We do not support shared process handles anymore, so the pid is always going to be the same
2016-06-23 18:42:33 +02:00
Ludovic Henry 96c67c2e2f [io-layer] Remove _wapi_handle_timedwait_signal 2016-06-23 18:42:33 +02:00
Niklas Therning ba79e78de5 Don't pass -ggdb3 in CFLAGS on Windows builds as it somehow corrupts the
libmonosgen-2.0.dll and breaks the build of monograph.exe which links against
it.

Also adds -O2 to CFLAGS on all platforms to align with how releases are built.
2016-06-23 14:27:01 +02:00
dlahoti d7962daf42 make monodis exit with value 1 on an error
This should make it easier to programmatically check for errors, since it will remove the need to test the output string, which is an unreliable way of doing things.
2016-06-22 23:24:25 -05:00
Vlad Brezae 76fa75aed0 [utils] Fix retiring of live block for the lock free allocator
Freeing a block descriptor (along with the block) can happen either when freeing a pointer in the block (we do this in order to prevent situations where we need to wait for the next alloc in order to free a block), either when we acquire an empty block while allocating. Either way, in order to free a block descriptor, we need to acquire it first.

When freeing a slot in a block, we are checking if the block is now empty in which case we acquire the block descriptor in order to free it (along with the block). While doing so, we were failing to account for the case where, by the time we make the block descriptor empty and the time we acquire it, another thread would try to allocate from the same descriptor, see that it's empty, free it, allocate a new descriptor (which would happen to have the same address as the retired one) to fulfill the allocation and then set it as the active descriptor for the allocator. When the first thread finally acquires the descriptor, we need to double check that it is still empty since it might be logically a different descriptor than the one we actually freed from. In the unlikely case it's not empty, we need to put it back in the allocator's data structures.
2016-06-23 03:18:01 +03:00
Vlad Brezae c3648e7f82 [runtime] Bump corlib version for recent Thread layout changes 2016-06-22 17:43:31 +03:00
Alexander Köplinger 61f34e5928 Merge pull request #3197 from BrzVlad/fix-thread-layout
[sgen] Fix Thread layout after changes in #3123
2016-06-23 00:35:18 +02:00
Marek Habersack 850d468d2d Don't run the ping test on certain Android devices
As described in https://bugzilla.xamarin.com/show_bug.cgi?id=34883 at
least Samsung SG3 doesn't allow access to the local network
interface (in fact, even ifconfig doesn't work on the device). Therefore
the test needs to be disabled on those devices. This is the first part
of the fix, the second one will be implemented in Xamarin.Android test
suite which will provide the AndroidShouldPingWork method which will
check the device id against list of those that do not work for this
test.

Part #1 of fix for https://bugzilla.xamarin.com/show_bug.cgi?id=34883
2016-06-22 14:46:40 +02:00
Vlad Brezae b56cf46a56 [sgen] Fix Thread layout after changes in #3123 2016-06-22 12:17:22 +03:00
João Matos 70012f5ae0 Merge pull request #3195 from tritao/zip_stream_getters
[System.IO.Compression] Fixed stream length/position getters for ZIP entries
2016-06-22 00:52:27 +01:00
João Matos efe3c753e4 [System.IO.Compression] Fixed stream length/position getters for ZIP entries.
Partial fix for https://bugzilla.xamarin.com/show_bug.cgi?id=39282.

Partial fix for https://github.com/OfficeDev/Open-XML-SDK/issues/64.
2016-06-22 00:51:20 +01:00
Marek Safar 27482448e9 [System] Overwrite Console encoding to match mcs text output for CodeDOM compiler. Fixes #41979 2016-06-21 19:46:14 +02:00
Alexander Köplinger f094041420 Merge pull request #3188 from akoeplinger/mozroots-fix
[tools] Fix mozroots URL for Mozilla's certdata.txt and add deprecation warning
2016-06-21 17:15:57 +02:00
Alexander Köplinger e8bd8e656d [tools] Fix mozroots URL for Mozilla's certdata.txt and add deprecation warning
MXR is not coming back (see https://bugzilla.mozilla.org/show_bug.cgi?id=1279952 and https://github.com/SuaveIO/mono-script-buildpack/issues/9#issuecomment-226749314)
and this broke everyone who still relied on mozroots. Fix by using the version from the hg repository instead.

Starting from Mono 3.12 we've been shipping cert-sync to import CA certificates from the local computer trust store to Mono's trust store,
we strongly encourage everyone to move to that instead. Added a deprecation warning to mozroots to further strengthen this message.

Note that when fetching the CA list over the new https URL we need to skip cert validation errors, as the common use case for mozroots is when
no certs are present on the system (bootstrapping). This enables MITM but we don't really have any other options. Another reason why cert-sync is superior.
2016-06-21 17:14:22 +02:00
Marek Safar 33f95a1486 [System] Update IPInterfaceProperties initialization on windows. Fixes #41897 2016-06-21 15:50:02 +02:00
Marek Safar c476c4c468 [corlib] Add range check for minimal date in dst calculation. Fixes #41667 2016-06-21 15:16:45 +02:00
Alexander Köplinger cf1b844a98 [scripts/submodules] Add branch to check if fetch is needed
In some cases the "git log -1 <remote>" check fails even though the remote is configured
and an unnecessary fetch is done. Adding the branch to the check fixes this.
2016-06-21 03:03:07 +02:00
Neale Ferguson 89bf42b05f Use thread priority at thread start time (#3123)
* An enhancement to the thread priority work added earlier. This will support starting a thread with a specified priority. Currently, the thread will start with the priority of the creator. The semantics of threads allow you to specify the priority of a thread before it has started. Therefore, we take note of this value at thread creation time.

* Missed committing this file the first time

* Correct typo

* Fix creation_flags reference

* MonoThreadParm really should not be in objects-internal

* Place priority in MonoInternalThread where it can be accessed by GetThreadPriority(). This enablses the priority to be set/retrieved before the thread is started. It also ensures that new threads default to a priority of THREAD_PRIORITY_NORMAL rather than inheriting the parent thread's priority.

* Revert changes to MonoInternalThread/Thread.cs. Properly use the handle for thread lookup. Initialize priority at thread creation time. Use stored value of priority if thread has not been started.

* Add code to handle retrieving the thread priority from a started thread that had been set before thread had started. This is necessary as before the thread is started the priority value can be manipulated. This value is stored in the MonoThread structure. Before the thread is started the value can be interrogated so we return this value rather than invoking the GetThreadPriority() API. When a thread is started this value is used to set the threads priority (if scheduling policy is SCHED_FIFO or SCHED_RR). For POSIX threads, after the thread is started we now keep the priority in the _Wapi_thread structure which is located via the thread handle. This structure doesn't exist until after the thread is started so we can't store the value there but after we can cache the priority value there and return it for non-SCHED_[RR|FIFO] threads. This way the expected value will always be set and returned by ThreadPriority property (currently for these threads it will simply return Normal). A test case has been added to the mono/tests directory.

* Use a copy of creation_flags so local modifications aren't propagated

* Use pthread_setschedparam as OSX doesn't support pthread_setschedprio
2016-06-20 10:26:51 -04:00
Marek Safar 081781dd93 [reflection] Improves 1a820fcdc0 to do vslot match as optimization only 2016-06-20 13:43:15 +02:00
Alexander Köplinger 88bf878a7f Merge pull request #3179 from gttds/patch-2
[System.Web] Fixes 50 year form authentication
2016-06-20 13:33:59 +02:00
João Matos d1d72cdfa9 Merge pull request #3184 from tritao/zip_datetime
[System.IO.Compression] Fixed Zip entries with unset last write time to return the same as .NET.
2016-06-20 12:18:12 +01:00
Alexander Köplinger 5bf6df828c [ci] Add ms-test-suite step to default test runs 2016-06-20 13:00:54 +02:00
Marek Safar 1d73474cbc Merge pull request #3183 from marek-safar/bug41874
[reflection] Properties always use name and signature hidding rules. …
2016-06-20 11:44:42 +02:00
Marek Safar b7734fb631 [System.Web] Fixes SkinID property declaration 2016-06-20 11:33:07 +02:00
Zoltan Varga 1190e15f01 [llvm] Fix the allocation of vregs for the OP_MIN/MAX opcodes. Fixes #41947. 2016-06-18 20:01:42 -04:00
Zoltan Varga 72998aa615 Revert "[llvm] Fix the allocation of vregs for the OP_MIN/MAX opcodes. Fixes #41947."
This reverts commit 4cbef26bb7.

Revert this to see if it fixes the windows build.
2016-06-18 16:16:43 -04:00
Alexander Kyte d7eaad3f48 [runtime] Don't call ExecutionEngine constructor in aot mode (#3185) 2016-06-18 13:12:15 -04:00
Zoltan Varga 1d69617204 [aot] Add support for array accessor methods for multi-dimensional arrays. Fixes #41937. 2016-06-17 20:46:26 -04:00
Zoltan Varga 4cbef26bb7 [llvm] Fix the allocation of vregs for the OP_MIN/MAX opcodes. Fixes #41947. 2016-06-17 17:26:47 -04:00
João Matos bd938a4818 [System.IO.Compression] Fixed Zip entries with unset last write time to return the same as .NET.
.NET on Windows returns a fixed date for this, replicate the same behaviour in Mono.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=40916.

See also: https://github.com/NuGet/Home/issues/2518
2016-06-17 18:23:05 +01:00
Marek Safar 1a820fcdc0 [reflection] Properties always use name and signature hidding rules. Fixes #41874 2016-06-17 18:44:45 +02:00
Dunati 15fedcada9 Fix for x86 and amd64 continuations (#3182) 2016-06-16 19:15:14 -07:00
Dolphin Hawkins b5702212bb Fix for x86 and amd64 continuations 2016-06-16 16:55:57 -07:00
Zoltan Varga 3c9f7f0967 [aot] Fix leaking a MonoError. 2016-06-16 19:07:22 -04:00
Zoltan Varga caf57b42be [aot] Avoid asserting if loading a type fails. 2016-06-16 19:04:33 -04:00
Bernhard Urban 2243eec53b Merge pull request #3163 from alexanderkyte/fast_context_clean
[runtime] Store abremoval context statuses seperately to use memset for cleanup
2016-06-16 11:51:59 -07:00
Alexander Kyte 123aa41caf [bcl] Remove cosmetic target that always triggers a rebuild (#3180) 2016-06-16 11:51:31 -07:00
Marek Safar 4ef940ca14 Merge pull request #3175 from marek-safar/cas-cleanup
[bcl] Make mono cas opt-in features instead of opt-out for mobile pro…
2016-06-16 20:35:13 +02:00
gttds b499a3e00b [System.Web] Fixes 50 year form authentication
This fixes the bug where form authentication tickets do not expire until 50 years later.
I bumped into this bug after upgrading mono from 4.2.2 to 4.4.0

Firstly, the authentication ticket's expiry must always equal to the timeout attribute on the <forms/> element. It doesn't matter whether persistent or session cookies are used. 

Secondly, if the cookie is persistent, then it's expiry should be set to the same as that of the authentication ticket.

Reference: https://blogs.msdn.microsoft.com/dansellers/2006/02/15/change-to-asp-net-2-0-forms-authentication-persistent-cookies/
2016-06-16 23:46:21 +08:00
Marek Safar d35b5d2188 [System] Put back handling of direct ip addresses to ServicePoint::HostEntry (removed in 932359f3d6). Fixes #41782 2016-06-16 17:46:18 +02:00
Alexander Kyte f8977a0f6c [runtime] Return early so mono_value_box_checked doesn't clobber error (#3172) 2016-06-16 11:18:19 -04:00
Alexander Kyte 1796ad4200 [runtime] Store abremoval context statuses seperately to use memset for cleanup 2016-06-16 11:06:23 -04:00
Marek Safar ed989a8e9e [bcl] Make mono cas opt-in features instead of opt-out for mobile profiles 2016-06-16 14:37:55 +02:00
João Matos 934fe68aea Merge pull request #3176 from lateralusX/jlorenss/win-fix-test-dllimport-path
Update to tests config file reflecting changed libtest module location on Windows.
2016-06-16 12:14:41 +01:00
João Matos dfb71501df [System.IO.Compression] Fixed version needed to extract value in Zip central directory record entry.
This should fix some problem with Nuget archives created by Mono.

No test case for this one because it would involve writing a mini-ZIP file parser to make sure the value is written correctly (or hardcore the value offset in the generated file, which could lead to a very flakey test).

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=41775.
2016-06-16 12:12:32 +01:00
lateralusX 04b168129d Update to tests config file reflecting changed libtest module location.
Updated Visual Studio build uses a different default build location of modules
compared to previous version. The tests config file includes a relative
path to libtest used for by all pinvoke tests. Since the module is now
placed at a different location the load failed during the test.
2016-06-16 13:10:04 +02:00
Alexander Kyte b10c89c904 Merge pull request #3174 from alexanderkyte/revert_jay_relative
Revert "[runtime] Fix jay path in Microsoft.Build"
2016-06-15 18:30:52 -04:00
Alexander Kyte 2fb5ec70eb Revert "[runtime] Fix jay path in Microsoft.Build"
This reverts commit 6780bb169c.
2016-06-15 18:29:21 -04:00
Zoltan Varga fd2a124926 [llvm] Enable support for Selector.GetHandle (). Enable it for Xamarin.Mac as well. 2016-06-15 17:54:36 -04:00
Alexander Kyte c486ddc4fc Merge pull request #3173 from alexanderkyte/jay_build_path_fix
[runtime] Fix jay path in Microsoft.Build
2016-06-15 17:47:02 -04:00
Alexander Kyte 6780bb169c [runtime] Fix jay path in Microsoft.Build 2016-06-15 17:37:11 -04:00
Zoltan Varga eb34dbd0fc [llvm] Add suport for OP_OBJC_GET_SELECTOR, not enabled yet. 2016-06-15 16:05:24 -04:00
monojenkins bc6f673c13 Merge pull request #3169 from lambdageek/fix-regression-70561
[coop] Fix regression in bug-70561.cs

Match behavior of non-coop and don't set an exit code if the main method
throws an unhandled exception.
2016-06-15 16:18:42 +01:00
Alexander Kyte d2cc9be75b Merge pull request #3171 from alexanderkyte/net_4x_mdoc_fixup
[runtime] Fix inverted build check related to mcs docs
2016-06-15 10:25:28 -04:00
Alexander Kyte f17ae9e2cd [runtime] Fix inverted build check related to mcs docs 2016-06-15 10:22:50 -04:00
João Matos 611325c072 Merge pull request #2972 from lateralusX/jlorenss/vs2015-upgrade
Visual Studio project/solution upgrade and enhancement.
2016-06-15 10:56:04 +01:00
lateralusX 5adfe65a07 Fix pedump build errors due to moved source file.
Changes done in commit 2f6e404ed1 moving
pedump.c to different location cause build errors of pedump on Windows.
2016-06-15 11:08:16 +02:00
lateralusX fc9396edf2 Reverted back to use target name for library pdb files and default
naming for intermediate pdb files for exe/dll's.

All artifacts will now have the same name of their final pdb file as
the library/dll/exe target file name.

The problem with the naming turns out to be a problem in Visual Studio
when a exe/dll use the same name of its intermediate pdb files and final
pdb file. In that case the final pdb file produced by the linker will be
incorrect and not usable by the debugger. This was the reason for the initial
change, giving intermediate pdb files a different name. Moving back to the
default naming for intermediate pdb files for exe/dll's will give the same
effect (a different name) and since libraries are not affected by this
problem, libraries can use the target name for their pdb files as well.
2016-06-15 09:44:24 +02:00
lateralusX 91e96b3d7f Added new sources to Source Folder filter in libmonoutils. 2016-06-15 09:44:24 +02:00
lateralusX 69e25e0087 Disable build of boehm GC on Windows x64. 2016-06-15 09:44:24 +02:00
lateralusX 2cad193fc5 Added support to select static or dynamic c-runtime based on user property.
All projects will inherit the RuntimeLibrary from mono.props where it now
can be controlled using a user property, MONO_USE_STATIC_C_RUNTIME.
2016-06-15 09:44:24 +02:00
lateralusX 0e0002e255 Fixed .bat file to handle xcopy command not in path.
Also added support to not always replace config.h/version.h since that triggers
unnecessary rebuilds during development. New script will check if there is
an actual difference in the config.h/version.h file before doing the copy.
2016-06-15 09:44:24 +02:00
lateralusX c60a49439a Added support to split GC builds into different build folders. 2016-06-15 09:44:24 +02:00
lateralusX 106908689a Added files to corresponding filter folders (header files/source files). 2016-06-15 09:40:06 +02:00
lateralusX 6052043fd9 Fixes to default build/distribution location. 2016-06-15 09:40:06 +02:00
lateralusX 35f830a6f2 Added additional build dependecies + setting up source availabilty depending on platform. 2016-06-15 09:40:06 +02:00
lateralusX aa4f4e6962 Added support for 64 toolchain + default log level masks. 2016-06-15 09:40:06 +02:00
lateralusX d966314db5 Added regression tests as visual studio projects.
* Added regression test running mono/mini --regression [regression_tests]
* Added regression test running mono/mini --aot [regression_tests]
* Added default debugging options to run regression tests from within visual studio debugger.
* On new build system, setting up include folder if not availalble.

All changes applies to debug/release 32/64 bit.
2016-06-15 09:40:06 +02:00
lateralusX e13440bf6a Added missing include path for test projects.
On a clean system there was a missing include path for some of the embedded samples.
2016-06-15 09:40:06 +02:00
lateralusX 2ed1acdf7b Added regression test project.
* Updated vs project files to resolve winsock, winsock2 build dependecies.
* Added vs project running basic mono-mini regression tests.
2016-06-15 09:40:06 +02:00
lateralusX 3360c14f65 Added suffix to intermediate build .pdb files in order to avoid potential naming conflicts when linking. 2016-06-15 09:40:06 +02:00
lateralusX 5ffb067e88 Added support for optional target build suffix. 2016-06-15 09:40:06 +02:00
lateralusX 51870b34bd Better property manager and user macros support.
* Added support for user macros in order to set build/install/sgen.
* Added support for more arguments to bat files + support for quoted paths.
* Added support for verbose/quite output in bat files.
* Moved libmono xcopy post build step into separate bat file.
* Cleaned some sgen configs still left in vcxprojs.
2016-06-15 09:40:06 +02:00
lateralusX b1c604eee2 Separate build tree and target suffix support.
* Enabled build target suffix in order to lable a build (primarly for sgen).
* Enabled separate build tree.
* Dropped all sgen configurations, replaced by properties and target suffix.
* Fixed pdb naming of intermediate pdb files.
2016-06-15 09:40:06 +02:00
lateralusX c371f4f33c Restructured build/package/install targets and split GC libraries.
* Added package/install targets.
* Moved sgen into separate library.
* SGEN set as default GC for build (used GC controlled through mono.props).
2016-06-15 09:40:06 +02:00
lateralusX 01551beda6 Refactored VS depdencies + restructring VS solution and projects. 2016-06-15 09:40:06 +02:00
lateralusX 8938bfd232 Upgrade to vs2015 for native projects.
* Upgraded all projects to new vs2015 tool chain.
* Used mono.props through property manager instead of import.
* Fixed dependencies to be more explicitly in additional dependecies.
* Fixed error in mono.props, switched $ to % when referencing internal variables.
* Added property variables for includes and libraries, defined in mono.props.
2016-06-15 09:40:06 +02:00
Miguel de Icaza 0aa112f9dd [mkbundle] Improve error checking 2016-06-14 23:25:30 -07:00
Miguel de Icaza ab73f54d42 [main] replace computed value by a constant
The reason why mkbundle is not working is that for some reason
this constant expression is producing different code than the
-24 that it is supposed to.

What is odd is that the return value from the lseek system
call is the same, but yet, read fails with an end-of-file with
this value, and otherwise it passes.

With this call:

     lseek (fd, -(16+sizeof(uint64_t)), SEEK_END)

strace displays:

lseek(0x3, 0xFFFFFFE8, 0x2)		 = 19375512 0

With this call:

     lseek (fd, -24, SEEK_END)

strace displays:

lseek(0x3, 0xFFFFFFFFFFFFFFE8, 0x2)	 = 19375512 0

Now, while both results from lseek are the same, a subsequent read
with 24 bytes to read returns zero on the former case, and 24 on
the latter case.
2016-06-14 23:25:30 -07:00
Alexander Köplinger 3e22f8a53f [mcs] Use $(RESGEN) instead of resgen
It broke the .deb package build
2016-06-15 03:12:02 +02:00
Alexander Köplinger 5479142e8b Merge pull request #3168 from alexanderkyte/default_4_x_preset
[runtime] Make the default preset only build net_4_x
2016-06-15 01:16:49 +02:00
Aleksey Kliger 43d8951c78 [coop] Fix regression in bug-70561.cs
Match behavior of non-coop and don't set an exit code if the main method
throws an unhandled exception.
2016-06-14 19:11:19 -04:00
Alexander Kyte 1586896f99 [runtime] Make the default preset only build net_4_x 2016-06-14 19:08:31 -04:00
Alexander Kyte 65efedb894 Merge pull request #3089 from alexanderkyte/mobile_static_jenkins_script
[mobile_static] Update jenkins build script for mobile_static profile
2016-06-14 18:24:26 -04:00
Zoltan Varga 0f996d6020 [runtime] [runtime] Fix the printing of unhandled exceptions in coop. 2016-06-14 18:06:58 -04:00
Zoltan Varga d71f485af7 [runtime] Return after setting the error in mono_jit_runtime_invoke (), otherwise mono_value_box_checked () initializes it again. 2016-06-14 18:06:58 -04:00
Miguel de Icaza aff1a51a38 WIP [library.make] Make resource usage declarative in the class libraries (#3159)
[library.make] Make resource usage declarative in the class libraries
2016-06-14 13:57:09 -07:00
Zoltan Varga 6b3a592de0 [jit] Set the 'real_offset' field of bblocks in mono_replace_ins (), the EH code generator in llvm depends on it being set. 2016-06-14 15:36:44 -04:00
Alexander Köplinger ca606bbefa Merge pull request #3165 from akoeplinger/fix-clock-monotonic-macos1012
[utils] Work around CLOCK_MONOTONIC being defined on macOS 10.12 SDK despite targeting earlier releases
2016-06-14 19:08:11 +02:00
Marek Safar bc5e8fbf5c [mcs] Support System.Object forwarded to any assembly in any references order 2016-06-14 19:03:59 +02:00
Alexander Köplinger b821c8e33c [utils] Work around CLOCK_MONOTONIC being defined on macOS 10.12 SDK despite targeting earlier releases
Should fix https://bugzilla.xamarin.com/show_bug.cgi?id=41786
2016-06-14 16:39:41 +02:00
Alexander Kyte d6025dec80 Merge pull request #3162 from alexanderkyte/ignore_pkits
[mobile_static] Skip PKITS tests on mobile_static due to missing
2016-06-13 16:06:28 -04:00
Aleksey Kliger (λgeek) fdfa5d8461 [coop] Protect copy_stack_data from GCC optimizations. (#3157)
[coop] Protect copy_stack_data from GCC optimizations.

GCC 5.3.1 (Debian sid/amd64) "optimizied" the previous incarnation of
`void *stackdata_end = return_stack_ptr ()` to
`void *stackdata_end = 0`.
2016-06-13 15:58:44 -04:00
Alexander Kyte 0b3e113656 [mobile_static] Make bitcode preset enable llvm 2016-06-13 14:53:51 -04:00
Alexander Kyte 53b79e4a91 [mobile_static] Skip PKITS tests on mobile_static due to missing
fixtures
2016-06-13 14:31:40 -04:00
Bernhard Urban 06c67d8075 Merge pull request #3160 from JustArchi/patch-1
SGen: Fix parsing of default-allowance-ratio
2016-06-13 09:56:27 -07:00
Alexander Kyte 6f876c4bbc [runtime] Rename the net_4_x runtime preset to all 2016-06-13 12:16:24 -04:00
Alexander Kyte 280906915b [runtime] Keep one-off jenkins disabling in script 2016-06-13 12:16:24 -04:00
Alexander Kyte cc9a2a0379 [runtime] Allow presets to disable runtime features 2016-06-13 12:16:24 -04:00
Alexander Kyte 62898add79 [mobile_static] Update reported FX version to 4.x 2016-06-13 12:16:23 -04:00
Alexander Kyte cd81b965b8 [mobile_static] Set default value for disabling MCS docs 2016-06-13 12:16:23 -04:00
Alexander Kyte b6af11c6a9 [mobile_static] Split jenkins tests out, enable running from top level 2016-06-13 12:16:23 -04:00
Alexander Kyte 6e5479c540 [runtime] Make cooperative gc default on our bitcode profile 2016-06-13 12:16:22 -04:00
Alexander Kyte a1800e89ce [mobile_static] Use runtime_preset configuration option 2016-06-13 12:16:22 -04:00
Alexander Kyte 67ccd74036 [mobile_static] Disable NLS by default on OSX 2016-06-13 12:16:22 -04:00
Alexander Kyte 87d30ece8b [mobile_static] Added in runtime_profile autoconf flag, make set
defaults
2016-06-13 12:16:21 -04:00
Alexander Kyte b5a550bb97 [mobile_static] Make mobile_static default profile when building with it
When building a mobile_static build, we need to pass a lot of flags
which disable features. These make the net_4_x profile not build
correctly when using the official jenkins script. This helps.
2016-06-13 12:16:21 -04:00
Alexander Kyte 630bea6983 [mobile_static] Fix configure.ac handling of with_profile4_x option 2016-06-13 12:16:21 -04:00
Alexander Kyte 12b32e2334 [runtime] Specialize run-jenkins script for mobile_static when it runs 2016-06-13 12:16:20 -04:00
Aleksey Kliger (λgeek) c6f75c367a Merge pull request #3106 from lambdageek/dev/monoerror-unhandled
[runtime] Okay to raise MonoError in thread start functions.
2016-06-13 11:52:35 -04:00
Marek Safar b5dc9a4951 [System] Fixes crash during implicit file uri parsing with unicode characters 2016-06-13 17:21:51 +02:00
Alexander Köplinger 288535ce9d Merge pull request #3161 from ntherning/use_msvc_built_libtest_dll_for_runtime_tests_on_windows
Use the MSVC built libtest.dll when running the P/Invoke tests in mono/tests/ on Windows
2016-06-13 16:42:20 +02:00
Niklas Therning 0bbf9c3a73 Use the MSVC built libtest.dll when running the P/Invoke tests in mono/tests/
on Windows. Updates the tests-config.in file with Windows specific <dllmap>
elements that map 'libtest' to the MSVC built libtest.dll for the current
architecture. test-runner.cs has been modified to accept a --config option to
be able to use a specific config file. Makefile.am now configures test-
runner.exe to use the tests-config config when running the tests.
2016-06-13 10:50:19 +02:00
Łukasz Domeradzki 6ceccb40de SGen: Fix parsing of default-allowance-ratio
Parsing ```default-allowance-ratio``` in ```MONO_GC_PARAMS``` is completely broken and accepts only one value - 1.0, while it should accept range of 1.0-10.0. We can clearly notice that when setting ```default-allowance-ratio``` to e.g. ```2.0``` and trying to run any program through Mono runtime:

```
Warning: In environment variable `MONO_GC_PARAMS': `default-allowance-ratio` must be between 1.00 - 1.00. - Using default value.
```

Therefore, correct this for using proper 1.0-10.0 range.
2016-06-13 05:28:22 +02:00
Aleksey Kliger (λgeek) 81a6cf5ece [runtime] Don't raise ArgumentNullException in mono_monitor_enter_fast (#3158)
Just return that you couldn't enter the monitor and let the slow path handle it.

Fixes [#41705](https://bugzilla.xamarin.com/show_bug.cgi?id=41705)
2016-06-12 17:32:07 -04:00
Sebastien Pouliot 999ed78aa7 [System.Net.Http] Fix CFNetworkHandler.CookieContainer not to return null (#3141)
* [System.Net.Http] Fix CFNetworkHandler.CookieContainer not to return null

This aligns the handler with the managed HttpClientHandler [1] and make
it easier to switch between them without additional or conditional code.

[1] https://github.com/mono/mono/blob/14f8acced5bbb2f6d55fb3e7800382700bcc65eb/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.cs#L97
2016-06-11 14:21:21 -04:00
Zoltan Varga fe50acb6ff [runtime] Avoid building the tools dir when cross-compiling, some tools don't seem to compile. 2016-06-10 22:48:27 -04:00
Zoltan Varga d21e1be2b1 [amd64] Handle native types correctly in mono_arch_get_llvm_call_info (). 2016-06-10 22:48:27 -04:00
Zoltan Varga f098db9484 [jit] Add some missing opcodes to MONO_IS_SETCC. 2016-06-10 22:48:27 -04:00
Alexander Köplinger 171a69b668 Merge pull request #3152 from ntherning/use_env_configured_mono_exe_in_runtime_tests
Make mono/tests/Makefile.am use MONO_EXECUTABLE if set
2016-06-10 23:39:25 +02:00
Marek Safar 129e6c3220 [mscorlib] Better handling of unix timezones which have offset not specified in whole minutes. Fixes #41492 2016-06-10 21:53:29 +02:00
Alexander Köplinger b6b1525709 [tools] Add a few missing files to the tarball
Those turned out to be missing when building tools/ was enabled by default.
Also ignore some stuff in .gitignore
2016-06-10 21:11:03 +02:00
Aleksey Kliger (λgeek) 78e5ac0f8f [runtime] Fix MonoError lifecycle in do_try_exec_main (#3145)
The do_try_exec_main function is always called in contexts where any
exception from doing the invoke is going to be stored in the exc outarg.
That means any MonoError will be handled locally by do_try_exec_main.
So we don't need a MonoError argument, we just need an inner_error.
2016-06-10 14:59:53 -04:00
Martin Baulig aef549e364 Merge pull request #3144 from Unity-Technologies/fix-recursive-property-call
Fix recursive property call in MonoSslStreamImpl
2016-06-10 20:23:35 +02:00
Aleksey Kliger (λgeek) 8b57a81993 Merge pull request #3154 from lambdageek/fix-initmessage-linker
[linker] Add MonoMethodMessage::InitMessage to mscorlib descriptor
2016-06-10 11:54:29 -04:00
Aleksey Kliger 8799f317dd [linker] Add MonoMethodMessage::InitMessage to mscorlib descriptor
That method gets called from the runtime, it shouldn't be linked out.
2016-06-10 11:23:12 -04:00
Alexander Köplinger 0fa5f5fb4f [tests] Bump timeout in sleep.exe
We're seeing it randomly fail on Wrench with durations of 1550 - 1800ms.
Talked to Zoltan, this might be normal so bumping the timeout to reduce the failure rate.
2016-06-10 16:32:21 +02:00
Marek Safar 78bf2b6cc2 [System] Read all values of unknown/uncommon headers with multiple entries. Fixes #41552 2016-06-10 13:00:06 +02:00
Alexander Kyte b1dccbc236 [runtime] Ensure uniqueness of icall wrappers (#3143)
The llvmonly backend will use `mono_aot_init_gshared_method_this`
and other initializers to initialize methods. These will transitively call
`mono_icall_get_wrapper_full` when icall wrappers are needed.

The init functions will set the
initialized flag after initialization. They set it in a non-atomic manner. This means that
in a multithreaded environment, it's possible to call the functions
twice.

When `mono_icall_get_wrapper_full` is called without this patch, the
pointers to wrappers it gets from `mono_marshal_get_icall_wrapper`
will not have the same addresses. They will hash to the same value
though.

This will lead to them not being found or inserted by
`find_aot_method_in_amodule`.
The fact that we already have a value with this hash means that
the new wrapper doesn't get inserted. The fact that the pointers differ
mean that we don't say that we've found our desired wrapper.

This leads to an assertion in `mono_icall_get_wrapper_full`
crashing the runtime.

Since we intend to have the semantics of a wrapper for each icall,
this change uses a cache to ensure uniqueness. The observed crashes
do not happen when this change is applied.
2016-06-10 05:05:51 -04:00
Marek Safar b0fd769485 Merge pull request #3151 from akoeplinger/fix-islocal
[System] Fix HttpListenerRequestTest.HttpRequestIsLocal intermittently failing
2016-06-10 10:13:59 +02:00
Niklas Therning 68af1e0192 Modifies mono/tests/Makefile.am to pass along the value set in the
MONO_EXECUTABLE env variable to test-runner.exe using the --runtime command
line parameter. Defaults to 'mono' which is also the defult in test- runner.cs
if no --runtime argument is given.
2016-06-10 09:46:04 +02:00
Zoltan Varga 2f6e404ed1 [runtime] Move 'pedump' to tools/pedump, build tools by default. (#3133)
* [runtime] Move 'pedump' to tools/pedump, build tools by default.

* Add missing file.

* [runtime] Mark mono_opcodes[] with MONO_API.

* [runtime] Build monograph when sgen is supported instead of boehm.

* [runtime] Link monograph against the static runtime libraries.

* [runtime] Use the same SUBDIRS/DIST_SUBDIRS for the CROSS_COMPILING case.
2016-06-10 02:52:03 -04:00
Alexander Köplinger ff55074476 Merge pull request #3140 from esdrubal/syscall_details
[runtime] Fixed interruptible wapi_sendfile part2.
2016-06-10 01:48:19 +02:00
Alexander Köplinger 0178821e50 [System] Fix HttpListenerRequestTest.HttpRequestIsLocal intermittently failing
We're seeing the following exception on devices in CI:

```
[FAIL] HttpListenerRequestTest.HttpRequestIsLocal : System.Net.Sockets.SocketException : Could not resolve host 'XQA-AppleTV-1'
	  at System.Net.Dns.Error_11001 (System.String hostName) [0x00000] in /Users/builder/data/lanes/1381/d8287824/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/System/System.Net/Dns.cs:292
	  at System.Net.Dns.GetHostByName (System.String hostName) [0x00024] in /Users/builder/data/lanes/1381/d8287824/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/System/System.Net/Dns.cs:419
	  at System.Net.Dns.GetHostEntry (System.String hostNameOrAddress) [0x00061] in /Users/builder/data/lanes/1381/d8287824/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/System/System.Net/Dns.cs:380
	  at System.Net.Dns.GetHostAddresses (System.String hostNameOrAddress) [0x00065] in /Users/builder/data/lanes/1381/d8287824/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/System/System.Net/Dns.cs:406
	  at MonoTests.System.Net.HttpListenerRequestTest.HttpRequestIsLocal () [0x00006] in /Users/xamarinqa/QABot/data/lanes/2441/d8287824/source/xamarin-macios/external/mono/mcs/class/System/Test/System.Net/HttpListenerRequestTest.cs:197
	  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
	  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/data/lanes/1381/d8287824/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:309
```

From looking at the code, resolving the hostname to IP addresses via DNS fails so the test doesn't even run.
We don't care where the local IPs come from so we can use an alternative way of getting them - via querying the network interfaces.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=41671

PS: fixed a hardcoded port while I was touching the code
2016-06-10 01:39:14 +02:00
monojenkins cadf391bea Merge pull request #2921 from lewurm/lower-typechecks-later
[mini] lower typechecks later

lower typecheck instructions later in the compilation, so we've a chance to do high-level optimization after `method-to-ir`
2016-06-10 00:05:15 +01:00
monojenkins 59ec6fd3d6 Merge pull request #3121 from lambdageek/dev/managed-init_message
Rewriite `MonoMethodMessage::InitMessage` in managed code

Change icall
`System.Runtime.Remoting.Messaging/MonoMethodMessage::InitMessage` to
managed code.

Also update `mono_message_init()` to invoke `InitMessage`.
2016-06-09 23:15:10 +01:00
Rodrigo Kumpera 10fb3e1955 [sgen] Inform on configure and --version when the concurrent GC is the default. 2016-06-09 13:39:53 -07:00
Bernhard Urban 4b094daa6a [mini] execute decompose_typechecks only if there's a typecheck operation 2016-06-09 13:32:36 -07:00
Bernhard Urban a13370db72 [mini] comment about empty BBs for graph visualization 2016-06-09 13:32:36 -07:00
Bernhard Urban 0340dfb1ec [mini] do decomposition of typechecks later in the compilation pipeline 2016-06-09 13:32:36 -07:00
Bernhard Urban 9cd83a3c06 [method-to-ir] get rid of additional reg introduced for isinst and castclass 2016-06-09 13:32:36 -07:00
Bernhard Urban 82b0502f7c [mini] add time tracking for decompose_typechecks pass 2016-06-09 13:32:36 -07:00
Bernhard Urban 31db83596d [mini] decompose isinst and castclass in a later pass 2016-06-09 13:32:36 -07:00
Bernhard Urban 0975b0d13b [cfgdump] insert NOP in empty basic blocks in order to not confuse graph dumper 2016-06-09 13:32:36 -07:00
Bernhard Urban 70b42fc580 [debug] print class name for OP_{isinst,castclass} 2016-06-09 13:32:36 -07:00
Bernhard Urban 7ab1f37abb [mini] introduce OP_{isinst,castclass} 2016-06-09 13:32:36 -07:00
Vlad Brezae b2cf7bbf84 Merge pull request #3136 from BrzVlad/fix-stw-stopped
[sgen] Don't try to stop a stopped world
2016-06-09 23:13:56 +03:00
Aleksey Kliger 5a7f490680 [runtime] Switch mono_message_init to invoke managed
Invoke the managed
System.Runtime.Remoting.Messaging.MonoMethodMessage::InitMessage method.
2016-06-09 14:52:52 -04:00
Aleksey Kliger 83f3716119 [corlib] Implement MonoMethodMessage::InitMessage in managed
Change icall
System.Runtime.Remoting.Messaging/MonoMethodMessage::InitMessage to
managed code.
2016-06-09 14:52:52 -04:00
Alex Rønne Petersen d43ea3ac56 Merge pull request #3127 from alexrp/arm32-on-arm64
[arm] Correctly detect hardware features when running as arm32 on arm64 hardware.
2016-06-09 20:29:31 +02:00
Bernhard Urban 95e805c52a Merge pull request #3137 from BrzVlad/fix-sgen-critical-region
[sgen] Exit the critical section also on the slowpath of managed allocators
2016-06-09 10:31:49 -07:00
monojenkins 68be3904cf Merge pull request #3142 from henricm/fix-for-win-mono_string_to_utf8
Using mono_marshal_free n mono_string_builder_to_utf8

`mono_string_builder_to_utf16` is allocating using `mono_marshal_alloc` which, on windows, allocates memory using `CoTaskMemAlloc`. This buffer was then released in `mono_string_builder_to_utf8` using `g_free` which resulted in a crash since that's a different memory on windows. The fix in this PR makes sure `mono_marshal_free` is called instead which has the correct behaviour and results in a `CoTaskMemFree` on windows.
2016-06-09 17:55:12 +01:00
Marek Safar 0f93f3f98d [mcs] Add probing conversion for FormattableString. Fixes #41575 2016-06-09 17:55:19 +02:00
Mike Voorhees ef0c4d2c1b Fix recursive property call in MonoSslStreamImpl 2016-06-09 10:50:37 -04:00
Johan Lorensson 14f8acced5 Merge pull request #3085 from lateralusX/jlorenss/win-x64-pinvoke-empty-struct
Fix for non GCC win x64 calling convention when passing empty structs over pinvoke.
2016-06-09 15:49:33 +02:00
Henric Müller 18c8694c0d Making sure mono_marshal_free is used instead of g_free in mono_string_builder_to_utf8 2016-06-09 15:40:30 +02:00
monojenkins 975fc21341 Merge pull request #3139 from akoeplinger/dns-test
[System] Make ServicePointTest.DnsRefreshTimeout test more reliable

We are still seeing quite rare failures of this test:

```
HostEntry should result in the same IPHostEntry object.
  Expected: same as <System.Net.IPHostEntry>
  But was:  <System.Net.IPHostEntry>

+++++++++++++++++++
STACK TRACE:
at MonoTests.System.Net.ServicePointTest.DnsRefreshTimeout () [0x00045] in /Users/builder/jenkins/workspace/test-mono-mainline/label/osx-i386/mcs/class/System/Test/System.Net/ServicePointTest.cs:228
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/jenkins/workspace/test-mono-mainline/label/osx-i386/mcs/class/corlib/System.Reflection/MonoMethod.cs:309
```

Since the test is only checking if expiring of the cached DNS lookup works, we don't really need to use an external domain name for this as "localhost" works just fine as well and typically doesn't trigger a DNS query which makes the test more reliable against network issues.

@monojenkins merge
2016-06-09 14:35:12 +01:00
Marek Safar 19880afc7a [mcs] Recognize indexer with accessors using different names. Fixes #41602 2016-06-09 14:59:49 +02:00
Marcos Henrich fff8e4e1c5 [runtime] Fixed interruptible wapi_sendfile part2.
Fixed issue where underlying system without HAVE_SENDFILE
would not interrupt while sending a file even when the socket was
set as a non blocking one.
2016-06-09 12:42:15 +01:00
Alexander Köplinger ea4ad81185 [System] Make ServicePointTest.DnsRefreshTimeout test more reliable
We are still seeing quite rare failures of this test:

```
HostEntry should result in the same IPHostEntry object.
  Expected: same as <System.Net.IPHostEntry>
  But was:  <System.Net.IPHostEntry>

+++++++++++++++++++
STACK TRACE:
at MonoTests.System.Net.ServicePointTest.DnsRefreshTimeout () [0x00045] in /Users/builder/jenkins/workspace/test-mono-mainline/label/osx-i386/mcs/class/System/Test/System.Net/ServicePointTest.cs:228
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/jenkins/workspace/test-mono-mainline/label/osx-i386/mcs/class/corlib/System.Reflection/MonoMethod.cs:309
```

Since the test is only checking if expiring of the cached DNS lookup works, we don't really need to use an external domain name for this
as "localhost" works just fine as well and typically doesn't trigger a DNS query which makes the test more reliable against network issues.
2016-06-09 13:24:13 +02:00
Alexander Köplinger 2774428b2d Merge pull request #3138 from akoeplinger/fix-win
[metadata] Fix Windows gcc build break
2016-06-09 11:52:05 +02:00
Marek Safar 4021e61ab1 [mcs] Bump ikvm to fix assembly unification rules 2016-06-09 10:30:40 +02:00
Alex Rønne Petersen 738521b8cf [arm] Correctly detect hardware features when running as arm32 on arm64 hardware. 2016-06-09 07:22:57 +02:00
Alexander Köplinger 13f87866a9 [metadata] Fix Windows gcc build break
After 680fe21e69 it failed with:

```
coree.c: In function '_CorExeMain':
coree.c:200:2: error: implicit declaration of function 'mono_runtime_run_main_checked' [-Werror=implicit-function-declaration]
  mono_runtime_run_main_checked (method, argc, argv, &error);
  ^
[...]
Makefile:2137: recipe for target 'libmonoruntime_la-coree.lo' failed
make[3]: *** [libmonoruntime_la-coree.lo] Error 1
```
2016-06-09 02:53:48 +02:00
Mark Probst 37bb54b503 [sgen] Scatterplot option for gcpauseviz. 2016-06-08 16:03:14 -07:00
Vlad Brezae eaa2627cf5 [sgen] Exit the critical section also on the slowpath of managed allocators
We were not exiting the critical section on this code path. This was leading to hangs at stw since the native code would take locks when compiling the code.
2016-06-09 01:50:51 +03:00
Vlad Brezae b136605a73 [sgen] Don't try to stop a stopped world
On domain unload we were calling sgen_perform_collection even though we had a stopped world, when finishing a running concurrent collection.
2016-06-09 01:49:16 +03:00
Rodrigo Kumpera 916fb1aa3e Merge pull request #3135 from kumpera/enable_conc_gc_on_mainline_archs
[jenkins] Make the concurrent GC the default on mainline archtectures.
2016-06-08 15:33:27 -07:00
Rodrigo Kumpera a0866bdd34 [jenkins] Make the concurrent GC the default on mainline archtectures. 2016-06-08 15:12:47 -07:00
Alexander Köplinger d74cf1d5dc Merge pull request #3090 from alexanderkyte/remove_deprecated_assertions
[mobile_static] Remove deprecated assertions
2016-06-08 23:04:00 +02:00
Rolf Bjarne Kvinge 627fe81dc1 [corlib] Fix tests for watchOS. (#3131) 2016-06-08 16:46:11 -04:00
Alexander Kyte 87ede5a9b6 [mobile_static] Give libmono{sgen,boehm} the platform ldflags 2016-06-08 15:45:57 -04:00
Zoltan Varga 0652b7069c [llvm] Enable support for the atomic store intrinsics when running with llvmonly. 2016-06-08 14:58:15 -04:00
Alex Rønne Petersen 91734968b8 Merge pull request #3117 from alexrp/master
Fix a few socket test failures on Android
2016-06-08 18:04:48 +02:00
Aleksey Kliger dae1630a21 [runtime] Okay to raise MonoError in thread start functions.
They just trigger the unhandled exception handlers.
2016-06-08 10:55:14 -04:00
Aleksey Kliger (λgeek) 4cf9ffd6cf Merge pull request #3093 from lambdageek/dev/monoerror-exec
[runtime] Mark mono_runtime_{run,exec}_main external only.
2016-06-08 10:35:46 -04:00
Alex Rønne Petersen 57e8af467a [sockets] Correctly report that Linux supports double binding for UDP, even on old kernels. 2016-06-08 15:40:12 +02:00
Marek Safar 7800c71e39 [mcs] Improve betterness changes in b12385e9fd 2016-06-08 15:26:32 +02:00
Marek Safar fed1f25cab [System] Fixes compiler warning 2016-06-08 15:26:31 +02:00
Alex Rønne Petersen 5893ae1883 [System] Make SocketAsyncTest.SendAsync give more helpful failures. 2016-06-08 15:04:18 +02:00
Alexander Köplinger d3c2d9c5f4 [build] Add llvm folder to SUBDIRS/DIST_SUBDIRS
This ensures all the right files are packaged in the tarball.
2016-06-08 14:05:50 +02:00
Alexander Köplinger 7b20c1b851 Merge pull request #3122 from akoeplinger/fix-41530
[System] Make TimerTest.EnabledInElapsed more reliable
2016-06-08 12:47:41 +02:00
Marcos Henrich 02f5cd35f2 Merge pull request #3120 from esdrubal/syscall_details
Fixes SendAsyncFile flaky failures
2016-06-08 09:03:20 +01:00
Zoltan Varga 5df50b299a [runtime] Only print out the value of MONO_EXTRA_CONFIGURE_FLAGS when it is set. 2016-06-08 03:05:16 -04:00
Rodrigo Kumpera 28b0808a7c Merge pull request #3118 from kumpera/fix_getname
[corlib] Handle user Assembly subclass and Assembly::GetName.
2016-06-07 17:22:55 -07:00
Alexander Köplinger bab393e095 [System] Make TimerTest.EnabledInElapsed more reliable
We were seeing intermittent failures on devices like:

```
	[FAIL] TimerTest.EnabledInElapsed :   #1 loss of events
  Expected: True
  But was:  False

		  at MonoTests.System.Timers.TimerTest.EnabledInElapsed () <0x33b168 + 0x0014f> in <filename unknown>:0
		  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
		  at System.Reflection.MonoMethod.Invoke (System.Object , BindingFlags , System.Reflection.Binder , System.Object[] , System.Globalization.CultureInfo ) <0x66d400 + 0x000b7> in <filename unknown>:0
```

Since OS scheduling and GCs can influence the exact timing of the timer intervals sleeping for 200ms is likely just too short.
Instead of bumping the timeout, I decided to rewrite the test to not rely on Thread.Sleep ().
I also added another test which verifies setting AutoResetEvent=false stops the timer event from firing after the first one,
which was implicitly tested before by the other test.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=41530
2016-06-08 01:52:59 +02:00
Rodrigo Kumpera 968540b28b Merge pull request #3114 from alexanderkyte/mono_conf_gc
[runtime] Add configuration for the default sgen gc mode
2016-06-07 15:44:03 -07:00
Alexander Köplinger cd12b91372 Merge pull request #3112 from akoeplinger/test-runner-nofile
[test-runner] Write stdout/stderr into StringBuilder instead of an intermediate file
2016-06-08 00:18:39 +02:00
Miguel de Icaza 842da704cc More updates 2016-06-07 17:53:46 -04:00
Rodrigo Kumpera 36116e1de4 [corlib] Handle user Assembly subclass and Assembly::GetName.
Remove UnprotectedGetName and replace with overriding of GetName.

dotnet throws NIE if you subclass Assembly and call GetName on it.
We hard crashed.
2016-06-07 14:12:39 -07:00
Alexander Köplinger 9e7182c7d6 Fix make dist
It got broken when the versions.py file was moved around in d110f52670.
Also add the new locations to EXTRA_DIST so they get distributed too.
2016-06-07 22:44:54 +02:00
Rodrigo Kumpera 19daae6f46 Merge pull request #3119 from kumpera/fix-getname-and-shadowcopy
[corlib] Take shadow copying when computing CodeBase in Assembly::GetName.
2016-06-07 12:51:27 -07:00
Aleksey Kliger (λgeek) 022ebf4501 Merge pull request #3082 from alexanderkyte/no_alloc_klass_error
[runtime] Set klass-error-based MonoError state without allocating
2016-06-07 15:23:17 -04:00
Alexander Kyte e5ccb30a0c [mobile_status] Fix nullable type ambiguity that nunit-lite complains about 2016-06-07 14:56:52 -04:00
Alexander Kyte cd9dfae952 [mobile_static] Remove use of CollectionAssert, missing in nunit-lite 2016-06-07 14:56:51 -04:00
Alexander Kyte ac19ad8a47 [mobile_static] Remove uses of deprecated Assertion.cs nunit helper. 2016-06-07 14:56:51 -04:00
Rodrigo Kumpera 028fe45243 Merge pull request #3110 from BrzVlad/fix-complex-conc-scan
[sgen] Fix concurrent scan of complex objects
2016-06-07 11:38:27 -07:00
Alex Rønne Petersen 4d9acdafed [Socket] Check for SocketOptionLevel.Socket before checking for SocketOptionName.ReuseAddress.
Without doing this, the check would consider a valid option name like
IpTimeToLive to be the same as ReuseAddress, as they share the same enum
value.

Fixes SocketTest.TtlChange and SocketTest.UdpMulticasTimeToLive on Android and
other platforms that don't support ReuseAddress.
2016-06-07 20:21:00 +02:00
Alexander Köplinger 5c1615a27d Merge pull request #3124 from mono/revert-2734-master
Revert "Enhance log tracing"
2016-06-07 18:45:29 +02:00
Alexander Köplinger 565c6ac080 Revert "Enhance log tracing" 2016-06-07 18:45:09 +02:00
Alexander Kyte 16c5c2e6ed [runtime] Add environment variable to pass additional configure options 2016-06-07 12:29:39 -04:00
Alexander Kyte c0d56727c8 [runtime] Add new configure option for default sgen GC mode 2016-06-07 12:29:23 -04:00
Zoltan Varga 41784378fb [amd64] Fix an off-by-one in the dyn call code. 2016-06-07 12:17:08 -04:00
Zoltan Varga d110f52670 Llvm submodule (#3108)
* Move the versions.mk infrastructure to scripts/submodules so it can be used elsewhere too.

* Add a conditional submodule for llvm.

* Fix commit messages emitted by the bump- targets.

* Use a anonymous git url for llvm.
2016-06-07 10:46:33 -04:00
Marcos Henrich 11743177c7 [runtime] Fixed interruptible wapi_sendfile.
Before closing a socket we try to interrupt and wait for all socket
pending system calls to return. For that we set the socket as non
blocking which makes the system calls to return with EAGAIN\EWOULDBLOCK.

This issue was caught by System.Net.Sockets.SocketTest.SendAsyncFile
that was intermittently failing, we were only able to reproduce it while
running multiple test suites in parallel. We now can say that it only failed when
the the socket was closed and the sendfile was waiting for the OS to
allocate enough resources to send the file.

This was fixed by changing wapi_sendfile to return on EAGAIN.
2016-06-07 14:25:04 +01:00
Marcos Henrich 91c68de23f [System] Improved "Could not abort" exception.
Stack traces of blocked threads are now displayed on the exception.

The threads stacktraces are only stored when MONO_TESTS_IN_PROGRESS env
var is set to yes.
2016-06-07 14:01:00 +01:00
Alexander Kyte 07bb23a4d4 [runtime][mobile_static] Add flag for rgctx_fetch_trampolines and use it (#3088)
* [runtime] Add commandline option for rgctx fetch trampolines.

* [mobile_static] Increase the number of trampolines
2016-06-07 07:44:40 -04:00
lateralusX aaf8b8dbbf Smaller adjustments based on PR feedback. 2016-06-07 11:35:02 +02:00
Zoltan Varga 97634ecfae [runtime] Call mono_class_init () for classes in mono_class_is_subclass_of (). Fixes #41466. 2016-06-07 04:08:46 -04:00
Rodrigo Kumpera 72f2128755 [corlib] Take shadow copying when computing CodeBase in Assembly::GetName. 2016-06-06 23:36:32 -07:00
Alex Rønne Petersen 614e1a10e6 Merge pull request #3116 from alexrp/master
Some improvements to the profiler makefile
2016-06-07 03:35:36 +02:00
Mark Probst 326caca175 [sgen] Make gcpauseviz histograms more meaningful.
There were too many bins, because the x axis was not logarithmic, and
there were no meaningful labels.
2016-06-06 16:36:38 -07:00
Mark Probst 34c779eed0 [sgen] Fix gcpauseviz.
It didn't detect starts of concurrent collections anymore because of how
the binary protocol outputs it.
2016-06-06 16:36:38 -07:00
Alex Rønne Petersen c5a914bcbc [profiler] Don't install the coverage suppression file if the profiler is disabled. 2016-06-07 00:49:04 +02:00
Alex Rønne Petersen fa8cfb0254 [profiler] Don't run the test suite when the profiler is disabled.
Also clean up the makefile logic surrounding tests a bit.
2016-06-07 00:44:58 +02:00
Alexander Köplinger a5beea4126 Merge pull request #3113 from akoeplinger/boehm-fixes
[ci] Turn off Boehm on Windows x64 gcc build
2016-06-06 23:44:35 +02:00
Zoltan Varga 1197df8e64 [offsets-tool] Generate offsets for SgenClientThreadInfo. 2016-06-06 16:48:02 -04:00
Vlad Brezae b940b99c81 [sgen] Fix define argument
The code worked by accident because the function in which the define was expanded had an argument with the name desc.
2016-06-06 23:32:14 +03:00
Vlad Brezae feeda9992c [sgen] Fix race between complex descriptor allocation and complex object scanning
When we allocate the complex descriptor for a new type we might have the concurrent marker scan objects. While the concurrent marker scans the bitmap for a complex object, which resides in the complex_descriptor array, another thread might allocate a new complex descriptor, thus reallocate the complex_descriptor array, which would lead to corruption of the bitmap used by the concurrent marker.

We reuse the SgenArrayList which never reallocates, using instead a list of exponentially increasing arrays.
2016-06-06 23:32:12 +03:00
Alexander Köplinger 6e1443d029 Only define Boehm variables in configure.ac when it is enabled
Fix the message that is printed in the configure summary at the end to contain only "sgen" when Boehm is disabled.
2016-06-06 21:18:45 +02:00
Alexander Köplinger 1311dd46a8 [ci] Turn off Boehm on Windows x64 gcc build
It was never supported there, turn it off to fix the build on Jenkins.
2016-06-06 21:07:07 +02:00
Zoltan Varga d631febd56 [amd64] Fix a loop variable reuse in a58c2ef804. 2016-06-06 15:04:11 -04:00
Aleksey Kliger (λgeek) 150cd3f9f1 Merge pull request #3100 from lambdageek/dev/monoerror-exns
[runtime] Pass MonoError to exception creation utilities
2016-06-06 14:39:05 -04:00
Vlad Brezae 248ef6ea73 [sgen] Make sure we will scan the bits correctly for complex objects 2016-06-06 21:07:21 +03:00
Vlad Brezae c9d37d3686 [sgen] Add missing memory type description 2016-06-06 21:07:20 +03:00
Aleksey Kliger (λgeek) 395888e241 Merge pull request #3104 from lambdageek/dev/monoerror-resolve_vcall
[llvm] Raise MonoError using mono_llvm_throw_exception
2016-06-06 14:01:44 -04:00
Zoltan Varga 5092923485 [jit] Fix the emission of Selector.GetHandle () implementation to avoid the creation of string objects, which could cause GCs don't work in a cross compiler. Fixes #41431. 2016-06-06 13:22:18 -04:00
Alexander Köplinger 0d88c053bf [test-runner] Write stdout/stderr into StringBuilder instead of an intermediate file
We don't need to write out and then read back in the contents. Additionally, this will prevent
an unhandled exception we've seen on Jenkins due:

```
Unhandled Exception:
System.IO.IOException: Sharing violation on path /media/ssd/jenkins/workspace/test-mono-mainline-linux/label/debian-8-arm64/mono/tests/finalizer-wait.exe.stdout
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) <0x7f7eb4a740 + 0x00650> in <filename unknown>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) <0x7f7eb4a620 + 0x00053> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) <0x7f7e9b2170 + 0x000f3> in <filename unknown>:0
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) <0x7f7e9b2120 + 0x00037> in <filename unknown>:0
  at System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) <0x7f7e9b2040 + 0x0003b> in <filename unknown>:0
  at System.IO.StreamReader..ctor (System.String path) <0x7f7e9b2010 + 0x0001f> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string)
  at System.IO.File.ReadAllText (System.String path) <0x7f7eb48c70 + 0x0003b> in <filename unknown>:0
  at TestRunner.DumpPseudoTrace (System.String filename) <0x7f7cfc6450 + 0x00023> in <filename unknown>:0
  at TestRunner.Main (System.String[] args) <0x7f8128b770 + 0x01ed3> in <filename unknown>:0
```
2016-06-06 18:09:14 +02:00
Alexander Köplinger 6c74957217 [test-runner] Print timeout value when test times out
This is useful when multiple timeouts are in place e.g. like in the runtime testsuite.
2016-06-06 18:06:06 +02:00
Marek Safar 5ed50ba7e3 Merge pull request #3111 from directhex/sed-before-sign
Move call to sn.exe to *after* cil-stringreplacer.exe
2016-06-06 18:01:19 +02:00
Aleksey Kliger (λgeek) 883a0ae745 Merge pull request #2734 from nealef/master
Enhance log tracing
2016-06-06 12:00:47 -04:00
Jo Shields 439f0bea1f Move call to sn.exe to *after* cil-stringreplacer.exe
This makes sure mscorlib.dll still has a valid signature (fixes nightly builds on Linux)
2016-06-06 16:57:24 +01:00
Rodrigo Kumpera 02e48b67ba Merge pull request #3070 from kumpera/runtime-handles
Local handles initial drop
2016-06-06 08:42:34 -07:00
Rodrigo Kumpera 60f85567e2 Merge pull request #3083 from alexrp/gc-pointless-memory-barrier
[sgen] Remove a pointless memory barrier from the middle of the managed allocator.
2016-06-06 08:37:39 -07:00
Marek Safar 88217fa1ad [System] Override SupportsHeaders in all WebResponse overrides 2016-06-06 16:59:33 +02:00
Zoltan Varga 43914d3d0f [amd64] Enable dyncall tests on amd64. 2016-06-06 09:52:28 -04:00
Zoltan Varga a58c2ef804 [amd64] Support stack args in dyn calls. 2016-06-06 09:50:31 -04:00
Zoltan Varga e54b75c074 [amd64] Handle ArgValuetypeAddrInIReg in dyncalls. 2016-06-06 07:39:36 -04:00
Aleksey Kliger (λgeek) 42975530c3 [mini] Set pending MonoError in mono_vcall_trampoline (#3107) 2016-06-04 05:02:48 -04:00
Rodrigo Kumpera 5286dfc857 Remove unused header. 2016-06-03 14:29:23 -07:00
Rodrigo Kumpera ea865faee1 [coop] New local handles implementation.
This is the initial code drop of a new handles implementation.

It differs from the previous one is a few ways:

- It keeps a separate stack of handles which is shared by all "arenas".
This eliminates malloc in the majority of the cases without the need for any tuning

- Custom gc scanning code for the handles stack.
The original implementation registered the chunks as a GC roots. Which is a terribly
slow operation as it takes the GC lock.

Instead of allocating a new handle arena for each icall, we compute a stack mark,
which is the position in the handles stack at icall entry. On exit, we simply restore that
position, which is just a couple of stores.

Since the stack is implemented using arraylets, addressed are stable in the face of
expansion.

Only the typed handles function/macros are in as having both typed and untyped handles
adds extra complexity for no clear value.

The macros only handle what was needed to port a sizeable chunk of locales.c.

This commit just sets the stage for the feature, there's quite some work left
before we can start using it, as it can be seen in the big TODO in handle.c
2016-06-03 14:28:05 -07:00
Rodrigo Kumpera e81430a7d6 [sgen] Fix scan thread data job to set ops so it can do precise scanning. 2016-06-03 13:05:47 -07:00
Rodrigo Kumpera 3da98be66a [mono-error] Fix error_init macro to work with MonoError pointers. 2016-06-03 13:05:47 -07:00
Aleksey Kliger 7fe8716cc9 [llvm] Propagate MonoError out of mini_resolve_imt_method
To the enclosing llvm jit icalls
2016-06-03 15:00:00 -04:00
Neale Ferguson e29996786e Use %Y-%m-%d %H:%M:%S for Windows log message header 2016-06-03 13:33:23 -04:00
Andi McClure 28d9e844c0 Merge pull request #3040 from xmcclure/debugger-step-recursive
Debugger stepping does not understand recursion (bug 38025)
2016-06-03 13:08:23 -04:00
Miguel de Icaza 638f79df43 [genproj] Update project files 2016-06-03 12:42:16 -04:00
Aleksey Kliger 7a1baa941d [jit] Pass MonoError to resolve_vcall 2016-06-03 12:38:58 -04:00
Marek Safar 9fd9c7c851 [System] Flush few colliding changes 2016-06-03 18:04:33 +02:00
Alexander Kyte 356d3c3e25 [runtime] Use new mono_error_set_for_class_failure where applicable.
We were seeing an issue where attempts to create the MonoClass for an
exception in a no-exec context was causing failure. No-exec will forbid
the constructor call. Our solution was to realize that there was no
need to allocate an exception, as MonoError could already encode the
errors.
2016-06-03 11:24:33 -04:00
Alexander Kyte 7a29fbf203 [runtime] Make helper to set MonoError directly from MonoClass error 2016-06-03 11:24:32 -04:00
Neale Ferguson c41ea7babe Correct typo 2016-06-03 10:56:34 -04:00
Neale Ferguson 9100c240c5 Correct for widechar on Windows 2016-06-03 10:34:35 -04:00
Marek Safar 4a2bb8c261 [mcs] Fixes NRE during error reporting 2016-06-03 16:21:46 +02:00
Marek Safar 4ee86125fb [System] Remove duplicate file entry 2016-06-03 16:21:46 +02:00
Neale Ferguson b5ec75b264 Several corrections thanks to Johan Lorensson 2016-06-03 09:57:11 -04:00
Alexander Köplinger 6277093677 [WinForms] Fix build broken by 5d54803af7 2016-06-03 15:13:57 +02:00
Jonathan Chambers fbe5fc6e2a Correcty initialize image ref_count. Ensures image is correctly unloaded during appdomain unload. (#3084) 2016-06-03 09:13:41 -04:00
Marek Safar ef82a75735 Merge pull request #3102 from alexrp/master
[System] Add back IWebProxyScript to the mobile profile.
2016-06-03 11:04:40 +02:00
Alex Rønne Petersen eb1072dc1c [System] Add back IWebProxyScript to the mobile profile. 2016-06-03 10:09:00 +02:00
Jiří Volejník 5d54803af7 SWF - Fixed exiting modal runloop. (#2980)
Fixes a bug in exiting modal runloop that caused not really exiting it
(not calling XplatUI.SetModal(..., false).

It caused issues with menu, for example, if you first ran a modal
dialog (a wizard), and then you started the application.
2016-06-03 03:09:24 -04:00
Marek Safar 4f252f1492 Merge pull request #3099 from marek-safar/rs-Semaphore
[System] Semaphore from referencesource
2016-06-03 08:23:12 +02:00
Alexander Kyte 27e1646959 [mobile_static] Removed use of StringAssert nunit helper. 2016-06-02 19:49:45 -04:00
Ludovic Henry bea97b9d05 [sgen] Use raw mutex for pin_queue_mutex as it's only used during a collection 2016-06-02 23:25:31 +02:00
Ludovic Henry d462b209dd [coop] Reuse local info variable for polling
This would lead to a crash when unregistering the thread from the currnt MonoThreadInfo* destructor, as `mono_thread_info_current_unchecked` would return NULL. This would trigger an infinite loop in `mono_threads_enter_gc_safe_region_unbalanced_with_info`.
2016-06-02 23:25:31 +02:00
Ludovic Henry 5ce106b096 [marshal] Fix unused variable warning 2016-06-02 23:25:31 +02:00
Ludovic Henry d5cf286306 [threads] Make mono_thread_detach_if_exiting return if it detached 2016-06-02 23:25:31 +02:00
Ludovic Henry 12e53bcd36 [coop] Use mono_thread_info_is_current in checked build 2016-06-02 23:25:31 +02:00
Ludovic Henry 299f33e9b9 [coop] Remove unecessary assertion 2016-06-02 23:25:31 +02:00
Ludovic Henry fa65f20cb6 [coop] Switch to GC unsafe state in SIGILL signal handler as it may throw an exception 2016-06-02 23:25:31 +02:00
Ludovic Henry f303f385fc [runtine] We should always ignore SIGPIPE signal 2016-06-02 23:25:31 +02:00
Ludovic Henry b89cb4c62d [coop] Ensure GC unsafe state when throwing exception 2016-06-02 23:25:31 +02:00
Ludovic Henry e5f46c5360 [coop] Switch to GC safe around pthread_join 2016-06-02 23:25:31 +02:00
Ludovic Henry f90ff09854 [coop] Do not pass current thread to mono_threads_enter_gc_unsafe_region_cookie 2016-06-02 23:25:31 +02:00
Ludovic Henry c847599f8b [coop] Fix state transition when unregistering the thread
unregister_thread is the destructor for the current MonoThreadInfo* TLS key, meaning that when in this function, calling mono_thread_info_current_unchecked will always return NULL.
2016-06-02 23:25:31 +02:00
Ludovic Henry e53d878fb1 [coop] Make GC safe/unsafe unbalanced transitions public
This is needed by Xamarin.iOS for unbalanced transitions, for example aroung a ObjC @throw.
2016-06-02 23:25:31 +02:00
Ludovic Henry ab7f366947 [coop] Do not include mono-threads-coop.h and mono-threads-api.h in mono-threads.h
This leads to circular dependency between them, while mono-threads.h does not depends on the other 2.
2016-06-02 23:25:31 +02:00
Ludovic Henry d015b99f51 [coop] Do not allow transition on not-attached, not-current and not-live thread 2016-06-02 23:25:31 +02:00
Ludovic Henry 22eb4a02c7 [coop] Remove unecessary GC unsafe transition 2016-06-02 23:25:31 +02:00
Ludovic Henry f3a4be103b [marshal] Fix setting of last error for P/Invoke
On Unix, errno value might change between the native call and the call to mono_marshal_set_last_error, if we exit the gc safe region. We need to ensure that it's done right after the native call.
2016-06-02 23:25:31 +02:00
Ludovic Henry d07f4ec67b [checked-build] Fix warning 2016-06-02 23:25:31 +02:00
Ludovic Henry 5c16034406 [coop] Remove DoneBlockingAborted state transition
This state transition would only be possible in case something went wrong. It's better to fix where this issue comes from.
2016-06-02 23:25:31 +02:00
monojenkins f1dd6fe748 Merge pull request #2881 from alexrp/gc-sample-managed-alloc
[gc] Register a critical region when executing managed allocators.

Previously, if we stopped a thread and it had a stack looking like this:

    ...
    profiler_signal_handler
    <signal handler called>
    managed_allocator
    ...

We would fail to identify the fact that we've just interrupted a thread that's
in a managed allocator (uninterruptible code) because we only look at the very
latest instruction pointer of the thread, which will be pointing into
profiler_signal_handler or some other function called by it. So we would
happily continue along with the STW process and proceed to doing the actual GC,
where we would see a broken heap.

We could solve this by unwinding the stack and checking all frames, but that's
complicated and error-prone. Instead, register a critical region while the
managed allocator runs. This way, if we don't identify it by instruction pointer, we
will identify it by the fact that the thread is in a critical region.
2016-06-02 21:45:26 +01:00
Alexander Köplinger b2cf10659d Merge pull request #3066 from alexanderkyte/pedump_sgen
[runtime] Replace pedump boehm dependency with sgen dependency
2016-06-02 22:00:38 +02:00
Aleksey Kliger 1a3d55d848 [runtime] Mark mono_exception_from_token_two_strings external only
Runtime should use mono_exception_from_token_two_strings_checked
2016-06-02 15:56:02 -04:00
Aleksey Kliger aa0c3ca98f [runtime] Mark mono_exception_from_name_two_strings external only.
Runtime should use mono_exception_from_name_two_strings_checked
2016-06-02 15:56:02 -04:00
Marek Safar e76193b5b2 [System] Semaphore from referencesource 2016-06-02 21:33:22 +02:00
Neale Ferguson 583d1a2580 Correct use of localtime() in Win32 2016-06-02 15:33:12 -04:00
Neale Ferguson 927a3d1cff Use localtime for Win32 and localtime_r for others 2016-06-02 14:40:05 -04:00
Neale Ferguson b7ba3d54bd Correct syntax error and G_LOG_xxx identifier 2016-06-02 14:09:26 -04:00
Neale Ferguson c53c93791f Correct use of Windows APIs 2016-06-02 13:40:15 -04:00
Neale Ferguson 6db4cc54f0 Use correct APIs for Windows; Remove sys/time.h 2016-06-02 13:14:56 -04:00
Neale Ferguson c5327b6a02 Correct conditional compilation & move logger source files to correct place 2016-06-02 11:59:45 -04:00
Aleksey Kliger 680fe21e69 [runtime] Mark mono_runtime_run_main external only.
Runtime should use mono_runtime_run_main_checked or mono_runtime_try_run_main
2016-06-02 10:42:46 -04:00
Aleksey Kliger 985a6bb043 [runtime] Mark mono_runtime_exec_main external only.
Runtime should use mono_runtime_exec_main_checked or mono_runtime_try_exec_main
2016-06-02 10:42:46 -04:00
Aleksey Kliger (λgeek) 79451d22e7 Merge pull request #3087 from lambdageek/dev/monoerror-mono_object_to_string
[runtime] Mark mono_object_to_string external only.
2016-06-02 10:31:29 -04:00
Marek Safar f965a4e5db [System] Internal connectionpool from referencesource 2016-06-02 16:19:42 +02:00
Alex Rønne Petersen 817f874aac Merge pull request #3096 from alexrp/master
[bcl] Avoid ObjectDisposedException in EndPointListener.
2016-06-02 15:11:51 +02:00
Marek Safar 7e4adb9ef4 [corlib] Fixes mobile tests 2016-06-02 14:40:47 +02:00
Marek Safar 8f6567bebf Merge pull request #3097 from rolfbjarne/mono-api-info-compare-generic-method-parameters
[mono-api-info] Take number of generic parameters into account when comparing methods.
2016-06-02 13:11:16 +02:00
Rolf Bjarne Kvinge 624f29b583 [mono-api-info] Take number of generic parameters into account when comparing methods. 2016-06-02 12:12:35 +02:00
Zoltan Varga 164c74028e [arm] Return structures with sizes up to 16 bytes in int registers on watchos. Fixes #41393. 2016-06-02 06:01:40 -04:00
Alex Rønne Petersen d9fc8f866a [bcl] Avoid ObjectDisposedException in EndPointListener.
This fixes a regression introduced in 123aaa5db0.
We would sometimes see an ObjectDisposedException when calling AcceptAsync ()
because that patch removed the try-catch around it.
2016-06-02 11:27:38 +02:00
Marek Safar 20d025bb28 Merge pull request #3094 from mbrophy1/master
Add missing type forwarder for System.Diagnostics.Tracing.EventSource…
2016-06-02 09:51:50 +02:00
Alexander Kyte 1c99d720d6 Merge pull request #3095 from alexanderkyte/typespec_cache_fix
[runtime] Don't free null cache hash table in aot compiler
2016-06-01 18:42:38 -04:00
Alexander Kyte 62ba7ca6b4 [runtime] Don't free null cache hash table in aot compiler 2016-06-01 18:39:35 -04:00
Andi McClure 34d0fdb5a3 Halve the stack depth for both the new single step tests 2016-06-01 18:04:35 -04:00
Miguel de Icaza ed75412ec1 [genproj] More updates to the project files, getting closer, down to 5 errors 2016-06-01 16:18:11 -04:00
Matthew Brophy 9ebb048e80 Add missing type forwarder for System.Diagnostics.Tracing.EventSourceSettings. ASP.net Core 1.0 RC2 apps will not run against mono without this. 2016-06-01 21:17:29 +01:00
Aleksey Kliger 598b8290de [runtime] Comment external only functions that call mono_error_raise_exception 2016-06-01 15:39:55 -04:00
Aleksey Kliger bcbd0ac0c0 [runtime] Mark mono_object_to_string external only.
Runtime should use mono_object_to_string_checked and mono_object_try_to_string.
2016-06-01 15:39:46 -04:00
Marek Habersack 9d18dc706c Xamarin.Android test suite updates
Xamarin.Android internal test suite takes advantage of the BCL tests
in Mono, so far their inclusion was a manual process and this commit
fixes it. A set of source inclusion and exclusion lists is added
and a handful of code fixes to make them compile on Xamarin.Android
2016-06-01 20:35:51 +02:00
Marek Safar 29556e2cd8 [corlib] Disable even more cas in mobile 2016-06-01 20:06:54 +02:00
Alexander Kyte 7bbf991bff [runtime] Replace pedump boehm dependency with sgen dependency 2016-06-01 13:04:19 -04:00
Aleksey Kliger (λgeek) 3f435390aa Merge pull request #3081 from lambdageek/coop-no-prof
[coop] Disable profiler tests if coop is enabled
2016-06-01 12:55:58 -04:00
monojenkins 4e928f6338 Merge pull request #3086 from esdrubal/master
[System] Fixes socket async exception.

SendAsyncFile uses StartSocketServer to start a server and at the same
time begins to accept a client socket. The issue is that when
the accept callback is called SendAsyncFile already closed the socket.

Fixed race condition by moving StartSocketServer and ReceiveCallback
logic into SendAsyncFile, and by using a new MRE to ensure that the
client receives all the data before the server is closed.

Fixes [#41264](https://bugzilla.xamarin.com/show_bug.cgi?id=41264)
2016-06-01 17:25:11 +01:00
Marek Safar ca82b187d2 [corlib] Disable more CAS code 2016-06-01 18:01:10 +02:00
Aleksey Kliger 830f7eec99 [coop] Disable profiler tests if coop is enabled 2016-06-01 10:25:33 -04:00
Marcos Henrich 0693884580 [System] Fixes socket async exception.
SendAsyncFile uses StartSocketServer to start a server and at the same
time begins to accept a client socket. The issue is that when
the accept callback is called SendAsyncFile already closed the socket.

Fixed race condition by moving StartSocketServer and ReceiveCallback
logic into SendAsyncFile, and by using a new MRE to ensure that the
client receives all the data before the server is closed.

Fixes #41264
2016-06-01 15:08:05 +01:00
Marek Safar d76164a203 [mcs] Use only mcs specific assembly references resolver. Fixes #29189 2016-06-01 13:41:48 +02:00
lateralusX 21e166b9ae Fix for non GCC win x64 calling convention when passing empty structs over pinvoke.
Standard C and C++ doesn't allow empty structs, empty structs will always have a
size of 1 byte. GCC have an extension to allow empty structs,
https://gcc.gnu.org/onlinedocs/gcc/Empty-Structures.html. This cause a
little dilemma since runtime build using none GCC compiler will not be
compatible with GCC build C libraries and the other way around. On platforms
where empty structs has size of 1 byte it must be represented in call and cannot
be dropped.

Libraries build using for example MSVC failed pinvoke call when empty
structs where used in pinvoke2.cs tests. The problem was that current
implementation dropped value types of size 0, eliminating them from the
call. Since MSVC implements C/C++ standard regarding empty structs (no extension used),
the function expected the parameter to be present, even if was not used.
This became a problem if the empty struct ended up in one of the 4 first
parameters (backed by registers) since if excluded, wrong parameter gets
into wrong registers (the same will apply to stack slots as well). For example,
a C signature like this, (int a, EmptyStruct es, int b) will get lowered to the
following on MSVC win x64, a -> rcx, es -> rdx and b -> r8, but since caller
eliminated es from the call, the register assignment from the caller was
a -> rcx and b -> rdx causing a violation of the calling convention and
error in callee.

The fix is to make sure that empty structs are still represented on none GCC
compilers on windows x64 (MSVC), since they must be represented in the call
to pinvoked methods. Fix will also use a const value of 0 to represent the value
passed as the struct instead of loading a value from stack into register/stack slot,
this is inline with the value the .NET runtime passes to pinvoked method. The reason
why we use a 0 instead of loading from stack is because a struct of size 0 is not explicitly
represented on stack and will have garbage data if loaded. Since it’s an empty struct value
type there is no need to load anything, just represent it as 0 in the register/stack slot passed
to caller.

There is also a case when returning an empty struct from a pinvoked method. Result will be returned
as 0 in RAX by MSVC compiled libraries (or whatever value stored in the 1 byte representation).
Since we have similar issues as above with empty structs of size 0 not explicitly represented on the
stack, the store will be eliminated and not written back to stack by caller since an empty struct doesn’t
represent any unique data.

Calling convention for managed->managed code is kept intact since it is working as expected
handling the case with empty structs as input and return values.

With fix all pinvoke2.cs tests now pass running on Windows x64 JIT.
2016-06-01 10:33:22 +02:00
Marek Safar 3c2c4168e0 [mcs] Adjust correctly newline counter inside pragma warning 2016-06-01 10:03:10 +02:00
Marek Safar 827bc97d5d [System] Fixes bootstrap build with old mcs 2016-06-01 10:03:09 +02:00
Zoltan Varga 6e36e18c92 [arm] Pass structures larger than 16 bytes by ref on watchos. Fixes #41393. 2016-06-01 03:28:51 -04:00
Alex Rønne Petersen 50c3c48143 [sgen] Remove a pointless memory barrier from the middle of the managed allocator.
This appears to serve no purpose as tlab_next is a thread-local variable. It's
only ever accessed by other threads in order to write to it, not read it. We
also don't do this memory barrier in the native allocation functions.
2016-05-31 23:40:29 +02:00
Alex Rønne Petersen f9ef2ce122 [arm] Don't emit memory barriers for relaxed atomic loads/stores. 2016-05-31 23:40:09 +02:00
Alex Rønne Petersen f0868d79d9 [sgen] Cache the SgenThreadInfo pointer in a local when emitting managed allocators. 2016-05-31 23:40:08 +02:00
Alex Rønne Petersen 755056dd25 [gc] Register a critical region when executing managed allocators.
Previously, if we stopped a thread and it had a stack looking like this:

    ...
    profiler_signal_handler
    <signal handler called>
    managed_allocator
    ...

We would fail to identify the fact that we've just interrupted a thread that's
in a managed allocator (uninterruptible code) because we only look at the very
latest instruction pointer of the thread, which will be pointing into
profiler_signal_handler or some other function called by it. So we would
happily continue along with the STW process and proceed to doing the actual GC,
where we would see a broken heap.

We could solve this by unwinding the stack and checking all frames, but that's
complicated and error-prone. Instead, register a critical region while the
managed allocator. This way, if we don't identify it by instruction pointer, we
will identify it by the fact that the thread is in a critical region.
2016-05-31 23:40:08 +02:00
Miguel de Icaza 9dc91ef0d3 [genproj] Another library works, System.Json.Microsoft 2016-05-31 17:18:13 -04:00
Rodrigo Kumpera 07b2a10491 Merge pull request #3080 from BrzVlad/feature-enable-conc-master
[sgen] Enable concurrent major by default on desktop platforms
2016-05-31 13:58:09 -07:00
Miguel de Icaza dd0b8f31d9 [genproj] support for using prebuilt resources 2016-05-31 16:50:55 -04:00
Andi McClure 42573c7fce Fixes for peer feedback on recursive step patch
Made breakpoint uniqueness test switch to a hash after 8th item added,
consolidated the code that handles the uniqueness test and makes the
breakpoint in one function, fixed style issues.
2016-05-31 16:36:45 -04:00
Miguel de Icaza b078895e89 [genproj] Getting closer to a full build
* Add TODO list
* Use -useSourcePath when building resources, so we do not need to add the explicit extra path
* More updates, now battling resource generation across the board
* Use newlines in the Unix commands to avoid generating things like cs-parser.cs^M
2016-05-31 15:36:59 -04:00
Mark Probst d15602739b Merge pull request #2871 from BrzVlad/feature-conc-sweep-nrs
[sgen] Run sweep concurrently with nursery collections
2016-05-31 11:07:42 -07:00
Mark Probst 9c3b78485a Merge pull request #3019 from schani/fix-major-pinning
Fix major pinning, and cheap pinning stats by default
2016-05-31 11:03:43 -07:00
Marek Safar b12385e9fd [mcs] Add more of undocumented C#6 improved overload resolution 2016-05-31 18:40:50 +02:00
Miguel de Icaza 65b46a6eaf [genproj] Update build files 2016-05-31 12:23:41 -04:00
Miguel de Icaza 4ad48cec41 [mconfig] Remove dependency on build time settings 2016-05-31 12:11:40 -04:00
Jonathan Pryor 8c32f9c042 Merge pull request #2377 from joelmartinez/docs-multiassembly-extension-fix
[mdoc] Extension method crash fix, removes -multiassembly
2016-05-31 12:01:02 -04:00
Neale Ferguson 166a8df8f1 Make log header message consistent 2016-05-31 11:51:23 -04:00
Joel Martinez ff4ab341c3 [mdoc] Extension method crash fix, removes -multiassembly
The tests added during the initial development of the -multiassembly argument failed to test the presence of extension methods;
the result was a crash that occurred when there were extension methods present in multiple assemblies.

This patch addresses the issue by putting a guard clause around the code that adds the extension method to the index.
Tests have been modified accordingly to verify this bug and include extension methods

Additionally, the -multiassembly parameter was removed entirely. This behavior is now triggered by the presence of -apistyle,
which is where support for "multiple assemblies" was meant to work anyways. To review, this is to support cross-platform
development, where you have multiple -- *different* -- assemblies for each platform. These assemblies will share a certain
cross-section of APIs that will be *exactly* the same in each assembly (as opposed to multiple versions of literally the same assembly).
As a result, every member will now contain an individual `AssemblyInfo` tag that also contains the name of the assembly.
2016-05-31 11:48:11 -04:00
Vlad Brezae 40c3b472e6 [sgen] Enable concurrent major by default on desktop platforms 2016-05-31 18:41:06 +03:00
Alexander Köplinger c1bc0f76fd Merge pull request #3078 from akoeplinger/fix-test-exclude-filename
[build] Make exclusion filename consistent between library and test
2016-05-31 17:24:11 +02:00
Aleksey Kliger (λgeek) 82128fe28f Merge pull request #3067 from lambdageek/dev/monoerror-stringy
[runtime] Deal with MonoErrors from string_to_utf8_checked changes
2016-05-31 11:13:53 -04:00
lateralusX 0ef9fdb669 Merge pull request #3059 from lateralusX/jlorenss/win-x64-dyncall-gsharedvt-support
[aot] Added support for GSHAREDVT and DYNCALL on Windows x64 for full AOT builds.
2016-05-31 16:32:40 +02:00
Alexander Köplinger 919edbf2e4 Merge pull request #3076 from akoeplinger/fix-ziptime-offbyone
[WindowsBase] Fix off-by-one error in ZipTime
2016-05-31 16:06:41 +02:00
Alexander Köplinger 07baa1cce4 [WindowsBase] Fix off-by-one error in ZipTime
The date/time struct in zip.h defines the month value as

    uInt tm_mon;            /* months since January - [0,11] */

.NET's DateTime object in turn stores months from 1-12. We didn't
take this into account when passing the values from managed->native
so the month ended up being off by one.

We didn't use this codepath before https://github.com/mono/mono/pull/3036
that's why it didn't show up until now.
2016-05-31 13:55:05 +02:00
Alexander Köplinger 87b1150070 [build] Make exclusion filename consistent between library and test
The test assembly used *.dll.excludes before while the library uses *.dll.exclude.sources.
Make this consistent to reduce confusion.

Also remove corlib_cmp.dll.excludes which is from a profile that no longer exists.
2016-05-31 13:54:04 +02:00
Marek Safar 059d656a9b [System] Fixes build 2016-05-31 13:44:43 +02:00
Marek Safar e8ca290f1e Merge pull request #3075 from knocte/man_bump
[man] bump man's mono version number too (to 4.5.2)
2016-05-31 11:44:36 +02:00
Andres G. Aragoneses 99f7b148e3 [man] bump man's mono version number too (to 4.5.2)
Following this version bump:
https://github.com/mono/mono/commit/069cea3712a5bd4959e505260cdc4a0c37861e77

(Also add a note to configure.ac as a hint until
someone comes up with a way to sync man/mono.1's
version automatically.)
2016-05-31 16:51:23 +08:00
Marek Safar 86b5cde6c0 [System] Keep broken api in mobile profiles only 2016-05-31 10:07:11 +02:00
Marek Safar 24230862fe [WindowsBase] Fixes test assert expectation logic 2016-05-31 10:07:11 +02:00
Marek Safar 90979903d7 [System] Remove empty test 2016-05-31 10:07:11 +02:00
Marek Safar 599adb0774 Merge pull request #3063 from marek-safar/rs-Net
[System] WebRequest from referencesource
2016-05-31 10:00:21 +02:00
Marek Safar a2147aa78a [System] WebProxy from referencesource 2016-05-31 09:58:26 +02:00
Alexander Köplinger 9f23956396 [ci] Bump timeout in runtime test step
We were seeing timeouts in the runtime step if two builds happen to be scheduled
at the exact same time on the ARM workers on Jenkins, causing increased load and
longer test times. They aborted the runtime step right before it'd finish.

Bump the timeout a bit to avoid this.
2016-05-31 07:05:51 +02:00
Zoltan Varga 7c884f8f63 [bcl] Comment out a win32 pinvoke on the mobile profile, since ios can't have unresolvable pinvokes. 2016-05-30 23:14:52 -04:00
Alex Rønne Petersen 069cea3712 Bump version to 4.5.2. 2016-05-30 20:14:22 +02:00
Aleksey Kliger c18f296c9b [runtime] Avoid mono_error_raise_exception in icalls and debugging utilities 2016-05-27 15:54:47 -04:00
Aleksey Kliger eb4fc33b66 [perfcounters] Convert instance name to C string in the icall entrypoint.
Convert MonoString to UTF8 early to simplify exception handling.
2016-05-27 15:54:46 -04:00
Aleksey Kliger 3ac653123e [reflection] Don't raise in {Module,Assembly}Builder icalls 2016-05-27 15:15:59 -04:00
Vlad Brezae 9dd9ab1c9d [sgen] Don't register pinned objects if pin stats are disabled
On some collections of fsharp, which had many pinned objects, this took up to 10 ms.
2016-05-27 21:10:58 +03:00
Vlad Brezae ead0e31c9c [sgen] Sweep concurrently with nursery collections
When we scan a block we need to have it checked for sweeping. Instead of waiting for all the blocks to be checked for sweeping, we traverse all the blocks (even though they might not have live objects), and do the sweeping check only for blocks that have dirty cards associated with them, without waiting for sweeping to end.
2016-05-27 21:10:58 +03:00
Vlad Brezae abd564253a [sgen] Don't wait for sweep finish when allocating major object
Allocating a major block needs addition to the allocated_blocks array, operation that needs sweep to be finished because sweep moves elements and changes the size when compacting the array. Do this operation in the sweep start instead, when we are not racing.
2016-05-27 21:10:58 +03:00
Vlad Brezae 03ec48b6b1 [sgen] Add missing binary protocol entries for block state set 2016-05-27 21:10:58 +03:00
Aleksey Kliger 973dbcaa88 [file-mmap-posix] Don't use mono_error_raise_exception 2016-05-27 12:39:37 -04:00
Aleksey Kliger fea81c3ad9 [runtime] Don't raise in mono_assembly_apply_binding 2016-05-27 11:44:53 -04:00
Marek Safar f2b187e972 [System] WebRequest from referencesource 2016-05-27 14:43:17 +02:00
lateralusX 197b70df90 Added support for GSHAREDVT and DYNCALL on Windows x64 for full AOT builds.
Support for GSHAREDVT added for Windows x64. Changes needed
(ones gsharedvt concept was understood, crashes debugged and adjustments located)
where quite small. Primarily around shadow stack used by windows + incorrect handling
of none volatile registers on windows when going over the gsharedvt trampolines.
All GSHAREDVT tests, gshared.exe and aot.tests.exe pass in full AOT builds with above adjustments.

Support for DYNCALL added/enabled for Windows x64. Current AMD64 support was working
for basic scenarios but not enabled on Windows. Identified a problem on AMD64
when structs are passed as input parameters or returned by methods for DYNCALL scenarios
in full AOT:ed builds. This scenario doesn't seem to work for any AMD64 platform for
full AOT and the tests in aot-test.exe handling these scenarios are not run on AMD64.

Adjusted categories on test in aot-tests.exe to reflect what’s really needed by the tests
to run correctly. Also added a new category to some DYNCALL tests that uses struct support
currently not implemented on AMD64, !FULLAOT-AMD64, so at least some of the DYNCALL tests
can be run on AMD64 platforms in full AOT:ed builds.
2016-05-27 10:22:32 +02:00
Mark Probst 4afc91e8b9 [sgen] Remove a stupid #define 2016-05-25 15:13:05 -07:00
Mark Probst 1800992952 [sgen] Cheap pinning statistics by default. 2016-05-25 15:13:01 -07:00
Mark Probst 0a7194b7c3 [sgen] Add an assertion. 2016-05-25 15:12:37 -07:00
Mark Probst 76bdd84ce9 [sgen] Do pin stats for small major objects, too. 2016-05-25 15:12:32 -07:00
Mark Probst 855bc894db [sgen] Don't pin empty slots in the major heap. 2016-05-25 15:12:10 -07:00
Andi McClure 37da53ace7 Debugger stepping does not understand recursion (bug 38025)
Testing with the debugger showed multiple failures around recursive
functions:

1. Step-out breakpoints can trigger on inner frames.
Solution: Extend existing inner-frame test from step-over to step out
also.

2. "Same source line, continuing" test triggers even on wrong frame
   (affects both step over and step out)
Solution: Check frame as part of this test

3. When step breakpoints pick next sequence points, they can register
   multiple breakpoints at the same place if a recursive call happens to
   exit there. (Possibly harmless but may have resulted in duplicate
   debugger events being generated in one test.)
Solution: Check for duplicates in step-request breakpoint list before
adding new breakpoints

4. Mono.Debugging.Soft in the debugger-libs repo sometimes resumes
   after breakpoints if it decides Mono.Debugger.Soft has not stepped
   far enough, but the check to trigger this was not recursion-aware.
Solution: This one is not addressed in this commit, but a fix was
checked in to debugger-libs. Any code using this commit therefore
needs to be run in conjunction with debugger-libs dfbf6d8b13.

Tests were also added for issues 1-3 above.
2016-05-23 19:04:06 -04:00
Neale Ferguson 3f880e2bcf Fix checking of header environment variable 2016-05-09 12:57:38 -04:00
Neale Ferguson 52dbd3576e Create entire line of output before writing - prevents need for locking or interspersed messages 2016-04-28 13:40:23 -04:00
Neale Ferguson d808b7a064 Add description of MONO_LOG_HEADER environment variable 2016-04-25 20:54:05 -04:00
Neale Ferguson f32457bd0b Add environment variable to control log header 2016-04-25 19:26:40 -04:00
Neale Ferguson a6bc6cda4a mono-threads.c - Use the environment variable (if set) to determine the abort time
libmonoutils.vcxproj - Add new logging source code files to the project
2016-03-18 16:28:40 -04:00
Neale Ferguson 76ce319312 Fix typos 2016-03-09 11:06:33 -05:00
Neale Ferguson 746971d090 Fix whitespace 2016-03-08 15:07:08 -05:00
Neale Ferguson 1ca9141f91 Correct entry point names 2016-03-08 15:04:28 -05:00
Neale Ferguson 76fe267817 Improve trace logging -
- Add logfile and syslog capability. For Windows, the latter is simulated by writing to a file. Adding Eventlog support is for a future effort. The choice of logging mode is made via MONO_LOG_DEST environment variable.
- Add timestamps and pid to the trace messages to make them more useful
- Add timestamps to SGEN_LOG
- Related to tracing: when tracing and using something like Valgrind the system may be slowed so much that the sleep abort limit may be exceeded for threads. This fix adds an environment variable lookup of "MONO_SLEEP_ABORT_LIMIT" which is a value greater than 40, which defines the number of milliseconds to wait for threads to complete pending operations. If not set, the valus is 200.
2016-03-08 14:54:11 -05:00
1032 changed files with 24645 additions and 21708 deletions

No files matched your search

+1
View File
@@ -38,6 +38,7 @@ obj/
[Rr]elease*/
Ankh.NoLoad
*.gpState
.vscode/
# Tooling
_ReSharper*/
+16 -8
View File
@@ -4,18 +4,17 @@ AM_CFLAGS = $(WERROR_CFLAGS)
MONOTOUCH_SUBDIRS = $(libgc_dir) eglib/src mono
# Some tools might not build when cross-compiling
if CROSS_COMPILING
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples msvc $(docs_dir) acceptance-tests
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = m4 po $(libgc_dir) eglib mono ikvm-native support data runtime scripts man samples tools msvc docs acceptance-tests
tools_dir =
else
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples msvc $(docs_dir) acceptance-tests
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = m4 po $(libgc_dir) eglib mono ikvm-native support data runtime scripts man samples tools msvc docs acceptance-tests
tools_dir = tools
endif
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples $(tools_dir) msvc $(docs_dir) acceptance-tests llvm
# Keep in sync with SUBDIRS
DIST_SUBDIRS = m4 po $(libgc_dir) eglib mono ikvm-native support data runtime scripts man samples tools msvc docs acceptance-tests llvm
all: update_submodules
SUBMODULE_ERROR='Could not recursively update all git submodules. You may experience compilation problems if some submodules are out of date'
@@ -68,6 +67,14 @@ get-monolite-latest:
cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
cd $(mcslib) && mv -f monolite-* monolite
if BITCODE
BITCODE_CHECK=yes
endif
.PHONY: check-ci
check-ci:
MONO_LLVMONLY=$(BITCODE_CHECK) $(srcdir)/scripts/ci/run-test-$(TEST_PROFILE).sh
.PHONY: validate do-build-mono-mcs mcs-do-clean mcs-do-tests
validate: do-build-mono-mcs
$(MAKE) mcs-do-tests
@@ -153,6 +160,7 @@ package-inputs:
read libou; echo " <library_output>$$libou</library_output>"; \
read fx_ver; echo " <fx_version>$$fx_ver</fx_version>"; \
read profile; echo " <profile>$$profile</profile>"; \
read resxt; echo " <resources>$$resxt</resources>"; \
read resp; echo " <response>$$resp</response>"; \
echo " </project>") >> msvc/scripts/order.xml; \
done
+24 -6
View File
@@ -262,9 +262,7 @@ CORECLR_TEST_CS_SRC= \
$(CORECLR_PATH)/tests/src/JIT/Directed/intrinsic/pow/pow2.cs \
$(CORECLR_PATH)/tests/src/JIT/Directed/intrinsic/pow/pow3.cs \
$(CORECLR_PATH)/tests/src/JIT/Directed/lifetime/lifetime1.cs \
$(CORECLR_PATH)/tests/src/JIT/Directed/lifetime/lifetime2.cs \
$(CORECLR_PATH)/tests/src/JIT/Directed/localloc/localloc3.cs \
$(CORECLR_PATH)/tests/src/JIT/Directed/newarr/newarr.cs \
$(CORECLR_PATH)/tests/src/JIT/Directed/shift/int16.cs \
$(CORECLR_PATH)/tests/src/JIT/Directed/shift/int32.cs \
$(CORECLR_PATH)/tests/src/JIT/Directed/shift/int64.cs \
@@ -1279,7 +1277,6 @@ CORECLR_TEST_CS_SRC= \
$(CORECLR_PATH)/tests/src/baseservices/exceptions/regressions/whidbeybeta2/349379/349379.cs \
$(CORECLR_PATH)/tests/src/baseservices/exceptions/regressions/whidbeybeta2/366085/366085.cs \
$(CORECLR_PATH)/tests/src/baseservices/exceptions/regressions/whidbeym3.3/106011/106011.cs \
$(CORECLR_PATH)/tests/src/baseservices/exceptions/sharedexceptions/emptystacktrace/oomexception01.cs \
$(CORECLR_PATH)/tests/src/baseservices/exceptions/simple/finally.cs \
$(CORECLR_PATH)/tests/src/baseservices/exceptions/unittests/returnfromcatch.cs \
$(CORECLR_PATH)/tests/src/baseservices/regression/v1/threads/functional/threadpool/cs_threadpoolnullchecks/cs_threadpoolnullchecks.cs \
@@ -4003,6 +4000,15 @@ CORECLR_DISABLED_TEST_CS_SRC += \
# this test makes no sense, the expected pattern is the English one for all cultures
CORECLR_DISABLED_TEST_CS_SRC += $(CORECLR_PATH)/tests/src/Regressions/coreclr/0584/test584.cs
# Requires precise stack scanning
CORECLR_DISABLED_TEST_CS_SRC += \
$(CORECLR_PATH)/tests/src/JIT/Directed/lifetime/lifetime2.cs
# Depends on small array behavior of .net. Mono supports objects > 2Gb on 64bits and the following tests verify for that
CORECLR_DISABLED_TEST_CS_SRC += \
$(CORECLR_PATH)/tests/src/JIT/Directed/newarr/newarr.cs \
$(CORECLR_PATH)/tests/src/baseservices/exceptions/sharedexceptions/emptystacktrace/oomexception01.cs
CORECLR_TEST_IL_SRC = \
$(CORECLR_PATH)/tests/src/JIT/BBT/Scenario4/Not-Int32.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/Convert/implicitConv.il \
@@ -4073,7 +4079,6 @@ CORECLR_TEST_IL_SRC = \
$(CORECLR_PATH)/tests/src/JIT/Directed/array-il/simple3.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/importer/badendfinally.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/importer/badtailcall.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/importer/byrefsubbyref1.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/importer/calli2.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/importer/ceeillegal.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/importer/ldelemnullarr2.il \
@@ -4087,14 +4092,12 @@ CORECLR_TEST_IL_SRC = \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/importer/volatilldind.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/importer/volatilstind.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/arrgetlen.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/lcliimpl.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/ldsshrstsfld.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/ldvirtftncalli.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/ovfldiv2.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/ovflrem2.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/stfldstatic1.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/stfldstatic2.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/subbyref.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/switchdefaultonly1.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/switchdefaultonly2.il \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/switchdefaultonly3.il \
@@ -5118,6 +5121,21 @@ CORECLR_DISABLED_TEST_IL_SRC += \
$(CORECLR_PATH)/tests/src/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b28901/b28901.il \
$(CORECLR_PATH)/tests/src/JIT/Regression/clr-x64-JIT/v2.1/b173569/b173569.il
# Bad test that tries an implicit cast from int32 to byref
CORECLR_DISABLED_TEST_IL_SRC += \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/importer/byrefsubbyref1.il
# Bad test that tries to implicit cast from bytef to int32
CORECLR_DISABLED_TEST_IL_SRC += \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/subbyref.il
# Bad test that tries to assign a byref to a class to a byref of an interface that class implements
# This is unsafe because the byref is mutable and would allow you to store the wrong type on that cell.
CORECLR_DISABLED_TEST_IL_SRC += \
$(CORECLR_PATH)/tests/src/JIT/Directed/coverage/oldtests/lcliimpl.il
# find all CoreCLR *.il test files that aren't mentioned in this file
CORECLR_DEFINED_IL_SRC = $(CORECLR_TEST_IL_SRC) $(CORECLR_DISABLED_TEST_IL_SRC)
CORECLR_UPSTREAM_IL_SRC=$(shell find "$(CORECLR_PATH)/tests" -iname "*.il")
+1 -7
View File
@@ -4,17 +4,11 @@ check-roslyn:
sed -i -e 's/\\4.5-api"/\\4.5"/g' $$PREFIX/lib/mono/xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml; \
export MSBuildExtensionsPath=$$PREFIX/lib/mono/xbuild; \
MONO_DOTNET_PORTABLE_DIR=$$PREFIX/lib/mono/xbuild-frameworks/.NETPortable/; \
MONO_NUGET_TARGETS_DIR=$$PREFIX/lib/mono/xbuild/Microsoft/NuGet/; \
MONO_PORTABLE_TARGETS_DIR=$$PREFIX/lib/mono/xbuild/Microsoft/Portable/v5.0; \
if [ ! -d "$$MONO_DOTNET_PORTABLE_DIR/v5.0" ]; then \
if [ ! -d "$$MONO_DOTNET_PORTABLE_DIR/v4.6" ]; then \
mkdir -p $$MONO_DOTNET_PORTABLE_DIR; \
mkdir -p $$MONO_NUGET_TARGETS_DIR; \
mkdir -p $$MONO_PORTABLE_TARGETS_DIR; \
curl -SL "http://download.mono-project.com/third-party/RoslynBuildDependencies.zip" > /tmp/RoslynBuildDependencies.zip; \
unzip -o /tmp/RoslynBuildDependencies.zip -d /tmp/RoslynBuildDependencies; \
cp -r /tmp/RoslynBuildDependencies/PortableReferenceAssemblies/* $$MONO_DOTNET_PORTABLE_DIR; \
cp /tmp/RoslynBuildDependencies/NuGetTargets/* $$MONO_NUGET_TARGETS_DIR; \
cp /tmp/RoslynBuildDependencies/PortableTargets/* $$MONO_PORTABLE_TARGETS_DIR; \
fi; \
cd $(ROSLYN_PATH); \
sed -i -e 'N; s/bootstrapArg=".*\n.*"/bootstrapArg=""/g' cibuild.sh; \
+3 -2
View File
@@ -160,8 +160,9 @@ if test -d $srcdir/eglib; then
echo Done running eglib/autogen.sh ...
fi
echo "MONO_EXTRA_CONFIGURE_FLAGS is $MONO_EXTRA_CONFIGURE_FLAGS"
if test x$MONO_EXTRA_CONFIGURE_FLAGS != x; then
echo "MONO_EXTRA_CONFIGURE_FLAGS is $MONO_EXTRA_CONFIGURE_FLAGS"
fi
conf_flags="$MONO_EXTRA_CONFIGURE_FLAGS --enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
+3
View File
@@ -1,4 +1,7 @@
@echo off
cd mcs\jay
vcbuild jay.vcxproj
cd msvc\scripts
csc prepare.cs
prepare.exe ..\..\mcs core
msbuild net_4_x.sln
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
(cd mcs/jay; make)
(cd msvc/scripts/; make prepare.exe; mono prepare.exe `pwd`/mcs core)
(cd msvc/scripts/; make prepare.exe; mono prepare.exe ../../mcs core)
msbuild net_4_x.sln
+312 -122
View File
@@ -1,7 +1,8 @@
# Process this file with autoconf to produce a configure script.
#AC_PREREQ([2.62])
AC_INIT(mono, [4.6.0],
# when bumping version number below, keep it in sync with man/mono.1 too
AC_INIT(mono, [4.7.0],
[http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono])
AC_CONFIG_SRCDIR([README.md])
@@ -352,6 +353,18 @@ AM_CONDITIONAL(PLATFORM_DARWIN, test x$host_darwin = xyes)
AM_CONDITIONAL(PLATFORM_SIGPOSIX, test x$use_sigposix = xyes)
AM_CONDITIONAL(PLATFORM_ANDROID, test x$platform_android = xyes)
if test -z "$PLATFORM_DARWIN_TRUE"; then :
PLATFORM_AOT_SUFFIX=.dylib
fi
if test -z "$PLATFORM_LINUX_TRUE"; then :
PLATFORM_AOT_SUFFIX=.so
fi
AC_SUBST(PLATFORM_AOT_SUFFIX)
## PLATFORM_AOT_SUFFIX not so simple for windows :-)
AC_CHECK_TOOL(CC, gcc, gcc)
AC_PROG_CC
AC_CHECK_TOOL(CXX, g++, g++)
@@ -519,6 +532,9 @@ if test x"$GCC" = xyes; then
# We rely on signed overflow to behave
CFLAGS="$CFLAGS -fwrapv"
# We rely on zero length arrays in structs
CFLAGS="$CFLAGS -Wno-zero-length-array"
CFLAGS="$CFLAGS -DMONO_DLL_EXPORT"
if test x"$disable_visibility_hidden" = xno; then
# Don't export any symbols by default
@@ -726,6 +742,202 @@ AC_ARG_ENABLE(system-aot, [ --enable-system-aot Enable the Ahead-Of-Time compi
DISABLED_FEATURES=none
#
# Set the build profiles and options before things which use them
#
AC_ARG_WITH(profile4_x, [ --with-profile4=yes,no If you want to install the 4.x FX (defaults to yes)], [], [with_profile4_x=default])
AC_ARG_WITH(monodroid, [ --with-monodroid=yes,no If you want to build the MonoDroid assemblies (defaults to no)], [], [with_monodroid=default])
AC_ARG_WITH(monotouch, [ --with-monotouch=yes,no If you want to build the Xamarin.iOS assemblies (defaults to no)], [], [with_monotouch=default])
AC_ARG_WITH(monotouch_watch, [ --with-monotouch_watch=yes,no If you want to build the Xamarin.WatchOS assemblies (defaults to no)],[], [with_monotouch_watch=default])
AC_ARG_WITH(monotouch_tv, [ --with-monotouch_tv=yes,no If you want to build the Xamarin.TVOS assemblies (defaults to no)], [], [with_monotouch_tv=default])
AC_ARG_WITH(bitcode, [ --with-bitcode=yes,no If bitcode is enabled (defaults to no)], [], [with_bitcode=default])
AC_ARG_WITH(xammac, [ --with-xammac=yes,no If you want to build the Xamarin.Mac assemblies (defaults to no)], [], [with_xammac=default])
AC_ARG_WITH(mobile_static, [ --with-mobile_static=yes,no If you want to build the mobile_static assemblies (defaults to no)], [], [with_mobile_static=default])
AC_ARG_WITH(runtime_preset, [ --with-runtime_preset=net_4_x,all,mobile_static,bitcode_mobile_static Which default profile to build (defaults to net_4_x)], [], [with_runtime_preset=net_4_x])
dnl
dnl Profile defaults
dnl
TEST_PROFILE=default
enable_llvm_default=no
INVARIANT_AOT_OPTIONS=nimt-trampolines=900,ntrampolines=8000,nrgctx-fetch-trampolines=256,ngsharedvt-trampolines=2800
if test x$cross_compiling = xyes -o x$enable_mcs_build = xno; then
DISABLE_MCS_DOCS_default=yes
with_profile4_x_default=no
with_monodroid_default=no
with_monotouch_default=no
with_monotouch_watch_default=no
with_monotouch_tv_default=no
with_xammac_default=no
with_mobile_static_default=no
with_bitcode_default=no
with_cooperative_gc_default=no
elif test x$with_runtime_preset = xnet_4_x; then
with_cooperative_gc_default=no
with_profile4_x_default=yes
with_monodroid_default=no
with_monotouch_default=no
with_monotouch_watch_default=no
with_monotouch_tv_default=no
with_xammac_default=no
with_mobile_static_default=no
with_bitcode_default=no
elif test x$with_runtime_preset = xall; then
with_cooperative_gc_default=no
with_profile4_x_default=yes
with_monodroid_default=yes
with_monotouch_default=yes
with_monotouch_watch_default=yes
with_monotouch_tv_default=yes
with_xammac_default=yes
with_mobile_static_default=no
with_bitcode_default=no
elif test x$with_runtime_preset = xmobile_static; then
DISABLE_MCS_DOCS_default=yes
with_cooperative_gc_default=no
with_profile4_x_default=no
with_monodroid_default=no
with_monotouch_default=no
with_monotouch_watch_default=no
with_monotouch_tv_default=no
with_xammac_default=no
with_mobile_static_default=yes
with_bitcode_default=no
with_cooperative_gc_default=no
TEST_PROFILE=mobile_static
mono_feature_disable_com='yes'
mono_feature_disable_remoting='yes'
mono_feature_disable_reflection_emit_save='yes'
mono_feature_disable_reflection_emit='yes'
mono_feature_disable_appdomains='yes'
AOT_BUILD_FLAGS="-O=gsharedvt --aot=full,$INVARIANT_AOT_OPTIONS"
AOT_RUN_FLAGS="--full-aot"
elif test x$with_runtime_preset = xbitcode_mobile_static; then
DISABLE_MCS_DOCS_default=yes
with_profile4_x_default=no
with_monodroid_default=no
with_monotouch_default=no
with_monotouch_watch_default=no
with_monotouch_tv_default=no
with_xammac_default=no
with_mobile_static_default=yes
with_bitcode_default=yes
with_cooperative_gc_default=yes
TEST_PROFILE=mobile_static
enable_llvm_default=yes
mono_feature_disable_com='yes'
mono_feature_disable_remoting='yes'
mono_feature_disable_reflection_emit_save='yes'
mono_feature_disable_reflection_emit='yes'
mono_feature_disable_appdomains='yes'
AOT_BUILD_FLAGS="--aot=llvmonly,$INVARIANT_AOT_OPTIONS"
AOT_RUN_FLAGS="--llvmonly"
else
with_profile4_x_default=yes
with_monodroid_default=no
with_monotouch_default=no
with_monotouch_watch_default=no
with_monotouch_tv_default=no
with_bitcode_default=no
with_xammac_default=no
with_mobile_static_default=no
with_cooperative_gc_default=no
fi
if test "x$AOT_BUILD_FLAGS" != "x"; then :
AC_SUBST(AOT_BUILD_FLAGS)
AC_SUBST(AOT_RUN_FLAGS)
# For llvmonlycheck + fullaotcheck
AC_SUBST(INVARIANT_AOT_OPTIONS)
fi
AC_SUBST(TEST_PROFILE)
if test "x$with_profile4_x" = "xdefault"; then
with_profile4_x=$with_profile4_x_default
fi
if test "x$with_monodroid" = "xdefault"; then
with_monodroid=$with_monodroid_default
fi
if test "x$with_monotouch" = "xdefault"; then
with_monotouch=$with_monotouch_default
fi
if test "x$with_monotouch_watch" = "xdefault"; then
with_monotouch_watch=$with_monotouch_watch_default
fi
if test "x$with_monotouch_tv" = "xdefault"; then
with_monotouch_tv=$with_monotouch_tv_default
fi
if test "x$with_bitcode" = "xdefault"; then
with_bitcode=$with_bitcode_default
fi
if test "x$with_xammac" = "xdefault"; then
with_xammac=$with_xammac_default
fi
if test "x$with_mobile_static" = "xdefault"; then
with_mobile_static=$with_mobile_static_default
fi
AM_CONDITIONAL(INSTALL_4_x, [test "x$with_profile4_x" = "xyes"])
AM_CONDITIONAL(INSTALL_MONODROID, [test "x$with_monodroid" != "xno"])
AM_CONDITIONAL(INSTALL_MONOTOUCH, [test "x$with_monotouch" != "xno"])
AM_CONDITIONAL(INSTALL_MONOTOUCH_WATCH, [test "x$with_monotouch_watch" != "xno"])
AM_CONDITIONAL(INSTALL_MONOTOUCH_TV, [test "x$with_monotouch_tv" != "xno"])
AM_CONDITIONAL(BITCODE, test "x$with_bitcode" = "xyes")
AM_CONDITIONAL(INSTALL_XAMMAC, [test "x$with_xammac" != "xno"])
AM_CONDITIONAL(INSTALL_MOBILE_STATIC, [test "x$with_mobile_static" != "xno"])
AC_SUBST(INSTALL_MOBILE_STATIC)
default_profile=net_4_x
if test -z "$INSTALL_MONODROID_TRUE"; then :
default_profile=monodroid
fi
if test -z "$INSTALL_MONOTOUCH_TRUE"; then :
default_profile=monotouch
fi
if test -z "$INSTALL_XAMMAC_TRUE"; then :
default_profile=xammac
fi
if test -z "$INSTALL_MOBILE_STATIC_TRUE"; then :
default_profile=mobile_static
fi
if test -z "$INSTALL_4_x_TRUE"; then :
default_profile=net_4_x
fi
DEFAULT_PROFILE=$default_profile
AC_SUBST(DEFAULT_PROFILE)
#
# End build profile configuration
#
if test x$USE_NLS = xprofile_default; then
if test x$host_darwin = xyes; then
# We make the default value for USE_NLS
# "no" on OSX because it isn't available on most
# default OSX installs. The most common configurations will
# all disable it, so this saves us typing.
USE_NLS=no
AC_SUBST([USE_NLS])
AC_MSG_RESULT([$USE_NLS])
else
USE_NLS=yes
AC_SUBST([USE_NLS])
AC_MSG_RESULT([$USE_NLS])
fi
fi
AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsystems.
LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug, appdomains, verifier,
reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd, soft_debug, perfcounters, normalization, assembly_remapping, shared_perfcounters, remoting,
@@ -967,72 +1179,76 @@ AC_ARG_WITH(libgc, [ --with-gc=included,none Controls the Boehm GC config, d
AC_ARG_ENABLE(boehm, [ --disable-boehm Disable the Boehm GC.], support_boehm=$enableval,support_boehm=${support_boehm:-yes})
AM_CONDITIONAL(SUPPORT_BOEHM, test x$support_boehm = xyes)
AC_ARG_ENABLE(parallel-mark, [ --enable-parallel-mark Enables Boehm GC Parallel Marking], enable_parallel_mark=$enableval, enable_parallel_mark=$parallel_mark)
if test x$enable_parallel_mark = xyes; then
libgc_configure_args="$libgc_configure_args --enable-parallel-mark"
if test "x$support_boehm" = "xyes"; then
AC_ARG_ENABLE(parallel-mark, [ --enable-parallel-mark Enables Boehm GC Parallel Marking], enable_parallel_mark=$enableval, enable_parallel_mark=$parallel_mark)
if test x$enable_parallel_mark = xyes; then
libgc_configure_args="$libgc_configure_args --enable-parallel-mark"
fi
gc_msg=""
LIBGC_CPPFLAGS=
LIBGC_LIBS=
LIBGC_STATIC_LIBS=
libgc_dir=
case "x$libgc" in
xincluded)
if test "x$support_boehm" = "xyes"; then
libgc_dir=libgc
fi
LIBGC_CPPFLAGS='-I$(top_srcdir)/libgc/include'
LIBGC_LIBS='$(top_builddir)/libgc/libmonogc.la'
LIBGC_STATIC_LIBS='$(top_builddir)/libgc/libmonogc-static.la'
BOEHM_DEFINES="-DHAVE_BOEHM_GC"
if test x$target_win32 = xyes; then
BOEHM_DEFINES="$BOEHM_DEFINES -DGC_NOT_DLL"
CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC -DGC_BUILD -DGC_NOT_DLL"
fi
gc_msg="Included Boehm GC with typed GC"
if test x$enable_parallel_mark = xyes; then
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "Included Boehm (with typed GC and Parallel Mark)", [GC description])
gc_msg="$gc_msg and parallel mark"
else
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "Included Boehm (with typed GC)", [GC description])
fi
;;
xboehm|xbohem|xyes)
AC_MSG_WARN("External Boehm is no longer supported")
;;
xsgen)
AC_MSG_WARN("Use --with-sgen instead, --with-gc= controls Boehm configuration")
;;
xnone)
AC_MSG_WARN("Compiling mono without GC.")
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "none", [GC description])
AC_DEFINE(HAVE_NULL_GC,1,[No GC support.])
gc_msg="none"
;;
*)
AC_MSG_ERROR([Invalid argument to --with-gc.])
;;
esac
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB (defaults to no)], [large_heap=$withval], [large_heap=no])
if test "x$large_heap" = "xyes"; then
CPPFLAGS="$CPPFLAGS -DLARGE_CONFIG"
fi
AC_SUBST(LIBGC_CPPFLAGS)
AC_SUBST(LIBGC_LIBS)
AC_SUBST(LIBGC_STATIC_LIBS)
AC_SUBST(libgc_dir)
AC_SUBST(BOEHM_DEFINES)
fi
gc_msg=""
LIBGC_CPPFLAGS=
LIBGC_LIBS=
LIBGC_STATIC_LIBS=
libgc_dir=
case "x$libgc" in
xincluded)
if test "x$support_boehm" = "xyes"; then
libgc_dir=libgc
fi
LIBGC_CPPFLAGS='-I$(top_srcdir)/libgc/include'
LIBGC_LIBS='$(top_builddir)/libgc/libmonogc.la'
LIBGC_STATIC_LIBS='$(top_builddir)/libgc/libmonogc-static.la'
BOEHM_DEFINES="-DHAVE_BOEHM_GC"
if test x$target_win32 = xyes; then
BOEHM_DEFINES="$BOEHM_DEFINES -DGC_NOT_DLL"
CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC -DGC_BUILD -DGC_NOT_DLL"
fi
gc_msg="Included Boehm GC with typed GC"
if test x$enable_parallel_mark = xyes; then
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "Included Boehm (with typed GC and Parallel Mark)", [GC description])
gc_msg="$gc_msg and parallel mark"
else
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "Included Boehm (with typed GC)", [GC description])
fi
;;
xboehm|xbohem|xyes)
AC_MSG_WARN("External Boehm is no longer supported")
;;
xsgen)
AC_MSG_WARN("Use --with-sgen instead, --with-gc= controls Boehm configuration")
;;
xnone)
AC_MSG_WARN("Compiling mono without GC.")
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "none", [GC description])
AC_DEFINE(HAVE_NULL_GC,1,[No GC support.])
gc_msg="none"
;;
*)
AC_MSG_ERROR([Invalid argument to --with-gc.])
;;
esac
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB (defaults to no)], [large_heap=$withval], [large_heap=no])
if test "x$large_heap" = "xyes"; then
CPPFLAGS="$CPPFLAGS -DLARGE_CONFIG"
fi
AC_SUBST(LIBGC_CPPFLAGS)
AC_SUBST(LIBGC_LIBS)
AC_SUBST(LIBGC_STATIC_LIBS)
AC_SUBST(libgc_dir)
AC_SUBST(BOEHM_DEFINES)
dnl
dnl End of Boehm GC Configuration
dnl
@@ -2572,13 +2788,17 @@ dnl **************
dnl *** LLVM ***
dnl **************
AC_ARG_ENABLE(llvm,[ --enable-llvm Enable the LLVM back-end], enable_llvm=$enableval, enable_llvm=no)
AC_ARG_ENABLE(llvm,[ --enable-llvm Enable the LLVM back-end], enable_llvm=$enableval, enable_llvm=default)
AC_ARG_ENABLE(loadedllvm,[ --enable-loadedllvm Load the LLVM back-end dynamically], enable_llvm=$enableval && enable_loadedllvm=$enableval, enable_loadedllvm=no)
AC_ARG_ENABLE(llvm-version-check,[ --enable-llvm-version-check Check that the LLVM matches the version expected by mono], enable_llvm_version_check=$enableval, enable_llvm_version_check=no)
AC_ARG_ENABLE(llvm-runtime,[ --enable-llvm-runtime Enable runtime support for llvmonly code], enable_llvm_runtime=$enableval, enable_llvm_runtime=no)
AC_ARG_WITH(llvm, [ --with-llvm=<llvm prefix> Enable the LLVM back-end], enable_llvm=yes,)
if test "x$enable_llvm" = "xdefault"; then
enable_llvm=$enable_llvm_default
fi
if test "x$enable_llvm" = "xyes"; then
if test "x$with_llvm" != "x"; then
LLVM_CONFIG=$with_llvm/bin/llvm-config
@@ -3559,15 +3779,6 @@ case "x$libgc" in
;;
esac
AC_ARG_WITH(profile4_x, [ --with-profile4=yes,no If you want to install the 4.6 FX (defaults to yes)], [], [with_profile4_x=yes])
AC_ARG_WITH(monodroid, [ --with-monodroid=yes,no If you want to build the MonoDroid assemblies (defaults to no)], [], [with_monodroid=no])
AC_ARG_WITH(monotouch, [ --with-monotouch=yes,no If you want to build the Xamarin.iOS assemblies (defaults to no)], [], [with_monotouch=no])
AC_ARG_WITH(monotouch_watch, [ --with-monotouch_watch=yes,no If you want to build the Xamarin.WatchOS assemblies (defaults to no)],[], [with_monotouch_watch=no])
AC_ARG_WITH(monotouch_tv, [ --with-monotouch_tv=yes,no If you want to build the Xamarin.TVOS assemblies (defaults to no)], [], [with_monotouch_tv=no])
AC_ARG_WITH(bitcode, [ --with-bitcode=yes,no If bitcode is enabled (defaults to no)], [], [with_bitcode=no])
AC_ARG_WITH(xammac, [ --with-xammac=yes,no If you want to build the Xamarin.Mac assemblies (defaults to no)], [], [with_xammac=no])
AC_ARG_WITH(mobile_static, [ --with-mobile_static=yes,no If you want to build the mobile_static assemblies (defaults to no)], [], [with_mobile_static=no])
MALLOC_MEMPOOLS=no
AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each single mempool allocation (only for runtime debugging, defaults to no)],[
if test x$with_malloc_mempools = xyes; then
@@ -3577,15 +3788,18 @@ AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for eac
])
DISABLE_MCS_DOCS=no
DISABLE_MCS_DOCS=default
AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the documentation under mcs (defaults to yes)],[
if test x$with_mcs_docs != xyes; then
DISABLE_MCS_DOCS=yes
fi
])
if test x$with_profile4_x != xyes; then
if test -n "$INSTALL_4_x_TRUE"; then :
DISABLE_MCS_DOCS=yes
fi
if test "x$DISABLE_MCS_DOCS" = "xdefault"; then
DISABLE_MCS_DOCS=$DISABLE_MCS_DOCS_default
fi
AC_ARG_WITH(lazy_gc_thread_creation, [ --with-lazy-gc-thread-creation=yes|no Enable lazy runtime thread creation, embedding host must do it explicitly (defaults to no)],[
if test x$with_lazy_gc_thread_creation != xno ; then
@@ -3593,11 +3807,15 @@ AC_ARG_WITH(lazy_gc_thread_creation, [ --with-lazy-gc-thread-creation=yes|no
fi
], [with_lazy_gc_thread_creation=no])
AC_ARG_WITH(cooperative_gc, [ --with-cooperative-gc=yes|no Enable cooperative stop-the-world garbage collection (sgen only) (defaults to no)],[
if test x$with_cooperative_gc != xno ; then
AC_DEFINE(USE_COOP_GC,1,[Enable cooperative stop-the-world garbage collection.])
fi
], [with_cooperative_gc=no])
AC_ARG_WITH(cooperative_gc, [ --with-cooperative-gc=yes|no Enable cooperative stop-the-world garbage collection (sgen only) (defaults to no)], [], [with_cooperative_gc=default])
if test x$with_cooperative_gc = xdefault; then
with_cooperative_gc=$with_cooperative_gc_default
fi
if test x$with_cooperative_gc != xno; then
AC_DEFINE(USE_COOP_GC,1,[Enable cooperative stop-the-world garbage collection.])
fi
AM_CONDITIONAL([ENABLE_COOP], [test x$with_cooperative_gc != xno])
@@ -3655,20 +3873,6 @@ else
fi
AC_SUBST(LIBMONO_LA)
dnl
dnl Consistency settings
dnl
if test x$cross_compiling = xyes -o x$enable_mcs_build = xno; then
DISABLE_MCS_DOCS=yes
with_profile4_x=no
with_monodroid=no
with_monotouch=no
with_monotouch_watch=no
with_monotouch_tv=no
with_xammac=no
with_mobile_static=no
fi
if test x$DISABLE_MCS_DOCS = xyes; then
docs_dir=""
else
@@ -3681,15 +3885,6 @@ AM_CONDITIONAL(BUILD_MCS, [test x$cross_compiling = xno && test x$enable_mcs_bui
libmono_ldflags="$libmono_ldflags $LIBS"
AM_CONDITIONAL(INSTALL_4_x, [test "x$with_profile4_x" = xyes])
AM_CONDITIONAL(INSTALL_MONODROID, [test "x$with_monodroid" != "xno"])
AM_CONDITIONAL(INSTALL_MONOTOUCH, [test "x$with_monotouch" != "xno"])
AM_CONDITIONAL(INSTALL_MONOTOUCH_WATCH, [test "x$with_monotouch_watch" != "xno"])
AM_CONDITIONAL(INSTALL_MONOTOUCH_TV, [test "x$with_monotouch_tv" != "xno"])
AM_CONDITIONAL(BITCODE, test "x$with_bitcode" = "xyes")
AM_CONDITIONAL(INSTALL_XAMMAC, [test "x$with_xammac" != "xno"])
AM_CONDITIONAL(INSTALL_MOBILE_STATIC, [test "x$with_mobile_static" != "xno"])
AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
@@ -3744,22 +3939,6 @@ else
fi
AC_SUBST(mono_cfg_dir)
default_profile=net_4_x
if test -z "$INSTALL_MONODROID_TRUE"; then :
default_profile=monodroid
fi
if test -z "$INSTALL_MONOTOUCH_TRUE"; then :
default_profile=monotouch
fi
if test -z "$INSTALL_XAMMAC_TRUE"; then :
default_profile=xammac
fi
if test -z "$INSTALL_4_x_TRUE"; then :
default_profile=net_4_x
fi
DEFAULT_PROFILE=$default_profile
AC_SUBST(DEFAULT_PROFILE)
AC_CONFIG_FILES([po/mcs/Makefile.in])
AC_CONFIG_FILES([runtime/mono-wrapper],[chmod +x runtime/mono-wrapper])
@@ -3926,6 +4105,7 @@ AC_OUTPUT([
Makefile
mono-uninstalled.pc
acceptance-tests/Makefile
llvm/Makefile
scripts/mono-find-provides
scripts/mono-find-requires
mono/Makefile
@@ -3992,6 +4172,7 @@ tools/Makefile
tools/locale-builder/Makefile
tools/sgen/Makefile
tools/monograph/Makefile
tools/pedump/Makefile
runtime/Makefile
msvc/Makefile
po/Makefile
@@ -4062,6 +4243,10 @@ fi
echo "PLATFORM = darwin" >> $mcs_topdir/build/config.make
fi
if test "x$PLATFORM_AOT_SUFFIX" != "x"; then
echo "PLATFORM_AOT_SUFFIX = $PLATFORM_AOT_SUFFIX" >> $mcs_topdir/build/config.make
fi
if test x$AOT_SUPPORTED = xyes -a x$enable_system_aot = xdefault; then
enable_system_aot=yes
fi
@@ -4084,6 +4269,11 @@ fi
echo "BCL_OPTIMIZE = 1" >> $srcdir/$mcsdir/build/config.make
fi
if test "x$AOT_BUILD_FLAGS" != "x" ; then
echo "AOT_RUN_FLAGS=$AOT_RUN_FLAGS" >> $srcdir/$mcsdir/build/config.make
echo "AOT_BUILD_FLAGS=$AOT_BUILD_FLAGS" >> $srcdir/$mcsdir/build/config.make
fi
fi
)
@@ -4105,7 +4295,7 @@ echo "
LLVM Back End: $enable_llvm (dynamically loaded: $enable_loadedllvm)
Libraries:
.NET 4.6: $with_profile4_x
.NET 4.x: $with_profile4_x
Xamarin.Android: $with_monodroid
Xamarin.iOS: $with_monotouch
Xamarin.WatchOS: $with_monotouch_watch
+10 -1
View File
@@ -138,6 +138,15 @@ AC_CHECK_FUNCS(strlcpy stpcpy strtok_r rewinddir vasprintf)
AC_CHECK_FUNCS(getrlimit)
AC_CHECK_FUNCS(fork execv execve)
AC_ARG_WITH([overridable-allocators], [ --with-overridable-allocators allow g_*alloc/g_free to call custom allocators set via g_mem_set_vtable])
if test x$with_overridable_allocators == xyes; then
AC_DEFINE(ENABLE_OVERRIDABLE_ALLOCATORS,1,[Overridable allocator support enabled])
AC_MSG_NOTICE([Overridable allocator support enabled])
else
AC_MSG_NOTICE([Overridable allocator support disabled])
fi
#
# Mono currently supports 10.6, but strndup is not available prior to 10.7; avoiding
# the detection of strndup on OS X so Mono built on 10.7+ still runs on 10.6. This can be
@@ -151,7 +160,7 @@ elif test x$target_ios = xno; then
AC_CHECK_FUNCS(strndup getpwuid_r)
fi
AM_CONDITIONAL(NEED_VASPRINTF, test x$ac_cv_func_vasprintf = xno )
AM_CONDITIONAL(NEED_VASPRINTF, test x$ac_cv_func_vasprintf = xno || test x$with_overridable_allocators == xyes)
AM_ICONV()
AC_SEARCH_LIBS(sqrtf, m)
+1 -11
View File
@@ -11,14 +11,6 @@ unix_files = \
gdate-unix.c gdir-unix.c gfile-unix.c gmisc-unix.c \
gmodule-unix.c gtimer-unix.c
# some unices and windows do not have an implementation of vasprintf
# used by eglib, use provided implementation instead
if NEED_VASPRINTF
vasprintf_files = vasprintf.c
else
vaprinttf_files = foo.c
endif
if HOST_WIN32
os_files = $(win_files)
else
@@ -32,7 +24,6 @@ libeglib_la_SOURCES = \
garray.c \
gbytearray.c \
gerror.c \
vasprintf.h \
ghashtable.c \
giconv.c \
gmem.c \
@@ -55,8 +46,7 @@ libeglib_la_SOURCES = \
gutf8.c \
gunicode.c \
unicode-data.h \
$(os_files) \
$(vasprintf_files)
$(os_files)
libeglib_la_CFLAGS = -g -Wall -D_FORTIFY_SOURCE=2
+4 -6
View File
@@ -28,10 +28,8 @@
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <config.h>
#include <glib.h>
#include "vasprintf.h"
GError *
g_error_new (gpointer domain, gint code, const char *format, ...)
{
@@ -42,7 +40,7 @@ g_error_new (gpointer domain, gint code, const char *format, ...)
err->code = code;
va_start (args, format);
if (vasprintf (&err->message, format, args) == -1)
if (g_vasprintf (&err->message, format, args) == -1)
err->message = g_strdup_printf ("internal: invalid format string %s", format);
va_end (args);
@@ -57,7 +55,7 @@ g_error_vnew (gpointer domain, gint code, const char *format, va_list ap)
err->domain = domain;
err->code = code;
if (vasprintf (&err->message, format, ap) == -1)
if (g_vasprintf (&err->message, format, ap) == -1)
err->message = g_strdup_printf ("internal: invalid format string %s", format);
return err;
@@ -77,7 +75,7 @@ g_error_free (GError *error)
{
g_return_if_fail (error != NULL);
free (error->message);
g_free (error->message);
g_free (error);
}
+5 -6
View File
@@ -1,6 +1,5 @@
#ifndef __GLIB_H
#define __GLIB_H
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
@@ -9,6 +8,7 @@
#include <ctype.h>
#include <limits.h>
#ifdef _MSC_VER
#pragma include_alias(<eglib-config.h>, <eglib-config.hw>)
#endif
@@ -126,6 +126,7 @@ void g_free (void *ptr);
gpointer g_realloc (gpointer obj, gsize size);
gpointer g_malloc (gsize x);
gpointer g_malloc0 (gsize x);
gpointer g_calloc (gsize n, gsize x);
gpointer g_try_malloc (gsize x);
gpointer g_try_realloc (gpointer obj, gsize size);
@@ -138,7 +139,7 @@ gpointer g_try_realloc (gpointer obj, gsize size);
#define g_alloca(size) alloca (size)
gpointer g_memdup (gconstpointer mem, guint byte_size);
static inline gchar *g_strdup (const gchar *str) { if (str) {return strdup (str);} return NULL; }
static inline gchar *g_strdup (const gchar *str) { if (str) { return (gchar*) g_memdup (str, (guint)strlen (str) + 1); } return NULL; }
gchar **g_strdupv (gchar **str_array);
typedef struct {
@@ -146,11 +147,9 @@ typedef struct {
gpointer (*realloc) (gpointer mem, gsize n_bytes);
void (*free) (gpointer mem);
gpointer (*calloc) (gsize n_blocks, gsize n_block_bytes);
gpointer (*try_malloc) (gsize n_bytes);
gpointer (*try_realloc) (gpointer mem, gsize n_bytes);
} GMemVTable;
#define g_mem_set_vtable(x)
void g_mem_set_vtable (GMemVTable* vtable);
struct _GMemChunk {
guint alloc_size;
@@ -223,11 +222,11 @@ gint g_printf (gchar const *format, ...);
gint g_fprintf (FILE *file, gchar const *format, ...);
gint g_sprintf (gchar *string, gchar const *format, ...);
gint g_snprintf (gchar *string, gulong n, gchar const *format, ...);
gint g_vasprintf (gchar **ret, const gchar *fmt, va_list ap);
#define g_vprintf vprintf
#define g_vfprintf vfprintf
#define g_vsprintf vsprintf
#define g_vsnprintf vsnprintf
#define g_vasprintf vasprintf
gsize g_strlcpy (gchar *dest, const gchar *src, gsize dest_size);
gchar *g_stpcpy (gchar *dest, const char *src);
+1 -1
View File
@@ -367,7 +367,7 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
if (context->parser.end_element != NULL && context->state == START_ELEMENT){
context->parser.end_element (context, ename, context->user_data, error);
if (error != NULL && *error != NULL){
free (ename);
g_free (ename);
goto fail;
}
}
+47 -13
View File
@@ -25,15 +25,45 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <config.h>
#include <stdio.h>
#include <string.h>
#include <glib.h>
#if defined (ENABLE_OVERRIDABLE_ALLOCATORS)
static GMemVTable sGMemVTable = { malloc, realloc, free, calloc };
void
g_mem_set_vtable (GMemVTable* vtable)
{
sGMemVTable.calloc = vtable->calloc ? vtable->calloc : calloc;
sGMemVTable.realloc = vtable->realloc ? vtable->realloc : realloc;
sGMemVTable.malloc = vtable->malloc ? vtable->malloc : malloc;
sGMemVTable.free = vtable->free ? vtable->free : free;
}
#define G_FREE_INTERNAL sGMemVTable.free
#define G_REALLOC_INTERNAL sGMemVTable.realloc
#define G_CALLOC_INTERNAL sGMemVTable.calloc
#define G_MALLOC_INTERNAL sGMemVTable.malloc
#else
void
g_mem_set_vtable (GMemVTable* vtable)
{
}
#define G_FREE_INTERNAL free
#define G_REALLOC_INTERNAL realloc
#define G_CALLOC_INTERNAL calloc
#define G_MALLOC_INTERNAL malloc
#endif
void
g_free (void *ptr)
{
if (ptr != NULL)
free (ptr);
G_FREE_INTERNAL (ptr);
}
gpointer
@@ -58,7 +88,7 @@ gpointer g_realloc (gpointer obj, gsize size)
g_free (obj);
return 0;
}
ptr = realloc (obj, size);
ptr = G_REALLOC_INTERNAL (obj, size);
if (ptr)
return ptr;
g_error ("Could not allocate %i bytes", size);
@@ -70,27 +100,31 @@ g_malloc (gsize x)
gpointer ptr;
if (!x)
return 0;
ptr = malloc (x);
ptr = G_MALLOC_INTERNAL (x);
if (ptr)
return ptr;
g_error ("Could not allocate %i bytes", x);
}
gpointer g_calloc (gsize n, gsize x)
{
gpointer ptr;
if (!x || !n)
return 0;
ptr = G_CALLOC_INTERNAL (n, x);
if (ptr)
return ptr;
g_error ("Could not allocate %i (%i * %i) bytes", x*n, n, x);
}
gpointer g_malloc0 (gsize x)
{
gpointer ptr;
if (!x)
return 0;
ptr = calloc(1,x);
if (ptr)
return ptr;
g_error ("Could not allocate %i bytes", x);
return g_calloc (1,x);
}
gpointer g_try_malloc (gsize x)
{
if (x)
return malloc (x);
return G_MALLOC_INTERNAL (x);
return 0;
}
@@ -98,8 +132,8 @@ gpointer g_try_malloc (gsize x)
gpointer g_try_realloc (gpointer obj, gsize size)
{
if (!size) {
g_free (obj);
G_FREE_INTERNAL (obj);
return 0;
}
return realloc (obj, size);
return G_REALLOC_INTERNAL (obj, size);
}
+4 -1
View File
@@ -92,7 +92,7 @@ g_win32_getlocale(void)
gint ccBuf = GetLocaleInfo(lcid, LOCALE_SISO639LANGNAME, buf, 9);
buf[ccBuf - 1] = '-';
ccBuf += GetLocaleInfo(lcid, LOCALE_SISO3166CTRYNAME, buf + ccBuf, 9);
return strdup(buf);
return g_strdup (buf);
}
gboolean
@@ -128,6 +128,9 @@ g_get_home_dir (void)
}
}
g_free (drive);
g_free (path);
return home_dir;
}
+6 -8
View File
@@ -31,8 +31,6 @@
#include <stdlib.h>
#include <glib.h>
#include "vasprintf.h"
/* The current fatal levels, error is always fatal */
static GLogLevelFlags fatal = G_LOG_LEVEL_ERROR;
static GLogFunc default_log_func;
@@ -49,7 +47,7 @@ g_print (const gchar *format, ...)
va_list args;
va_start (args, format);
if (vasprintf (&msg, format, args) < 0)
if (g_vasprintf (&msg, format, args) < 0)
return;
va_end (args);
@@ -57,7 +55,7 @@ g_print (const gchar *format, ...)
stdout_handler = default_stdout_handler;
stdout_handler (msg);
free (msg);
g_free (msg);
}
void
@@ -67,7 +65,7 @@ g_printerr (const gchar *format, ...)
va_list args;
va_start (args, format);
if (vasprintf (&msg, format, args) < 0)
if (g_vasprintf (&msg, format, args) < 0)
return;
va_end (args);
@@ -75,7 +73,7 @@ g_printerr (const gchar *format, ...)
stderr_handler = default_stderr_handler;
stderr_handler (msg);
free (msg);
g_free (msg);
}
GLogLevelFlags
@@ -107,11 +105,11 @@ g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format,
if (!default_log_func)
default_log_func = g_log_default_handler;
if (vasprintf (&msg, format, args) < 0)
if (g_vasprintf (&msg, format, args) < 0)
return;
default_log_func (log_domain, log_level, msg, default_log_func_user_data);
free (msg);
g_free (msg);
}
void
+39 -4
View File
@@ -32,13 +32,17 @@
#include <ctype.h>
#include <glib.h>
#include "vasprintf.h"
/*
* g_strndup and g_vasprintf need to allocate memory with g_malloc if
* ENABLE_OVERRIDABLE_ALLOCATORS is defined so that it can be safely freed with g_free
* rather than free.
*/
/* This is not a macro, because I dont want to put _GNU_SOURCE in the glib.h header */
gchar *
g_strndup (const gchar *str, gsize n)
{
#ifdef HAVE_STRNDUP
#if defined (HAVE_STRNDUP) && !defined (ENABLE_OVERRIDABLE_ALLOCATORS)
return strndup (str, n);
#else
if (str) {
@@ -52,6 +56,37 @@ g_strndup (const gchar *str, gsize n)
#endif
}
gint g_vasprintf (gchar **ret, const gchar *fmt, va_list ap)
{
#if defined (HAVE_VASPRINTF) && !defined (ENABLE_OVERRIDABLE_ALLOCATORS)
return vasprintf (ret, fmt, ap);
#else
char *buf;
int len;
size_t buflen;
va_list ap2;
#if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
ap2 = ap;
len = _vscprintf(fmt, ap2); // NOTE MS specific extension ( :-( )
#else
va_copy(ap2, ap);
len = vsnprintf(NULL, 0, fmt, ap2);
#endif
if (len >= 0 && (buf = g_malloc ((buflen = (size_t) (len + 1)))) != NULL) {
len = vsnprintf(buf, buflen, fmt, ap);
*ret = buf;
} else {
*ret = NULL;
len = -1;
}
va_end(ap2);
return len;
#endif
}
void
g_strfreev (gchar **str_array)
{
@@ -133,7 +168,7 @@ g_strdup_vprintf (const gchar *format, va_list args)
int n;
char *ret;
n = vasprintf (&ret, format, args);
n = g_vasprintf (&ret, format, args);
if (n == -1)
return NULL;
@@ -148,7 +183,7 @@ g_strdup_printf (const gchar *format, ...)
int n;
va_start (args, format);
n = vasprintf (&ret, format, args);
n = g_vasprintf (&ret, format, args);
va_end (args);
if (n == -1)
return NULL;
-31
View File
@@ -1,31 +0,0 @@
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
int vasprintf(char **ret, const char *fmt, va_list ap)
{
char *buf;
int len;
size_t buflen;
va_list ap2;
#if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
ap2 = ap;
len = _vscprintf(fmt, ap2); // NOTE MS specific extension ( :-( )
#else
va_copy(ap2, ap);
len = vsnprintf(NULL, 0, fmt, ap2);
#endif
if (len >= 0 && (buf = malloc ((buflen = (size_t) (len + 1)))) != NULL) {
len = vsnprintf(buf, buflen, fmt, ap);
*ret = buf;
} else {
*ret = NULL;
len = -1;
}
va_end(ap2);
return len;
}
-11
View File
@@ -1,11 +0,0 @@
#ifndef __VASPRINTF_H
#define __VASPRINTF_H
#include <stdarg.h>
#include <config.h>
#ifndef HAVE_VASPRINTF
int vasprintf(char **ret, const char *fmt, va_list ap);
#endif
#endif /* __VASPRINTF_H */
+1 -8
View File
@@ -46,13 +46,6 @@
#include "test.h"
extern gint global_passed, global_tests;
#ifndef HAVE_VASPRINTF
/* systen does not provide a vasprintf function, use the one
provided within eglib itself */
extern int vasprintf(char **ret, const char *format, va_list ap);
#endif
static gchar *last_result = NULL;
gboolean
@@ -183,7 +176,7 @@ FAILED(const gchar *format, ...)
return NULL;
#else
va_start(args, format);
n = vasprintf(&ret, format, args);
n = g_vasprintf(&ret, format, args);
va_end(args);
if(n == -1) {
-1
View File
@@ -93,7 +93,6 @@ GC_API GC_PTR (*GC_oom_fn) GC_PROTO((size_t bytes_requested));
/* pointer to a previously allocated heap */
/* object. */
// Keep somewhat in sync with mono/metadata/profiler.h:enum MonoGCEvent
typedef enum {
GC_EVENT_START,
GC_EVENT_MARK_START,
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
+30
View File
@@ -0,0 +1,30 @@
#
# Conditional submodule for llvm
#
# make reset-llvm will checkout a version of llvm which is suitable for this version of mono
# into $top_srcdir/llvm/llvm.
#
LLVM_PATH=llvm
SUBMODULES_CONFIG_FILE = $(top_srcdir)/llvm/SUBMODULES.json
include $(top_srcdir)/scripts/submodules/versions.mk
$(eval $(call ValidateVersionTemplate,llvm,LLVM))
# Bump the given submodule to the revision given by the REV make variable
# If COMMIT is 1, commit the change
bump-llvm: __bump-version-llvm
# Bump the given submodule to the branch given by the BRANCH/REMOTE_BRANCH make variables
# If COMMIT is 1, commit the change
bump-branch-llvm: __bump-branch-llvm
# Bump the given submodule to its current GIT version
# If COMMIT is 1, commit the change
bump-current-llvm: __bump-current-version-llvm
clean-local:
$(RM) -r $(LLVM_PATH)
EXTRA_DIST=SUBMODULES.json
+10
View File
@@ -0,0 +1,10 @@
[
{
"name": "llvm",
"url": "git://github.com/mono/llvm.git",
"rev": "9f79399f87282524fee099b328bd8cbf07929daf",
"remote-branch": "origin/master",
"branch": "master",
"directory": "llvm"
}
]
+1 -1
View File
@@ -26,7 +26,7 @@ AC_DEFUN([AM_NLS],
dnl Default is enabled NLS
AC_ARG_ENABLE([nls],
[ --disable-nls do not use Native Language Support],
USE_NLS=$enableval, USE_NLS=yes)
USE_NLS=$enableval, USE_NLS=profile_default)
AC_MSG_RESULT([$USE_NLS])
AC_SUBST([USE_NLS])
])
+18 -8
View File
@@ -7,7 +7,7 @@
.\" Author:
.\" Miguel de Icaza ([email protected])
.\"
.TH Mono "Mono 3.0"
.TH Mono "Mono 4.7.0"
.SH NAME
mono \- Mono's ECMA-CLI native code generator (Just-in-Time and Ahead-of-Time)
.SH SYNOPSIS
@@ -1100,7 +1100,7 @@ a Mono process through the environment. This is useful for example
to force all of your Mono processes to use LLVM or SGEN without having
to modify any launch scripts.
.TP
\fBMONO_ENV_OPTIONS\fR
\fBMONO_SDB_ENV_OPTIONS\fR
Used to pass extra options to the debugger agent in the runtime, as they were passed
using --debugger-agent=.
.TP
@@ -1302,12 +1302,12 @@ statistics when shutting down.
.TP
\fBcollect-before-allocs\fR
.TP
\fBcheck-at-minor-collections\fR
This performs a consistency check on minor collections and also clears
the nursery at collection time, instead of the default, when buffers
are allocated (clear-at-gc). The consistency check ensures that
there are no major to minor references that are not on the remembered
sets.
\fBcheck-remset-consistency\fR
This performs a remset consistency check at various opportunities, and
also clears the nursery at collection time, instead of the default,
when buffers are allocated (clear-at-gc). The consistency check
ensures that there are no major to minor references that are not on
the remembered sets.
.TP
\fBmod-union-consistency-check\fR
Checks that the mod-union cardtable is consistent before each
@@ -1732,6 +1732,16 @@ messages for a certain component. You can use multiple masks by comma
separating them. For example to see config file messages and assembly loader
messages set you mask to "asm,cfg".
.TP
\fBMONO_LOG_DEST\fR
Controls where trace log messages are written. If not set then the messages go to stdout.
If set, the string either specifies a path to a file that will have messages appended to
it, or the string "syslog" in which case the messages will be written to the system log.
Under Windows, this is simulated by writing to a file called "mono.log".
\fBMONO_LOG_HEADER\fR
Controls whether trace log messages not directed to syslog have the id, timestamp, and
pid as the prefix to the log message. To enable a header this environment variable need
just be non-null.
.TP
\fBMONO_TRACE\fR
Used for runtime tracing of method calls. The format of the comma separated
trace options is:
+41 -58
View File
@@ -1,8 +1,4 @@
.de Sp
.if t .sp .5v
.if n .sp
..
.TH mprof-report 1 ""
.TH mprof-report 1 ""
.SH The Mono log profiler
.PP
The Mono \f[I]log\f[] profiler can be used to collect a lot of
@@ -241,9 +237,6 @@ Methods JITted using mono JIT, Methods JITted using LLVM, Total time
spent JITting (sec), User Time, System Time, Total Time, Working Set,
Private Bytes, Virtual Bytes, Page Faults and CPU Load Average (1min,
5min and 15min).
.IP \[bu] 2
\f[I]coverage\f[]: collect code coverage data. This implies enabling
the \f[I]calls\f[] option.
.RE
.SS Analyzing the profile data
.PP
@@ -267,7 +260,7 @@ To see this info invoke mprof-report as follows:
\f[B]mprof-report\ --traces\ output.mlpd\f[]
.PP
The maximum number of methods in each stack trace can be specified
with the \f[I]--maxframes=NUM\f[] option:
with the \f[I]\[em]maxframes=NUM\f[] option:
.PP
\f[B]mprof-report\ --traces\ --maxframes=4\ output.mlpd\f[]
.PP
@@ -279,7 +272,7 @@ specific events when the \f[I]nocalls\f[] option is used, so in
that case, if more stack frames are required in mprof-report, a
bigger value for maxframes when profiling must be used, too.
.PP
The \f[I]--traces\f[] option also controls the reverse reference
The \f[I]\[em]traces\f[] option also controls the reverse reference
feature in the heapshot report: for each class it reports how many
references to objects of that class come from other classes.
.SS Sort order for methods and allocations
@@ -369,10 +362,6 @@ version
\f[I]heapshot\f[]: live heap usage at heap shots
.IP \[bu] 2
\f[I]counters\f[]: counters samples
.IP \[bu] 2
\f[I]coverage\f[]: code coverage data
.IP \[bu] 2
\f[I]stats\f[]: event statistics
.PP
It is possible to limit some of the data displayed to a timeframe
of the program execution with the option:
@@ -402,23 +391,23 @@ Instead of printing the usual reports from the profiler data, it is
possible to track some interesting information about some specific
object addresses.
The objects are selected based on their address with the
\f[I]--track\f[] option as follows:
\f[I]\[em]track\f[] option as follows:
.PP
\f[B]--track=0xaddr1[,0xaddr2,...]\f[]
.PP
The reported info (if available in the data file), will be class
name, size, creation time, stack trace of creation (with the
\f[I]--traces\f[] option), etc.
\f[I]\[em]traces\f[] option), etc.
If heapshot data is available it will be possible to also track
what other objects reference one of the listed addresses.
.PP
The object addresses can be gathered either from the profiler
report in some cases (like in the monitor lock report), from the
live application or they can be selected with the
\f[I]--find=FINDSPEC\f[] option.
\f[I]\[em]find=FINDSPEC\f[] option.
FINDSPEC can be one of the following:
.IP \[bu] 2
\f[I]S:SIZE\f[]: where the object is selected if its size is at
\f[I]S:SIZE\f[]: where the object is selected if it's size is at
least \f[I]SIZE\f[]
.IP \[bu] 2
\f[I]T:NAME\f[]: where the object is selected if \f[I]NAME\f[]
@@ -443,13 +432,6 @@ By default mprof-report will print the summary data to the console.
To print it to a file, instead, use the option:
.PP
\f[B]--out=FILENAME\f[]
.SS Processing code coverage data
.PP
If you ran the profiler with the \f[I]coverage\f[] option, you can
process the collected coverage data into an XML file by running
mprof-report like this:
.PP
\f[B]mprof-report --coverage-out=coverage.xml output.mlpd\f[]
.SS Dealing with profiler slowness
.PP
If the profiler needs to collect lots of data, the execution of the
@@ -457,20 +439,20 @@ program will slow down significantly, usually 10 to 20 times
slower.
There are several ways to reduce the impact of the profiler on the
program execution.
.IP "\f[I]Use the statistical sampling mode\f[]" 4
.Sp
.SS Use the statistical sampling mode
.PP
Statistical sampling allows executing a program under the profiler
with minimal performance overhead (usually less than 10%).
This mode allows checking where the program is spending most of
its execution time without significantly perturbing its behaviour.
.IP "\f[I]Collect less data\f[]" 4
.Sp
it's execution time without significantly perturbing its behaviour.
.SS Collect less data
.PP
Collecting method enter/leave events can be very expensive,
especially in programs that perform many millions of tiny calls.
The profiler option \f[I]nocalls\f[] can be used to avoid
collecting this data or it can be limited to only a few call levels
with the \f[I]calldepth\f[] option.
.Sp
.PP
Object allocation information is expensive as well, though much
less than method enter/leave events.
If it's not needed, it can be skipped with the \f[I]noalloc\f[]
@@ -481,14 +463,14 @@ expensive as well.
The impact of stack trace information can be reduced by setting a
low value with the \f[I]maxframes\f[] option or by eliminating them
completely, by setting it to 0.
.Sp
The other major source of data is the \f[I]heapshot\f[] profiler
option: especially if the managed heap is big, since every object
needs to be inspected.
.PP
The other major source of data is the heapshot profiler option:
especially if the managed heap is big, since every object needs to
be inspected.
The \f[I]MODE\f[] parameter of the \f[I]heapshot\f[] option can be
used to reduce the frequency of the heap shots.
.IP "\f[I]Reduce the timestamp overhead\f[]" 4
.Sp
.SS Reduce the timestamp overhead
.PP
On many operating systems or architectures what actually slows down
profiling is the function provided by the system to get timestamp
information.
@@ -504,15 +486,15 @@ There are a few ways to minimize the amount of data, for example by
not collecting some of the more space-consuming information or by
compressing the information on the fly or by just generating a
summary report.
.IP "\f[I]Reducing the amount of data\f[]" 4
.Sp
.SS Reducing the amount of data
.PP
Method enter/leave events can be excluded completely with the
\f[I]nocalls\f[] option or they can be limited to just a few levels
of calls with the \f[I]calldepth\f[] option.
For example, the option:
.Sp
.PP
\f[B]calldepth=10\f[]
.Sp
.PP
will ignore the method events when there are more than 10 managed
stack frames.
This is very useful for programs that have deep recursion or for
@@ -521,59 +503,59 @@ the call stack.
The optimal number for the calldepth option depends on the program
and it needs to be balanced between providing enough profiling
information and allowing fast execution speed.
.Sp
.PP
Note that by default, if method events are not recorded at all, the
profiler will collect stack trace information at events like
allocations.
To avoid gathering this data, use the \f[I]maxframes=0\f[] profiler
option.
.Sp
.PP
Allocation events can be eliminated with the \f[I]noalloc\f[]
option.
.Sp
.PP
Heap shot data can also be huge: by default it is collected at each
major collection.
To reduce the frequency, you can specify a heapshot mode: for
example to collect every 5 collections (including major and minor):
.Sp
.PP
\f[B]heapshot=5gc\f[]
.Sp
.PP
or when at least 5 seconds passed since the last heap shot:
.Sp
.PP
\f[B]heapshot=5000ms\f[]
.IP "\f[I]Compressing the data\f[]" 4
.Sp
.SS Compressing the data
.PP
To reduce the amout of disk space used by the data, the data can be
compressed either after it has been generated with the gzip
command:
.Sp
.PP
\f[B]gzip\ -9\ output.mlpd\f[]
.Sp
.PP
or it can be compressed automatically by using the \f[I]zip\f[]
profiler option.
Note that in this case there could be a significant slowdown of the
profiled program.
.Sp
.PP
The mprof-report program will tranparently deal with either
compressed or uncompressed data files.
.IP "\f[I]Generating only a summary report\f[]" 4
.Sp
.SS Generating only a summary report
.PP
Often it's enough to look at the profiler summary report to
diagnose an issue and in this case it's possible to avoid saving
the profiler data file to disk.
This can be accomplished with the \f[I]report\f[] profiler option,
which will basically send the data to the mprof-report program for
display.
.Sp
.PP
To have more control of what summary information is reported (or to
use a completely different program to decode the profiler data),
the \f[I]output\f[] profiler option can be used, with \f[B]|\f[] as
the first character: the rest of the output name will be executed
as a program with the data fed in on the standard input.
.Sp
.PP
For example, to print only the Monitor summary with stack trace
information, you could use it like this:
.Sp
.PP
\f[B]output=|mprof-report\ --reports=monitor\ --traces\ -\f[]
.SH WEB SITE
http://www.mono-project.com/docs/debug+profile/profile/profiler/
@@ -581,4 +563,5 @@ http://www.mono-project.com/docs/debug+profile/profile/profiler/
.PP
mono(1)
.SH AUTHORS
Paolo Molaro, Alex Rønne Petersen
Paolo Molaro.
+1 -1
View File
@@ -15,7 +15,7 @@ monotouch_watch_runtime_SUBDIRS := build class
monotouch_tv_runtime_SUBDIRS := build class
xammac_SUBDIRS := build class
mobile_SUBDIRS := build class
mobile_static_SUBDIRS := build class
mobile_static_SUBDIRS := build class ilasm
binary_reference_assemblies_SUBDIRS := build class
net_4_x_SUBDIRS := build mcs class nunit24 ilasm tools tests errors docs
xammac_net_4_5_SUBDIRS := build class
+8 -2
View File
@@ -15,8 +15,6 @@ build system needs to let us do, specifically:
** Makefile structure
A general makefile looks like this:
@@ -438,7 +436,15 @@ To give it flags, set $(LOCAL_CFLAGS). As with compiling C#, the
variable $(CFLAGS) will automatically be included on the command line.
* Compiling resources with resgen
If you have a resource that should be compiled with resgen and
included in your assembly, you can use the RESOURCES_DEFS variable.
This variable can contain lists of pairs that are separated by comma
to represent the resource ID as embedded in the assembly followed by
the file name, like this:
RESOURCE_DEFS = Messages,TextResources.resx Errors,ErrorList.txt
* Documentation-related needs? Use $(MDOC)
+1
View File
@@ -173,6 +173,7 @@ csproj-local:
echo $(build_lib); \
echo $(FRAMEWORK_VERSION); \
echo $(PROFILE); \
echo $(RESOURCE_DEFS); \
echo $(response)) > $(topdir)/../msvc/scripts/inputs/$$config_file
+27 -4
View File
@@ -145,6 +145,7 @@ csproj-library:
echo $(build_lib); \
echo $(FRAMEWORK_VERSION); \
echo $(PROFILE); \
echo $(RESOURCE_DEFS); \
echo $(response)) > $(topdir)/../msvc/scripts/inputs/$$config_file
csproj-test:
@@ -216,7 +217,28 @@ clean-local:
test-local run-test-local run-test-ondotnet-local:
@:
DISTFILES = $(wildcard *$(LIBRARY)*.sources) $(EXTRA_DISTFILES)
#
# RESOURCES_DEFS is a list of ID,FILE pairs separated by spaces
# for each of those, generate a rule that produces ID.resource from
# FILE using the resgen tool, adds the generated file to CLENA_FILES and
# passes the resource to the compiler
#
ccomma = ,
define RESOURCE_template
$(1).resources: $(2)
$(RESGEN) "$$<" "$$@"
GEN_RESOURCE_DEPS += $(1).resources
GEN_RESOURCE_FLAGS += -resource:$(1).resources
CLEAN_FILES += $(1).resources
DIST_LISTED_RESOURCES += $(2)
endef
ifdef RESOURCE_DEFS
$(foreach pair,$(RESOURCE_DEFS), $(eval $(call RESOURCE_template,$(word 1, $(subst $(ccomma), ,$(pair))), $(word 2, $(subst $(ccomma), ,$(pair))))))
endif
DISTFILES = $(wildcard *$(LIBRARY)*.sources) $(EXTRA_DISTFILES) $(DIST_LISTED_RESOURCES)
ASSEMBLY = $(LIBRARY)
ASSEMBLY_EXT = .dll
@@ -236,6 +258,7 @@ csproj-test:
echo $(test_lib); \
echo $(FRAMEWORK_VERSION); \
echo $(PROFILE); \
echo ""; \
echo $(test_response)) > $(topdir)/../msvc/scripts/inputs/$$config_file
endif
@@ -275,12 +298,12 @@ endif
$(the_lib): $(the_libdir)/.stamp
$(build_lib): $(response) $(sn) $(BUILT_SOURCES) $(build_libdir:=/.stamp)
$(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) -target:library -out:$@ $(BUILT_SOURCES_cmdline) @$(response)
$(Q) $(SN) -R $@ $(LIBRARY_SNK)
$(build_lib): $(response) $(sn) $(BUILT_SOURCES) $(build_libdir:=/.stamp) $(GEN_RESOURCE_DEPS)
$(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) $(GEN_RESOURCE_FLAGS) -target:library -out:$@ $(BUILT_SOURCES_cmdline) @$(response)
ifdef RESOURCE_STRINGS_FILES
$(Q) $(STRING_REPLACER) $(RESOURCE_STRINGS_FILES) $@
endif
$(Q) $(SN) -R $@ $(LIBRARY_SNK)
ifdef LIBRARY_USE_INTERMEDIATE_FILE
$(the_lib): $(build_lib)
-2
View File
@@ -23,8 +23,6 @@ PLATFORM_PATH_SEPARATOR = :
# This is for changing / to \ on windows
PLATFORM_CHANGE_SEPARATOR_CMD = cat
PLATFORM_AOT_SUFFIX = .dylib
hidden_prefix = .
hidden_suffix =
-2
View File
@@ -23,8 +23,6 @@ PLATFORM_PATH_SEPARATOR = :
# This is for changing / to \ on windows
PLATFORM_CHANGE_SEPARATOR_CMD = cat
PLATFORM_AOT_SUFFIX = .so
hidden_prefix = .
hidden_suffix =
-3
View File
@@ -26,9 +26,6 @@ PLATFORM_PATH_SEPARATOR = ;
override CURDIR:=$(shell cygpath -m $(CURDIR))
## not so simple :-)
#PLATFORM_AOT_SUFFIX = .dll
hidden_prefix =
hidden_suffix = .tmp
+1 -13
View File
@@ -41,19 +41,7 @@ MOBILE_PROFILE = yes
NO_VTS_TEST = yes
# Note need for trailing comma. If you add, keep it
PROFILE_TEST_HARNESS_EXCLUDES = MobileNotWorking,
ifndef MONO_DISABLE_GSHAREDVT
GSHAREDVT_FLAG = -O=gsharedvt
endif
ifneq ($(MONO_LLVMONLY),)
AOT_BUILD_FLAGS_PREFIX = --aot=llvmonly,
AOT_RUN_FLAGS = --llvmonly
else
AOT_BUILD_FLAGS_PREFIX = $(GSHAREDVT_FLAG) --aot=full,
AOT_RUN_FLAGS = --full-aot
endif
PROFILE_TEST_HARNESS_EXCLUDES = MobileNotWorking,PKITS,
ALWAYS_AOT = yes
-1
View File
@@ -24,7 +24,6 @@ PROFILE_MCS_FLAGS = \
-d:XAMMAC \
-d:FEATURE_INTERCEPTABLE_THREADPOOL_CALLBACK \
-d:XAMARIN_MODERN \
-d:NETSTANDARD \
-nowarn:1699 \
-nostdlib \
$(DEFAULT_REFERENCES) \
+22 -29
View File
@@ -132,29 +132,6 @@ endif
# Make sure propagates
export TEST_HARNESS
# start aot config
# We set the prefix of the aot build flags
# in the profile. This determines the aot type,
# whether it be llvmonly or full. To this we append the
# options which do not change between them, the INVARIANT_AOT_OPTIONS
ifndef AOT_BUILD_FLAGS_PREFIX
AOT_BUILD_FLAGS_PREFIX = --aot=
endif
# Set the options for building and running AOT
# The trampoline numbers are provisional, they are what is required
# to run the corlib test suite. They should be considered a lower bound.
INVARIANT_AOT_OPTIONS=nimt-trampolines=900,ntrampolines=8000
ifndef MONO_DISABLE_GSHAREDVT
INVARIANT_AOT_OPTIONS:=$(INVARIANT_AOT_OPTIONS),ngsharedvt-trampolines=900
endif
AOT_BUILD_FLAGS = $(AOT_BUILD_FLAGS_PREFIX)$(INVARIANT_AOT_OPTIONS)
# end AOT config
ifdef BCL_OPTIMIZE
PROFILE_MCS_FLAGS += -optimize
endif
@@ -202,17 +179,33 @@ STD_TARGETS = test run-test run-test-ondotnet clean install uninstall doc-update
$(STD_TARGETS): %: do-%
ifdef PLATFORM_AOT_SUFFIX
Q_AOT=$(if $(V),,@echo "AOT [$(PROFILE)] AOT All Assemblies";)
LIST_ALL_PROFILE_ASSEMBLIES = find . | grep -E '(dll|exe)$$' | grep -v -E 'bare|plaincore|secxml|Facades'
COMPILE_ALL_PROFILE_ASSEMBLIES = $(LIST_ALL_PROFILE_ASSEMBLIES) | MONO_PATH="./" xargs -I '{}' $(RUNTIME) $(RUNTIME_FLAGS) $(AOT_BUILD_FLAGS) '{}'
AOT_PROFILE_ASSEMBLIES = $(shell cd $(topdir)/class/lib/$(PROFILE)/ && find . | grep -E '(dll|exe)$$' | grep -v -E 'bare|plaincore|secxml|Facades' | sed 's:\./::g' | tr '\n' ' ')
do-all-aot:
$(MAKE) do-all TOP_LEVEL_DO=do-all
$(MAKE) aot-all-profile
aot-all-profile:
$(Q_AOT) cd $(topdir)/class/lib/$(PROFILE)/ && $(COMPILE_ALL_PROFILE_ASSEMBLIES) &> $(PROFILE)-aot.log
endif
# When we recursively call $(MAKE) aot-all-profile
# we will have created this directory, and so will
# be able to evaluate the .dylibs to make
ifneq ("$(wildcard $(topdir)/class/lib/$(PROFILE))","")
AOT_PROFILE_ASSEMBLIES_CMD = cd $(topdir)/class/lib/$(PROFILE)/ && find . | grep -E '(dll|exe)$$' | grep -v -E 'bare|plaincore|secxml|Facades|ilasm' | sed 's:\./::g' | tr '\n' ' '
AOT_PROFILE_ASSEMBLIES_CMD_SAFE = $(AOT_PROFILE_ASSEMBLIES_CMD) || true
AOT_PROFILE_ASSEMBLIES = $(shell $(AOT_PROFILE_ASSEMBLIES_CMD_SAFE))
# This can run in parallel
.PHONY: aot-all-profile
aot-all-profile: $(patsubst %,$(topdir)/class/lib/$(PROFILE)/%$(PLATFORM_AOT_SUFFIX),$(AOT_PROFILE_ASSEMBLIES))
$(topdir)/class/lib/$(PROFILE)/%$(PLATFORM_AOT_SUFFIX): $(topdir)/class/lib/$(PROFILE)/%
@ mkdir -p $(topdir)/class/lib/$(PROFILE)/$*_bitcode_tmp
@echo "AOT [$(PROFILE)] AOT $* " && cd $(topdir)/class/lib/$(PROFILE)/ && MONO_PATH="." $(RUNTIME) $(RUNTIME_FLAGS) $(AOT_BUILD_FLAGS),temp-path=$*_bitcode_tmp $* >> $(PROFILE)-aot.log
@ rm -rf $(topdir)/class/lib/$(PROFILE)/$*_bitcode_tmp
endif #ifneq ("$(wildcard $(topdir)/class/lib/$(PROFILE))","")
endif # PLATFORM_AOT_SUFFIX
do-run-test:
ok=:; $(MAKE) run-test-recursive || ok=false; $(MAKE) run-test-local || ok=false; $$ok
@@ -101,7 +101,7 @@ $(ProjectDir)\..\..\jay\jay -ct &lt; $(ProjectDir)\..\..\jay\skeleton.cs $(Proje
</PreBuildEvent>
<PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
$(ProjectDir)\..\..\jay\jay.exe -ct &lt; $(ProjectDir)\..\..\jay\skeleton.cs $(ProjectDir)\Commons.Xml.Relaxng.Rnc\RncParser.jay > $(ProjectDir)\Commons.Xml.Relaxng.Rnc\RncParser.cs
$(ProjectDir)\..\..\jay\jay -ct &lt; $(ProjectDir)\..\..\jay\skeleton.cs $(ProjectDir)\Commons.Xml.Relaxng.Rnc\RncParser.jay > $(ProjectDir)\Commons.Xml.Relaxng.Rnc\RncParser.cs
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.1.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -14,8 +14,6 @@ SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699
LIB_REFS = System
LIB_MCS_FLAGS = $(SIGN_FLAGS)
PLATFORM_DEBUG_FLAGS =
NO_TEST = yes
include $(MCS_BUILD_DIR)/library.make
@@ -36,28 +36,22 @@ namespace Microsoft.Win32
{
public static class RegistryAclExtensions
{
[MonoTODO]
public static RegistrySecurity GetAccessControl (this RegistryKey key)
{
if (key == null)
throw new ArgumentNullException (nameof (key));
return key.GetAccessControl ();
throw new NotImplementedException ();
}
[MonoTODO]
public static RegistrySecurity GetAccessControl (this RegistryKey key, AccessControlSections includeSections)
{
if (key == null)
throw new ArgumentNullException (nameof (key));
return key.GetAccessControl (includeSections);
throw new NotImplementedException ();
}
[MonoTODO]
public static void SetAccessControl (this RegistryKey key, RegistrySecurity registrySecurity)
{
if (key == null)
throw new ArgumentNullException (nameof (key));
key.SetAccessControl (registrySecurity);
throw new NotImplementedException ();
}
}
}
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.1.0.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.10.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.10.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.1.0.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.10.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.1.0.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.1.0.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.1.0.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -14,8 +14,6 @@ SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699
LIB_REFS = System System.Data System.Xml
LIB_MCS_FLAGS = $(SIGN_FLAGS)
PLATFORM_DEBUG_FLAGS =
NO_TEST = yes
include $(MCS_BUILD_DIR)/library.make
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.1.0.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.10.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -0,0 +1,41 @@
//
// Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle ("System.Diagnostics.PerformanceCounter.dll")]
[assembly: AssemblyDescription ("System.Diagnostics.PerformanceCounter.dll")]
[assembly: AssemblyDefaultAlias ("System.Diagnostics.PerformanceCounter.dll")]
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{BA0C64F1-3762-437D-8B58-75F68A5B4E7E}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699,1616,1699</NoWarn>
<OutputPath>./../../../class/lib/net_4_x/Facades</OutputPath>
<IntermediateOutputPath>obj-Facades</IntermediateOutputPath>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>System.Diagnostics.PerformanceCounter</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>../../msfinal.pub</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699,1616,1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>TRACE;NET_4_0;NET_4_5;NET_4_6;MONO;DISABLE_CAS_USE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699,1616,1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_4_0;NET_4_5;NET_4_6;MONO;DISABLE_CAS_USE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="TypeForwarders.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PreBuildEvent>
<PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../corlib/corlib-net_4_x.csproj">
<Project>{2CA6026B-2DC8-4C4C-A12C-1E8234049DB7}</Project>
<Name>corlib-net_4_x</Name>
</ProjectReference>
<ProjectReference Include="../../System/System-net_4_x.csproj">
<Project>{2762E921-91A8-4C87-91E9-BA628013F753}</Project>
<Name>System-net_4_x</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,23 @@
MCS_BUILD_DIR = ../../../build
thisdir = class/Facades/System.Diagnostics.PerformanceCounter
SUBDIRS =
include $(MCS_BUILD_DIR)/rules.make
LIBRARY_SUBDIR = Facades
LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)/Facades
LIBRARY = System.Diagnostics.PerformanceCounter.dll
KEY_FILE = ../../msfinal.pub
SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699
LIB_REFS = System
LIB_MCS_FLAGS = $(SIGN_FLAGS)
PLATFORM_DEBUG_FLAGS =
NO_TEST = yes
include $(MCS_BUILD_DIR)/library.make
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{9E33CC1D-9BB9-49CC-8B9E-E2F5807623AB}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699,1616,1699</NoWarn>
<OutputPath>./../../../class/lib/net_4_x/Facades</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>System.Diagnostics.PerformanceCounter</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>../../msfinal.pub</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699,1616,1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_4_0;NET_4_5;NET_4_6;MONO;DISABLE_CAS_USE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699,1616,1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_4_0;NET_4_5;NET_4_6;MONO;DISABLE_CAS_USE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="TypeForwarders.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PreBuildEvent>
<PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../corlib/corlib-net_4_x.csproj">
<Project>{2CA6026B-2DC8-4C4C-A12C-1E8234049DB7}</Project>
<Name>corlib-net_4_x</Name>
</ProjectReference>
<ProjectReference Include="../../corlib/corlib-net_4_x.csproj">
<Project>{2CA6026B-2DC8-4C4C-A12C-1E8234049DB7}</Project>
<Name>corlib-net_4_x</Name>
</ProjectReference>
<ProjectReference Include="../../System/System-net_4_x.csproj">
<Project>{2762E921-91A8-4C87-91E9-BA628013F753}</Project>
<Name>System-net_4_x</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -0,0 +1,3 @@
TypeForwarders.cs
AssemblyInfo.cs
@@ -0,0 +1,28 @@
//
// Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.CounterSample))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.PerformanceCounter))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.PerformanceCounterInstanceLifetime))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.PerformanceCounterType))]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.1.0.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.1.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -14,8 +14,6 @@ SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699
LIB_REFS = System
LIB_MCS_FLAGS = $(SIGN_FLAGS)
PLATFORM_DEBUG_FLAGS =
NO_TEST = yes
include $(MCS_BUILD_DIR)/library.make
@@ -34,57 +34,27 @@ namespace System.Diagnostics
{
public static class StackFrameExtensions
{
[MonoTODO]
public static IntPtr GetNativeImageBase (this StackFrame stackFrame)
{
if (stackFrame == null)
throw new ArgumentNullException (nameof (stackFrame));
throw new NotImplementedException ();
}
[MonoTODO]
public static IntPtr GetNativeIP (this StackFrame stackFrame)
{
if (stackFrame == null)
throw new ArgumentNullException (nameof (stackFrame));
throw new NotImplementedException ();
}
[MonoTODO]
public static bool HasNativeImage (this StackFrame stackFrame)
{
if (stackFrame == null)
throw new ArgumentNullException (nameof (stackFrame));
throw new NotImplementedException ();
}
[MonoTODO]
public static bool HasMethod (this StackFrame stackFrame)
{
if (stackFrame == null)
throw new ArgumentNullException (nameof (stackFrame));
throw new NotImplementedException ();
}
[MonoTODO]
public static bool HasILOffset (this StackFrame stackFrame)
{
if (stackFrame == null)
throw new ArgumentNullException (nameof (stackFrame));
throw new NotImplementedException ();
}
[MonoTODO]
public static bool HasSource (this StackFrame stackFrame)
{
if (stackFrame == null)
throw new ArgumentNullException (nameof (stackFrame));
throw new NotImplementedException ();
}
}
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.1.0.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -13,8 +13,6 @@ KEY_FILE = ../../msfinal.pub
SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699
LIB_MCS_FLAGS = $(SIGN_FLAGS)
PLATFORM_DEBUG_FLAGS =
NO_TEST = yes
include $(MCS_BUILD_DIR)/library.make
@@ -30,8 +30,10 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.1.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.10.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.1.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.1.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -14,8 +14,6 @@ SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699
LIB_REFS = System
LIB_MCS_FLAGS = $(SIGN_FLAGS)
PLATFORM_DEBUG_FLAGS =
NO_TEST = yes
include $(MCS_BUILD_DIR)/library.make
@@ -33,36 +33,28 @@ namespace System
{
public static class StringNormalizationExtensions
{
[MonoTODO]
public static bool IsNormalized(this string value)
{
if (value == null)
throw new ArgumentNullException (nameof (value));
return value.IsNormalized ();
throw new NotImplementedException ();
}
[MonoTODO]
public static bool IsNormalized(this string value, NormalizationForm normalizationForm)
{
if (value == null)
throw new ArgumentNullException (nameof (value));
return value.IsNormalized (normalizationForm);
throw new NotImplementedException ();
}
[MonoTODO]
public static String Normalize(this string value)
{
if (value == null)
throw new ArgumentNullException (nameof (value));
return value.Normalize ();
throw new NotImplementedException ();
}
[MonoTODO]
public static String Normalize(this string value, NormalizationForm normalizationForm)
{
if (value == null)
throw new ArgumentNullException (nameof (value));
return value.Normalize (normalizationForm);
throw new NotImplementedException ();
}
}
}
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.10.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.1.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -28,74 +28,56 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Security.AccessControl;
namespace System.IO
{
public static class FileSystemAclExtensions
public static partial class FileSystemAclExtensions
{
public static DirectorySecurity GetAccessControl(this DirectoryInfo directoryInfo)
[MonoTODO]
public static System.Security.AccessControl.DirectorySecurity GetAccessControl(this System.IO.DirectoryInfo directoryInfo)
{
if (directoryInfo == null)
throw new ArgumentNullException (nameof (directoryInfo));
return directoryInfo.GetAccessControl ();
throw new NotImplementedException ();
}
public static DirectorySecurity GetAccessControl(this DirectoryInfo directoryInfo, AccessControlSections includeSections)
[MonoTODO]
public static System.Security.AccessControl.DirectorySecurity GetAccessControl(this System.IO.DirectoryInfo directoryInfo, System.Security.AccessControl.AccessControlSections includeSections)
{
if (directoryInfo == null)
throw new ArgumentNullException (nameof (directoryInfo));
return directoryInfo.GetAccessControl (includeSections);
throw new NotImplementedException ();
}
public static FileSecurity GetAccessControl(this FileInfo fileInfo)
[MonoTODO]
public static System.Security.AccessControl.FileSecurity GetAccessControl(this System.IO.FileInfo fileInfo)
{
if (fileInfo == null)
throw new ArgumentNullException (nameof (fileInfo));
return fileInfo.GetAccessControl ();
throw new NotImplementedException ();
}
public static FileSecurity GetAccessControl(this FileInfo fileInfo, AccessControlSections includeSections)
[MonoTODO]
public static System.Security.AccessControl.FileSecurity GetAccessControl(this System.IO.FileInfo fileInfo, System.Security.AccessControl.AccessControlSections includeSections)
{
if (fileInfo == null)
throw new ArgumentNullException (nameof (fileInfo));
return fileInfo.GetAccessControl (includeSections);
throw new NotImplementedException ();
}
public static FileSecurity GetAccessControl(this FileStream fileStream)
[MonoTODO]
public static System.Security.AccessControl.FileSecurity GetAccessControl(this System.IO.FileStream fileStream)
{
if (fileStream == null)
throw new ArgumentNullException (nameof (fileStream));
return fileStream.GetAccessControl ();
throw new NotImplementedException ();
}
public static void SetAccessControl(this DirectoryInfo directoryInfo, DirectorySecurity directorySecurity)
[MonoTODO]
public static void SetAccessControl(this System.IO.DirectoryInfo directoryInfo, System.Security.AccessControl.DirectorySecurity directorySecurity)
{
if (directoryInfo == null)
throw new ArgumentNullException (nameof (directoryInfo));
directoryInfo.SetAccessControl (directorySecurity);
throw new NotImplementedException ();
}
public static void SetAccessControl(this FileInfo fileInfo, FileSecurity fileSecurity)
[MonoTODO]
public static void SetAccessControl(this System.IO.FileInfo fileInfo, System.Security.AccessControl.FileSecurity fileSecurity)
{
if (fileInfo == null)
throw new ArgumentNullException (nameof (fileInfo));
fileInfo.SetAccessControl (fileSecurity);
throw new NotImplementedException ();
}
public static void SetAccessControl(this FileStream fileStream, FileSecurity fileSecurity)
[MonoTODO]
public static void SetAccessControl(this System.IO.FileStream fileStream, System.Security.AccessControl.FileSecurity fileSecurity)
{
if (fileStream == null)
throw new ArgumentNullException (nameof (fileStream));
fileStream.SetAccessControl (fileSecurity);
throw new NotImplementedException ();
}
}
}
@@ -14,8 +14,6 @@ SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699
LIB_REFS = System
LIB_MCS_FLAGS = $(SIGN_FLAGS)
PLATFORM_DEBUG_FLAGS =
NO_TEST = yes
include $(MCS_BUILD_DIR)/library.make
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.1.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.1.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.1.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,5 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.1.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
+5 -1
View File
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.1.0.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -30,8 +30,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.1.0.0")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
@@ -35,3 +35,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
Loaded 100 of 1032 files, more files were not shown because too many files have changed in this diff. Show more