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

Baseline more pri1 tests with native AOT #111068

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MichalStrehovsky
Copy link
Member

I originally thought this found a real bug but this is just a really weird test exercising not just slow delegate creation path, but also quite invalid IL:

IL_0124: newobj instance void FakePower::.ctor()
IL_0129: stloc.s V_4
IL_012b: ldloc.0
IL_012c: dup
IL_012d:
ldvirtftn instance int32 FakePower::Power4(int32,int32)
IL_0133: newobj instance void OddPower/MyDeleg2::.ctor(object,
native int)

(Notice that despite the newobj, the actual object instance is of a completely different type and the method is not on that type, took a while to realize the newobj is useless and unrelated.)

Cc @dotnet/ilc-contrib

I originally thought this found a real bug but this is just a really weird test exercising not just slow delegate creation path, but also quite invalid IL:

https://github.com/dotnet/runtime/blob/3d88f276b13ae4d2ffa6a66b02f32171fdc825b5/src/tests/JIT/Methodical/delegate/_simpleoddpower.il#L510-L517

(Notice that despite the newobj, the actual object instance is of a completely different type and the method is not on that type.)
Copy link
Contributor

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

@jkotas
Copy link
Member

jkotas commented Jan 3, 2025

really weird test exercising not just slow delegate creation path, but also quite invalid IL

Should we delete this test instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants