[haiku-development] Re: [PATCH] libroot improvements

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 27 Feb 2009 15:29:01 +0100

Artur Wyszynski schrieb:
Stephan Assmus pisze:
Hi,

Von: Artur Wyszynski <aljen-mlists@xxxxxxx>
while i was trying to port Chrome to Haiku, i came across a problem with broken/missing wide chars support (Chrome is using them everywhere), looking at current libroot status i noticed a mix composed by different versions of glibc with some features enabled/disabled and some ports of bsd code there. Then i removed completly glibc and friends mixes from libroot and started porting libc and Sun math library from FreeBSD. Now it's working as expected, with full posix support (even c99), wide chars enabled, support for locales, etc. Don't worry, it won't break binary compatibility, because it's ported & enabled only for gcc4 build, gcc2 is still using old
libroot+glibc&friends.

Wow, that must have been some work load!
yeah, almost 1.5 week, working for few hours after work and all weekends :)

Things noticed by me (and not only, thx for testing guys :P):
* system is noticable faster compared to other builds, i mean gui and boot; for virtual box on my machine (dont know how others and i didn't tested this on real hardware yet) boot time was decrased from 24-26 seconds to 14 (don't know the reason)
* gui is more responsible, i think it's because new sun math library

I am currently compiling an image with the patch. Looking forward to seeing it in action. Impatient question: Are we using another allocator now?

I'm looking forward to hear your comments when you test it ! :)

Unfortunately, my "tests" didn't go so well. I am getting crashes in fputs() (flex) and app_server was crashing in vsprintf() (FontCacheEntry::GenerateSignature()). I changed the FontCacheEntry code to use snprintf() instead of sprintf(), just in case it would overwrite the buffer or something. But the flex crashes in fputs() remain. Didn't test long enough to see if the vsprintf() app_server crash is gone. Another thing I could reproduce is when resizing the Terminal window, the whole Terminal app would suddenly disappear. No crash report, no entry in Deskbar left, just spontaneous death.

But it does seem to launch quicker. Real hardware, Core 2 Duo chip.

Best regards,
-Stephan

Other related posts: