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

ReadyToRun: JIT helper not supported: CORINFO_HELP_INITCLASS #6902

Closed
MichalStrehovsky opened this issue Oct 28, 2016 · 2 comments
Closed

ReadyToRun: JIT helper not supported: CORINFO_HELP_INITCLASS #6902

MichalStrehovsky opened this issue Oct 28, 2016 · 2 comments
Assignees
Labels
area-ReadyToRun-coreclr backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity
Milestone

Comments

@MichalStrehovsky
Copy link
Member

Running crossgen on the below code results in following messages

ReadyToRun: JIT helper not supported: CORINFO_HELP_INITCLASS
ReadyToRun: JIT helper not supported: CORINFO_HELP_INITINSTCLASS

Infrastructure to support this has been added to RyuJIT with dotnet/coreclr#7842, but this is currently excluded with eeGetEEInfo()->targetAbi == CORINFO_CORERT_ABI because only CoreRT knows how to generate the helper.

using System;

class Gen1<T> where T: class
{
    static Gen1()
    {
    }

    public static string Get1()
    {
        return ("Hello" as T) as string;
    }

    public static string Get2<U>()
    {
        return ("Hello" as T) as string;
    }
}

class Gen2<T> where T: class
{
    public static string GetFromClassParam()
    {
        return (Gen1<T>.Get1() as T) as string;
    }

    public static string GetFromMethodParam()
    {
        return (Gen1<T>.Get2<T>() as T) as string;
    }
}

internal class Program
{
    private static int Main()
    {
        return Gen2<string>.GetFromClassParam().Length + Gen2<string>.GetFromMethodParam().Length;
    }
}
@gkhanna79 gkhanna79 assigned rahku and unassigned gkhanna79 and JohnChen0 Mar 5, 2017
@sergiy-k sergiy-k assigned nattress and unassigned rahku Jan 25, 2018
@msftgits msftgits transferred this issue from dotnet/coreclr Jan 31, 2020
@msftgits msftgits added this to the Future milestone Jan 31, 2020
@ghost
Copy link

ghost commented Oct 27, 2022

Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.

This process is part of our issue cleanup automation.

@ghost ghost added backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity labels Oct 27, 2022
@ghost
Copy link

ghost commented Nov 10, 2022

This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.

@ghost ghost closed this as completed Nov 10, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-ReadyToRun-coreclr backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity
Projects
None yet
Development

No branches or pull requests

6 participants