Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure XslCompiledTransform works with TrimMode=link #45522

Merged
merged 2 commits into from
Dec 8, 2020

Conversation

eerhardt
Copy link
Member

@eerhardt eerhardt commented Dec 3, 2020

Resolve ILLinker warnings in Xml.Xsl in order to make a basic Xslt scenario work.

Fix #45393

Resolve ILLinker warnings in Xml.Xsl in order to make a basic Xslt scenario work.

Fix dotnet#45393
@ghost
Copy link

ghost commented Dec 3, 2020

Tagging subscribers to this area: @buyaa-n, @krwq
See info in area-owners.md if you want to be subscribed.

Issue Details

Resolve ILLinker warnings in Xml.Xsl in order to make a basic Xslt scenario work.

Fix #45393

Author: eerhardt
Assignees: -
Labels:

area-System.Xml

Milestone: -

@eerhardt
Copy link
Member Author

eerhardt commented Dec 3, 2020

mono windows x64 Debug failure is #45524

@eerhardt eerhardt marked this pull request as ready for review December 3, 2020 16:53
public static readonly MethodInfo XPPrecMergeNext = GetMethod(typeof(XPathPrecedingMergeIterator), "MoveNext");
public static readonly MethodInfo AncCreate = typeof(AncestorIterator).GetMethod("Create")!;
public static readonly MethodInfo AncNext = typeof(AncestorIterator).GetMethod("MoveNext")!;
public static readonly MethodInfo AncCurrent = typeof(AncestorIterator).GetMethod("get_Current")!;
Copy link
Member Author

Choose a reason for hiding this comment

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

Note here I needed to add a new field Current for each Iterator type, so we could safely call get_Current without the linker trimming it away.

Copy link
Member

@vitek-karas vitek-karas left a comment

Choose a reason for hiding this comment

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

Nice!

@eerhardt
Copy link
Member Author

eerhardt commented Dec 7, 2020

@krwq @buyaa-n - any thoughts?

Copy link
Contributor

@buyaa-n buyaa-n left a comment

Choose a reason for hiding this comment

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

Overall looks good to me

Copy link
Member

@krwq krwq left a comment

Choose a reason for hiding this comment

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

LGTM, please make sure to run outerloop tests

@eerhardt
Copy link
Member Author

eerhardt commented Dec 8, 2020

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@eerhardt
Copy link
Member Author

eerhardt commented Dec 8, 2020

The only outerloop failures are in RegularExpressions.Tests. Merging.

@eerhardt eerhardt merged commit 3c0d0e6 into dotnet:master Dec 8, 2020
@eerhardt eerhardt deleted the Fix45393 branch December 8, 2020 23:34
@ghost ghost locked as resolved and limited conversation to collaborators Jan 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XslCompiledTransform doesn't work when using TrimMode=link
5 participants