diff options
author | Aditya Mandaleeka <adityam@microsoft.com> | 2017-04-05 19:31:32 -0700 |
---|---|---|
committer | Aditya Mandaleeka <adityam@microsoft.com> | 2017-04-07 15:01:59 -0700 |
commit | 7721f89f517f09f90d46a1078f0d26caf3b310c0 (patch) | |
tree | b3ef15e44a07ec27df233375f3437ec247995ca9 /src/gc/sample | |
parent | 273e63414deccefd1ad048062e4d1ebfe5e5eb50 (diff) | |
download | coreclr-7721f89f517f09f90d46a1078f0d26caf3b310c0.tar.gz coreclr-7721f89f517f09f90d46a1078f0d26caf3b310c0.tar.bz2 coreclr-7721f89f517f09f90d46a1078f0d26caf3b310c0.zip |
Add creation of special handle types to IGCHandleTable.
Diffstat (limited to 'src/gc/sample')
-rw-r--r-- | src/gc/sample/GCSample.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gc/sample/GCSample.cpp b/src/gc/sample/GCSample.cpp index 45915c0d04..ed67e892ff 100644 --- a/src/gc/sample/GCSample.cpp +++ b/src/gc/sample/GCSample.cpp @@ -201,7 +201,7 @@ int __cdecl main(int argc, char* argv[]) return -1; // Create strong handle and store the object into it - OBJECTHANDLE oh = CreateGlobalHandle(pObj); + OBJECTHANDLE oh = HndCreateHandle(g_HandleTableMap.pBuckets[0]->pTable[GetCurrentThreadHomeHeapNumber()], HNDTYPE_DEFAULT, pObj); if (oh == NULL) return -1; @@ -224,7 +224,7 @@ int __cdecl main(int argc, char* argv[]) } // Create weak handle that points to our object - OBJECTHANDLE ohWeak = CreateGlobalWeakHandle(HndFetchHandle(oh)); + OBJECTHANDLE ohWeak = HndCreateHandle(g_HandleTableMap.pBuckets[0]->pTable[GetCurrentThreadHomeHeapNumber()], HNDTYPE_WEAK_DEFAULT, HndFetchHandle(oh)); if (ohWeak == NULL) return -1; |