@@ -10726,6 +10726,7 @@ execute_sys_tasks(Process *c_p, erts_aint32_t *statep, int in_reds)
1072610726 if (c_p -> flags & F_DISABLE_GC ) {
1072710727 save_gc_task (c_p , st , st_prio );
1072810728 st = NULL ;
10729+ ERTS_UNDEF (st_res , am_undefined );
1072910730 reds -- ;
1073010731 }
1073110732 else {
@@ -10739,6 +10740,7 @@ execute_sys_tasks(Process *c_p, erts_aint32_t *statep, int in_reds)
1073910740 if (c_p -> flags & (F_DIRTY_MAJOR_GC |F_DIRTY_MINOR_GC )) {
1074010741 save_dirty_task (c_p , st );
1074110742 st = NULL ;
10743+ ERTS_UNDEF (st_res , am_undefined );
1074210744 break ;
1074310745 }
1074410746 if (type == ERTS_PSTT_GC_MAJOR )
@@ -10781,6 +10783,7 @@ execute_sys_tasks(Process *c_p, erts_aint32_t *statep, int in_reds)
1078110783 * but instead unconditionally schedule this as dirty
1078210784 * work...
1078310785 */
10786+ ERTS_UNDEF (st_res , am_undefined );
1078410787 if (c_p -> flags & F_DISABLE_GC ) {
1078510788 /* We might need to GC, but GC was disabled */
1078610789 save_gc_task (c_p , st , st_prio );
@@ -13031,8 +13034,10 @@ erts_send_local_spawn_reply(Process *parent, ErtsProcLocks parent_locks,
1303113034
1303213035 type = child ? am_ok : am_error ;
1303313036
13034- if (have_seqtrace (token ) && child )
13037+ if (have_seqtrace (token ) && child ) {
1303513038 token_sz = size_object (token );
13039+ ERTS_UNDEF (token_copy , NIL );
13040+ }
1303613041 else {
1303713042 token_copy = token = NIL ;
1303813043 token_sz = 0 ;
0 commit comments