payload: {"action":"created","issue":{"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/19938","repository_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr","labels_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/19938/labels{/name}","comments_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/19938/comments","events_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/19938/events","html_url":"https://github.com/zephyrproject-rtos/zephyr/pull/19938","id":509228734,"node_id":"MDExOlB1bGxSZXF1ZXN0MzI5ODU5OTQ5","number":19938,"title":"kernel: update z_arch_switch() documentation","user":{"login":"andrewboie","id":3387369,"node_id":"MDQ6VXNlcjMzODczNjk=","avatar_url":"https://avatars1.githubusercontent.com/u/3387369?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewboie","html_url":"https://github.com/andrewboie","followers_url":"https://api.github.com/users/andrewboie/followers","following_url":"https://api.github.com/users/andrewboie/following{/other_user}","gists_url":"https://api.github.com/users/andrewboie/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewboie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewboie/subscriptions","organizations_url":"https://api.github.com/users/andrewboie/orgs","repos_url":"https://api.github.com/users/andrewboie/repos","events_url":"https://api.github.com/users/andrewboie/events{/privacy}","received_events_url":"https://api.github.com/users/andrewboie/received_events","type":"User","site_admin":false},"labels":[{"id":796963297,"node_id":"MDU6TGFiZWw3OTY5NjMyOTc=","url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/labels/area:%20API","name":"area: API","color":"42ff74","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2019-10-18T17:53:37Z","updated_at":"2019-10-21T22:36:23Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls/19938","html_url":"https://github.com/zephyrproject-rtos/zephyr/pull/19938","diff_url":"https://github.com/zephyrproject-rtos/zephyr/pull/19938.diff","patch_url":"https://github.com/zephyrproject-rtos/zephyr/pull/19938.patch"},"body":"Clarify the intended design and how to implement optimally.\r\n\r\nRelates to: #19759\r\n\r\nSigned-off-by: Andrew Boie <andrew.p.boie@intel.com>"},"comment":{"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/comments/544737032","html_url":"https://github.com/zephyrproject-rtos/zephyr/pull/19938#issuecomment-544737032","issue_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/19938","id":544737032,"node_id":"MDEyOklzc3VlQ29tbWVudDU0NDczNzAzMg==","user":{"login":"gnuless","id":38954282,"node_id":"MDQ6VXNlcjM4OTU0Mjgy","avatar_url":"https://avatars2.githubusercontent.com/u/38954282?v=4","gravatar_id":"","url":"https://api.github.com/users/gnuless","html_url":"https://github.com/gnuless","followers_url":"https://api.github.com/users/gnuless/followers","following_url":"https://api.github.com/users/gnuless/following{/other_user}","gists_url":"https://api.github.com/users/gnuless/gists{/gist_id}","starred_url":"https://api.github.com/users/gnuless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnuless/subscriptions","organizations_url":"https://api.github.com/users/gnuless/orgs","repos_url":"https://api.github.com/users/gnuless/repos","events_url":"https://api.github.com/users/gnuless/events{/privacy}","received_events_url":"https://api.github.com/users/gnuless/received_events","type":"User","site_admin":false},"created_at":"2019-10-21T22:36:23Z","updated_at":"2019-10-21T22:36:23Z","author_association":"COLLABORATOR","body":"> If there's a strong argument that thread-based switching is clearly better than stack-based switching, at this time I do not see it.\r\n\r\nThat's NOT the argument that I'm making.  I'm saying that `z_arch_switch()` in its present form is unnecessarily biased towards that mechanism.  The two different forms of `z_arch_switch()` are nearly isomorphic.  You can translate either presentation to the other with little difficulty.  You can do stack-based or thread-based context switching with either.  For stack-based switching, they're essentially equivalent in terms of cost.  For thread-based switching, however, the `switch_handle` form is cumbersome and comes at a cost.  If the general, straightforward solution is also the less burdensome for all conceivable scenarios, I'm not sure what the argument is for using the specific version that has known costs in present (not imaginary) use cases could be."}}
other: {"actor":{"display_login":"gnuless"}}