summaryrefslogtreecommitdiff
path: root/src/gc/env/gcenv.base.h
diff options
context:
space:
mode:
authorSean Gillespie <segilles@microsoft.com>2017-11-27 15:41:09 -0800
committerGitHub <noreply@github.com>2017-11-27 15:41:09 -0800
commitc755e3b7f5d597c8d192675dbaaa337268d93f1c (patch)
treec54615b358f473644924c83b2560df56346ff621 /src/gc/env/gcenv.base.h
parent4e625b8cecd63dd6f0acaf82e28731f28ab9901d (diff)
downloadcoreclr-c755e3b7f5d597c8d192675dbaaa337268d93f1c.tar.gz
coreclr-c755e3b7f5d597c8d192675dbaaa337268d93f1c.tar.bz2
coreclr-c755e3b7f5d597c8d192675dbaaa337268d93f1c.zip
[Local GC] Move knowledge of overlapped I/O objects to the EE through four callbacks (#14982)
* [Local GC] Move knowledge of overlapped I/O objects to the EE through four callbacks * Code review feedback: 1. Rename OverlappedData->AsyncPinned in interface methods 2. Remove additional FEATURE_REDHAWK defines around async pin relocation code * Eliminate two GCToEEInterface callbacks by passing the callbacks directly as arguments to a method on IGCHandleStore * Repair clang build * Split pin and async pin handle scans into two separate callbacks * Fix the clang and non-Windows builds
Diffstat (limited to 'src/gc/env/gcenv.base.h')
-rw-r--r--src/gc/env/gcenv.base.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gc/env/gcenv.base.h b/src/gc/env/gcenv.base.h
index 734b46fd3d..e1d40d6003 100644
--- a/src/gc/env/gcenv.base.h
+++ b/src/gc/env/gcenv.base.h
@@ -320,6 +320,11 @@ inline void* ALIGN_DOWN(void* ptr, size_t alignment)
return reinterpret_cast<void*>(ALIGN_DOWN(as_size_t, alignment));
}
+inline int GetRandomInt(int max)
+{
+ return rand() % max;
+}
+
typedef struct _PROCESSOR_NUMBER {
uint16_t Group;
uint8_t Number;