OSDN Git Service

Follow up on CL 122665.
authorHiroshi Yamauchi <yamauchi@google.com>
Mon, 12 Jan 2015 20:11:05 +0000 (12:11 -0800)
committerHiroshi Yamauchi <yamauchi@google.com>
Tue, 13 Jan 2015 19:19:36 +0000 (11:19 -0800)
commit312baf19603ff7d2b223fd7b1ef817171a97f9d0
tree381ccdbaf0118cb2eefcfad77c9b842f41f7716c
parent6650de241f63f725830560ec09c5e1f13c0d8488
Follow up on CL 122665.

We now do the two-step memory protection strategy (first protect the
from space with PROT_READ and later protect it with PROT_NONE) only if
the from space is a rosalloc space (excluding the more common bump
pointer space case). This strengthens the GC verification for the bump
pointer space case as we avoid the case where mutators run while the
from space is PROT_READ rather than PROT_NONE.

Add a command line flag to override the minimum interval for the
hspace compaction for OOM and set it to zero in the gcstress/gcverify
run-tests to run the hspace compaction more frequently in tests.

Fix some comments.

Bug: 18960494
Change-Id: I518b011e026f578e53c4ec269cfb82865b0fae68
runtime/gc/collector/semi_space.cc
runtime/parsed_options.cc
test/run-test