Loading...
tests/os_atomic.cpp xnu-12377.101.15 xnu-8792.81.2
--- xnu/xnu-12377.101.15/tests/os_atomic.cpp
+++ xnu/xnu-8792.81.2/tests/os_atomic.cpp
@@ -6,11 +6,11 @@
 	T_META_CHECK_LEAKS(false)
 	);
 
-T_DECL(os_atomic, "Just to make sure things build at all in c++ mode", T_META_TAG_VM_PREFERRED)
+T_DECL(os_atomic, "Just to make sure things build at all in c++ mode")
 {
-	static os_atomic(int) i;
-	static volatile int v_i = 0;
+	os_atomic(int) i = 0;
 	int old_i = 0;
+	volatile int v_i = 0;
 	int a, b;
 
 	T_ASSERT_EQ(os_atomic_inc_orig(&i, relaxed), 0, "atomic inc");