This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
JIT interface slowness
- From: Vyacheslav Egorov <vegorov at chromium dot org>
- To: gdb at sourceware dot org
- Date: Fri, 31 Dec 2010 20:43:12 +0100
- Subject: JIT interface slowness
Hi,
I've implemented[1] basic GDB JIT client for V8[2] and when people
started testing it with node.js[3] we noticed that it makes execution
under GDB slower especially if JIT generates and registers inmemory
ELF object for every single code object it emits.
Apparently GDB is just not optimized to handle tons of small ELF
objects being registered (and unregistered). When I just comment out
calls to __jit_debug_register_code (leaving ELF-generation intact)
everything becomes fast again.
Is there any known bottlenecks in JIT interface/any known workaround for them?
Any hints would be highly appreciated.
Thanks.
[1] http://codereview.chromium.org/5965011/
[2] http://v8.googlecode.com/
[3] http://nodejs.org
--
Vyacheslav Egorov