Uh oh!
There was an error while loading. Please reload this page.
[mono][wasm] Fix a performance regression introduced by #97096. - #98515
Conversation
vargaz
commented
Feb 15, 2024
vargaz
commented
Feb 15, 2024
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
vargaz
commented
Feb 15, 2024
Fixes #98522. |
lateralusX
commented
Feb 16, 2024
@vargaz what happened? Did we end up hitting a case where we reported is_supported as true for a generic type where we should have reported false? |
vargaz
commented
Feb 16, 2024
It made IsSupported return true for the generic shared version of vectors i.e. Vector<T_BYTE>, but we don't support gshared for those types right now. |
OK, pretty sure that was an issue on some other platforms, that's why I added support for T_BYTE, since it was inline with what the implementation of IsSupported returned in its managed implementation, Maybe this is just an issue on some platforms? |
With our gsharing implementation, T_BYTE can stand for enums whose basetype is byte as well, so we can't return true for Vector<T_BYTE>.IsSupported. With that code removed, we now hit this code: So the IsSupported call is not intrinsified, so it will fall back to the managed implementation which does the right thing. The perf regression is some other issue which is also fixed with this change. |
No description provided.