-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Unsafe accessors in Reflector don't work #834
Comments
I temporarily disabled the net8.0 branch here: Unfortunately I don't have time to investigate now because I need to unblock users. @filipnavara if you perhaps have time to investigate this at some point. But it's not urgent, I mitigated it for now. |
I'll put it on my backlog. Not sure when I will have time to have a look. It worked in the local builds of the MSBuild Log Viewer, both in NativeAOT and CoreCLR, on macOS and Windows. I'd probably need more info or test case to see what is broken. |
there's absolutely no rush. I've asked for a repro. |
@KirillOsenkov @filipnavara I have a repro, but it's a bit involved. I tried to create a console app that shows the same behavior, but I couldn't, however this repro survives
|
Thanks. The detailed instructions are much appreciated. I will report back soon. |
I can reproduce it locally. The gist is that the using System;
using System.Runtime.CompilerServices;
var a = new A();
Console.WriteLine(GetSetFoo(a));
[UnsafeAccessor(UnsafeAccessorKind.Field, Name = "foo")]
extern static ref string GetSetFoo(A args);
class A { private volatile string? foo = "Bar"; } I'll check with the runtime team if this is expected behavior or bug. |
People are reporting that on net8.0 Reflector doesn't work, fails to access fields.
The text was updated successfully, but these errors were encountered: