Fix heap-end corner case in black-page calculation

We were mistakenly going past the heap size in rare cases where art-test
uses the entire heap. Fixed it by checking for heap boundary.

Also, removed gUseReadBarrier DCHECK in transitioning GC as the same
condition is used for userfaultfd GC as well.

Bug: 160737021
Test: art/test/testrunner/testrunner.py --gcstress --host -b -t 114-
Change-Id: I7d59008247d076f7819668b149156f94ff56cafd
(cherry picked from commit e69d3de15ab2f0912926ff9a4f9b0b3b169ffde1)
Merged-In: I7d59008247d076f7819668b149156f94ff56cafd
2 files changed