mono.git
6 years ago[msbuild] Bump to xplat-master branch HEAD
Ankit Jain [Fri, 11 Aug 2017 21:29:29 +0000 (17:29 -0400)]
[msbuild] Bump to xplat-master branch HEAD

6 years ago[acceptance-tests] Bump coreclr submodule
Alexander Köplinger [Fri, 11 Aug 2017 20:20:53 +0000 (22:20 +0200)]
[acceptance-tests] Bump coreclr submodule

6 years agoMerge pull request #5353 from jonpryor/jonp-mono-api-html-ignore-class-removal
Alexis Christoforides [Fri, 11 Aug 2017 20:02:11 +0000 (16:02 -0400)]
Merge pull request #5353 from jonpryor/jonp-mono-api-html-ignore-class-removal

[mono-api-html] Allow `-r` to ignore class removals

6 years ago[MacSDK] Switch to HTTPS for downloading SQLite
Alexis Christoforides [Fri, 11 Aug 2017 18:13:09 +0000 (14:13 -0400)]
[MacSDK] Switch to HTTPS for downloading SQLite

6 years ago[profiler] Fix code coverage support.
Alex Rønne Petersen [Fri, 11 Aug 2017 17:31:05 +0000 (19:31 +0200)]
[profiler] Fix code coverage support.

6 years agoUpdate Bockbuild for a CI fix/update (shorter build paths for MacSDK)
Alexis Christoforides [Fri, 11 Aug 2017 16:22:36 +0000 (12:22 -0400)]
Update Bockbuild for a CI fix/update (shorter build paths for MacSDK)

6 years agoMerge pull request #5352 from urisimchoni/fix-logprof-manpage
Alex Rønne Petersen [Fri, 11 Aug 2017 14:34:50 +0000 (16:34 +0200)]
Merge pull request #5352 from urisimchoni/fix-logprof-manpage

[docs] fixes to log profiler manpage

