Message ID | 20201216131535.GA69860@adacore.com |
---|---|
State | New |
Headers | show |
Series | [Ada] Fix possible uninitialized ATCB component use | expand |
diff --git a/gcc/ada/libgnarl/s-tporft.adb b/gcc/ada/libgnarl/s-tporft.adb --- a/gcc/ada/libgnarl/s-tporft.adb +++ b/gcc/ada/libgnarl/s-tporft.adb @@ -53,6 +53,7 @@ begin Local_ATCB.Common.LL.Thread := Thread; Local_ATCB.Common.Current_Priority := System.Priority'First; + Local_ATCB.Common.Global_Task_Lock_Nesting := 0; Specific.Set (Local_ATCB'Unchecked_Access); -- It is now safe to use an allocator