NuwaTemplateProcess: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 12: Line 12:


== TLS ==
== TLS ==
Thread local storage, aka TLS, is a part of a thread.  TLS provides a separated storage for each thread, the data stored in TLS are accessed through a key.  Nuwa process will remember all keys ever been used, and read and remember the associated data just before freeze point for every thread, then restore them at parasited threads.  See SaveTLSInfo(), RestoreTLSInfo(), __wrap_pthread_key_create(), and __wrap_pthread_key_delete() in BionicGlue.cpp.
Thread local storage, aka TLS, is a part of a thread.  TLS provides a separated storage for each thread, the data stored in TLS are accessed through a key.  Nuwa process will remember all keys ever been used, and read and remember the associated data just before freeze point for every thread, then restore them at parasited threads.  See
* SaveTLSInfo(),
* RestoreTLSInfo(),
* __wrap_pthread_key_create(), and
* __wrap_pthread_key_delete()
in BionicGlue.cpp.


== Mutics and Conditions ==
== Mutics and Conditions ==
Confirmed users
398

edits

Navigation menu