TotalView understands pointer-to-shared data and displays the components of the data, as well as the target of the pointer to shared variables. For example,
Figure 108 shows this data being displayed:
In the same way that TotalView normally shows the target of a pointer variable, it also shows the target of a UPC pointer variable. When dereferencing a UPC pointer, TotalView fetches the target of the pointer from the UPC thread with which the pointer has affinity.
You can update the pointer by selecting the pointer value and editing the thread, phase, or address values. If the phase is corrupt, you’ll see something like the following in the
Value area:
Since the pointer itself is not shared, you can use the TView > Show Across commands to display the value from each of the UPC threads.