mirror of
https://github.com/ziglang/zig.git
synced 2025-12-27 16:43:07 +00:00
StackIterator should not try to check validity on freestanding
This commit is contained in:
parent
539bb8a2d7
commit
b0cdd3d0e6
@ -425,6 +425,9 @@ pub const StackIterator = struct {
|
||||
}
|
||||
|
||||
fn isValidMemory(address: usize) bool {
|
||||
// We are unable to determine validity of memory for freestanding targets
|
||||
if (native_os == .freestanding) return true;
|
||||
|
||||
const aligned_address = address & ~@intCast(usize, (mem.page_size - 1));
|
||||
|
||||
// If the address does not span 2 pages, query only the first one
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user