]> Cypherpunks repositories - gostls13.git/commit
runtime: don't ignore address hint for sysReserve in Plan 9
authorRichard Miller <miller.research@gmail.com>
Fri, 16 Feb 2018 15:20:04 +0000 (15:20 +0000)
committerDavid du Colombier <0intro@gmail.com>
Fri, 16 Feb 2018 16:50:14 +0000 (16:50 +0000)
commitb1dbce31d7bbd7c3fdff1679d6f08c107d0be9a5
tree7d8a0ea23ff806c60827764d48b0866b11e3e3c5
parent07f0f0956355266dafc36aadb66928e7450210ea
runtime: don't ignore address hint for sysReserve in Plan 9

On Plan 9, sysReserve was ignoring the address hint and allocating
memory wherever it is available.  This causes the new
TestArenaCollision test to fail on 32-bit Plan 9.  We now use the
address hint in the specific case where sysReserve is extending the
process address space at its end, and similarly we contract the
address space in the case where sysFree is releasing memory at
the end.

Fixes #23860

Change-Id: Ia5254779ba8f1698c999832720a88de400b5f91a
Reviewed-on: https://go-review.googlesource.com/94776
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: David du Colombier <0intro@gmail.com>
src/runtime/mem_plan9.go