mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Fix an incorrect assertion.
When configured with --with-lg-page, it's possible for the configured page size to be greater than the system page size, in which case the page address may only be aligned with the system page size.
This commit is contained in:
parent
61efbda709
commit
e8a63b87c3
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ pages_decommit(void *addr, size_t size) {
|
|||
|
||||
bool
|
||||
pages_purge_lazy(void *addr, size_t size) {
|
||||
assert(PAGE_ADDR2BASE(addr) == addr);
|
||||
assert(ALIGNMENT_ADDR2BASE(addr, os_page) == addr);
|
||||
assert(PAGE_CEILING(size) == size);
|
||||
|
||||
if (!pages_can_purge_lazy) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue