[vm] Update option for windows priority test.

Use a slightly higher priority than lowest to avoid flaky timeouts.

We avoid using higher priorities than the default because these require
extra permissions and setup.

Change-Id: I69ca93f270697d3e39ef9c0f49184ffb3de32610
Fixes: https://github.com/dart-lang/sdk/issues/62722
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/483980
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
This commit is contained in:
Nate Biggs
2026-02-27 09:48:51 -08:00
committed by Commit Queue
parent fac4c32530
commit 159f427938
@@ -2,8 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// VMOptions=--worker-thread-priority=-2
// A priority of -2 means THREAD_PRIORITY_LOWEST on windows
// VMOptions=--worker-thread-priority=-1
// A priority of -1 means THREAD_PRIORITY_BELOW_NORMAL on windows
import 'dart:ffi';
import 'dart:io';
@@ -31,6 +31,6 @@ final getThreadPriority = kernel32
main(args) {
if (Platform.isWindows) {
Expect.equals(-2, getThreadPriority(getCurrentThread()));
Expect.equals(-1, getThreadPriority(getCurrentThread()));
}
}