We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As part of #54580, I've discovered an alloc/decalloc mismatch in CoreCLR.
We sometimes allocate space for MethodTable::MethodData objects with new[] instead of new, but always delete with delete.
MethodTable::MethodData
new[]
new
delete
Allocation:
runtime/src/coreclr/vm/methodtable.cpp
Lines 8544 to 8563 in 0416c34
Dealloc:
Lines 7901 to 7912 in 0416c34
The text was updated successfully, but these errors were encountered:
Use specialized new operators to correctly allocate space with the no…
2d51acd
…n-array new allocator for MethodDataObject and MethodDataInterfaceImpl. Fixes dotnet#54637
Successfully merging a pull request may close this issue.
As part of #54580, I've discovered an alloc/decalloc mismatch in CoreCLR.
We sometimes allocate space for
MethodTable::MethodData
objects withnew[]
instead ofnew
, but always delete withdelete
.Allocation:
runtime/src/coreclr/vm/methodtable.cpp
Lines 8544 to 8563 in 0416c34
Dealloc:
runtime/src/coreclr/vm/methodtable.cpp
Lines 7901 to 7912 in 0416c34
The text was updated successfully, but these errors were encountered: