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

Roland McGrath roland@hack.frob.com
Thu Jun 20 21:04:00 GMT 2013


> 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



More information about the Libc-alpha mailing list