[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/igc f24fd779881 3/6: Tighter bounds for the dumped hot region
From: |
Gerd Moellmann |
Subject: |
scratch/igc f24fd779881 3/6: Tighter bounds for the dumped hot region |
Date: |
Thu, 16 May 2024 04:44:58 -0400 (EDT) |
branch: scratch/igc
commit f24fd77988118523796ea053c76f18c94aa60b7b
Author: Helmut Eller <eller.helmut@gmail.com>
Commit: Gerd Möllmann <gerd@gnu.org>
Tighter bounds for the dumped hot region
* src/pdumper.c (pdumper_load): Exclude the header and the discardable
part.
---
src/pdumper.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/pdumper.c b/src/pdumper.c
index 2437a70f0a8..00bb7dd8db8 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -5956,8 +5956,11 @@ pdumper_load (const char *dump_filename, char *argv0)
dump_public.end = dump_public.start + dump_size;
#ifdef HAVE_MPS
- void *hot_start = (void *) dump_base;
- void *hot_end = (void *) (dump_base + adj_discardable_start);
+ size_t aligned_header_size
+ = ((sizeof (struct dump_header) + DUMP_ALIGNMENT - 1)
+ & ~(DUMP_ALIGNMENT - 1));
+ void *hot_start = (void *) (dump_base + aligned_header_size);
+ void *hot_end = (void *) (dump_base + header->discardable_start);
#endif
dump_do_all_dump_reloc_for_phase (header, dump_base, EARLY_RELOCS);
- scratch/igc updated (6ee9e1f1652 -> d991d9af5f4), Gerd Moellmann, 2024/05/16
- scratch/igc 327f5698988 1/6: Implement igc_realloc_ambig, Gerd Moellmann, 2024/05/16
- scratch/igc f72fc5d8f5b 5/6: Include stats about pseudovectors in igc-info, Gerd Moellmann, 2024/05/16
- scratch/igc f24fd779881 3/6: Tighter bounds for the dumped hot region,
Gerd Moellmann <=
- scratch/igc 347df7bc8ff 2/6: In dflt_scanx, check types more carefully, Gerd Moellmann, 2024/05/16
- scratch/igc d991d9af5f4 6/6: Register the dump as exact root, Gerd Moellmann, 2024/05/16
- scratch/igc 0d7e81dd782 4/6: Factorize common pattern to dump arrays, Gerd Moellmann, 2024/05/16