@@ -10674,6 +10674,7 @@ execute_sys_tasks(Process *c_p, erts_aint32_t *statep, int in_reds)
1067410674 if (c_p -> flags & F_DISABLE_GC ) {
1067510675 save_gc_task (c_p , st , st_prio );
1067610676 st = NULL ;
10677+ ERTS_UNDEF (st_res , am_undefined );
1067710678 reds -- ;
1067810679 }
1067910680 else {
@@ -10687,6 +10688,7 @@ execute_sys_tasks(Process *c_p, erts_aint32_t *statep, int in_reds)
1068710688 if (c_p -> flags & (F_DIRTY_MAJOR_GC |F_DIRTY_MINOR_GC )) {
1068810689 save_dirty_task (c_p , st );
1068910690 st = NULL ;
10691+ ERTS_UNDEF (st_res , am_undefined );
1069010692 break ;
1069110693 }
1069210694 if (type == ERTS_PSTT_GC_MAJOR )
@@ -10729,6 +10731,7 @@ execute_sys_tasks(Process *c_p, erts_aint32_t *statep, int in_reds)
1072910731 * but instead unconditionally schedule this as dirty
1073010732 * work...
1073110733 */
10734+ ERTS_UNDEF (st_res , am_undefined );
1073210735 if (c_p -> flags & F_DISABLE_GC ) {
1073310736 /* We might need to GC, but GC was disabled */
1073410737 save_gc_task (c_p , st , st_prio );
@@ -12945,8 +12948,10 @@ erts_send_local_spawn_reply(Process *parent, ErtsProcLocks parent_locks,
1294512948
1294612949 type = child ? am_ok : am_error ;
1294712950
12948- if (have_seqtrace (token ) && child )
12951+ if (have_seqtrace (token ) && child ) {
1294912952 token_sz = size_object (token );
12953+ ERTS_UNDEF (token_copy , NIL );
12954+ }
1295012955 else {
1295112956 token_copy = token = NIL ;
1295212957 token_sz = 0 ;
0 commit comments