Initialize more fields of seginfo
original commit: 48e93161f6ac2796d17a0f147f0dca1e1e195684
This commit is contained in:
parent
44f93b0ddb
commit
d9d0e94d95
1
LOG
1
LOG
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user