1 #include "test/jemalloc_test.h" 2 3 #include "jemalloc/internal/spin.h" 4 TEST_BEGIN(test_spin)5TEST_BEGIN(test_spin) { 6 spin_t spinner = SPIN_INITIALIZER; 7 8 for (unsigned i = 0; i < 100; i++) { 9 spin_adaptive(&spinner); 10 } 11 } 12 TEST_END 13 14 int main(void)15main(void) { 16 return test( 17 test_spin); 18 } 19