Skip to content
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

Convert HELPER_METHOD_FRAME in objectnative.cpp to QCall #97641

Merged
merged 17 commits into from
Feb 26, 2024
Merged
Prev Previous commit
Next Next commit
Fix assert touching OBJECTREF in preemptive mode
  • Loading branch information
huoyaoyuan committed Feb 25, 2024
commit e7bbdd41716c9c97b9f7cb35754a27436635c7d8
4 changes: 2 additions & 2 deletions src/coreclr/classlibnative/bcltype/objectnative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ extern "C" void QCALLTYPE ObjectNative_AllocateUninitializedClone(QCall::ObjectH
{
QCALL_CONTRACT;

_ASSERTE(objHandle.Get() != NULL); // Should be handled at managed side

BEGIN_QCALL;

GCX_COOP();

OBJECTREF refClone = objHandle.Get();
_ASSERTE(refClone != NULL); // Should be handled at managed side
MethodTable* pMT = refClone->GetMethodTable();

// assert that String has overloaded the Clone() method
Expand Down