diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-12-13 19:46:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-13 19:46:50 -0800 |
commit | bc5a76d93f21392acbdfb8ec820fa287b31f09e4 (patch) | |
tree | 4c8521fa7bd5024b531ec43485d7f2a8738cb338 /src/gc/env/gcenv.base.h | |
parent | b3dc9a728ac9ee10ea7df713c8002678120c2e4d (diff) | |
download | coreclr-bc5a76d93f21392acbdfb8ec820fa287b31f09e4.tar.gz coreclr-bc5a76d93f21392acbdfb8ec820fa287b31f09e4.tar.bz2 coreclr-bc5a76d93f21392acbdfb8ec820fa287b31f09e4.zip |
Revert " Revert "[Local GC] Move knowledge of overlapped I/O objects to the EE through four callbacks (#14982)""
Diffstat (limited to 'src/gc/env/gcenv.base.h')
-rw-r--r-- | src/gc/env/gcenv.base.h | 5 |
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; |