[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#3923) back-perl confused about init/destroy

Full_Name: Hallvard B Furuseth
Version: HEAD
Submission from: (NULL) (
Submitted by: hallvard

back-perl initializes the global perl_interpreter_mutex
in perl_back_open(), but destroys it in perl_back_destroy()
So it can be destroyed without ever being initialized.

On the other hand, it allocates and constructs PERL_INTERPRETER
in perl_back_initialize(), but destructs it in perl_back_close()
and frees it in perl_back_destroy().

I expect the interpreter should only be allocated and constructed
if the backend is actually used, and destroyed accordingly, but
I don't know which backend functions are called when.

(Man perlapi and man perlembed describes usage of these functions.)