Skip to content
Snippets Groups Projects
Commit 61c91059 authored by Philippe Gil's avatar Philippe Gil Committed by Pierre-Marie de Rodat
Browse files

[Ada] Fix possible uninitialized ATCB component use

gcc/ada/

	* libgnarl/s-tporft.adb (Register_Foreign_Thread): Set
	Global_Task_Lock_Nesting before using allocator.
parent e8070c83
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment