summaryrefslogtreecommitdiff
path: root/src/gc/gccommon.cpp
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2015-11-18 19:01:50 +0100
committerJan Vorlicek <janvorli@microsoft.com>2015-11-18 19:01:50 +0100
commit8a1abac8f17553f97b2613784db4bde1f5edda96 (patch)
tree5718520afd416f267d976065be079c3daf32067a /src/gc/gccommon.cpp
parent76942bb17c28084b0fdad8b6836fb433d9302789 (diff)
downloadcoreclr-8a1abac8f17553f97b2613784db4bde1f5edda96.tar.gz
coreclr-8a1abac8f17553f97b2613784db4bde1f5edda96.tar.bz2
coreclr-8a1abac8f17553f97b2613784db4bde1f5edda96.zip
Replace most windows style types by c++ types
This change replaces DWORD, LONGLONG, ULONGLONG, SIZE_T, BYTE, LONG32 and few more by standard c++ types. The DWORD still remains present in signatures of Windows APIs used by the GC. There are few issues with those that need to get fixed.
Diffstat (limited to 'src/gc/gccommon.cpp')
-rw-r--r--src/gc/gccommon.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gc/gccommon.cpp b/src/gc/gccommon.cpp
index 6982d537f5..dcfa6318fb 100644
--- a/src/gc/gccommon.cpp
+++ b/src/gc/gccommon.cpp
@@ -16,17 +16,17 @@
#include "gc.h"
#ifdef FEATURE_SVR_GC
-SVAL_IMPL_INIT(DWORD,GCHeap,gcHeapType,GCHeap::GC_HEAP_INVALID);
+SVAL_IMPL_INIT(uint32_t,GCHeap,gcHeapType,GCHeap::GC_HEAP_INVALID);
#endif // FEATURE_SVR_GC
GPTR_IMPL(GCHeap,g_pGCHeap);
/* global versions of the card table and brick table */
-GPTR_IMPL(DWORD,g_card_table);
+GPTR_IMPL(uint32_t,g_card_table);
/* absolute bounds of the GC memory */
-GPTR_IMPL_INIT(BYTE,g_lowest_address,0);
-GPTR_IMPL_INIT(BYTE,g_highest_address,0);
+GPTR_IMPL_INIT(uint8_t,g_lowest_address,0);
+GPTR_IMPL_INIT(uint8_t,g_highest_address,0);
#ifdef GC_CONFIG_DRIVEN
GARY_IMPL(size_t, gc_global_mechanisms, MAX_GLOBAL_GC_MECHANISMS_COUNT);
@@ -34,13 +34,13 @@ GARY_IMPL(size_t, gc_global_mechanisms, MAX_GLOBAL_GC_MECHANISMS_COUNT);
#ifndef DACCESS_COMPILE
-BYTE* g_ephemeral_low = (BYTE*)1;
-BYTE* g_ephemeral_high = (BYTE*)~0;
+uint8_t* g_ephemeral_low = (uint8_t*)1;
+uint8_t* g_ephemeral_high = (uint8_t*)~0;
#ifdef WRITE_BARRIER_CHECK
-BYTE* g_GCShadow;
-BYTE* g_GCShadowEnd;
-BYTE* g_shadow_lowest_address = NULL;
+uint8_t* g_GCShadow;
+uint8_t* g_GCShadowEnd;
+uint8_t* g_shadow_lowest_address = NULL;
#endif
VOLATILE(LONG) m_GCLock = -1;
@@ -61,8 +61,8 @@ LONG g_bLowMemoryFromHost = 0;
// called by the write barrier to update the shadow heap
void updateGCShadow(Object** ptr, Object* val)
{
- Object** shadow = (Object**) &g_GCShadow[((BYTE*) ptr - g_lowest_address)];
- if ((BYTE*) shadow < g_GCShadowEnd)
+ Object** shadow = (Object**) &g_GCShadow[((uint8_t*) ptr - g_lowest_address)];
+ if ((uint8_t*) shadow < g_GCShadowEnd)
{
*shadow = val;
@@ -80,8 +80,8 @@ void updateGCShadow(Object** ptr, Object* val)
struct changed_seg
{
- BYTE * start;
- BYTE * end;
+ uint8_t * start;
+ uint8_t * end;
size_t gc_index;
bgc_state bgc;
changed_seg_state changed;
@@ -93,8 +93,8 @@ const int max_saved_changed_segs = 128;
changed_seg saved_changed_segs[max_saved_changed_segs];
int saved_changed_segs_count = 0;
-void record_changed_seg (BYTE* start, BYTE* end,
- size_t current_gc_index,
+void record_changed_seg (uint8_t* start, uint8_t* end,
+ size_t current_gc_index,
bgc_state current_bgc_state,
changed_seg_state changed_state)
{