[haiku-commits] Re: haiku: hrev48664 - in src/add-ons/kernel: file_cache network/stack src

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 12 Jan 2015 16:42:40 -0500

On Jan 12, 2015 4:40 PM, "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx> wrote:
>
> geist just made a good point on IRC: khash would not resize itself
automatically. I haven't had the time to read over Adrien's changes, but in
the kernel you cannot always simply allocate memory.

OpenHashTable will return a failure from Insert if it can't allocate, so
that just needs to be checked (haven't looked yet if that's the case in the
recent refactoring).

Regards,

Rene

Other related posts: