{ "id": "172336", "key": "TIMOB-26407", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2018-09-22T15:19:21.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-09-22T15:20:38.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "We use the {{OSSpinlock}} API in your kroll-core and some XML operations a lot. It has formally been deprecated as of iOS 10.0 and should be replaced by the {{os_unfair_lock}} ({{os_unfair_lock_lock}} and {{ os_unfair_lock_unlock}}) API. The old API is meant to be unsafe on newer OS's, leading to possible crashes.\r\n\r\nNote: Also the {{os_unfair_lock}} is a suggested replacement by Apple, we may want to consider other locks that are more GCD focussed.\r\n\r\nDocs:\r\n- https://github.com/moby/hyperkit/issues/47\r\n- https://developer.apple.com/documentation/os/1646466-os_unfair_lock_lock\r\n- https://blog.postmates.com/why-spinlocks-are-bad-on-ios-b69fc5221058", "attachment": [], "flagged": false, "summary": "iOS: Replace OSSpinLock API with os_unfair_lock", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }