return
}
- if src != 0 && (src < _PageSize || src == poisonStack) {
+ if src != 0 && (src < _PhysPageSize || src == poisonStack) {
systemstack(func() { throw("bad pointer in write barrier") })
}
return
}
- if src != 0 && (src < _PageSize || src == poisonStack) {
+ if src != 0 && (src < _PhysPageSize || src == poisonStack) {
systemstack(func() { throw("bad pointer in write barrier") })
}
if end < uintptr(unsafe.Pointer(&ebss)) {
end = uintptr(unsafe.Pointer(&ebss))
}
- start &^= _PageSize - 1
- end = round(end, _PageSize)
+ start &^= _PhysPageSize - 1
+ end = round(end, _PhysPageSize)
mheap_.data_start = start
mheap_.data_end = end
reserved = false