[haiku-bugs] Re: [Haiku] #12438: Implement brk and sbrk

  • From: "oco" <trac@xxxxxxxxxxxx>
  • Date: Mon, 30 May 2016 09:44:11 -0000

#12438: Implement brk and sbrk
----------------------------+----------------------------
   Reporter:  simonsouth    |      Owner:  nobody
       Type:  enhancement   |     Status:  closed
   Priority:  normal        |  Milestone:  Unscheduled
  Component:  System/POSIX  |    Version:  R1/Development
 Resolution:  fixed         |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+----------------------------

Comment (by oco):

 The new implementation of sbrk severely limit the amount of memory sbrk
 can allocate. 512 Mo is impossible to allocate (see attached test). And
 often 2 or three time less, depending on the position of the binary in the
 address space due to ASLR.

 This broke Freepascal that still use this function to allocate memory
 (since BeOS era). While i can switch to mmap in a future version of
 Freepascal under Haiku, i think it is a clear BeOS incompatibility.

 I think the heap should be include to determine brk address (see
 http://stackoverflow.com/questions/6988487/what-does-brk-system-call-do).

--
Ticket URL: <https://dev.haiku-os.org/ticket/12438#comment:9>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: