Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Disable loading IJW assemblies into collectible ALC #23430

Merged
merged 2 commits into from
Mar 25, 2019

Conversation

janvorli
Copy link
Member

@janvorli janvorli commented Mar 25, 2019

IJW (mixed assemblies) have many potential issues with unloadability. They can run arbitrary native code that the runtime knows nothing about, they can have data structures that the runtime knows nothing about etc. So attempt to unload them could easily result in memory leaks and crashes.
This change disables loading IJW assemblies into collectible ALC. These assemblies are supported in .NET Core to simplify migration of an pre-existing code, so we won't support loading them as collectible.

Close #20177

@janvorli janvorli added this to the 3.0 milestone Mar 25, 2019
@janvorli janvorli self-assigned this Mar 25, 2019
@janvorli janvorli requested a review from jkotas March 25, 2019 09:28
@janvorli
Copy link
Member Author

@dotnet-bot test Windows_NT arm Cross Checked Innerloop Build and Test please

@janvorli
Copy link
Member Author

@dotnet-bot test Windows_NT arm64 Cross Checked Innerloop Build and Test please

@jkotas
Copy link
Member

jkotas commented Mar 25, 2019

cc @jkoritzinsky

Copy link
Member

@jkoritzinsky jkoritzinsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few more IJW tests now so make sure to mark them UnloadabilityIncompatible as well. Other than that LGTM!

There were couple of IJW tests added since the master I've based my
changes on. Adding disabling of those for unloadability testing.
@janvorli janvorli force-pushed the disable-ijw-load-in-collectible-alc branch from 6032357 to 8fede4d Compare March 25, 2019 17:11
@janvorli
Copy link
Member Author

@jkoritzinsky thanks for the info on the new tests, I've added a commit to disabled them.

@janvorli janvorli merged commit 2520798 into dotnet:master Mar 25, 2019
@janvorli janvorli deleted the disable-ijw-load-in-collectible-alc branch March 25, 2019 23:20
CarolEidt added a commit to CarolEidt/coreclr that referenced this pull request Mar 29, 2019
For the Fma case (dotnet#23430), fix the handling of contained 3-operand HW intrinsic nodes.
For the Bmi case (#23534), fix a bad assert placement, and re-enable the Bmi tests.

Fix #23530
Fix #23534
CarolEidt added a commit that referenced this pull request Mar 29, 2019
* Fix HW intrinsic containment bugs

For the Fma case (#23430), fix the handling of contained 3-operand HW intrinsic nodes.
For the Bmi case (#23534), fix a bad assert placement, and re-enable the Bmi tests.

Fix #23530
Fix #23534

* Add guard for Fma test
buyaa-n pushed a commit to buyaa-n/coreclr that referenced this pull request Apr 1, 2019
* Fix HW intrinsic containment bugs

For the Fma case (dotnet#23430), fix the handling of contained 3-operand HW intrinsic nodes.
For the Bmi case (#23534), fix a bad assert placement, and re-enable the Bmi tests.

Fix #23530
Fix #23534

* Add guard for Fma test
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…d-in-collectible-alc

Disable loading IJW assemblies into collectible ALC

Commit migrated from dotnet/coreclr@2520798
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Fix HW intrinsic containment bugs

For the Fma case (dotnet/coreclr#23430), fix the handling of contained 3-operand HW intrinsic nodes.
For the Bmi case (dotnet/coreclr#23534), fix a bad assert placement, and re-enable the Bmi tests.

Fix dotnet/coreclr#23530
Fix dotnet/coreclr#23534

* Add guard for Fma test


Commit migrated from dotnet/coreclr@1df87c7
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants