summaryrefslogtreecommitdiff
path: root/src/gc
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2015-11-19 23:16:59 +0100
committerJan Vorlicek <janvorli@microsoft.com>2015-11-19 23:16:59 +0100
commite615f0a93a3063da2166029faaa8f5da9fe1308b (patch)
treefadb54c11ee5ec0b27700bf19603f76ac945b21e /src/gc
parentb0b0cf41dd03bcb2c46138491265a96922c2177d (diff)
downloadcoreclr-e615f0a93a3063da2166029faaa8f5da9fe1308b.tar.gz
coreclr-e615f0a93a3063da2166029faaa8f5da9fe1308b.tar.bz2
coreclr-e615f0a93a3063da2166029faaa8f5da9fe1308b.zip
Some formatting cleanup
Code formatting (alignment) needs to be fixed at few places.
Diffstat (limited to 'src/gc')
-rw-r--r--src/gc/gccommon.cpp4
-rw-r--r--src/gc/handletablecore.cpp8
-rw-r--r--src/gc/handletablepriv.h4
-rw-r--r--src/gc/handletablescan.cpp14
-rw-r--r--src/gc/objecthandle.cpp4
-rw-r--r--src/gc/objecthandle.h4
6 files changed, 19 insertions, 19 deletions
diff --git a/src/gc/gccommon.cpp b/src/gc/gccommon.cpp
index c414eedfb0..7db2576626 100644
--- a/src/gc/gccommon.cpp
+++ b/src/gc/gccommon.cpp
@@ -80,8 +80,8 @@ void updateGCShadow(Object** ptr, Object* val)
struct changed_seg
{
- uint8_t * start;
- uint8_t * end;
+ uint8_t * start;
+ uint8_t * end;
size_t gc_index;
bgc_state bgc;
changed_seg_state changed;
diff --git a/src/gc/handletablecore.cpp b/src/gc/handletablecore.cpp
index b6219c2d55..6384531bdb 100644
--- a/src/gc/handletablecore.cpp
+++ b/src/gc/handletablecore.cpp
@@ -1679,7 +1679,7 @@ void SegmentResortChains(TableSegment *pSegment)
BOOL fContiguousWithFreeList = TRUE;
// preinit the chain data to no blocks
- uint32_t uType;
+ uint32_t uType;
for (uType = 0; uType < HANDLE_MAX_INTERNAL_TYPES; uType++)
rgChainHigh[uType] = rgChainCurr[uType] = BLOCK_INVALID;
@@ -1950,7 +1950,7 @@ uint32_t BlockAllocHandlesInMask(TableSegment *pSegment, uint32_t uBlock,
*
*/
uint32_t BlockAllocHandlesInitial(TableSegment *pSegment, uint32_t uType, uint32_t uBlock,
- OBJECTHANDLE *pHandleBase, uint32_t uCount)
+ OBJECTHANDLE *pHandleBase, uint32_t uCount)
{
LIMITED_METHOD_CONTRACT;
@@ -2384,7 +2384,7 @@ uint32_t TableAllocBulkHandles(HandleTable *pTable, uint32_t uType, OBJECTHANDLE
*
*/
uint32_t BlockFreeHandlesInMask(TableSegment *pSegment, uint32_t uBlock, uint32_t uMask, OBJECTHANDLE *pHandleBase, uint32_t uCount,
- uintptr_t *pUserData, uint32_t *puActualFreed, BOOL *pfAllMasksFree)
+ uintptr_t *pUserData, uint32_t *puActualFreed, BOOL *pfAllMasksFree)
{
LIMITED_METHOD_CONTRACT;
@@ -2486,7 +2486,7 @@ uint32_t BlockFreeHandlesInMask(TableSegment *pSegment, uint32_t uBlock, uint32_
*
*/
uint32_t BlockFreeHandles(TableSegment *pSegment, uint32_t uBlock, OBJECTHANDLE *pHandleBase, uint32_t uCount,
- uint32_t *puActualFreed, BOOL *pfScanForFreeBlocks)
+ uint32_t *puActualFreed, BOOL *pfScanForFreeBlocks)
{
WRAPPER_NO_CONTRACT;
diff --git a/src/gc/handletablepriv.h b/src/gc/handletablepriv.h
index 98b0e5c68d..7e3653e8b6 100644
--- a/src/gc/handletablepriv.h
+++ b/src/gc/handletablepriv.h
@@ -365,8 +365,8 @@ struct ScanCallbackInfo
uint32_t uFlags; // HNDGCF_* flags
BOOL fEnumUserData; // whether user data is being enumerated as well
HANDLESCANPROC pfnScan; // per-handle scan callback
- uintptr_t param1; // callback param 1
- uintptr_t param2; // callback param 2
+ uintptr_t param1; // callback param 1
+ uintptr_t param2; // callback param 2
uint32_t dwAgeMask; // generation mask for ephemeral GCs
#ifdef _DEBUG
diff --git a/src/gc/handletablescan.cpp b/src/gc/handletablescan.cpp
index 4df1434399..5f88118d8b 100644
--- a/src/gc/handletablescan.cpp
+++ b/src/gc/handletablescan.cpp
@@ -431,8 +431,8 @@ void CALLBACK ScanConsecutiveHandlesWithoutUserData(PTR_UNCHECKED_OBJECTREF pVal
// get frequently used params into locals
HANDLESCANPROC pfnScan = pInfo->pfnScan;
- uintptr_t param1 = pInfo->param1;
- uintptr_t param2 = pInfo->param2;
+ uintptr_t param1 = pInfo->param1;
+ uintptr_t param2 = pInfo->param2;
// scan for non-zero handles
do
@@ -481,8 +481,8 @@ void CALLBACK ScanConsecutiveHandlesWithUserData(PTR_UNCHECKED_OBJECTREF pValue,
// get frequently used params into locals
HANDLESCANPROC pfnScan = pInfo->pfnScan;
- uintptr_t param1 = pInfo->param1;
- uintptr_t param2 = pInfo->param2;
+ uintptr_t param1 = pInfo->param1;
+ uintptr_t param2 = pInfo->param2;
// scan for non-zero handles
do
@@ -710,7 +710,7 @@ void CALLBACK BlockScanBlocksEphemeral(PTR_TableSegment pSegment, uint32_t uBloc
// set up to update the specified blocks
uint32_t *pdwGen = (uint32_t *)pSegment->rgGeneration + uBlock;
- uint32_t *pdwGenLast = pdwGen + uCount;
+ uint32_t *pdwGenLast = pdwGen + uCount;
// loop over all the blocks, checking for elligible clumps as we go
do
@@ -881,7 +881,7 @@ void CALLBACK BlockResetAgeMapForBlocks(TableSegment *pSegment, uint32_t uBlock,
// set up to update the specified blocks
uint32_t *pdwGen = (uint32_t *)pSegment->rgGeneration + uBlock;
- uint32_t *pdwGenLast = pdwGen + uCount;
+ uint32_t *pdwGenLast = pdwGen + uCount;
// loop over all the blocks, checking for eligible clumps as we go
do
@@ -1049,7 +1049,7 @@ void CALLBACK BlockVerifyAgeMapForBlocks(TableSegment *pSegment, uint32_t uBlock
{
uint32_t uCur = (u + uBlock);
- uint32_t *pdwGen = (uint32_t *)pSegment->rgGeneration + uCur;
+ uint32_t *pdwGen = (uint32_t *)pSegment->rgGeneration + uCur;
uint32_t uType = pSegment->rgBlockType[uCur];
diff --git a/src/gc/objecthandle.cpp b/src/gc/objecthandle.cpp
index dfeab3456d..e16e39b8b0 100644
--- a/src/gc/objecthandle.cpp
+++ b/src/gc/objecthandle.cpp
@@ -44,9 +44,9 @@ DhContext *g_pDependentHandleContexts;
*/
struct VARSCANINFO
{
- uintptr_t lEnableMask; // mask of types to trace
+ uintptr_t lEnableMask; // mask of types to trace
HANDLESCANPROC pfnTrace; // tracing function to use
- uintptr_t lp2; // second parameter
+ uintptr_t lp2; // second parameter
};
diff --git a/src/gc/objecthandle.h b/src/gc/objecthandle.h
index 75bf4457c9..b016f9f4e9 100644
--- a/src/gc/objecthandle.h
+++ b/src/gc/objecthandle.h
@@ -439,9 +439,9 @@ inline void DestroyDependentHandle(OBJECTHANDLE handle)
#ifndef DACCESS_COMPILE
OBJECTHANDLE CreateVariableHandle(HHANDLETABLE hTable, OBJECTREF object, uint32_t type);
-uint32_t GetVariableHandleType(OBJECTHANDLE handle);
+uint32_t GetVariableHandleType(OBJECTHANDLE handle);
void UpdateVariableHandleType(OBJECTHANDLE handle, uint32_t type);
-uint32_t CompareExchangeVariableHandleType(OBJECTHANDLE handle, uint32_t oldType, uint32_t newType);
+uint32_t CompareExchangeVariableHandleType(OBJECTHANDLE handle, uint32_t oldType, uint32_t newType);
inline void DestroyVariableHandle(OBJECTHANDLE handle)
{