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 29d2176 commit b135a19Copy full SHA for b135a19
crates/base/src/deno_runtime.rs
@@ -158,15 +158,15 @@ impl MemCheck {
158
let heap_stats = WorkerHeapStatistics::from(&stats);
159
let mut state = self.state.write().unwrap();
160
161
- state.current = heap_stats;
+ if !state.exceeded {
162
+ state.current = heap_stats;
163
- if total_bytes >= limit {
164
- if !state.exceeded {
+ if total_bytes >= limit {
165
state.exceeded = true;
166
- }
167
168
- drop(state);
169
- self.notify.notify_waiters();
+ drop(state);
+ self.notify.notify_waiters();
+ }
170
}
171
172
total_bytes
0 commit comments