We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7a8eaa9 + 36e0fd3 commit 457c6f5Copy full SHA for 457c6f5
include/swift/Reflection/ReflectionContext.h
@@ -193,6 +193,11 @@ class ReflectionContext
193
}
194
RangeStart = std::min(RangeStart, (uint64_t)S->addr + Slide);
195
RangeEnd = std::max(RangeEnd, (uint64_t)(S->addr + S->size + Slide));
196
+ // Keep the range rounded to 8 byte alignment on both ends so we don't
197
+ // introduce misaligned pointers mapping between local and remote
198
+ // address space.
199
+ RangeStart = RangeStart & ~7;
200
+ RangeEnd = RangeEnd + 7 & ~7;
201
202
203
if (RangeStart == UINT64_MAX && RangeEnd == UINT64_MAX)
0 commit comments