Board index » kylix » Changing Libc
Filipe Niero Felisbino
2005-06-11 04:20:41 AM
I've made a simple application that opens 50 threads, each of these
threads open 1000 threads. When executed, the application stop in 2304
So I created a Java application that do the same. The java application
gots 4893 threads until my system stopped (Pentium 4 3.0Ghz
Hyperthreading, 512MB, running a Fedora Core 3 with kernel 2.6.9-SMP).
So I asked myself: "why java gots more threads?". So I did a ldd on my
app and on the java app. The diference is that my kylix app is linked
with libc on /lib/libc.so.6 and the java executable is linked with libc
in /lib/tls/libc.so.6 ( this probably is a newer version with nptl
support, but I'm not sure ).
I'm trying change the Kylix RTL to support the new libc. I edited the
Libc.pas and the System.pas and changed the references to libc.so.6 to a
/lib/tls/libc.so.6. But I don't know how do I do to recompile the Kylix RTL.
Is this the correct way?
Do you know how to recompile the RTL of Kylix ?