Skip to content

Commit

Permalink
Resolve review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair committed Mar 3, 2020
1 parent d443ad8 commit d9e744d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/runtime-core/src/trampoline_x64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ struct TrampBuffer {
/// The allocation state of a `TrampBuffer`.
struct AllocState {
/// Records all allocated blocks in `buffer`.
///
/// Maps the start address of each block to its end address.
blocks: BTreeMap<usize, usize>,
}

Expand Down Expand Up @@ -103,8 +105,6 @@ impl TrampBuffer {
if self.buffer.len() - assumed_start < buf.len() {
// No more free space. Cannot allocate.
return None;
} else {
// Extend towards the end.
}
}

Expand Down

0 comments on commit d9e744d

Please sign in to comment.