Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #40010] [TODO] Add a mutex to eval_nr in compilers/imcc/parser_util.c

4 views
Skip to first unread message

Matt Diephouse

unread,
Jul 29, 2006, 3:44:07 PM7/29/06
to bugs-bi...@rt.perl.org
# New Ticket Created by Matt Diephouse
# Please include the string: [perl #40010]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40010 >


As of r13628, compilers/imcc/parser_util.c has a static global
eval_nr that keeps track of the number of EVAL_n files that have been
opened for -D20.

This variable *must* be a global to prevent IMCC from overwriting
files that have already been written to disk (a problem that was
making -D20 useless in some cases).

This does not effect reentrancy because it has no effect on parsing.

However, it is not thread safe as is. A mutex needs to be added.
Hence the todo.

--
Matt Diephouse

0 new messages