diff options
author | Gaurav Khanna <gkhanna@microsoft.com> | 2015-02-02 14:26:32 -0800 |
---|---|---|
committer | Gaurav Khanna <gkhanna@microsoft.com> | 2015-02-02 14:26:32 -0800 |
commit | 0d6c51c1e25f35fca2c39b21ad78eba348b77fcc (patch) | |
tree | 27d7effd19035a325b4010fb0b66b3fb8fed0b86 /src | |
parent | 70b32b0853688a1544233fa9cea8a75fb2849434 (diff) | |
parent | 6349f89a349a302754f506d9af3ed738a37c67c7 (diff) | |
download | coreclr-0d6c51c1e25f35fca2c39b21ad78eba348b77fcc.tar.gz coreclr-0d6c51c1e25f35fca2c39b21ad78eba348b77fcc.tar.bz2 coreclr-0d6c51c1e25f35fca2c39b21ad78eba348b77fcc.zip |
Merge pull request #5 from jkotas/master
Fix build breaks in GC sample project
Diffstat (limited to 'src')
-rw-r--r-- | src/gc/gc.cpp | 3 | ||||
-rw-r--r-- | src/gc/sample/gcenv.cpp | 10 | ||||
-rw-r--r-- | src/gc/sample/gcenv.h | 7 |
3 files changed, 17 insertions, 3 deletions
diff --git a/src/gc/gc.cpp b/src/gc/gc.cpp index e0cd018cfe..9905e05c5c 100644 --- a/src/gc/gc.cpp +++ b/src/gc/gc.cpp @@ -3894,9 +3894,6 @@ BOOL reserve_initial_memory (size_t normal_size, size_t large_size, size_t num_h g_lowest_address = MAX_PTR; g_highest_address = 0; - // Try to get the data all at once - ptrdiff_t allatonce_delta; - if (((size_t)MAX_PTR - large_size) < normal_size) { // we are already overflowing with just one heap. diff --git a/src/gc/sample/gcenv.cpp b/src/gc/sample/gcenv.cpp index b2c7230fd1..1d90f9361d 100644 --- a/src/gc/sample/gcenv.cpp +++ b/src/gc/sample/gcenv.cpp @@ -205,6 +205,16 @@ void * ClrVirtualAlloc( return VirtualAlloc(lpAddress, dwSize, flAllocationType, flProtect); } +void * ClrVirtualAllocAligned( + void * lpAddress, + size_t dwSize, + uint32_t flAllocationType, + uint32_t flProtect, + size_t dwAlignment) +{ + return VirtualAlloc(lpAddress, dwSize, flAllocationType, flProtect); +} + bool ClrVirtualFree( void * lpAddress, size_t dwSize, diff --git a/src/gc/sample/gcenv.h b/src/gc/sample/gcenv.h index c3c29e5319..456e416266 100644 --- a/src/gc/sample/gcenv.h +++ b/src/gc/sample/gcenv.h @@ -692,6 +692,13 @@ void * ClrVirtualAlloc( uint32_t flAllocationType, uint32_t flProtect); +void * ClrVirtualAllocAligned( + void * lpAddress, + size_t dwSize, + uint32_t flAllocationType, + uint32_t flProtect, + size_t dwAlignment); + bool ClrVirtualFree( void * lpAddress, size_t dwSize, |