When reasoning about runtime cost in a garbage collected language, what is the cost of a statement such as myList = null;
in terms of 'n' (the number of elements in the list)? For sake of argument, consider the list to be a singly linked list of reference types with no finalisation required.
More generally, I'm looking for any information on how runtime cost can be analysed in a language with GC.