From: Charles Oliver Nutter Date: 2008-12-24T14:56:37+09:00 Subject: [ruby-core:20853] Re: [Bug #921] autoload is not thread-safe Nobuyoshi Nakada wrote: > Hi, > > At Tue, 23 Dec 2008 02:10:34 +0900, > Charles Nutter wrote in [ruby-core:20797]: >> The current logic for autoload is as follows: > > This description is old. Already autoload sees the same lock > used by require, as Dave Thomas mentioned in [ruby-core:20801]. > > So I guess the autoload specific issue has gone, and we could > focus on the issue of recursive/circular require, i.e., > [ruby-core:20794]. So if two threads lookup the same autoload constant at the same time, is the second thread guaranteed to wait until the first thread has finished requiring? I was not aware this had been fixed or decided.