Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-10-11[lldb] update expression in scriptBernhard Urban
2017-10-11Merge pull request #5689 from ↵Johan Lorensson
lateralusX/lateralusX/windows-native-unwind-codeview-support [Windows] Windows x64 full AOT native unwind info support.
2017-10-11[runtime] Allow throwing pending exceptions from protected wrappers.Zoltan Varga
2017-10-11[runtime] Remove a mono_error_raise_exception () call from ↵Zoltan Varga
mono_remoting_wrapper (), its not needed since mono_remoting_wrapper () is called through a wrapper.
2017-10-11[jit] Call mono_llvm_raise_exception () directly from a bitcode jit icall. ↵Zoltan Varga
(#5752)
2017-10-11[interp] fix offset calculation for exvar slots in localsBernhard Urban
otherwise we off-by-one overflow and smash other things
2017-10-11[test] Add Type.GetType("", ...) testsAleksey Kliger
2017-10-11[reflection] Throw TLE for Type.GetType("", true) (Fixes #59664)Aleksey Kliger
In the C parser check for empty at the outset. In the managed parser, copy an empty string component to the built-up TypeSpec and handle it in the Type.GetType (..., asmResolver, typeResolver) implementation
2017-10-11[reflection] Use MonoError for mono_reflection_parse_type_checkedAleksey Kliger
Mark mono_reflection_parse_type as external only. Runtime should use the _checked version.
2017-10-11[ASan] introduce MONO_NO_SANITIZE_ADDRESS macro and mark sgen pin object ↵Bernhard Urban
scanning function as such ASan has very few false-positives, quoting the ASan documentation (https://github.com/google/sanitizers/wiki/AddressSanitizer#turning-off-instrumentation): > In some cases a particular function should be ignored (not instrumented) > by AddressSanitizer: > > [...] > > * Ignore a function that does some low-level magic (e.g. walking through > the thread's stack bypassing the frame boundaries). > > [...]
2017-10-10[runtime] Use mono_set_pending_exception () in ↵Zoltan Varga
ves_icall_System_Threading_Thread_Sleep_internal (). (#5748)
2017-10-10[runtime] Remove unused mono_gc_out_of_memory () function. (#5750)Zoltan Varga
2017-10-10[mcs] Adds workaround for compiled enum types used as fields of other types. ↵Marek Safar
Fixes #59080
2017-10-10[interp] fix LMF popping during exception handlingBernhard Urban
Assume you have something like this: ``` $ cat invokecrasher.cs using System; using System.Reflection; public class InvokeCrasher { readonly static object[] default_args = new object[1] { new string[] {} }; public static void Main (string []args) { Assembly assembly = Assembly.LoadFile ("crasher.exe"); try { assembly.EntryPoint.Invoke (null, default_args); } catch { } assembly.EntryPoint.Invoke (null, default_args); } } ``` ``` $ cat crasher.cs using System; public class Crasher { unsafe public static void Main (string []args) { int i = 1337; CrashMe (&i); throw new Exception (); } unsafe static void CrashMe (int *p) { // p = (int *) 0; *p = 0; } } ``` On the first `Invoke ()` the interpreter goes through `ves_pinvoke_method`: ``` interp_push_lmf (&ext, frame); mono_interp_enter_icall_trampoline (addr, margs); interp_pop_lmf (&ext); ``` The LMF is needed for unwinding by mini. In this situation though, `Crasher` throws an exception and goes through the exception handling machinery of the interpreter which leads to missing out of the `interp_pop_lmf ()` call. On the second `Invoke` we would therefore push the same address as an LMF again, which leads to a LMF that points to itself as `previous_lmf`. If we encounter a native crash in this state (as hinted with `p = (int *) 0; *p = 0;`), the unwinding machinery would end up in an infinite loop.
2017-10-10[interp] remove InterpMethod entry in hash table on free_method callbackBernhard Urban
2017-10-10[System.Windows.Forms] Proper operation order. Fixes #59393. (#5734)Yuriy
2017-10-10[interp] use GC aware memcpy for storing value types to fieldsBernhard Urban
value types can contain references, and therefore GC write barriers are required.
2017-10-10[bcl] Fix csi to work on Mono (#5737)Alexander Köplinger
It'd fail to find System.Runtime.dll and System.ValueTuple.dll. Changed the csi.rsp to include those from the Facades/ dir and added a test. Workaround for https://bugzilla.xamarin.com/show_bug.cgi?id=58965
2017-10-10Merge pull request #5726 from alexrp/mastermonojenkins
[profiler] Clean up the makefile and address some issues with it. * Don't link the profilers to libmono, except on mobile. * The coverage profiler doesn't use zlib. Don't link to it. * Fix the LIBADD variable for the VTune profiler. * Add some comments for certain non-obvious aspects. * Some style cleanup. Also introduce a HOST_IOS variable in the build system which covers iOS, watchOS, and tvOS.
2017-10-10Merge pull request #5714 from alexischr/update_bockbuildAlexis Christoforides
Update Bockbuild
2017-10-10[utils] Add check for ANDROID_UNIFIED_HEADERS to mono-compiler.h (#5742)Alexander Köplinger
https://github.com/mono/mono/pull/5680 added mmap/sendfile prototypes but we should only use those when ANDROID_UNIFIED_HEADERS is defined to avoid getting errors like: ``` /Users/alexander/dev/xamarin-android/external/mono/mono/utils/mono-compiler.h:157:7: error: conflicting types for 'mmap' void* mmap (void*, size_t, int, int, int, __mono_off32_t); ^ /Users/alexander/android-toolchain/toolchains/arm-linux-androideabi-clang/bin/../sysroot/usr/include/sys/mman.h:47:15: note: previous declaration is here extern void* mmap(void *, size_t, int, int, int, off_t); ^ /Users/alexander/dev/xamarin-android/external/mono/mono/utils/mono-compiler.h:166:9: error: conflicting types for 'sendfile' ssize_t sendfile (int out_fd, int in_fd, __mono_off32_t* offset, size_t count); ^ /Users/alexander/android-toolchain/toolchains/arm-linux-androideabi-clang/bin/../sysroot/usr/include/sys/sendfile.h:36:16: note: previous declaration is here extern ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count); ```
2017-10-09[msvc] Update csproj files (#5745)monojenkins
2017-10-09[corlib] Use temp directory for assemblies in SaveTest.Save() (#5727)Alexander Köplinger
It was writing to the current working directory before which doesn't work on platforms where that directory is read-only. Using the same setup/teardown methods as TypeBuilderTest we instead create a directory in the temporary location and put the files there.
2017-10-09[corlib] Fixes make dist (#5735)Marek Safar
2017-10-09Updated with review feedback.lateralusX
2017-10-08[profiler] Clean up the makefile and address some issues with it.Alex Rønne Petersen
* Don't link the profilers to libmono, except on mobile. * The coverage profiler doesn't use zlib. Don't link to it. * Fix the LIBADD variable for the VTune profiler. * Add some comments for certain non-obvious aspects. * Some style cleanup. Also introduce a HOST_IOS variable in the build system which covers iOS, watchOS, and tvOS.
2017-10-06[runtime] Don't insta-fail when a faulty COM type is encountered. (#5616)vkargov
* [jit] Don't insta-fail on faulty cominterop invocations. * [runtime] New test for bug 8477. * [jit] Implement mono_error_get_exception_name() and mono_mb_emit_exception_for_error() * [jit] Throw an exception when a static method on a ComImport class is called.
2017-10-06Update BockbuildAlexis Christoforides
2017-10-06Adding basic codeview support on Windows x64 full AOT builds.lateralusX
Emit very basic codeview information into full AOT builds on Windows x64. The codeview information is far from complete and is currently just initial work needed to get function symbol names to appear in native callstack that includes managed functions. Described functions does not include parameters, local variables or line info at the moment, but could be extended in the future. Fix also make sure linker will emit PDB files including information that can be picked up by debuggers. It is possible to disable codeview info by passing "nodebug" to AOT compiler, this will also disable the generation of PDB files, if a DLL would have been build.
2017-10-06Adding native unwind info support in Windows x64 full AOT builds.lateralusX
Emit needed sections when building Windows x64 full AOT targeting Clang for MS codegen in order for linker to include entries in process unwind tables for full AOT:ed managed functions and trampolines. Implementation also includes a cache used to minimize the number of duplicated unwind data section in each object file, reducing final image size.
2017-10-06[corlib] Makes GetReferencedAssemblies test more reliableMarek Safar
2017-10-06Merge pull request #5327 from marek-safar/corefx-bumpMarek Safar
Bump corefx
2017-10-06[runtime] Fix Empty generic enumerator equalityAlexander Kyte
On the CLR, two enumerators containing zero elements will have reference equality if they are inflated with the same generic type. If comparing two enumerators which are not inflated (Array.Empty, for instance), they are not equal when they contain zero elements. This reference equality behavior is not compatible with treating the enumerators as structs, as value types will not have reference equality.
2017-10-06Bump API snapshot submodulemonojenkins
2017-10-06[appletls] Trust SecTrustResult.Proceed as well. Fixes #58411.Rolf Bjarne Kvinge
Apple states clearly in their documentation about SecTrustResult.Proceed [1]: The user explicitly chose to trust a certificate in the chain (usually by clicking a button in a certificate trust panel). Your app should trust the chain. This fixes bug #[58411][2], where SecTrustEvaluate returns SecTrustResult.Proceed starting with iOS 11. [1]: https://developer.apple.com/documentation/security/1394363-sectrustevaluate [2]: https://bugzilla.xamarin.com/show_bug.cgi?id=58411
2017-10-06Initial set of Ward sgen annotations (#5705)Aleksey Kliger (λgeek)
* [ward] Expand MONO_PERMIT to empty string when not running Ward See https://github.com/evincarofautumn/Ward#annotating-your-code for the Ward permissions syntax * sgen_gc_locked * sgen_world_stopped * sgen_lock_gc * sgen_stop_world
2017-10-05Bump corefxMarek Safar
2017-10-05[mcs] Fixes codegen for pattern probing with value-type variablesMarek Safar
2017-10-05[aot] Don't error out if a method fails to JIT in full-aot mode. This was a ↵Zoltan Varga
regression caused by 9302c31f81abd2f5bbf9a8ddd27993e1ece55db2. Fixes #59832. (#5686)
2017-10-05[runtime] Coverage profiler fixes (#5698)Zoltan Varga
* [runtime] Avoid collecting coverage data for wrappers. * [runtime] Return sensible information for methods which have no coverage info in mono_profiler_get_coverage_data (). * [profiler] Emit coverage info for uncovered methods as well.
2017-10-05[corlib] Fixes array enumerator to match .net behaviourMarek Safar
2017-10-05[jit] In native-to-managed wrappers, emit the initlocals code for vtypes ↵Zoltan Varga
after the code for CEE_JIT_ATTACH, since the init code can make calls to methods like memset () which can go through the trampoline code. Fixes #59182. (#5678)
2017-10-05Add new profile for monodroid tools (#5699)Alexander Köplinger
* Add new profile for monodroid tools This allows the XA build to use these instead of needing to build net_4_x. We build the assemblies against the .NET 4.6 reference assemblies. * Skip monodroid_tools in verify (aka mcs-compileall) Exclude it from the test_profiles since running tests makes no sense there. Also refactor to exclude binary_reference_assemblies as well, it was already excluded manually in mcs-compileall before.
2017-10-04[monodroid] Fix Mono.Posix tests build (#5697)Marek Habersack
TestHelper was previously excluded because the XA tests weren't built as part of Mono but rather as part of XA test suite which included its own version of the helper. Now, however (https://github.com/xamarin/xamarin-android/commit/e9daf5ea35709ce1bc6ba81c7c37d72d385bace2), XA uses BCL+friends test assemblies built by Mono itself and so we need to restore TestHelper in the build.
2017-10-04[mcs] Allows shadowing of probing pattern variablesMarek Safar
2017-10-04[System] Ignore FtpWebRequestTest.DownloadFile2_v6 test when IPv6 isn't ↵Alexander Köplinger
available (#5695) It fails on some systems otherwise. The other tests already had this check.
2017-10-04Merge pull request #5693 from ↵Johan Lorensson
lateralusX/lateralusX/disable-stack-overflow-win-x64 [Windows] Temporary disable none-working stack overflow implementation on Windows x64 full AOT.
2017-10-04[coverage-profiler] Collect coverage data at IL seq point locations. (#5667)Zoltan Varga
* [coverage-profiler] Collect coverage data at IL seq point locations. * [coverage-profiler] Emit IL offsets instead of offsets between IL offsets. Bump format version.
2017-10-04Merge pull request #5664 from lateralusX/lateralusX/mkbundle-windows-toolchainsJohan Lorensson
[Windows] Major improvement of Visual Studio toolchain and Windows SDK support in mkbundle.
2017-10-03Bump version to 5.9.0 (#5692)Ludovic Henry