Skip to content

Commit

Permalink
page size rebase: specify which heap.page_size
Browse files Browse the repository at this point in the history
  • Loading branch information
archbirdplus committed Aug 11, 2024
1 parent d1b238b commit de62bae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/std/debug/SelfInfo.zig
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ pub const Module = switch (native_os) {
.macos, .ios, .watchos, .tvos, .visionos => struct {
base_address: usize,
vmaddr_slide: usize,
mapped_memory: []align(heap.page_size) const u8,
mapped_memory: []align(std.heap.page_size) const u8,
symbols: []const MachoSymbol,
strings: [:0]const u8,
ofiles: OFileTable,
Expand Down Expand Up @@ -1046,7 +1046,7 @@ pub fn readElfDebugInfo(
build_id: ?[]const u8,
expected_crc: ?u32,
parent_sections: *Dwarf.SectionArray,
parent_mapped_mem: ?[]align(heap.page_size) const u8,
parent_mapped_mem: ?[]align(std.heap.page_size) const u8,
) !Dwarf.ElfModule {
nosuspend {
const elf_file = (if (elf_filename) |filename| blk: {
Expand Down Expand Up @@ -1088,7 +1088,7 @@ const MachoSymbol = struct {

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

Expand Down

0 comments on commit de62bae

Please sign in to comment.