Skip to content

Commit

Permalink
Remove remaining __stdcall calling convention from IRecyclerVisitedOb…
Browse files Browse the repository at this point in the history
…ject implementations
  • Loading branch information
Bo Cupp committed Oct 13, 2017
1 parent 6e782df commit 612cd34
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bin/GCStress/RecyclerTestObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,20 +364,20 @@ class RecyclerVisitedObject : public RecyclerTestObject
return true;
}

virtual void __stdcall Trace(IRecyclerHeapMarkingContext* markContext) override
virtual void Trace(IRecyclerHeapMarkingContext* markContext) override
{
VerifyCondition(type == AllocationType::TraceAndFinalized || type == AllocationType::TraceOnly);
// Note that the pointers in the references arrary are technically tagged. However, this is ok
// as the Mark that we're performing is an interior mark, which gets us to the right object(s).
markContext->MarkObjects(reinterpret_cast<void**>(&references[0]), count, this);
}

virtual void __stdcall Finalize(bool isShutdown) override
virtual void Finalize(bool isShutdown) override
{
// Only types that request finalization should have Finalize called
VerifyCondition(IsFinalizable());
}
virtual void __stdcall Dispose(bool isShutdown) override
virtual void Dispose(bool isShutdown) override
{
// Only types that request finalization should have Finalize called
VerifyCondition(IsFinalizable());
Expand Down
2 changes: 1 addition & 1 deletion lib/Common/Core/RecyclerHeapMarkingContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

interface IRecyclerHeapMarkingContext
{
STDMETHOD_(void, MarkObjects)(void** objects, size_t count, void* parent) = 0;
virtual void MarkObjects(void** objects, size_t count, void* parent) = 0;
};

2 changes: 1 addition & 1 deletion lib/Common/Memory/MarkContextWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MarkContextWrapper : public IRecyclerHeapMarkingContext
public:
MarkContextWrapper(MarkContext* context) : markContext(context) {}

void __stdcall MarkObjects(void** objects, size_t count, void* parent) override
void MarkObjects(void** objects, size_t count, void* parent) override
{
for (size_t i = 0; i < count; i++)
{
Expand Down

0 comments on commit 612cd34

Please sign in to comment.