You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The detection of re-entrant initialization seem surprisingly heavy weight. What do you think about turning this around in the future, meaning to use e.g. a thread-local list of type object addresses which the current thread is currently initializing instead of a list of threads for each type object?
This does not work as reentrancy can happen both from the current thread which could be detected using a thread-local list and from other threads at the same time, so we still need global synchronization. I guess, this could be done using hazard pointers but that seems a bit too much to reduce start-up time.
Originally posted by @adamreichold in #2947 (comment)
The text was updated successfully, but these errors were encountered: