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.
1 parent 3832b0d commit 8dded8fCopy full SHA for 8dded8f
src/util/heap/space_descriptor.rs
@@ -39,14 +39,12 @@ impl SpaceDescriptor {
39
} else {
40
start >> vm_layout().space_shift_64()
41
};
42
- return SpaceDescriptor(
43
- space_index << INDEX_SHIFT
44
- | (if top {
45
- TYPE_CONTIGUOUS_HI
46
- } else {
47
- TYPE_CONTIGUOUS
48
- }),
49
- );
+ let flags = if top {
+ TYPE_CONTIGUOUS_HI
+ } else {
+ TYPE_CONTIGUOUS
+ };
+ return SpaceDescriptor((space_index << INDEX_SHIFT) | flags);
50
}
51
let chunks = (end - start) >> vm_layout::LOG_BYTES_IN_CHUNK;
52
debug_assert!(!start.is_zero() && chunks > 0 && chunks < (1 << SIZE_BITS));
0 commit comments