On 2011-04-19, sebb wrote: > On 19 April 2011 06:35, <[email protected]> wrote:
>>> // this flag is only written here and read in finalize() which >>> // can never be run in parallel. >>> // no synchronization needed. > Are you sure? At least as long as finalize is not called by anybody else but the garbage collector. You can't call close without a reference to the object and as long as such a reference exists finalize will not be called. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
