Re: Pike 8.0: Sql.pgsql objects don't get garbage collected?

"Stephen R. van den Berg" <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
Henrik Grubbstr?m wrote:
>Hmm... I suspect that the above is due to cast_to_program() et al in
>the master object not being thread safe, in which case a thread may
>find and attempt to clone a program which still is being compiled in
>a different thread. This wasn't a problem in Pike 7.8 and earlier, as
>then all other threads were halted while the compiler was running.

Quite likely, yes.
A quick fix would be to put a Mutex around the compiler so that
we'd have at most one compilerthread running at any time.
-- 
Stephen.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.