The previous Windows stack overflow createdump trigger fix generated the dump before the m_LastThrownObjectHandle in the thread was set. This breaks SOS's !pe command.
This change removes the open-coded Crossgen2 execution
from the crossgen2smoke test project and switches it over
to use the normal CLRTest.Crossgen.targets logic for Crossgen2
invocation.
As the CLRTest.Crossgen.targets script already contains my fix
for the underlying issue - we were inadvertently running the
Crossgen2 compiler itself in GC stress mode and timing out
due to the long compilation times - we can now reenable
this test in GC stress mode.
Thanks
Tomas
Because synchronization of AddRule is omitted for performance,
concurrent invocations of AddRule may cause Rules to revert back to
an older (smaller) version, making i out of bounds.
Add a guard against that.
The reasoning behind no synchronization is that Rules is just a cache
after all. As long as the cache is in a consistent state, wrong updates
will only cause more cache misses or longer lookup time.
This performance loss is fine if we get more performance gain by
omitting synchronization.
Fix#36983
* Update linker warning numbers
In response to https://github.com/mono/linker/pull/1385.
This replaces the global suppressions for IL2006 with the warnings that it was split into.
* Add suppressions for linker tests
* Implement concept of unstable ABI into crossgen2
- Use for the Vector types based on current defined stability rules
- Will prevent compilation of methods with not yet stable abis, or calls to methods with said unstable apis
* Bugs
* Add remaining System.Net.Http Telemetry
* Remove http20-streams-current-total
* Use consts instead of magic values
* Move ResponseHeadersBegin event closer to actual timestamp for HTTP2
* Limit Debugger.Log() calls in EventSource
Fixing #40799
Previously we would send a message via Debugger.Log() for event call to ReportOutOfBandMessage().
Now we only do it the first 16 times, then all errors after that are silent. This should alleviate performance
overhead from a scenarios with a large number of errors.
I made this change quickly via github to help out Bing. I have never compiled or tested it prior to the PR
but fingers crossed it appears simple enough that it has a decent chance to work : )
* Remove trailing whitespace
Co-authored-by: David Mason <[email protected]>
* Change Assembly.GetFile(s) to throw when in-memory
This is technically a breaking change, although a minor one, as the
previous behavior also threw an exception. The previous exception was
an IOException and this is an InvalidOperationException, so if users
were catching the previous exception they would not succeed now.
Fixes#40154
* Don't specify exception for GetFile when passed null
* Skip ImplementedInterfaces test on Mono
* Fix tests for running in memory
Co-authored-by: Dan Moseley <[email protected]>
Co-authored-by: Jan Kotas <[email protected]>
* Revert " Use clonefile for CopyFile, if available (dotnet/corefx#37583)"
This reverts commit 02ba75ad0f.
* Add unit test
* Disable tests failing in browser-wasm
When running the new nullable constructor analysis on runtime we
discovered what appears to be a missing annotation in
`DataTableReaderListener`.
Note: the second `if` check in the constructor seems like dead code.
It's checking for the field to be non-null before ever setting the field
to a value. Probably could be deleted.
Improve validation of tail calls that are not tail-prefixed in the IL
but are marked as such because of TailCallStress. We now do the same
correctness validation in morph for such tail calls as we do for
implicit tail calls. That blocks tail calls when we have address-taken
locals, struct promoted params, and pinned vars.
Fixes#39398.
Fixes#39309.
Fixes#38892.
Fixes#38889.
Fixes#38887.
Fixes#37117.
Fixes#8017.
* Wrap non-nullable struct converters in NullableOfT converter when
they explicitly handle nullable structs
* Throw exception instead of being nice
* Improve exception message
* Porting changes from https://github.com/dotnet/extensions/pull/536
* Correcting reference
* Avoiding wrapping exception as there may be other reasons why closing the generic type fails other than constraint failure
* Fix ilasm, ildasm and crossgen launch from PATH
When trying to launch ilasm, ildasm, crossgen or any tool using
PAL_Initialize that are on the current PATH just by their file names,
they were crashing with SIGSEGV.
The problem was that the current exe path was extracted incorrectly
in that case.
This change fixes the problem using the same methods that corerun
uses to figure out the current exe path.
* Add missing FreeBSD headers
* Reflect PR feedback
* Update src/coreclr/src/pal/src/init/pal.cpp
* Fix typo in Solaris version of the code
Co-authored-by: Jan Kotas <[email protected]>
* Set MaxConcurrentStreams = 100 on new Http2Connection until first SETTINGS frame
* Update src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2Connection.cs
Co-authored-by: Chris Ross <[email protected]>
* - Setting infinite MaxConcurrentStreams fixed
- Test verifying new connection request queueing added
* More tests
* - const case fixed
- Outerloop attributed added
* ExtraStreams case fixed
Co-authored-by: Chris Ross <[email protected]>
* Move content type verification to a later stage
Fix#38713
* Rename ValidateContent to ValidateContentType
Fix#38713
* Get rid of content type check
* Add newline at end of the file
* Rename TestValidMediaTypes to TestVariousMediaTypes
* Ensure FileStatus and FileSystemEntry IsHidden attribute is retrieved the same way
* Add missing check in public property FileSystemEntry.IsHidden. Address PR suggestions.
* Add tests for Hidden and ReadOnly attribute check for each platform. Split existing Skip attribute test into different platforms.
* Use _initialAttributes instead of Attributes for IsHidden. Add comment on top.
Co-authored-by: carlossanlop <[email protected]>
There are 2 flaky HTTP/2 tests verifying multiple connections feature which are randomly failing on CI, but not locally.
- Http2_MultipleConnectionsEnabled_ConnectionLimitNotReached_ConcurrentRequestsSuccessfullyHandled
- Http2_MultipleConnectionsEnabled_IdleConnectionTimeoutExpired_ConnectionRemovedAndNewCreated
It seems the failure is caused by not reading the request body. In current implementation, `Http2LoopbackServer` read only HEADERS frame via `ReadRequestHeaderAsync` and then immediately sends response. However, the client firstly completely sends headers and body and only then starting reading a response. Thus, it seems to get blocked sometimes if the server didn't read the full body. This PR fixes this by calling `ReadAndParseRequestHeaderAsync` instead of `ReadRequestHeaderAsync`.
Fixes#40436Fixes#40115