Initialize more fields of seginfo

original commit: 48e93161f6ac2796d17a0f147f0dca1e1e195684
This commit is contained in:
Christian Häggström 2018-12-05 23:31:38 +01:00
parent 44f93b0ddb
commit d9d0e94d95
2 changed files with 3 additions and 0 deletions

1
LOG
View File

@ -1025,3 +1025,4 @@
where the cp register copy in the thread context could be changed
in the callable prep before S_call_help gets it
cpnanopass.ss, x86_64.ss, x86.ss, foreign2.c, foreign.ms
- initialize all fields of seginfo to avoid undefined values

View File

@ -228,7 +228,9 @@ static void initialize_seginfo(seginfo *si, ISPC s, IGEN g) {
si->space = s;
si->generation = g;
si->sorted = 0;
si->min_dirty_byte = 0xff;
si->trigger_ephemerons = NULL;
for (d = 0; d < cards_per_segment; d += sizeof(ptr)) {
iptr *dp = (iptr *)(si->dirty_bytes + d);
/* fill sizeof(iptr) bytes at a time with 0xff */