Skip to content

Fix IDIC casts to invalid WinRT interfaces#1659

Merged
manodasanW merged 4 commits into
staging/AOTfrom
manodasanw/idiccatch
Jul 3, 2024
Merged

Fix IDIC casts to invalid WinRT interfaces#1659
manodasanW merged 4 commits into
staging/AOTfrom
manodasanw/idiccatch

Conversation

@manodasanW
Copy link
Copy Markdown
Member

With the new AOT changes, it looks like IDIC casts to invalid WinRT interfaces cause a crash during helper type lookup due to the either triggering the fallback logic to init vtable in JIT or due to not being a valid helper type on AOT. But with IDIC, if they did an as operator, it shouldn't crash. Due to this, adding a check for if it is a WinRT type before going through the IDIC QI logic.

@manodasanW manodasanW merged commit 016e9ec into staging/AOT Jul 3, 2024
@manodasanW manodasanW deleted the manodasanw/idiccatch branch July 3, 2024 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants