This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/5][v2][BZ #15022] Avoid repeated calls to DL_STATIC_INIT


> The difference between calling from dl_open_worker
> and _dl_open is nested locks, which may be a problem.

That's a good point to raise.  But it looks like it's not actually a
problem.  Both _dl_static_init implementations have their own private
lock (though it's not clear to me why they actually need one at all).
They call _dl_lookup_symbol_x directly, which does not do any locking
of its own (it expects its callers to have serialized access to the
data structures it uses).

So I think we can go ahead with macro's change unless anybody else
sees a concrete problem.


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]