We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1983cc4 commit 952087dCopy full SHA for 952087d
src/gcc_libinit.c
@@ -50,9 +50,10 @@ _cgo_wait_runtime_init_done(void) {
50
51
// The key and x_cgo_pthread_key_created are for the whole program,
52
// whereas the specific and destructor is per thread.
53
- if (x_cgo_pthread_key_created == 0 && pthread_key_create(&pthread_g, pthread_key_destructor) == 0) {
54
- x_cgo_pthread_key_created = 1;
55
- }
+ (void)pthread_key_destructor;
+ // if (x_cgo_pthread_key_created == 0 && pthread_key_create(&pthread_g, pthread_key_destructor) == 0) {
+ // x_cgo_pthread_key_created = 1;
56
+ // }
57
58
// TODO(iant): For the case of a new C thread calling into Go, such
59
// as when using -buildmode=c-archive, we know that Go runtime
0 commit comments