Skip to content

Commit 9b3df8f

Browse files
surajrmalCommit Queue
authored andcommitted
[vm] Migrate to newer fuchsia syscall
zx_task_suspend_token was deprecated in favor of the newer zx_task_suspend API. This change migrates a use of the old API to the newer one. Tested: Build still succeeds. Change-Id: I9965a3102a31fa0d1d7c3d2d58267e39b2f9a931 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/446180 Reviewed-by: Ryan Macnak <[email protected]> Auto-Submit: Suraj Malhotra <[email protected]> Commit-Queue: Ryan Macnak <[email protected]>
1 parent b0be7f4 commit 9b3df8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/vm/thread_interrupter_fuchsia.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ThreadSuspendScope {
3737
public:
3838
explicit ThreadSuspendScope(zx_handle_t thread_handle)
3939
: thread_handle_(thread_handle), suspend_token_(ZX_HANDLE_INVALID) {
40-
zx_status_t status = zx_task_suspend_token(thread_handle, &suspend_token_);
40+
zx_status_t status = zx_task_suspend(thread_handle, &suspend_token_);
4141
// If a thread is somewhere where suspend is impossible, zx_task_suspend()
4242
// can return ZX_ERR_NOT_SUPPORTED.
4343
if (status != ZX_OK) {

0 commit comments

Comments
 (0)