-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of page-unaligned boundaries in soft_set_grungy_pages
(a cherry-pick of commit 6601eec from 'master') Issue #544 (bdwgc). * os_dep.c [SOFT_VDB] (soft_set_grungy_pages): Rename vaddr argument to start; define vaddr and next_fpos_hint local variables; change type of vaddr and next_vaddr from ptr_t to word; initialize vaddr to start rounded down to page granularity; add assertion that start is hblk-aligned; enforce next_vaddr is not greater than limit; enforce h is not smaller than start. * os_dep.c [SOFT_VDB] (GC_soft_read_dirty): Rename vaddr local variable to start. * os_dep.c [SOFT_VDB && !NO_VDB_FOR_STATIC_ROOTS] (GC_soft_read_dirty): Round start argument of soft_set_grungy_pages() down to block granularity.
- Loading branch information
Showing
1 changed file
with
24 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters