Author vstinner
Recipients aeros, corona10, eric.snow, shihai1991, vstinner
Date 2020-06-24.13:55:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593006909.26.0.00307673576711.issue40512@roundup.psfhosted.org>
In-reply-to
Content
Update of the EXPERIMENTAL_ISOLATED_SUBINTERPRETERS status.

I made many free lists and singletons per interpreter in bpo-40521.

TODO:

* _PyUnicode_FromId() and interned strings are still shared: typeobject.c requires a workaround for that.
* GC is disabled in subinterpreters since some objects are still shared
* Type method cache is shared.
* pymalloc is shared.
* The GIL is shared.

I'm investigating performance of my _PyUnicode_FromId() PR: https://github.com/python/cpython/pull/20058

This PR now uses "atomic functions" proposed in a second PR: https://github.com/python/cpython/pull/20766

The "atomic functions" avoids the need to have to declare a variable or a structure member as atomic, which would cause different issues if they are declared in Python public headers (which is the case for _Py_Identifier used by _PyUnicode_FromId()).
History
Date User Action Args
2020-06-24 13:55:09vstinnersetrecipients: + vstinner, eric.snow, corona10, shihai1991, aeros
2020-06-24 13:55:09vstinnersetmessageid: <1593006909.26.0.00307673576711.issue40512@roundup.psfhosted.org>
2020-06-24 13:55:09vstinnerlinkissue40512 messages
2020-06-24 13:55:09vstinnercreate