Misc AIX/PASE tweaks (#15651)
commit41469ee55a6db885c1b46c29c454e503c0965f21
authorCalvin Buckley <calvin@cmpct.info>
Thu, 11 Jul 2019 16:42:47 +0000 (11 13:42 -0300)
committerZoltan Varga <vargaz@gmail.com>
Thu, 11 Jul 2019 16:42:47 +0000 (11 12:42 -0400)
tree1719ef62092cc8f735bfc4126486cd409c424195
parent37f5ef91bb53b7490b487a19e61fa145d5679adf
Misc AIX/PASE tweaks (#15651)

* Partial enablement of alternate stack for AIX/i

It turns out much like macOS, AIX doesn't like to do mprotect/valloc
for the first thread's guard pages, so skip those. It seems mostly
fine except for one or two crashes causes it to grab the wrong IAR
and deadlock dumping memory. As such, leave the code and configure
script override to disable in place, just change the comment and
add support code.

* Use Qp2getifaddrs on PASE

Not sure if proper way to implement. Reuses getifaddrs code as much
as possible, since it's merely a name change based on the docs, due
to it being namespaced in case AIX gets it or something.

I'm not sure how many of these codepaths still work properly;
one had a questionable order of ifdef.

This will eventually prepare for CoreFX NetworkInterface, so test
it here.
configure.ac
mono/metadata/w32socket.c
mono/mini/mini-exceptions.c
mono/utils/mono-threads-aix.c
mono/utils/networking-posix.c