6 years ago[bcl] Clean up FRAMEWORK_VERSION 4.0 and 2.0 checks (#5356)
Alexander Köplinger [Fri, 11 Aug 2017 14:22:02 +0000 (16:22 +0200)]
[bcl] Clean up FRAMEWORK_VERSION 4.0 and 2.0 checks (#5356)

We don't build those profiles anymore, we have a net_4_x configuration instead.

6 years ago[docs] mprof-report manpage - remove "onlycoverage" log profiler option
Uri Simchoni [Thu, 10 Aug 2017 19:49:16 +0000 (22:49 +0300)]
[docs] mprof-report manpage - remove "onlycoverage" log profiler option

This option does not exist in the code.

6 years ago[docs] mprof-report manpage - document heapshot-on-shutdown
Uri Simchoni [Thu, 10 Aug 2017 19:48:36 +0000 (22:48 +0300)]
[docs] mprof-report manpage - document heapshot-on-shutdown

Document the heapshot-on-shutdown log profiler option.

6 years ago[docs] mprof-report manpage - document '#' output option
Uri Simchoni [Fri, 11 Aug 2017 06:56:20 +0000 (09:56 +0300)]
[docs] mprof-report manpage - document '#' output option

Document ability to use the log profiler with an open file
descriptor.

6 years ago[llvm] Avoid generating invalid llvm IR when a finally clause contains a loop which...
Zoltan Varga [Fri, 11 Aug 2017 00:29:10 +0000 (20:29 -0400)]
[llvm] Avoid generating invalid llvm IR when a finally clause contains a loop which branches back to the beginning of the finally clause. (#5354)

6 years agoMerge pull request #5323 from cherusker/cherusker-2017-08-07-fix-strerror
Rodrigo Kumpera [Thu, 10 Aug 2017 21:12:02 +0000 (17:12 -0400)]
Merge pull request #5323 from cherusker/cherusker-2017-08-07-fix-strerror

[eglib] Fix g_strerror / monoeg_g_strerror

6 years ago[mono-api-html] Allow `-r` to ignore class removals
Jonathan Pryor [Thu, 10 Aug 2017 20:22:31 +0000 (16:22 -0400)]
[mono-api-html] Allow `-r` to ignore class removals

Allow `mono-api-html -r REGEX` to be used to silence messages
regarding class and namespace removals in addition to member removals.

6 years ago[docs] mprof-report manpage -- fix desctiption of existing file behavior
Uri Simchoni [Wed, 9 Aug 2017 10:44:39 +0000 (13:44 +0300)]
[docs] mprof-report manpage -- fix desctiption of existing file behavior

Fix the description of what happens when the output file already exists.

6 years ago[docs] remove non-existant option from log profiler manpage
Uri Simchoni [Wed, 9 Aug 2017 10:42:33 +0000 (13:42 +0300)]
[docs] remove non-existant option from log profiler manpage

The option of prepending a '-' to the log profiler output
filename is not supported by the code - remove it.

6 years ago[docs] Capitalization / puctuation fixes in mprof-report manpage.
Uri Simchoni [Wed, 9 Aug 2017 10:39:21 +0000 (13:39 +0300)]
[docs] Capitalization / puctuation fixes in mprof-report manpage.

6 years agoMore codeowners updates
Marek Safar [Thu, 10 Aug 2017 19:00:31 +0000 (21:00 +0200)]
More codeowners updates

6 years agoUpdate codeowners
Marek Safar [Thu, 10 Aug 2017 18:17:37 +0000 (20:17 +0200)]
Update codeowners

6 years agoDistinguish between the XSI-compliant and the GNU-specific version of `strerror_r ()`
cherusker [Mon, 7 Aug 2017 12:12:53 +0000 (14:12 +0200)]
Distinguish between the XSI-compliant and the GNU-specific version of `strerror_r ()`
- add USE_STRERROR_R_XSI to use the feature test macros conveniently later
- deal with the GNU-specific version of `strerror_r ()` separately (leave the code for the XSI-compliant version untouched)
- make `buff_len` size_t as this is ISO compliant (even though it should not really matter in this case)

6 years agoAdd rules to run TSan with run-jenkins.sh (#5254)
Armin Hasitzka [Thu, 10 Aug 2017 16:22:16 +0000 (18:22 +0200)]
Add rules to run TSan with run-jenkins.sh (#5254)

- export TSan flags that are used by the compiler and the compiled program
- introduce `make_timeout` to set individual timeouts for `make` based on the config (e.g. TSan will only get 30 minutes to complete)

6 years agoAdd implementation and tests for MatrixValueSerializer and MatrixConverter
Mikhail Filippov [Wed, 9 Aug 2017 11:11:54 +0000 (14:11 +0300)]
Add implementation and tests for MatrixValueSerializer and MatrixConverter

6 years agoUncomment fixed SizeConveter tests
Mikhail Filippov [Wed, 9 Aug 2017 11:16:22 +0000 (14:16 +0300)]
Uncomment fixed SizeConveter tests

6 years ago[monodis] Not all override methods are errors
Aleksey Kliger [Wed, 9 Aug 2017 15:31:17 +0000 (11:31 -0400)]
[monodis] Not all override methods are errors

Check whether mono_get_method_checked returned an error, if not, just decode
the override normally.

This partly reverts f100c2f5ff1a626fa4f467973e5cff7e5b2d3692

6 years ago[TSan] Yet another idea about whitelisting data races (#5310)
Armin Hasitzka [Thu, 10 Aug 2017 14:16:02 +0000 (16:16 +0200)]
[TSan] Yet another idea about whitelisting data races (#5310)

* Introduce racing.h
- introduce the `RacingIncrement* ()` functions
- test the `RacingIncrement* ()` functions with races of `mono_stats` in class.c
- add racing.h to Makefile.am, libmonoutils.vcxproj and msvc/libmonoutils.vcxproj.filters

* [fixup!] Rename "racing" to "unlocked"
- rename racing.h to unlocked.h
- update new file name in Makefile.am and *.vcxproj* files
- rename the functions from Racing* to Unlocked*
- update the macro logic

6 years ago[msbuild] Bump to xplat-master branch HEAD
Ankit Jain [Thu, 10 Aug 2017 01:07:10 +0000 (21:07 -0400)]
[msbuild] Bump to xplat-master branch HEAD

6 years ago[mono-symbolicate/mdoc] Don't fail tests in mcs mode (#5348)
Alexander Köplinger [Thu, 10 Aug 2017 00:33:23 +0000 (02:33 +0200)]
[mono-symbolicate/mdoc] Don't fail tests in mcs mode (#5348)

The checked in test files which the test suites in mono-symbolicate
and mdoc verify their output against have a few roslyn-specific
things in them and would fail when running in mcs mode.

While in theory we could check in both mcs- and roslyn-specific
test files it seems not worth the effort and we should just skip
the tests in mcs mode so we get greener builds on platforms
where we still use mcs by default.

6 years agoRevert "[runtime] Avoid building a separate static library, use the shared object...
Alexander Köplinger [Wed, 9 Aug 2017 18:04:55 +0000 (20:04 +0200)]
Revert "[runtime] Avoid building a separate static library, use the shared object files for the static library as well. (#5233)"

This reverts commit 56a1881bff83365978e7eb30d18da8809b56c1e2.

It caused a consistent test error on ARM64:
https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-arm64/2810/testReport/regression-tests/dummy/MonoTests_regressions_100percentsuccess/

6 years agoUpdate CODEOWNERS
Bernhard Urban [Wed, 9 Aug 2017 17:57:44 +0000 (19:57 +0200)]
Update CODEOWNERS

6 years ago[interp] builtin types (#5339)
Bernhard Urban [Wed, 9 Aug 2017 17:49:43 +0000 (19:49 +0200)]
[interp] builtin types (#5339)

* [interp] support System.{nint,nuint,nfloat} (64bit only so far)

* [interp] 32bit support for System.{nint,nuint,nfloat}

* [fixup] explain mint_niy

6 years ago[System]: Fix memory leak in AppleTls. (#5305)
Martin Baulig [Wed, 9 Aug 2017 16:27:28 +0000 (12:27 -0400)]
[System]: Fix memory leak in AppleTls. (#5305)

* [System]: Fix memory leak in AppleTls.

* Apply Miguel's patch to use GCHandleType.Weak.

* Actually assign context.

6 years agoMerge pull request #4379 from ermshiperete/master
Aleksey Kliger (λgeek) [Wed, 9 Aug 2017 03:00:55 +0000 (23:00 -0400)]
Merge pull request #4379 from ermshiperete/master

[runtime] Fix bug when marshaling COM interfaces in arrays

6 years agoDefault powerpc to mcs instead of roslyn (#5326)
Alexander Köplinger [Wed, 9 Aug 2017 01:03:50 +0000 (03:03 +0200)]
Default powerpc to mcs instead of roslyn (#5326)

It is crashing still way more than it works and now that the mcs
configuration works again we should default to that to make our CI
more pleasant.

6 years ago[runtime] Remove ves_icall_object_new_fast (), its only a bit faster than object_new_...
Zoltan Varga [Tue, 8 Aug 2017 23:56:21 +0000 (19:56 -0400)]
[runtime] Remove ves_icall_object_new_fast (), its only a bit faster than object_new_specific (), fast allocation is done by the managed allocators. Also remove mono_class_get_allocation_ftn () which is not needed anymore. (#5304)

6 years ago[btls] Compile btls using ninja if available. (#5333)
Zoltan Varga [Tue, 8 Aug 2017 23:54:51 +0000 (19:54 -0400)]
[btls] Compile btls using ninja if available. (#5333)

6 years ago[eglib] (goutput.c) Revert Android logging host-target change
Aleksey Kliger [Tue, 8 Aug 2017 18:45:37 +0000 (14:45 -0400)]
[eglib] (goutput.c) Revert Android logging host-target change

Revert part of 590473d01b3a3e11f87b9f2a8af3023926efca00 - the Android-specific
logging in eglib/goutput.c should be used when the host is Android, not the
target.

6 years agoFix allocation of memory to match the way it gets freed
Eberhard Beilharz [Wed, 15 Feb 2017 10:15:05 +0000 (11:15 +0100)]
Fix allocation of memory to match the way it gets freed

Since we use g_free() to free the memory we should use g_malloc()
to allocate it.

6 years ago[runtime] Fix bug when marshaling COM interfaces in arrays
Damien Daspit [Thu, 17 Nov 2016 03:47:47 +0000 (10:47 +0700)]
[runtime] Fix bug when marshaling COM interfaces in arrays

* use the correct COM interface when creating native array
* do not free CCWs when freeing the native array

This fixes Xamarin-47560.

6 years ago[runtime] Unit test for Xamarin-47560
Eberhard Beilharz [Fri, 10 Feb 2017 16:24:49 +0000 (17:24 +0100)]
[runtime] Unit test for Xamarin-47560

6 years agoFix xdebug (#5309)
Uri Simchoni [Tue, 8 Aug 2017 20:38:25 +0000 (23:38 +0300)]
Fix xdebug (#5309)

* [mini] fix xdebug null pointer dereferencing

Some trampolines are nameless, avoid crashing when generating their
debug info.

This change is released under the MIT license.

* [mini]: image-writer - move definition of USE_BIN_WRITER to header file

USE_BIN_WRITER is being used by xdebug for conditional compilation.

This change is released under the MIT license.

* [mini]: xdebug - obtain definition of USE_BIN_WRITER from header file

This re-enables xdebug on supported platforms.

This change is released under the MIT license.

6 years ago[runtime] Fix a case where klass->blittable was written without holding the loader...
Zoltan Varga [Tue, 8 Aug 2017 20:35:54 +0000 (16:35 -0400)]
[runtime] Fix a case where klass->blittable was written without holding the loader locked. (#5331)

6 years ago[btls] Enable ccache support for cmake. (#5332)
Zoltan Varga [Tue, 8 Aug 2017 20:35:06 +0000 (16:35 -0400)]
[btls] Enable ccache support for cmake. (#5332)

6 years agoadd #if MONO around change to make it easier for merging upstream referencesource...
Michael DeRoy [Tue, 8 Aug 2017 13:59:51 +0000 (09:59 -0400)]
add #if MONO around change to make it easier for merging upstream referencesource changes for the xamaran folks

6 years agoCall array sort function that takes comparison instead rather than allocating for...
Michael DeRoy [Tue, 8 Aug 2017 02:26:11 +0000 (22:26 -0400)]
Call array sort function that takes comparison instead rather than allocating for a wrapper struct

6 years agoAdd implementation and tests for SizeValueSerializer
Mikhail Filippov [Tue, 8 Aug 2017 13:58:56 +0000 (16:58 +0300)]
Add implementation and tests for SizeValueSerializer

6 years ago[mcs] Soften referenced assemblies unification rules. Fixes #58621
Marek Safar [Tue, 8 Aug 2017 14:35:26 +0000 (16:35 +0200)]
[mcs] Soften referenced assemblies unification rules. Fixes #58621

6 years agoMerge pull request #5335 from mono/master-bump-fsharp
Jason Imison [Tue, 8 Aug 2017 11:55:10 +0000 (12:55 +0100)]
Merge pull request #5335 from mono/master-bump-fsharp

Bump F# to 4.1.25 and remove already merged patches

6 years agoBump F# to 4.1.25 and remove already merged patches
nosami [Tue, 8 Aug 2017 11:32:12 +0000 (12:32 +0100)]
Bump F# to 4.1.25 and remove already merged patches

6 years agoBump API snapshot
Alexander Köplinger [Tue, 8 Aug 2017 09:56:55 +0000 (11:56 +0200)]
Bump API snapshot

6 years agoMerge pull request #5317 from alexrp/master
Alex Rønne Petersen [Tue, 8 Aug 2017 06:55:11 +0000 (08:55 +0200)]
Merge pull request #5317 from alexrp/master

[profiler] Some profiler API improvements.

6 years ago[runtime] Avoid building a separate static library, use the shared object files for...
Zoltan Varga [Tue, 8 Aug 2017 03:48:52 +0000 (23:48 -0400)]
[runtime] Avoid building a separate static library, use the shared object files for the static library as well. (#5233)

6 years ago[jit] Remove unused mono_arch_print_tree () function. (#5258)
Zoltan Varga [Mon, 7 Aug 2017 21:44:02 +0000 (17:44 -0400)]
[jit] Remove unused mono_arch_print_tree () function. (#5258)

6 years ago[runtime] Remove empty eglib/ dir.
Zoltan Varga [Mon, 7 Aug 2017 21:19:30 +0000 (17:19 -0400)]
[runtime] Remove empty eglib/ dir.

6 years ago[runtime] Move eglib into mono/eglib so it becomes a convenience library similar...
Zoltan Varga [Mon, 7 Aug 2017 21:14:31 +0000 (17:14 -0400)]
[runtime] Move eglib into mono/eglib so it becomes a convenience library similar to utils/ etc. (#5297)

6 years ago[profiler] Split method_leave callback into a method_tail_call callback.
Alex Rønne Petersen [Mon, 7 Aug 2017 20:30:59 +0000 (22:30 +0200)]
[profiler] Split method_leave callback into a method_tail_call callback.

With this, profilers can distinguish between the two, and also know what the
target method of a tail call is.

The call instrumentation flags have been renamed accordingly and a new flag has
been added for instrumenting tail calls. I've also added a flag for exceptional
leave events, and method_exception_leave is only raised if this flag is given
for a method.

Also refactored the relevant JIT code a bit so it's easier to follow.

6 years ago[profiler] Mark generated raise functions as ICALL_DECL_EXPORT.
Alex Rønne Petersen [Mon, 7 Aug 2017 20:28:15 +0000 (22:28 +0200)]
[profiler] Mark generated raise functions as ICALL_DECL_EXPORT.

This is currently needed for method_enter, method_leave, and gc_allocation.

6 years ago[runtime] Declare MonoProfilerCallContext::return_value offset.
Alex Rønne Petersen [Mon, 7 Aug 2017 20:27:49 +0000 (22:27 +0200)]
[runtime] Declare MonoProfilerCallContext::return_value offset.

6 years ago[runtime] Add ICALL_DECL_EXPORT.
Alex Rønne Petersen [Mon, 7 Aug 2017 20:27:10 +0000 (22:27 +0200)]
[runtime] Add ICALL_DECL_EXPORT.

ICALL_EXPORT is only used on function definitions, not declarations.

6 years ago[profiler] Properly clean up the resources used by the profiler API on shutdown.
Alex Rønne Petersen [Sat, 5 Aug 2017 16:49:56 +0000 (18:49 +0200)]
[profiler] Properly clean up the resources used by the profiler API on shutdown.

Also introduce mono_profiler_set_cleanup_callback ().

6 years ago[profiler] Some improvements to the code coverage API.
Alex Rønne Petersen [Sat, 5 Aug 2017 16:18:54 +0000 (18:18 +0200)]
[profiler] Some improvements to the code coverage API.

Code coverage must now be explicitly enabled. This simplifies initialization
of some coverage-related structures and also lets us enable debug info which
is needed to produce good data.

Also change the signature of mono_profiler_get_coverage_data so it returns a
value indicating whether coverage data was available.

6 years ago[msvc] Update csproj files
Alexander Köplinger [Mon, 7 Aug 2017 20:13:59 +0000 (22:13 +0200)]
[msvc] Update csproj files

6 years ago[genproj] Simplify strong name key handling
Alexander Köplinger [Mon, 7 Aug 2017 15:54:30 +0000 (17:54 +0200)]
[genproj] Simplify strong name key handling

It doesn't need to be in a separate PropertyGroup.

6 years ago[mono-threads-posix] Fix a buffer overflow (rather an information leak / over-read...
Armin Hasitzka [Mon, 7 Aug 2017 19:10:32 +0000 (21:10 +0200)]
[mono-threads-posix] Fix a buffer overflow (rather an information leak / over-read) (#5285)

[mono-threads-posix] Fix a buffer overflow (rather an information leak / over-read)

While testing Clang's AddressSanitizer, I found and fixed a buffer overflow.

Up for discussion: it might be worth importing `strlcpy` (http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libc/string/strlcpy.c?rev=1.11) for similar purposes as it provides additional safety and also helps with the readability?

6 years agoMerge pull request #5321 from urisimchoni/prof-lin
Alex Rønne Petersen [Mon, 7 Aug 2017 17:11:25 +0000 (19:11 +0200)]
Merge pull request #5321 from urisimchoni/prof-lin

Profiler - inlining fixes

6 years ago[profiler] Avoid instrumenting inlined methods
Uri Simchoni [Mon, 7 Aug 2017 04:39:12 +0000 (07:39 +0300)]
[profiler] Avoid instrumenting inlined methods

An inlined method does not require instrumentation (if it
did, it would not have been inlined). The flags that
control instrumentation options are valid for the caller
method and are not to be consulted.

This patch replaces an assertion with a check and early
return. A method that "wants to be instrumented" does not
get inlined, but a method that "doesn't want to be instrumented"
can get inlined. However, the flags that control instrumention
options have been calculated against the caller method, hence
they should not be consulted at all. The extra check renders
the assertion unnecessary.

6 years ago[profile] set the "no profiling" bitmask equal to zero
Uri Simchoni [Sun, 6 Aug 2017 09:57:39 +0000 (12:57 +0300)]
[profile] set the "no profiling" bitmask equal to zero

This makes constructs such as "if (!mono_profiler_get_call_instrumentation_flags(methos))"
correct. See mono_method_check_inlining()

6 years agoMerge pull request #5313 from lambdageek/corefx-sre-fixup
Aleksey Kliger (λgeek) [Mon, 7 Aug 2017 15:58:50 +0000 (11:58 -0400)]
Merge pull request #5313 from lambdageek/corefx-sre-fixup

[sre] Fix some argument checks, enable xtests

6 years ago[System.ServiceModel.Web] Simplify AssemblyInfo.cs
Alexander Köplinger [Mon, 7 Aug 2017 15:09:34 +0000 (17:09 +0200)]
[System.ServiceModel.Web] Simplify AssemblyInfo.cs

We don't need separate AssemblyInformationalVersion for mobile and
non-mobile.

6 years ago[ci] Add CI_TAGS option for --disable-mcs-build
Alexander Köplinger [Mon, 7 Aug 2017 14:28:47 +0000 (16:28 +0200)]
[ci] Add CI_TAGS option for --disable-mcs-build

Useful if you don't want to build the class libraries e.g. for
some static analysis of the runtime.

6 years agoBump version to 5.7 (#5325)
Ludovic Henry [Mon, 7 Aug 2017 14:03:24 +0000 (16:03 +0200)]
Bump version to 5.7 (#5325)

6 years ago[w32handle] Remove use of w32handle for File, Console, Pipe and Socket (#5319)
Ludovic Henry [Mon, 7 Aug 2017 13:52:12 +0000 (15:52 +0200)]
[w32handle] Remove use of w32handle for File, Console, Pipe and Socket (#5319)

* [w32file] Remove io_ops indirection

* [w32file] Replace use of w32handle by a GHashTable for File, Console and Pipe

* [Socket] Avoid relying on MonoIO.DuplicateHandle

* [w32socket] Remove force closing of sockets on shutdown

* fixup! [Socket] Avoid relying on MonoIO.DuplicateHandle

* [w32socket] Replace use of w32handle by a GHashTable

* [w32handle] Remove dead function mono_w32handle_new_fd

* fixup! [w32file] Replace use of w32handle by a GHashTable for File, Console and Pipe

* [w32handle] Remove dead variable mono_w32handle_fd_reserve

* [fdhandle] Factor w32file and w32socket common fdhandle code

* fixup! [Socket] Avoid relying on MonoIO.DuplicateHandle

* [w32socket] Fix GC safe/unsafe transitions

* fixup! [w32handle] Remove dead variable mono_w32handle_fd_reserve

6 years ago[eglib] Add back NEWS file, it's required for the tarball
Alexander Köplinger [Mon, 7 Aug 2017 12:31:57 +0000 (14:31 +0200)]
[eglib] Add back NEWS file, it's required for the tarball

6 years agoRevert "Bump version to 5.7"
Ludovic Henry [Mon, 7 Aug 2017 12:30:20 +0000 (14:30 +0200)]
Revert "Bump version to 5.7"

This reverts commit 82eafc02e4774ed567237d15f0f24b13a674da38.

6 years agoBump version to 5.7
Ludovic Henry [Mon, 7 Aug 2017 12:19:35 +0000 (14:19 +0200)]
Bump version to 5.7

6 years ago[System.Drawing] Simplify mobile profile check
Alexander Köplinger [Mon, 7 Aug 2017 12:11:59 +0000 (14:11 +0200)]
[System.Drawing] Simplify mobile profile check

6 years ago[bcl] Specify the name of the key file on the command line instead of using the Assem...
Zoltan Varga [Mon, 7 Aug 2017 12:03:48 +0000 (08:03 -0400)]
[bcl] Specify the name of the key file on the command line instead of using the AssemblyKeyFile attribute for consistency and to make it easier to do path name manipulation on the file name. (#5316)

6 years agoMerge pull request #5320 from urisimchoni/prof-sample
Alex Rønne Petersen [Mon, 7 Aug 2017 06:45:36 +0000 (08:45 +0200)]
Merge pull request #5320 from urisimchoni/prof-sample

[profiler] fixes to profiler sample

6 years ago[profiler] fixes to profiler sample
Uri Simchoni [Sun, 6 Aug 2017 10:20:01 +0000 (13:20 +0300)]
[profiler] fixes to profiler sample

- Fix the Linux build instructions.
- Remove eglib dependencies, as they complicate the build of an
  extenral module.
- Make instance static instead of heap-allocated.
- Make the call counter 64 bits.
- Adjustments to accommodate the new profiling API.

6 years agoRevert "[w32handle] Remove use of w32handle for File, Console, Pipe and Socket (...
Ludovic Henry [Sat, 5 Aug 2017 16:59:08 +0000 (12:59 -0400)]
Revert "[w32handle] Remove use of w32handle for File, Console, Pipe and Socket (#5283)" (#5318)

This reverts commit 78735091b62b8d7f65da2c83d36ca314a23009f4.

6 years ago[w32handle] Remove use of w32handle for File, Console, Pipe and Socket (#5283)
Ludovic Henry [Sat, 5 Aug 2017 16:51:15 +0000 (12:51 -0400)]
[w32handle] Remove use of w32handle for File, Console, Pipe and Socket (#5283)

* [w32file] Remove io_ops indirection

* [w32file] Replace use of w32handle by a GHashTable for File, Console and Pipe

* [Socket] Avoid relying on MonoIO.DuplicateHandle

* [w32socket] Remove force closing of sockets on shutdown

* fixup! [Socket] Avoid relying on MonoIO.DuplicateHandle

* [w32socket] Replace use of w32handle by a GHashTable

* [w32handle] Remove dead function mono_w32handle_new_fd

* fixup! [w32file] Replace use of w32handle by a GHashTable for File, Console and Pipe

* [w32handle] Remove dead variable mono_w32handle_fd_reserve

* [fdhandle] Factor w32file and w32socket common fdhandle code

* fixup! [Socket] Avoid relying on MonoIO.DuplicateHandle

* [w32socket] Fix GC safe/unsafe transitions

* fixup! [w32handle] Remove dead variable mono_w32handle_fd_reserve

6 years agoBump boostrap mono dependency
Marek Safar [Fri, 4 Aug 2017 22:21:43 +0000 (00:21 +0200)]
Bump boostrap mono dependency

6 years agoBump corefx
Marek Safar [Fri, 4 Aug 2017 22:18:59 +0000 (00:18 +0200)]
Bump corefx

6 years ago[ci] Disable corlib-xunit on Windows for now
Alexander Köplinger [Sat, 5 Aug 2017 00:10:21 +0000 (02:10 +0200)]
[ci] Disable corlib-xunit on Windows for now

It seems to fail.

6 years ago[mcs] Adds handling for declared variables from while loop condition
Marek Safar [Fri, 4 Aug 2017 21:48:16 +0000 (23:48 +0200)]
[mcs] Adds handling for declared variables from while loop condition

6 years agoBump API snapshot submodule
monojenkins [Fri, 4 Aug 2017 18:15:39 +0000 (18:15 +0000)]
Bump API snapshot submodule

6 years agoBump cecil and linker
Marek Safar [Fri, 4 Aug 2017 14:40:16 +0000 (16:40 +0200)]
Bump cecil and linker

6 years ago[test] (corlib) Enable more xtest SRE tests
Aleksey Kliger [Thu, 3 Aug 2017 21:53:34 +0000 (17:53 -0400)]
[test] (corlib) Enable more xtest SRE tests

- MethodBuilderDefineParameter
- ConstructorBuilderDefineParameter
- FieldBuilderSetCustomAttribute
- GenericTypeParameterBuilderSetCustomAttribute
- FieldBuilderSetOffset
- ModuleBuilderDefineInitializedData
- ModuleBuilderDefineUninitializedData

6 years ago[sre] ModuleBuilder.DefineUnitializedData argument checks
Aleksey Kliger [Fri, 4 Aug 2017 19:17:03 +0000 (15:17 -0400)]
[sre] ModuleBuilder.DefineUnitializedData argument checks

1. Fix off by one in size check.
  Largest usable size is 0x3effff, first unusable size is 0x3f0000
  (Also change order of ArgumentException arguments - param name is second.
   Set it to null because of misguided CoreFX SRE test that expects a null name)
2. Check for empty string field name.

6 years ago[sre] negative FieldBuilder.SetOffset should throw ArgumentException
Aleksey Kliger [Fri, 4 Aug 2017 17:52:43 +0000 (13:52 -0400)]
[sre] negative FieldBuilder.SetOffset should throw ArgumentException

6 years ago[sre] Add explicit null checks of CustomAttributeBuilder arguments
Aleksey Kliger [Fri, 4 Aug 2017 16:32:09 +0000 (12:32 -0400)]
[sre] Add explicit null checks of CustomAttributeBuilder arguments

6 years ago[sre] ConstructorBuilder.DefineParamter(0,...) shouldn't throw
Aleksey Kliger [Thu, 3 Aug 2017 22:18:59 +0000 (18:18 -0400)]
[sre] ConstructorBuilder.DefineParamter(0,...) shouldn't throw

.NET Framework says:

> If you specify 0 (zero) for iSequence, this method returns a ParameterBuilder
>  instead of throwing an exception. There is nothing useful that you can do
>  with this ParameterBuilder.

So let's do that.

6 years ago[runtime] Install profiler-events.h as a public header.
Alex Rønne Petersen [Fri, 4 Aug 2017 19:05:12 +0000 (21:05 +0200)]
[runtime] Install profiler-events.h as a public header.

6 years ago[bcl] Grab free ports randomly in NetworkHelpers (#5312)
Alexander Köplinger [Fri, 4 Aug 2017 18:22:50 +0000 (20:22 +0200)]
[bcl] Grab free ports randomly in NetworkHelpers (#5312)

* [bcl] Grab free ports randomly in NetworkHelpers

We're frequently seeing "address already in use" errors on Jenkins.

The theory is that when we're running tests and grab the next free
port via our custom NetworkHelpers we're getting a port which will
also be returned to a simultaneously running test (e.g. another chroot)
because we're closing the TcpListener and thus releasing the port until
we start using it in actual test code. By that time the other test
might've already opened the port, causing our test to fail.

Instead we now try to use a random port in the range 10000-60000
and try if it's available. This doesn't completely fix the inherent
race but should hopefully make it way less likely.

6 years ago[sre] Throw ArgumentOutOfRange exn in MethodBuilder.DefineParameter if called
Aleksey Kliger [Thu, 3 Aug 2017 21:51:47 +0000 (17:51 -0400)]
[sre] Throw ArgumentOutOfRange exn in MethodBuilder.DefineParameter if called
before SetParameters.

Fixes xunit testpoint MethodBuilderDefineParameter:DefineParameter_NoParameters_NonZeroPosition_ThrowsArgumentOutOfRangeException

6 years agoMerge pull request #5306 from lambdageek/corefx-sre-tests
Aleksey Kliger (λgeek) [Fri, 4 Aug 2017 16:40:54 +0000 (12:40 -0400)]
Merge pull request #5306 from lambdageek/corefx-sre-tests

[test] (corlib) Use CoreFX System.Reflection.Emit xunit tests

6 years agoMerge pull request #5303 from lambdageek/cattr-bcheck
Aleksey Kliger (λgeek) [Fri, 4 Aug 2017 16:29:19 +0000 (12:29 -0400)]
Merge pull request #5303 from lambdageek/cattr-bcheck

[custom_attrs] Add bounds checking to custom attribute parsing

6 years ago[btls] Disable BUILD_SHARED_LIBS while building boringssl, so its symbols are not...
Zoltan Varga [Fri, 4 Aug 2017 15:39:28 +0000 (11:39 -0400)]
[btls] Disable BUILD_SHARED_LIBS while building boringssl, so its symbols are not exported from the btls shared lib. (#5307)

6 years ago[mcs] Fixes codegen for type pattern matching in probing expressions over hoisted...
Marek Safar [Fri, 4 Aug 2017 13:15:14 +0000 (15:15 +0200)]
[mcs] Fixes codegen for type pattern matching in probing expressions over hoisted local variables

6 years ago[mcs] Flow analysis on reduced expressions need to run on original expression
Marek Safar [Fri, 4 Aug 2017 11:30:06 +0000 (13:30 +0200)]
[mcs] Flow analysis on reduced expressions need to run on original expression

6 years ago[mcs] Warnings clean up
Marek Safar [Fri, 4 Aug 2017 08:52:23 +0000 (10:52 +0200)]
[mcs] Warnings clean up