Code:
g++-4.8.1 -O3 -flto -march=native -std=c++11 -pthread -fprofile-use=./pgo-data -o second main2.cpp graph.o util.cpp thread_pool.o
g++-4.8.1 -O3 -flto -march=native -std=c++11 -pthread -fprofile-use=./pgo-data -DTHREADS -o second-threaded main2.cpp graph.o util.cpp thread_pool.o
g++-4.8.1 -O3 -flto -march=native -std=c++11 -pthread -fprofile-use=./pgo-data -DTHREADS -DPOOL -o second-pool main2.cpp graph.o util.cpp thread_pool.o
main2.cpp: In function ‘thread_pool::async(std::function<void ()>&&)::{lambda()#2}::operator()() const [clone .isra.78]’:
main2.cpp:144:1: error: the control flow of function ‘_ZZN11thread_pool5asyncEOSt8functionIFvvEEENKUlvE0_clEv.isra.78’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
}
^
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In function ‘__gnu_cxx::new_allocator<int>::allocate(unsigned long, void const*) [clone .isra.72]’:
main2.cpp:144:1: error: the control flow of function ‘_ZN9__gnu_cxx13new_allocatorIiE8allocateEmPKv.isra.72’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In function ‘std::allocator_traits<std::allocator<std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void> > >::_S_destroy<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()> >(std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>&, std::allocator<std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void> >::__destroy_helper*)std::enable_if<std::allocator<std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void> >::__destroy_helper<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()> >::value, void>::type’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt16allocator_traitsISaINSt13__future_base15_Deferred_stateISt12_Bind_simpleIFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEEEE10_S_destroyISB_EENSt9enable_ifIXsrNSD_16__destroy_helperIT_EE5valueEvE4typeERSC_PSH_’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In function ‘std::get<0ul, std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda()#2} (&&)())::{lambda()#1}>(std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda()#2} (&&)())::{lambda()#1}&)std::__add_ref<std::tuple_element<0ul, std::tuple<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda()#2} (&&)())::{lambda()#1}> >::type>::type’:
main2.cpp:144:1: error: the control flow of function ‘_ZSt3getILm0EIZNSt13__future_base17_Async_state_implISt12_Bind_simpleIFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEC1EOSA_EUlvE_EENSt9__add_refINSt13tuple_elementIXT_ESt5tupleIIDpT0_EEE4typeEE4typeERSJ_’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (std::function<void ()>)>, void>, std::allocator<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (std::function<void ()>)> >, (__gnu_cxx::_Lock_policy)2>::~_Sp_counted_ptr_inplace()’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt13__future_base15_Deferred_stateISt12_Bind_simpleIFZN11thread_pool5asyncEOSt8functionIFvvEEEUlS7_E_S6_EEvEESaISB_ELN9__gnu_cxx12_Lock_policyE2EED2Ev’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>, std::allocator<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()> >, (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt13__future_base17_Async_state_implISt12_Bind_simpleIFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEESaISB_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>, std::allocator<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()> >, (__gnu_cxx::_Lock_policy)2>::_M_dispose()’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt13__future_base17_Async_state_implISt12_Bind_simpleIFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEESaISB_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>, std::allocator<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()> >, (__gnu_cxx::_Lock_policy)2>::~_Sp_counted_ptr_inplace()’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt13__future_base17_Async_state_implISt12_Bind_simpleIFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEESaISB_ELN9__gnu_cxx12_Lock_policyE2EED0Ev’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>, std::allocator<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()> >, (__gnu_cxx::_Lock_policy)2>::~_Sp_counted_ptr_inplace()’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt13__future_base17_Async_state_implISt12_Bind_simpleIFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEESaISB_ELN9__gnu_cxx12_Lock_policyE2EED2Ev’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>, std::allocator<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()> >, (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt13__future_base15_Deferred_stateISt12_Bind_simpleIFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEESaISB_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>, std::allocator<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()> >, (__gnu_cxx::_Lock_policy)2>::_M_destroy()’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt13__future_base15_Deferred_stateISt12_Bind_simpleIFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEESaISB_ELN9__gnu_cxx12_Lock_policyE2EE10_M_destroyEv’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>, std::allocator<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()> >, (__gnu_cxx::_Lock_policy)2>::_M_dispose()’:
main2.cpp:144:1: warning: source locations for function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt13__future_base15_Deferred_stateISt12_Bind_simpleIFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEESaISB_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv’ have changed, the profile data may be out of date [enabled by default]
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>, std::allocator<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()> >, (__gnu_cxx::_Lock_policy)2>::~_Sp_counted_ptr_inplace()’:
main2.cpp:144:1: warning: source locations for function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt13__future_base15_Deferred_stateISt12_Bind_simpleIFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEESaISB_ELN9__gnu_cxx12_Lock_policyE2EED0Ev’ have changed, the profile data may be out of date [enabled by default]
main2.cpp: In member function ‘std::thread::_Impl<std::_Bind_simple<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda()#2} (&&)())::{lambda()#1} ()> >::_M_run()’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt6thread5_ImplISt12_Bind_simpleIFZNSt13__future_base17_Async_state_implIS1_IFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEC1EOSB_EUlvE_vEEE6_M_runEv’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::thread::_Impl<std::_Bind_simple<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (std::function<void ()>)>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (&&)(std::function<void ()>))::{lambda()#1} ()> >, std::allocator<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (std::function<void ()>)>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (&&)(std::function<void ()>))::{lambda()#1} ()>, (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt6thread5_ImplISt12_Bind_simpleIFZNSt13__future_base17_Async_state_implIS2_IFZN11thread_pool5asyncEOSt8functionIFvvEEEUlS9_E_S8_EEvEC1EOSC_EUlvE_vEEEESaISI_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::thread::_Impl<std::_Bind_simple<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (std::function<void ()>)>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (&&)(std::function<void ()>))::{lambda()#1} ()> >, std::allocator<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (std::function<void ()>)>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (&&)(std::function<void ()>))::{lambda()#1} ()>, (__gnu_cxx::_Lock_policy)2>::_M_destroy()’:
main2.cpp:144:1: warning: source locations for function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt6thread5_ImplISt12_Bind_simpleIFZNSt13__future_base17_Async_state_implIS2_IFZN11thread_pool5asyncEOSt8functionIFvvEEEUlS9_E_S8_EEvEC1EOSC_EUlvE_vEEEESaISI_ELN9__gnu_cxx12_Lock_policyE2EE10_M_destroyEv’ have changed, the profile data may be out of date [enabled by default]
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::thread::_Impl<std::_Bind_simple<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (std::function<void ()>)>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (&&)(std::function<void ()>))::{lambda()#1} ()> >, std::allocator<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (std::function<void ()>)>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (&&)(std::function<void ()>))::{lambda()#1} ()>, (__gnu_cxx::_Lock_policy)2>::_M_dispose()’:
main2.cpp: In function ‘thread_pool::async(std::function<void ()>&&)::{lambda()#2}::operator()() const [clone .isra.78]’:
main2.cpp:144:1: warning: source locations for function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt6thread5_ImplISt12_Bind_simpleIFZNSt13__future_base17_Async_state_implIS2_IFZN11thread_pool5asyncEOSt8functionIFvvEEEUlS9_E_S8_EEvEC1EOSC_EUlvE_vEEEESaISI_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv’ have changed, the profile data may be out of date [enabled by default]
main2.cpp:144:1: error: the control flow of function ‘_ZZN11thread_pool5asyncEOSt8functionIFvvEEENKUlvE0_clEv.isra.78’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
}
^
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::thread::_Impl<std::_Bind_simple<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda()#2} (&&)())::{lambda()#1} ()> >, std::allocator<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda()#2} (&&)())::{lambda()#1} ()>, (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt6thread5_ImplISt12_Bind_simpleIFZNSt13__future_base17_Async_state_implIS2_IFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEC1EOSC_EUlvE_vEEEESaISI_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp: In function ‘__gnu_cxx::new_allocator<int>::allocate(unsigned long, void const*) [clone .isra.72]’:
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp:144:1: error: the control flow of function ‘_ZN9__gnu_cxx13new_allocatorIiE8allocateEmPKv.isra.72’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::thread::_Impl<std::_Bind_simple<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda()#2} (&&)())::{lambda()#1} ()> >, std::allocator<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda()#2} (&&)())::{lambda()#1} ()>, (__gnu_cxx::_Lock_policy)2>::_M_destroy()’:
main2.cpp:144:1: warning: source locations for function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt6thread5_ImplISt12_Bind_simpleIFZNSt13__future_base17_Async_state_implIS2_IFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEC1EOSC_EUlvE_vEEEESaISI_ELN9__gnu_cxx12_Lock_policyE2EE10_M_destroyEv’ have changed, the profile data may be out of date [enabled by default]
main2.cpp: In member function ‘std::_Sp_counted_ptr_inplace<std::thread::_Impl<std::_Bind_simple<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda()#2} (&&)())::{lambda()#1} ()> >, std::allocator<std::__future_base::_Async_state_impl<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>::_Async_state_impl(thread_pool::async(std::function<void ()>&&)::{lambda()#2} (&&)())::{lambda()#1} ()>, (__gnu_cxx::_Lock_policy)2>::_M_dispose()’:
main2.cpp:144:1: warning: source locations for function ‘_ZNSt23_Sp_counted_ptr_inplaceINSt6thread5_ImplISt12_Bind_simpleIFZNSt13__future_base17_Async_state_implIS2_IFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEC1EOSC_EUlvE_vEEEESaISI_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv’ have changed, the profile data may be out of date [enabled by default]
main2.cpp: In function ‘__static_initialization_and_destruction_0(int, int)’:
main2.cpp:144:1: error: the control flow of function ‘_Z41__static_initialization_and_destruction_0ii’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘__gnu_cxx::__concurrence_lock_error::~__concurrence_lock_error()’:
main2.cpp:144:1: error: the control flow of function ‘_ZN9__gnu_cxx24__concurrence_lock_errorD0Ev’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘__gnu_cxx::__concurrence_unlock_error::~__concurrence_unlock_error()’:
main2.cpp:144:1: warning: source locations for function ‘_ZN9__gnu_cxx26__concurrence_unlock_errorD2Ev’ have changed, the profile data may be out of date [enabled by default]
main2.cpp: In member function ‘__gnu_cxx::__concurrence_broadcast_error::~__concurrence_broadcast_error()’:
main2.cpp:144:1: error: the control flow of function ‘_ZN9__gnu_cxx29__concurrence_broadcast_errorD0Ev’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘__gnu_cxx::__concurrence_broadcast_error::~__concurrence_broadcast_error()’:
main2.cpp:144:1: error: the control flow of function ‘_ZN9__gnu_cxx29__concurrence_broadcast_errorD2Ev’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘__gnu_cxx::__concurrence_wait_error::~__concurrence_wait_error()’:
main2.cpp:144:1: error: the control flow of function ‘_ZN9__gnu_cxx24__concurrence_wait_errorD0Ev’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘__gnu_cxx::__concurrence_wait_error::~__concurrence_wait_error()’:
main2.cpp:144:1: error: the control flow of function ‘_ZN9__gnu_cxx24__concurrence_wait_errorD2Ev’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::__future_base::_Result<void>::~_Result()’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt13__future_base7_ResultIvED0Ev’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In member function ‘std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda(std::function<void ()>&&)#1} (std::function<void ()>)>, void>::~_Deferred_state()’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt13__future_base15_Deferred_stateISt12_Bind_simpleIFZN11thread_pool5asyncEOSt8functionIFvvEEEUlS6_E_S5_EEvED2Ev’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
main2.cpp:144:1: note: use -Wno-error=coverage-mismatch to tolerate the mismatch but performance may drop if the function is hot
main2.cpp: In function ‘std::allocator_traits<std::allocator<std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void> > >::_S_destroy<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()> >(std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void>&, std::allocator<std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void> >::__destroy_helper*)std::enable_if<std::allocator<std::__future_base::_Deferred_state<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()>, void> >::__destroy_helper<std::_Bind_simple<thread_pool::async(std::function<void ()>&&)::{lambda()#2} ()> >::value, void>::type’:
main2.cpp:144:1: error: the control flow of function ‘_ZNSt16allocator_traitsISaINSt13__future_base15_Deferred_stateISt12_Bind_simpleIFZN11thread_pool5asyncEOSt8functionIFvvEEEUlvE0_vEEvEEEE10_S_destroyISB_EENSt9enable_ifIXsrNSD_16__destroy_helperIT_EE5valueEvE4typeERSC_PSH_’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]