xref: /xnu-12377.1.9/libkern/libclosure/libclosuredata.c (revision f6217f891ac0bb64f3d375211650a4c1ff8ca1ea)
1*f6217f89SApple OSS Distributions /*
2*f6217f89SApple OSS Distributions  * data.c
3*f6217f89SApple OSS Distributions  * libclosure
4*f6217f89SApple OSS Distributions  *
5*f6217f89SApple OSS Distributions  * Copyright (c) 2008-2010 Apple Inc. All rights reserved.
6*f6217f89SApple OSS Distributions  *
7*f6217f89SApple OSS Distributions  * @APPLE_LLVM_LICENSE_HEADER@
8*f6217f89SApple OSS Distributions  *
9*f6217f89SApple OSS Distributions  */
10*f6217f89SApple OSS Distributions 
11*f6217f89SApple OSS Distributions /********************
12*f6217f89SApple OSS Distributions  *  NSBlock support
13*f6217f89SApple OSS Distributions  *
14*f6217f89SApple OSS Distributions  *  We allocate space and export a symbol to be used as the Class for the on-stack and malloc'ed copies until ObjC arrives on the scene.  These data areas are set up by Foundation to link in as real classes post facto.
15*f6217f89SApple OSS Distributions  *
16*f6217f89SApple OSS Distributions  *  We keep these in a separate file so that we can include the runtime code in test subprojects but not include the data so that compiled code that sees the data in libSystem doesn't get confused by a second copy.  Somehow these don't get unified in a common block.
17*f6217f89SApple OSS Distributions  **********************/
18*f6217f89SApple OSS Distributions 
19*f6217f89SApple OSS Distributions void * _NSConcreteStackBlock[32] = { 0 };
20*f6217f89SApple OSS Distributions void * _NSConcreteMallocBlock[32] = { 0 };
21*f6217f89SApple OSS Distributions void * _NSConcreteAutoBlock[32] = { 0 };
22*f6217f89SApple OSS Distributions void * _NSConcreteFinalizingBlock[32] = { 0 };
23*f6217f89SApple OSS Distributions void * _NSConcreteGlobalBlock[32] = { 0 };
24*f6217f89SApple OSS Distributions void * _NSConcreteWeakBlockVariable[32] = { 0 };
25