Skip to content

Commit

Permalink
Add bind_at_load compiler flag to force symbol binding
Browse files Browse the repository at this point in the history
Attempt to fix deadlock due to symbol binding, which takes a global lock loading a dylib, when running gc collection if another thread was stopped while holding the global lock.
  • Loading branch information
martinpotter committed Jan 24, 2020
1 parent 157739a commit 91cf367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/mini/Makefile.am.in
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ libmonoboehm_2_0_la_LIBADD = libmini.la $(interp_libs_with_mini) $(dbg_libs_with
libmonoboehm_2_0_la_LDFLAGS = $(libmonoldflags) $(monobin_platform_ldflags)

libmonosgen_2_0_la_SOURCES =
libmonosgen_2_0_la_CFLAGS = $(mono_sgen_CFLAGS) @CXX_ADD_CFLAGS@
libmonosgen_2_0_la_CFLAGS = $(mono_sgen_CFLAGS) @CXX_ADD_CFLAGS@ -Xcompiler -bind_at_load

libmonosgen_2_0_la_LIBADD = libmini.la $(interp_libs_with_mini) $(dbg_libs_with_mini) $(sgen_libs) $(LIBMONO_DTRACE_OBJECT) $(LLVMMONOF)
libmonosgen_2_0_la_LDFLAGS = $(libmonoldflags) $(monobin_platform_ldflags)
Expand Down

0 comments on commit 91cf367

Please sign in to comment.