@@ -22,13 +22,6 @@ inline void HndAssignHandle(OBJECTHANDLE handle, OBJECTREF objref)
22
22
// sanity
23
23
_ASSERTE (handle);
24
24
25
- #ifdef _DEBUG_IMPL
26
- // handle should not be in unloaded domain
27
- ValidateAppDomainForHandle (handle);
28
-
29
- // Make sure the objref is valid before it is assigned to a handle
30
- ValidateAssignObjrefForHandle (objref, HndGetHandleTableADIndex (HndGetHandleTable (handle)));
31
- #endif
32
25
// unwrap the objectref we were given
33
26
_UNCHECKED_OBJECTREF value = OBJECTREF_TO_UNCHECKED_OBJECTREF (objref);
34
27
@@ -49,13 +42,6 @@ inline void* HndInterlockedCompareExchangeHandle(OBJECTHANDLE handle, OBJECTREF
49
42
// sanity
50
43
_ASSERTE (handle);
51
44
52
- #ifdef _DEBUG_IMPL
53
- // handle should not be in unloaded domain
54
- ValidateAppDomainForHandle (handle);
55
-
56
- // Make sure the objref is valid before it is assigned to a handle
57
- ValidateAssignObjrefForHandle (objref, HndGetHandleTableADIndex (HndGetHandleTable (handle)));
58
- #endif
59
45
// unwrap the objectref we were given
60
46
_UNCHECKED_OBJECTREF value = OBJECTREF_TO_UNCHECKED_OBJECTREF (objref);
61
47
_UNCHECKED_OBJECTREF oldValue = OBJECTREF_TO_UNCHECKED_OBJECTREF (oldObjref);
@@ -88,13 +74,6 @@ inline BOOL HndFirstAssignHandle(OBJECTHANDLE handle, OBJECTREF objref)
88
74
// sanity
89
75
_ASSERTE (handle);
90
76
91
- #ifdef _DEBUG_IMPL
92
- // handle should not be in unloaded domain
93
- ValidateAppDomainForHandle (handle);
94
-
95
- // Make sure the objref is valid before it is assigned to a handle
96
- ValidateAssignObjrefForHandle (objref, HndGetHandleTableADIndex (HndGetHandleTable (handle)));
97
- #endif
98
77
// unwrap the objectref we were given
99
78
_UNCHECKED_OBJECTREF value = OBJECTREF_TO_UNCHECKED_OBJECTREF (objref);
100
79
_UNCHECKED_OBJECTREF null = NULL ;
0 commit comments