diff --git a/en_US.ISO8859-1/htdocs/news/status/report-2015-01-2015-03.xml b/en_US.ISO8859-1/htdocs/news/status/report-2015-01-2015-03.xml index 069e0bbacf..7b0ff8de88 100644 --- a/en_US.ISO8859-1/htdocs/news/status/report-2015-01-2015-03.xml +++ b/en_US.ISO8859-1/htdocs/news/status/report-2015-01-2015-03.xml @@ -1802,4 +1802,53 @@ WITHOUT_FORTH=y The &os; Foundation + + + libthr improvements + + + + + Konstantin + Belousov + + kib@FreeBSD.org + + + + +

Historically, dynamic loading of the libthr.so thread + library into a single-threaded process did not work in &os;. + The longstanding recommendation to work-around the problem has + been to always link the main binary with -lpthread if there was + any chance of a need for threading functionality. This project + converted libthr.so into a plugin for libc, which fixed the + known issues preventing dynaic loading of libthr.so.

+ +

After the fix, linking the main binary with -lpthread is + no longer requred, but is not harmful. I recommend thoroughly + testing before removing libpthread from the libraries list in + favor of dynamic loading, though. Note that potential problems + will be subtle and their user-visible manifestations in the + affected program even more surprising.

+ +

The following issues were present in the old version of + libthr with respect to dynamic loading, but are fixed as + a result of this work:

+ + + +

The main change was committed as r276630 to HEAD, with many + follow ups. It was merged to stable/10 in r277317.

+ + + The &os; Foundation +