File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
crates/vm/src/arch/execution_mode/metered Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -271,12 +271,15 @@ impl<const PAGE_BITS: usize> MemoryCtx<PAGE_BITS> {
271271 // SAFETY: address_space is from 0 to len(), guaranteed to be in bounds
272272 let x = unsafe { * self . addr_space_access_count . get_unchecked ( address_space) } ;
273273 if x > 0 {
274- // After finalize, we'll need to read it in chunk-sized units for the merkle chip
274+ // Initial **and** final handling of touched pages requires send (resp. receive) in
275+ // chunk-sized units for the merkle chip
276+ // Corresponds to `handle_uninitialized_memory` and `handle_touched_blocks` in
277+ // online.rs
275278 self . update_adapter_heights_batch (
276279 trace_heights,
277280 address_space as u32 ,
278281 self . chunk_bits ,
279- ( x << PAGE_BITS ) as u32 ,
282+ ( x << ( PAGE_BITS + 1 ) ) as u32 ,
280283 ) ;
281284 // SAFETY: address_space is from 0 to len(), guaranteed to be in bounds
282285 unsafe {
You can’t perform that action at this time.
0 commit comments