Files
sdk/runtime/bin
Alexander Markov 03e3e62d54 [vm] Avoid producing inconsistent values in Process::GetRSSInformation
If current RSS is queried after max RSS, it may grow between calls
and might be larger than max. So max RSS should be queried before
the current RSS.

This is a possible fix for the following errors on vm-kernel-win-debug-ia32:

  Expected: a value greater than or equal to <177020928>
    Actual: <177016832>
     Which: is not a value greater than or equal to <177020928>


  package:test_api/src/frontend/expect.dart 155:31               fail
  package:test_api/src/frontend/expect.dart 150:3                _expect
  package:test_api/src/frontend/expect.dart 59:3                 expect
  runtime\observatory_2\tests\service_2\vm_test.dart 21:5        tests.<fn>

TEST=runtime/observatory_2/tests/service_2/vm_test.dart

Change-Id: I29148562ecc0ab9de3e5af19e6e6ad1390d04bb0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/181420
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2021-01-27 21:50:57 +00:00
..
2020-12-04 22:46:12 +00:00