1. 08 Aug, 2016 38 commits
  2. 07 Aug, 2016 2 commits
    • mlippautz's avatar
      [base] Add Decrement and assignment operators to AtomicNumber · 5e685567
      mlippautz authored
      AtomicNumber should make dealing with atomic counters easier. This is not the
      case with size_t, as we cannot properly use the Increment() method for negative
      numbers.
      
      With this CL we can use AtomicNumber<size_t> and have proper decrements.
      
      R=jochen@chromium.org
      
      Review-Url: https://codereview.chromium.org/2215693002
      Cr-Commit-Position: refs/heads/master@{#38407}
      5e685567
    • ulan's avatar
      Unify memory optimization modes and flags. · 6cebf7d9
      ulan authored
      This patch folds --optimize-for-size flag and check for low-memory device
      into Heap::ShouldOptimizeForMemoryUsage() predicate.
      
      It has the following side effects:
      - the heap growing factor for low-memory devices is capped at 1.3 (old value was 2.0).
      - the memory reducer will be more aggressive for low-memory devices.
      
      BUG=chromium:634900
      
      Review-Url: https://codereview.chromium.org/2218703004
      Cr-Commit-Position: refs/heads/master@{#38406}
      6cebf7d9