Simplify iOS trampoline table allocation
authorOle André Vadla Ravnås <oleavr@gmail.com>
Wed, 15 Mar 2017 00:43:11 +0000 (01:43 +0100)
committerOle André Vadla Ravnås <oleavr@gmail.com>
Wed, 15 Mar 2017 00:43:11 +0000 (01:43 +0100)
commit5e4fcdccb3a841f2daaa5834f726eaeb42950511
tree581850f3fd5bf6ed42d3fd21b3fa4bad1aae13a6
parentdabbd145665ffca6fa676eba551f12107cd81131
Simplify iOS trampoline table allocation

By using VM_FLAGS_OVERWRITE there is no need for speculatively
allocating on a page we just deallocated. This approach eliminates the
race-condition and gets rid of the retry logic.
src/closures.c