{"comment":{"url":"https://api.github.com/repos/gbtitus/chapel/comments/15003511","html_url":"https://github.com/gbtitus/chapel/commit/c9e726183ecd0481e5f70baa8115693e8017d913#commitcomment-15003511","id":15003511,"user":{"login":"ronawho","id":1588337,"avatar_url":"https://avatars.githubusercontent.com/u/1588337?v=3","gravatar_id":"","url":"https://api.github.com/users/ronawho","html_url":"https://github.com/ronawho","followers_url":"https://api.github.com/users/ronawho/followers","following_url":"https://api.github.com/users/ronawho/following{/other_user}","gists_url":"https://api.github.com/users/ronawho/gists{/gist_id}","starred_url":"https://api.github.com/users/ronawho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronawho/subscriptions","organizations_url":"https://api.github.com/users/ronawho/orgs","repos_url":"https://api.github.com/users/ronawho/repos","events_url":"https://api.github.com/users/ronawho/events{/privacy}","received_events_url":"https://api.github.com/users/ronawho/received_events","type":"User","site_admin":false},"position":172,"line":652,"path":"runtime/src/tasks/qthreads/tasks-qthreads.c","commit_id":"c9e726183ecd0481e5f70baa8115693e8017d913","created_at":"2015-12-16T02:39:32Z","updated_at":"2015-12-16T02:39:32Z","body":"`SPINLOCK_BODY` is also slightly different. Without oversubscription it will be `__asm__ __volatile__ (\"pause\" ::: \"memory\");` \r\n\r\nWith oversubscription, qthreads prefers `pthread_yield` followed by `sched_yield`. I guess for the two cases being replaced, it's not a big deal since they're only used at startup and shutdown.\r\n\r\nhttps://github.com/chapel-lang/chapel/blob/master/third-party/qthread/qthread-1.10/include/qt_atomics.h#L15-L29"}}