Skip to content

jit-diff fails with "Cannot set initonly static field ..." #271

Closed
@tannergooding

Description

@tannergooding

Running a jit-diff, such as ..\jitutils\bin\jit-diff.bat diff --diff --pmi --benchmarks, currently fails with an error similar to the following:

Unhandled exception. System.FieldAccessException: Cannot set initonly static field 's_isProcessorNumberReallyFast' after type 'System.Threading.Thread' is initialized.
   at System.RuntimeFieldHandle.SetValue(RtFieldInfo field, Object obj, Object value, RuntimeType fieldType, FieldAttributes fieldAttr, RuntimeType declaringType, Boolean& domainInitialized)
   at System.Reflection.RtFieldInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
   at System.Reflection.FieldInfo.SetValue(Object obj, Object value)
   at PrepareMethodinator.EnsureGetCurrentProcessorIdIsDeterministic() in D:\tagoo\Repos\jitutils\src\pmi\pmi.cs:line 1332
   at PrepareMethodinator.Main(String[] args) in D:\tagoo\Repos\jitutils\src\pmi\pmi.cs:line 1363

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions