OSDN Git Service

ART: Change main-thread thread paging scheme multiwindow-oreo oreo-x86
authorAndreas Gampe <agampe@google.com>
Thu, 29 Jun 2017 00:20:15 +0000 (17:20 -0700)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 5 Sep 2017 09:34:19 +0000 (17:34 +0800)
commitedb557db300d6632fa6d62f5695cfa9eca6bcbdf
tree475bbe51c37f66050d54995f50550846d125c9ca
parent699cb9a11b1dce1515a4f591274b90269962cfec
ART: Change main-thread thread paging scheme

Modify the code that ensures we can install a stack guard page into
the main thread.

A recent kernel change means that our previous approach of using a
free pointer does not work. It is important to actually extend the
stack properly. For portability, use a function with a large stack
frame (suggested by and adapted from hboehm).

Bug: 62952017
Test: m
Test: m test-art-host
Test: Device boots (x86_64 emulator)
Test: Device boots (bullhead)
Change-Id: Ic2a0c3d6d05a1ea9f655329d147b46949e1b9db3
runtime/thread.cc