-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
APX: Assertion failed 'size == info.compCompHnd->getClassSize(typeHnd)' #113869
Comments
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
I think this is a common assert that I ran into while working on agnostic VL support. I am facing this for |
Is altjit overriding the |
Yes. I ran into the same issue with altjit. Had to set
|
Just to clarify, my complain is when doing a normal |
Seems this piece of code should be updated to handle AltJit as well as for handling Agnostic VL: runtime/src/coreclr/vm/methodtablebuilder.cpp Lines 1126 to 1171 in 7efe7f7
|
If you update this to produce value that works for cross-architecture AltJit, I expect that it is going to break regular native Jit. So far, the AltJit quirks have been done in the JIT itself or on the JIT/EE interface at most. |
When running as an AltJit when the generated code will not be used (either because of a mismatched VM, or because RunAltJitCode=0), the JIT overwrites the passed in ISAs. When it does so, it zeros out the VectorT* ISA flags. Instead of this, carry over the existing ISA flags. This should work for same-architecture SPMI replays. I'm not sure if additional logic for specifically setting the VectorT* ISA is required for other scenarios, or if incorporating similar logic to `EEJitManager::SetCpuInfo()` into `Compiler::compCompile()` is required. Adds new JIT debugging helpers `dIsa()` and `dIsaFlags()` to dump out string representations of `CORINFO_InstructionSet` and `CORINFO_InstructionSetFlags`. Fixes dotnet#113869
I put up a PR to hopefully fix this (or at least work around it in this scenario) with #113901 |
In
runtime-coreclr superpmi-replay-apx
pipeline:https://dev.azure.com/dnceng-public/public/_build/results?buildId=992131&view=results
Assertion failed
size == info.compCompHnd->getClassSize(typeHnd)
Subset of examples:
Example superpmi.exe invocation:
@anthonycanino @Ruihan-Yin @DeepakRajendrakumaran @tannergooding
The text was updated successfully, but these errors were encountered: