File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -279,13 +279,14 @@ void jl_gc_free_page(void *p)
279
279
// ensure so we don't release more memory than intended
280
280
size_t n_pages = jl_page_size / GC_PAGE_SZ ; // exact division
281
281
decommit_size = jl_page_size ;
282
- p = (void * )((uintptr_t )p & ~(jl_page_size - 1 )); // round down to the nearest physical page
282
+ void * otherp = (void * )((uintptr_t )p & ~(jl_page_size - 1 )); // round down to the nearest physical page
283
+ p = otherp ;
283
284
while (n_pages -- ) {
284
- struct jl_gc_metadata_ext info = page_metadata_ext (p );
285
+ struct jl_gc_metadata_ext info = page_metadata_ext (otherp );
285
286
msk = (uint32_t )(1 << info .pagetable0_i );
286
287
if (info .pagetable0 -> allocmap [info .pagetable0_i32 ] & msk )
287
288
goto no_decommit ;
288
- p = (void * )((char * )p + GC_PAGE_SZ );
289
+ otherp = (void * )((char * )otherp + GC_PAGE_SZ );
289
290
}
290
291
}
291
292
#ifdef _OS_WINDOWS_
You can’t perform that action at this time.
0 commit comments