Skip to content

Commit

Permalink
Reduced the amount of logging so its easier to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
john-sharratt committed Jun 1, 2024
1 parent 4937d1d commit 75b7480
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions lib/wasix/src/os/task/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,16 +464,20 @@ impl WasiThread {
);
}
}
let mut total_forgotten = 0usize;
while let Some(disowned) = disown {
for hash in disowned.snapshots.keys() {
tracing::trace!(
"wasi[{}]::stack has been forgotten (hash={})",
self.pid(),
hash
);
for _hash in disowned.snapshots.keys() {
total_forgotten += 1;
}
disown = disowned.next;
}
if total_forgotten > 0 {
tracing::trace!(
"wasi[{}]::stack has been forgotten (cnt={})",
self.pid(),
total_forgotten
);
}
} else {
memory_stack = &memory_stack[pstack.memory_stack.len()..];
memory_stack_corrected =
Expand Down
2 changes: 1 addition & 1 deletion lib/wasix/src/syscalls/wasi/poll_oneoff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl EventResult {
/// Output:
/// - `u32 nevents`
/// The number of events seen
#[instrument(level = "trace", skip_all, fields(timeout_ms = field::Empty, fd_guards = field::Empty, seen = field::Empty), ret)]
//#[instrument(level = "trace", skip_all, fields(timeout_ms = field::Empty, fd_guards = field::Empty, seen = field::Empty), ret)]
pub fn poll_oneoff<M: MemorySize + 'static>(
mut ctx: FunctionEnvMut<'_, WasiEnv>,
in_: WasmPtr<Subscription, M>,
Expand Down

0 comments on commit 75b7480

Please sign in to comment.