(j3.2006) Finalization and STOP, ALL STOP
Thu May 14 18:05:38 EDT 2009
The first two paragraphs of 126.96.36.199 say that an object is finalized when
it is deallocated, or just before it would become undefined due to
execution of a RETURN or END statement.
188.8.131.52p2 says an allocatable object is deallocated when a RETURN or END
statement is executed.
Should an allocatable object be deallocated when a STOP statement is
executed? How about when ALL STOP is executed? If when ALL STOP is
executed, is it only on the image that executes ALL STOP, or do all
images deallocate stuff lying around that they would deallocate upon
executing RETURN or END when they notice that another image has executed
Should nonallocatable nonpointer unsaved local objects be finalized when
a STOP statement is executed? How about ALL STOP? Which images? Does
this include objects in the main program?
Should saved objects be finalized when a STOP or END PROGRAM statement
is executed? ALL STOP? Which images?
More information about the J3