summaryrefslogtreecommitdiff
path: root/src/gc
diff options
context:
space:
mode:
authorAditya Mandaleeka <adityam@microsoft.com>2017-04-20 12:42:30 -0700
committerAditya Mandaleeka <adityam@microsoft.com>2017-04-20 12:42:30 -0700
commitb560ecc73d1abaec17064d5318b74b5f2bb70bd4 (patch)
tree7a05f712456bea70aebe931c9225d7c0e0dfcf5a /src/gc
parentfc5385ef9ce5303bc22638ac36e9ba04ed4a9c21 (diff)
downloadcoreclr-b560ecc73d1abaec17064d5318b74b5f2bb70bd4.tar.gz
coreclr-b560ecc73d1abaec17064d5318b74b5f2bb70bd4.tar.bz2
coreclr-b560ecc73d1abaec17064d5318b74b5f2bb70bd4.zip
Rename CompareAndSwap to InterlockedCompareExchange.
Diffstat (limited to 'src/gc')
-rw-r--r--src/gc/gchandletable.cpp2
-rw-r--r--src/gc/gchandletableimpl.h2
-rw-r--r--src/gc/gcinterface.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/gc/gchandletable.cpp b/src/gc/gchandletable.cpp
index 3077133680..75646e848a 100644
--- a/src/gc/gchandletable.cpp
+++ b/src/gc/gchandletable.cpp
@@ -143,7 +143,7 @@ bool GCHandleManager::StoreObjectInHandleIfNull(OBJECTHANDLE handle, Object* obj
return !!::HndFirstAssignHandle(handle, ObjectToOBJECTREF(object));
}
-Object* GCHandleManager::CompareAndSwapObjectInHandle(OBJECTHANDLE handle, Object* object, Object* comparandObject)
+Object* GCHandleManager::InterlockedCompareExchangeObjectInHandle(OBJECTHANDLE handle, Object* object, Object* comparandObject)
{
return (Object*)::HndInterlockedCompareExchangeHandle(handle, ObjectToOBJECTREF(object), ObjectToOBJECTREF(comparandObject));
}
diff --git a/src/gc/gchandletableimpl.h b/src/gc/gchandletableimpl.h
index 2183b9b94b..01c1c130ed 100644
--- a/src/gc/gchandletableimpl.h
+++ b/src/gc/gchandletableimpl.h
@@ -59,7 +59,7 @@ public:
virtual bool StoreObjectInHandleIfNull(OBJECTHANDLE handle, Object* object);
- virtual Object* CompareAndSwapObjectInHandle(OBJECTHANDLE handle, Object* object, Object* comparandObject);
+ virtual Object* InterlockedCompareExchangeObjectInHandle(OBJECTHANDLE handle, Object* object, Object* comparandObject);
};
#endif // GCHANDLETABLE_H_
diff --git a/src/gc/gcinterface.h b/src/gc/gcinterface.h
index 60dfd3f597..552a8caec8 100644
--- a/src/gc/gcinterface.h
+++ b/src/gc/gcinterface.h
@@ -449,7 +449,7 @@ public:
virtual bool StoreObjectInHandleIfNull(OBJECTHANDLE handle, Object* object) = 0;
- virtual Object* CompareAndSwapObjectInHandle(OBJECTHANDLE handle, Object* object, Object* comparandObject) = 0;
+ virtual Object* InterlockedCompareExchangeObjectInHandle(OBJECTHANDLE handle, Object* object, Object* comparandObject) = 0;
};
// IGCHeap is the interface that the VM will use when interacting with the GC.