PartitionAlloc: Make in-place realloc() less likely to happen

On direct mapped allocations, we support downsizing realloc() in-place.
As part of trying to figure out what causes apparent OOM crashes, do this
only in much more restricted circumstances:

 - Only down to 80 % of the size of the original mapping.
 - Only down to sizes larger than the maximum bucketed allocation size.

BUG=368406

Review URL: https://codereview.chromium.org/254103003

git-svn-id: svn://svn.chromium.org/blink/trunk@172932 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed
tree: a6c1c5da9d145ac0ef8327b75b665e536830e3d5
  1. third_party/