Opened 5 months ago

Last modified 5 months ago

#15072 new bug

ASLR is too aggressive; fragments address space

Reported by: waddlesplash Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/Kernel Version: R1/Development
Keywords: Cc: korli
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

On 32-bit Haiku, the ASLR implementation randomizes too much, and winds up fragmenting the address space to the point where after 1/4 (~500MB) of it is used, area creation can begin failing.

For now (hrev53143) I've disabled ASLR for malloc; this makes the system much more stable (and wastes less memory too, it appears.)

Change History (1)

comment:1 by waddlesplash, 5 months ago

Cc: korli added

CC korli: this could probably be why OpenJDK has such problems on 32-bit, because it uses mmap() to get memory instead of malloc().

Note: See TracTickets for help on using tickets.