This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [RFC 3/3] Test on solib load and unload
- From: "Blanc, Nicolas" <nicolas dot blanc at intel dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 2 Sep 2013 15:24:43 +0000
- Subject: RE: [RFC 3/3] Test on solib load and unload
- Authentication-results: sourceware.org; auth=none
- References: <520B7F70 dot 6070207 at codesourcery dot com> <1377663394-4975-1-git-send-email-yao at codesourcery dot com> <1377663394-4975-4-git-send-email-yao at codesourcery dot com> <521D7BCA dot 10806 at codesourcery dot com>
Hi Yao,
I found your test useful for confirming that the extra logic of my patch [1] has no
measurable impact on SO unloading.
> + for (i = 0; i < number; i++)
> + dlclose (handles[i]);
The loop above closes SOs in FIFO style, which might be optimal for GDB.
You could alternate closing from the front and closing from the back.
I found a bit odd that "make check-perf" is not recognized in the top gdb folder,
as "make check" is. But again, it's a minor point to me.
Regards,
Nicolas
[1] http://sourceware.org/ml/gdb-patches/2013-07/msg00684.html
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052