-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Labels
A-allocatorArea: AllocatorArea: AllocatorC-bugCategory: BugCategory: BugF-good-first-issueCall For Participation: Suitable issues for first-time contributorsCall For Participation: Suitable issues for first-time contributors
Description
We have the offset type as isize:
mmtk-core/src/util/alloc/allocator.rs
Line 157 in f828488
| fn alloc(&mut self, size: usize, align: usize, offset: isize) -> Address; |
However, in here, we specifically require offset to be positive:
mmtk-core/src/util/alloc/allocator.rs
Line 48 in f828488
| debug_assert!(offset >= 0); |
We should change the type of offset to usize instead.
Metadata
Metadata
Assignees
Labels
A-allocatorArea: AllocatorArea: AllocatorC-bugCategory: BugCategory: BugF-good-first-issueCall For Participation: Suitable issues for first-time contributorsCall For Participation: Suitable issues for first-time contributors