summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGaurav Khanna <gkhanna@microsoft.com>2015-02-02 14:26:32 -0800
committerGaurav Khanna <gkhanna@microsoft.com>2015-02-02 14:26:32 -0800
commit0d6c51c1e25f35fca2c39b21ad78eba348b77fcc (patch)
tree27d7effd19035a325b4010fb0b66b3fb8fed0b86 /src
parent70b32b0853688a1544233fa9cea8a75fb2849434 (diff)
parent6349f89a349a302754f506d9af3ed738a37c67c7 (diff)
downloadcoreclr-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.cpp3
-rw-r--r--src/gc/sample/gcenv.cpp10
-rw-r--r--src/gc/sample/gcenv.h7
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,