Skip to content

R2R jobs should not pass -O to crossgen2 #56148

Closed

Description

@jakobbotsch

When -O is passed, crossgen2 will ignore the assembly's "debug" bit. We have some JIT tests that rely on this bit to be respected which are currently disabled because of this behavior since our R2R jobs pass -O. Some more discussion in #55062.

cc @dotnet/crossgen-contrib

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Jul 22, 2021
  2. MichalStrehovsky commented on Jul 22, 2021

    @MichalStrehovsky
    Member

    The jobs should be changed not to pass -O. The -O was required to optimize before #44514 got merged.

    The -O was supposed to be removed per #44514 (comment) but it probably slipped through the cracks.

  3. changed the title [-]Crossgen2 ignores assembly "debug" bit when -O is passed[/-] [+]R2R jobs should not pass -O to crossgen2[/+] on Jul 22, 2021
  4. jakobbotsch commented on Jul 22, 2021

    @jakobbotsch
    MemberAuthor

    The -O parameter was readded in #49867 it looks like.

  5. MichalStrehovsky commented on Jul 22, 2021

    @MichalStrehovsky
    Member

    Ah okay, I don't know what going on there then. I'll leave that to the crossgen team.

  6. mangod9 commented on Jul 26, 2021

    @mangod9
    Member

    @jakobbotsch, is this a blocker for .net 6?

  7. removed
    untriagedNew issue has not been triaged by the area owner
    on Jul 26, 2021
  8. added this to the 6.0.0 milestone on Jul 26, 2021
  9. jakobbotsch commented on Jul 26, 2021

    @jakobbotsch
    MemberAuthor

    @mangod9 No, the test is just disabled for R2R jobs at the moment. Reenabling it can wait.

  10. mangod9 commented on Jul 26, 2021

    @mangod9
    Member

    Ok thanks will move to 7

  11. modified the milestones: 6.0.0, 7.0.0 on Jul 26, 2021
  12. self-assigned this
    on Jul 6, 2022
  13. modified the milestones: 7.0.0, 8.0.0 on Jul 6, 2022
  14. davidwrighton commented on Jul 6, 2022

    @davidwrighton
    Member

    Consider doing this during the downtime between 7 and 8.

  15. ivdiazsa commented on Jul 6, 2023

    @ivdiazsa
    Contributor

    Just to confirm, should we stop passing -O altogether to crossgen2, or just for the R2R jobs?

  16. davidwrighton commented on Jul 6, 2023

    @davidwrighton
    Member

    Looking at Simon's original change it appears he didn't handle the composite case, so composite builds might still need explicit control. I'd like you to look into that and verify if you make a change here, that we don't regress composite compilation. In addition, if we are going to disable passing -O to crossgen2 in our tests, we should probably consider not passing it in the SDK, so we would need to validate all of our scenarios continue to work correctly if we do that.

  17. ghost locked as resolved and limited conversation to collaborators on Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions