Clairfy where "GraphLoadingStateRecord" is stored.

Hi, in LoadRequestedModules, it will create a GraphLoadingStateRecord object. However, it doesn't specify where the GraphLoadingStateRecord is stored.

From the spec of LoadRequestedModules, it looks like the record will exist on the stack, but this should be problematic as once the method (LoadRequestedModules) is finished, the record won't exist anymore, so later when calling FinishLoadingImportedModules on the sub-modules, they won't have the correct GraphLoadingStateRecord object.

CCing @nicolo-ribaudo

The spec never specifies where anything new is 'stored'. That's just not part of its model. If it helps, you can think of everything being allocated on the heap.

1 Like