diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/pdumper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pdumper.c b/src/pdumper.c index d9dc13770cd..24393e03665 100644 --- a/src/pdumper.c +++ b/src/pdumper.c | |||
| @@ -162,7 +162,7 @@ ptrdiff_t_to_dump_off (ptrdiff_t value) | |||
| 162 | /* Worst-case allocation granularity on any system that might load | 162 | /* Worst-case allocation granularity on any system that might load |
| 163 | this dump. */ | 163 | this dump. */ |
| 164 | static int | 164 | static int |
| 165 | dump_get_page_size (void) | 165 | dump_get_max_page_size (void) |
| 166 | { | 166 | { |
| 167 | return 64 * 1024; | 167 | return 64 * 1024; |
| 168 | } | 168 | } |
| @@ -4210,7 +4210,7 @@ types. */) | |||
| 4210 | eassert (dump_queue_empty_p (&ctx->dump_queue)); | 4210 | eassert (dump_queue_empty_p (&ctx->dump_queue)); |
| 4211 | 4211 | ||
| 4212 | dump_off discardable_end = ctx->offset; | 4212 | dump_off discardable_end = ctx->offset; |
| 4213 | dump_align_output (ctx, dump_get_page_size ()); | 4213 | dump_align_output (ctx, dump_get_max_page_size ()); |
| 4214 | ctx->header.cold_start = ctx->offset; | 4214 | ctx->header.cold_start = ctx->offset; |
| 4215 | 4215 | ||
| 4216 | /* Start the cold section. This section contains bytes that should | 4216 | /* Start the cold section. This section contains bytes that should |
| @@ -4928,7 +4928,7 @@ dump_mmap_contiguous (struct dump_memory_map *maps, int nr_maps) | |||
| 4928 | return true; | 4928 | return true; |
| 4929 | 4929 | ||
| 4930 | size_t total_size = 0; | 4930 | size_t total_size = 0; |
| 4931 | int worst_case_page_size = dump_get_page_size (); | 4931 | int worst_case_page_size = dump_get_max_page_size (); |
| 4932 | 4932 | ||
| 4933 | for (int i = 0; i < nr_maps; ++i) | 4933 | for (int i = 0; i < nr_maps; ++i) |
| 4934 | { | 4934 | { |
| @@ -5616,7 +5616,7 @@ pdumper_load (const char *dump_filename, char *argv0) | |||
| 5616 | err = PDUMPER_LOAD_OOM; | 5616 | err = PDUMPER_LOAD_OOM; |
| 5617 | 5617 | ||
| 5618 | adj_discardable_start = header->discardable_start; | 5618 | adj_discardable_start = header->discardable_start; |
| 5619 | dump_page_size = dump_get_page_size (); | 5619 | dump_page_size = dump_get_max_page_size (); |
| 5620 | /* Snap to next page boundary. */ | 5620 | /* Snap to next page boundary. */ |
| 5621 | adj_discardable_start = ROUNDUP (adj_discardable_start, dump_page_size); | 5621 | adj_discardable_start = ROUNDUP (adj_discardable_start, dump_page_size); |
| 5622 | eassert (adj_discardable_start % dump_page_size == 0); | 5622 | eassert (adj_discardable_start % dump_page_size == 0); |