summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorAndrew Au <andrewau@microsoft.com>2019-05-31 23:58:38 -0700
committerAndrew Au <cshung@gmail.com>2019-06-03 20:49:27 -0700
commita053e826dcb1ce3f58f7b368638b0ef03cf9f270 (patch)
tree7f60417547e94a150617a9d7b4f669a18503697e /src/tools
parentf49eb0db686c4d647dd9e27b44946c5505bb72f4 (diff)
downloadcoreclr-a053e826dcb1ce3f58f7b368638b0ef03cf9f270.tar.gz
coreclr-a053e826dcb1ce3f58f7b368638b0ef03cf9f270.tar.bz2
coreclr-a053e826dcb1ce3f58f7b368638b0ef03cf9f270.zip
Avoid moving the bitOffset twice when enumerating safepoints
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/r2rdump/Amd64/GcInfo.cs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/tools/r2rdump/Amd64/GcInfo.cs b/src/tools/r2rdump/Amd64/GcInfo.cs
index 0727c98279..3535ef9b74 100644
--- a/src/tools/r2rdump/Amd64/GcInfo.cs
+++ b/src/tools/r2rdump/Amd64/GcInfo.cs
@@ -181,8 +181,6 @@ namespace R2RDump.Amd64
// PARTIALLY_INTERRUPTIBLE_GC_SUPPORTED (this macro is always defined in _gcInfoTypes.h)
SafePointOffsets = EnumerateSafePoints(image, ref bitOffset);
- uint numBitsPerOffset = GcInfoTypes.CeilOfLog2(CodeLength);
- bitOffset += (int)(NumSafePoints * numBitsPerOffset);
InterruptibleRanges = EnumerateInterruptibleRanges(image, _gcInfoTypes.INTERRUPTIBLE_RANGE_DELTA1_ENCBASE, _gcInfoTypes.INTERRUPTIBLE_RANGE_DELTA2_ENCBASE, ref bitOffset);