Skip to content

Commit

Permalink
Updates per review
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Dec 10, 2024
1 parent 9ec159d commit 23cedec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions task/control-plane-agent/src/dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ impl DumpState {
pub(crate) fn get_task_dump_count(&mut self) -> Result<u32, SpError> {
let mut count = 0;
for index in 0.. {
// XXX accidentally quadratic!
let data = self
.agent
.read_dump(index, 0)
Expand Down Expand Up @@ -92,7 +91,6 @@ impl DumpState {
let mut data = [0u8; 256];
let mut header = humpty::DumpAreaHeader::new_zeroed();
for index in 0.. {
// XXX accidentally quadratic!
data = self
.agent
.read_dump(index, 0)
Expand Down Expand Up @@ -254,9 +252,7 @@ impl DumpState {
)
.map_err(|_e| SpError::Dump(DumpError::ReadFailed))?;
pos.offset += ds.compressed_length as u32;
while pos.offset & 3 != 0 {
// pad to the nearest u32
// XXX why is `humpty::DUMP_SEGMENT_MASK` private?
while pos.offset as usize & humpty::DUMP_SEGMENT_MASK != 0 {
pos.offset += 1;
}

Expand Down

0 comments on commit 23cedec

Please sign in to comment.