summaryrefslogtreecommitdiff
path: root/src/vm/runtimehandles.cpp
diff options
context:
space:
mode:
authorJohn Salem <josalem@microsoft.com>2018-11-28 22:34:48 -0800
committerJan Kotas <jkotas@microsoft.com>2018-11-28 22:34:48 -0800
commitb53d00dcc24149ee84ad8cfa9c23b253d8cf65e0 (patch)
tree4707e0b7505007fa967aacc2ceaf5e1e28236296 /src/vm/runtimehandles.cpp
parenteffe7cafdb828fc90ec7bbd09ae8b3c259a76eb0 (diff)
downloadcoreclr-b53d00dcc24149ee84ad8cfa9c23b253d8cf65e0.tar.gz
coreclr-b53d00dcc24149ee84ad8cfa9c23b253d8cf65e0.tar.bz2
coreclr-b53d00dcc24149ee84ad8cfa9c23b253d8cf65e0.zip
Add IsCollectible property to Memberinfo and MethodInfo (#21155)
Diffstat (limited to 'src/vm/runtimehandles.cpp')
-rw-r--r--src/vm/runtimehandles.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/vm/runtimehandles.cpp b/src/vm/runtimehandles.cpp
index 722603cb96..8f2d8effad 100644
--- a/src/vm/runtimehandles.cpp
+++ b/src/vm/runtimehandles.cpp
@@ -1732,6 +1732,21 @@ void * QCALLTYPE RuntimeMethodHandle::GetFunctionPointer(MethodDesc * pMethod)
return funcPtr;
}
+
+BOOL QCALLTYPE RuntimeMethodHandle::GetIsCollectible(MethodDesc * pMethod)
+{
+ QCALL_CONTRACT;
+
+ BOOL isCollectible = FALSE;
+
+ BEGIN_QCALL;
+
+ isCollectible = pMethod->GetLoaderAllocator()->IsCollectible();
+
+ END_QCALL;
+
+ return isCollectible;
+}
FCIMPL1(LPCUTF8, RuntimeMethodHandle::GetUtf8Name, MethodDesc *pMethod) {
CONTRACTL {