Revert^2 "Handle OOM situation in java-heap more aggressively"

This reverts commit 95545423bf0982c28a23260d359ae6b1e1012dd6.

Reason for revert: Took care of the issues that this change could
cause to ART tests
(https://android-review.googlesource.com/c/platform/art/+/1298073).

Bug: 144525957
Test: art/test/testrunner/testrunner.py
Change-Id: I4e8d22fff3dff15ffd1385be2c6b0c648acd2229
1 file changed