Skip to content

GetILFunctionBody fails in dotnet 7 for dynamic methods with CORPROF_E_DATAINCOMPLETE #86577

Closed

Description

@AllenBiton

dotnet 7 removed the feature to GetILFunctionBody of dynamic methods.
This is needed for code coverage for example and faking and more.
Please bring this feature back or give us a workaround to do this so we dynamically change the code with unmanaged API.

Activity

  1. ghost added
    untriaged
    on May 21, 2023
  2. changed the title [-]Running a unit test that tests the creation of a dynamic assembly+module+type+Interface+method with our profiler enabled is failing[/-] [+]GetILFunctionBody fails in dotnet 7 for dynamic methods with CORPROF_E_DATAINCOMPLETE[/+] on May 21, 2023
  3. transferred this issue fromdotnet/sdkon May 22, 2023
  4. ghost added
    needs-area-label
    on May 22, 2023
  5. removed
    needs-area-label
    on May 22, 2023
  6. hoyosjs commented on May 22, 2023

    @hoyosjs
    Member
  7. davmason commented on May 23, 2023

    @davmason
    Contributor

    Hi @AllenBiton, thanks for filing this issue. Would you be able to test a private runtime to see if it fixes your issue? I can provide you with binaries or link to a github repository where you can build them yourself.

    This commit should fix your issue davmason@930b0cb

  8. added this to the 8.0.0 milestone on May 23, 2023
  9. added
    enhancement
    on May 23, 2023
  10. ghost removed
    untriaged
    on May 23, 2023
  11. davmason commented on May 31, 2023

    @davmason
    Contributor

    To update this thread, @AllenBiton and I are chatting privately and he is testing a private build to see if it fixes the issue

  12. ghost added
    in-pr
    on Jun 13, 2023
  13. ghost removed
    in-pr
    on Jun 14, 2023
  14. ghost locked as resolved and limited conversation to collaborators on Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-Diagnostics-coreclrenhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions