Commit Graph

3 Commits

Author SHA1 Message Date
Devin Coughlin
c9bc783eed [Runtime] Remove an unneeded dispatch_once() in Availability.mm
Following Dmitri's advice, remove an unneeded dispatch_once() and use an
initializer of a function-local static variable instead. NFC.

Swift SVN r27516
2015-04-21 03:41:10 +00:00
Devin Coughlin
857a60dea1 Runtime: Cache OS version for availability in a thread-safe manner.
On OS X 10.9 and iOS 7 the runtime support for #availability was reading the system plist
on every query. Now, use dispatch_once to cache the results of the expensive
plist lookup ourselves.

rdar://problem/18471069

Swift SVN r27199
2015-04-10 02:24:32 +00:00
Dmitri Hrybenko
350248dae5 Reorganize the directory structure under 'stdlib'
The standard library has grown significantly, and we need a new
directory structure that clearly reflects the role of the APIs, and
allows future growth.

See stdlib/{public,internal,private}/README.txt for more information.

Swift SVN r25876
2015-03-09 05:26:05 +00:00