[haiku-bugs] Re: [Haiku] #8007: [app_server] fully unresponsive when resizing window of big textfile

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Fri, 18 May 2012 12:14:20 -0000

#8007: [app_server] fully unresponsive when resizing window of big textfile
-----------------------------+----------------------------
   Reporter:  ttcoder        |      Owner:  axeld
       Type:  bug            |     Status:  new
   Priority:  normal         |  Milestone:  R1
  Component:  System/Kernel  |    Version:  R1/Development
 Resolution:                 |   Keywords:
 Blocked By:                 |   Blocking:  7882, 8136
Has a Patch:  0              |   Platform:  All
-----------------------------+----------------------------

Comment (by bonefish):

 jua, thanks for continuing to work on this. The C++ dependency is
 something I didn't think of. So far our general philosophy has been that
 public kernel API should be C while private kernel API can be C++ and code
 that wants to use it must live with the fact (usually by switching to C++,
 too). In case of the locking primitives the intention is, however, to make
 the API public eventually (maybe not in R1 yet), so introducing C++
 dependencies is probably not the best move.

 I think the way to go is to make the locking functions out of line after
 all. That is a bit of a pity, since currently, due to the atomic functions
 being built-ins (with gcc4 at least), the inline functions can be reduced
 to just a few machine instructions in the common locking cases (no one
 else has the lock/no one is waiting on the lock). Well, I guess it can't
 be helped. It would be great, if you tried to keep the code paths for
 those cases as short as possible anyway.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8007#comment:60>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: