Skip to content

Enable tests previously failing due to missing array ctor.#20100

Merged
lateralusX merged 1 commit intomono:masterfrom
monojenkins:sync-pr-35008-from-runtime
Aug 18, 2020
Merged

Enable tests previously failing due to missing array ctor.#20100
lateralusX merged 1 commit intomono:masterfrom
monojenkins:sync-pr-35008-from-runtime

Conversation

@monojenkins
Copy link
Contributor

!! This PR is a copy of dotnet/runtime#35008, please do not edit or review it in this repo !!
Do not automatically approve this PR:

* Consider how the changes affect configurations in this repo,
* Check effects on files that are not mirrored,
* Identify test cases that may be needed in this repo.

!! Merge the PR only after the original PR is merged !!



Fix #19494 adds missing array ctor needed by several tests currently failing as described by dotnet/runtime#34068.

This PR re-eanbles the tests currently listed in dotnet/runtime#34068.

@monojenkins monojenkins force-pushed the sync-pr-35008-from-runtime branch 3 times, most recently from 5c20a28 to 7080390 Compare July 13, 2020 08:47
@monojenkins monojenkins requested a review from BrzVlad as a code owner July 13, 2020 08:47
@monojenkins monojenkins force-pushed the sync-pr-35008-from-runtime branch 3 times, most recently from a01dd87 to 42a2be1 Compare July 17, 2020 13:45
Fix mono#19494 adds missing array ctor needed by several tests currently failing as described by dotnet/runtime#34068.

This PR fixes an additional problem hit by the IL array tests using an lbound != 0. Current Mono codegen for Set/Get/Address array methods didn't adjust index with regards to lbound causing failures in several of the array tests. NOTE, this scenario should only be hit when directly calling Set/Get/Address using IL on an array with an lbound != 0. It shouldn't affect regular szarray's at all since that code paths should never be used and the codegen currently looks up the lbounds unconditionally in the array, so if that code path ever gets hit by a szarray, it will imdediate crash, so shouldn't be causing any performance impact on szarrays. There is also an additional check on the array type as well as an additional precaution, so only arrays of type MONO_TYPE_ARRAY, hitting codegen for Set/Get/Address array method calls will adjust index based on lbound.

This PR fix the lbound index codegen for that specific code path and re-eanbles the tests currently listed in dotnet/runtime#34068.
@monojenkins monojenkins force-pushed the sync-pr-35008-from-runtime branch from 42a2be1 to 60da945 Compare August 18, 2020 06:57
@lateralusX
Copy link
Member

Failures in Linux WebAssembly and OSX x64 Android SDK seems unrelated to this PR and appears on several other PR's as well.

@lateralusX lateralusX self-requested a review August 18, 2020 16:47
@lateralusX lateralusX merged commit 1d85cba into mono:master Aug 18, 2020
imhameed added a commit to imhameed/mono that referenced this pull request Nov 4, 2020
imhameed added a commit that referenced this pull request Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants