Skip to content

Commit de62bae

Browse files
committed
page size rebase: specify which heap.page_size
1 parent d1b238b commit de62bae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/std/debug/SelfInfo.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ pub const Module = switch (native_os) {
502502
.macos, .ios, .watchos, .tvos, .visionos => struct {
503503
base_address: usize,
504504
vmaddr_slide: usize,
505-
mapped_memory: []align(heap.page_size) const u8,
505+
mapped_memory: []align(std.heap.page_size) const u8,
506506
symbols: []const MachoSymbol,
507507
strings: [:0]const u8,
508508
ofiles: OFileTable,
@@ -1046,7 +1046,7 @@ pub fn readElfDebugInfo(
10461046
build_id: ?[]const u8,
10471047
expected_crc: ?u32,
10481048
parent_sections: *Dwarf.SectionArray,
1049-
parent_mapped_mem: ?[]align(heap.page_size) const u8,
1049+
parent_mapped_mem: ?[]align(std.heap.page_size) const u8,
10501050
) !Dwarf.ElfModule {
10511051
nosuspend {
10521052
const elf_file = (if (elf_filename) |filename| blk: {
@@ -1088,7 +1088,7 @@ const MachoSymbol = struct {
10881088

10891089
/// Takes ownership of file, even on error.
10901090
/// TODO it's weird to take ownership even on error, rework this code.
1091-
fn mapWholeFile(file: File) ![]align(heap.page_size) const u8 {
1091+
fn mapWholeFile(file: File) ![]align(std.heap.page_size) const u8 {
10921092
nosuspend {
10931093
defer file.close();
10941094

0 commit comments

Comments
 (0)