Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit e61e0cd

Browse files
committed
Document that dlclose with thread_local is fixed in P.
Bug: android/ndk#360 Test: N/A Change-Id: Ib9807045bd3206fa3cd300ab70ebed93c73a58e4
1 parent 0d63a3c commit e61e0cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

android-changes-for-ndk-developers.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -389,16 +389,16 @@ adb shell setprop debug.ld.all dlerror,dlopen
389389
Android allows `dlclose` to unload a library even if there are still
390390
thread-local variables with non-trivial destructors. This leads to
391391
crashes when a thread exits and attempts to call the destructor, the
392-
code for which has been unloaded (as in [issue 360]).
392+
code for which has been unloaded (as in [issue 360], fixed in P).
393393

394394
[issue 360]: https://github.com/android-ndk/ndk/issues/360
395395

396396
Not calling `dlclose` or ensuring that your library has `RTLD_NODELETE`
397397
set (so that calls to `dlclose` don't actually unload the library)
398398
are possible workarounds.
399399

400-
| | Pre-M | M+ |
401-
| ----------------- | -------------------------- | ------- |
402-
| No workaround | Works for static STL | Broken |
403-
| `-Wl,-z,nodelete` | Works for static STL | Works |
404-
| No `dlclose` | Works | Works |
400+
| | Pre-M | M+ | P+ |
401+
| ----------------- | -------------------------- | ------- | ----- |
402+
| No workaround | Works for static STL | Broken | Works |
403+
| `-Wl,-z,nodelete` | Works for static STL | Works | Works |
404+
| No `dlclose` | Works | Works | Works |

0 commit comments

Comments
 (0)