RTX51 is fully-preemptive multitasking RTOS. A task [task A] may voluntarily suspend to wait for the event in the middle of task. Before that event, other same priority task [task B] may be executed.
If the call Tree in cmd file is constructed as
rootx ! ( taskA, taskB, ... )
The local variable in task A is destroyed by task B.