diff options
author | Peter Sollich <petersol@microsoft.com> | 2022-08-31 10:49:07 +0300 |
---|---|---|
committer | github-actions <github-actions@github.com> | 2022-09-01 00:26:09 +0300 |
commit | 60fd9da8b21bb114d9a677caf8089120d95a1c72 (patch) | |
tree | 1f44ebc6938a1235245f54ddf8bfdce5d5766706 | |
parent | 123eb41206a8c0890e69aa2c45e4bcee5e8573c6 (diff) |
Overlooked the fact that there is yet another declaration of CObjectHeader::Validate with just one parameter that is used in Native AOT and the standalone GC.backport/pr-74810-to-release/7.0
Fix is simply to declare, but ignore the extra parameters.
-rw-r--r-- | src/coreclr/gc/gc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/coreclr/gc/gc.cpp b/src/coreclr/gc/gc.cpp index e5f11029471..fa0835758fb 100644 --- a/src/coreclr/gc/gc.cpp +++ b/src/coreclr/gc/gc.cpp @@ -4473,8 +4473,12 @@ public: return ((ArrayBase *)this)->GetNumComponents(); } - void Validate(BOOL bDeep=TRUE) + void Validate(BOOL bDeep=TRUE, BOOL bVerifyNextHeader = FALSE, BOOL bVerifySyncBlock = FALSE) { + // declaration of extra parameters just so the call site would need no #ifdefs + UNREFERENCED_PARAMETER(bVerifyNextHeader); + UNREFERENCED_PARAMETER(bVerifySyncBlock); + MethodTable * pMT = GetMethodTable(); _ASSERTE(pMT->SanityCheck()); |