-
Couldn't load subscription status.
- Fork 5.2k
Fix compile error in coreclr/vm/methodtable.cpp GetMethodDataHelper #119447
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
Conversation
|
Tagging subscribers to this area: @mangod9 |
Hm... while the change in this PR let's it build on my platform, the automated builds are failing on linux/arm and I'm not sure why. Here's the error: And I fixed that too, but now the tests fail. I guess I need help with how to correctly fix the error I was getting. Thanks. |
|
Could the compiler version be an issue here? The SunOS port has run into other issues with illumos cross setup. (Sorry, stale info last time.) Corrected: 13.3.0 |
$runtime/src/coreclr/vm/methodtable.cpp: In static member function 'static MethodTable::MethodData* MethodTable::GetMethodDataHelper(MethodTable*, MethodTable*, MethodDataComputeOptions)':
$runtime/src/coreclr/vm/methodtable.cpp:7130:52: error: 'static void MethodTable::MethodDataInterface::operator delete(void*)' called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
7130 | pData = new MethodDataInterface(pMTDecl);
| ^
$runtime/src/coreclr/vm/methodtable.cpp:7130:52: note: returned from 'void* operator new(std::size_t)'
7130 | pData = new MethodDataInterface(pMTDecl);
| ^
|
Trying again, this time just adding a custom "new" to match the custom "delete" for class MethodData. |
I get this compile error when building for SunOS (#117023)
It looks like maybe this was missed when #119112 was fixed?