Index: runtime/vm/os_fuchsia.cc |
diff --git a/runtime/vm/os_fuchsia.cc b/runtime/vm/os_fuchsia.cc |
index 89c08fbc4f469c42124161c0f5c2fa8feae79ba2..d304b6f1c8866a4a100e7924e99de16a2eb8c3a6 100644 |
--- a/runtime/vm/os_fuchsia.cc |
+++ b/runtime/vm/os_fuchsia.cc |
@@ -156,7 +156,7 @@ uintptr_t OS::MaxRSS() { |
mx_handle_t process = mx_process_self(); |
mx_status_t status = mx_object_get_info( |
process, MX_INFO_TASK_STATS, &task_stats, sizeof(task_stats), NULL, NULL); |
- return (status == NO_ERROR) |
+ return (status == MX_OK) |
? (task_stats.mem_private_bytes + task_stats.mem_shared_bytes) |
: 0; |
} |