-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsI-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.
Milestone
Description
rust_kernel currently maintains a map from task_id
to rust_task*
, and it is protected by a lock. The primary use of this is to look up ports in a task's port map which is protected by another lock. Other uses of this map could be eliminated and would be faster for it.
Getting rid of this map will make port lookup faster, task creation and destruction less contentious, the runtime model simpler, and will discourage accessing arbitrary tasks from arbitrary threads (since there's no way to get to them), at the expense of making port construction and destruction more contentious.
Metadata
Metadata
Assignees
Labels
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsI-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.