diff options
author | Sean Gillespie <sean@swgillespie.me> | 2017-03-28 09:59:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-28 09:59:04 -0700 |
commit | 7e4afb4fbf900b789f53ccb816c6ddba7807de68 (patch) | |
tree | abd92570df8d5ac52a5725f8f7bf1f220cb0c72f /src/vm/gcheaputilities.h | |
parent | e23bfb25d4fde28d2f1648ae381f5e44538b1827 (diff) | |
download | coreclr-7e4afb4fbf900b789f53ccb816c6ddba7807de68.tar.gz coreclr-7e4afb4fbf900b789f53ccb816c6ddba7807de68.tar.bz2 coreclr-7e4afb4fbf900b789f53ccb816c6ddba7807de68.zip |
[Local GC] Use standard C++ types (bool) and consistent types (void*) on the interface (#10463)
* [Local GC] BOOL -> bool on IGCHeap
* [Local GC] size_t -> void* on IGCHeap
* [Local GC] Silence warnings by being explicit about BOOl -> bool conversions
* Address code review feedback: FinalizeAppDomain BOOL -> bool
* Fix warnings
* Address code review feedback:
1) Fix a missed default parameter (FALSE) on a parameter of type bool,
2) Fix invocations of the diagnostic callbacks to use boolean literals
instead of TRUE and FALSE,
3) Fix various invocations of GC interface methods in the VM to use
boolean literals instead of TRUE and FALSE
* Address code review feedback: fix inconsistency
Diffstat (limited to 'src/vm/gcheaputilities.h')
-rw-r--r-- | src/vm/gcheaputilities.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vm/gcheaputilities.h b/src/vm/gcheaputilities.h index d5ce46c60d..0680763e76 100644 --- a/src/vm/gcheaputilities.h +++ b/src/vm/gcheaputilities.h @@ -81,7 +81,7 @@ public: // Returns true if a the heap is initialized and a garbage collection // is in progress, false otherwise. - inline static BOOL IsGCInProgress(BOOL bConsiderGCStart = FALSE) + inline static bool IsGCInProgress(bool bConsiderGCStart = false) { WRAPPER_NO_CONTRACT; @@ -90,7 +90,7 @@ public: // Returns true if we should be competing marking for statics. This // influences the behavior of `GCToEEInterface::GcScanRoots`. - inline static BOOL MarkShouldCompeteForStatics() + inline static bool MarkShouldCompeteForStatics() { WRAPPER_NO_CONTRACT; @@ -98,7 +98,7 @@ public: } // Waits until a GC is complete, if the heap has been initialized. - inline static void WaitForGCCompletion(BOOL bConsiderGCStart = FALSE) + inline static void WaitForGCCompletion(bool bConsiderGCStart = false) { WRAPPER_NO_CONTRACT; |