-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix remaining memory bugs #443
Commits on Sep 24, 2024
-
fix:
Py_XDECREF
requires the GIL to be held, but it's unavailable a……fter Python finalization
Configuration menu - View commit details
-
Copy full SHA for 7ea7a4c - Browse repository at this point
Copy the full SHA 7ea7a4cView commit details -
fix: accessing a non-existent property on a Python
bytes
in JS land…… should return `undefined` instead of throwing a Python error
Configuration menu - View commit details
-
Copy full SHA for 3453696 - Browse repository at this point
Copy the full SHA 3453696View commit details -
fix: clean up SpiderMonkey when the PythonMonkey module gets destroyed
We cannot use `Py_AtExit(cleanup);` because the GIL is unavailable after Python finalization, no more Python APIs can be called.
Configuration menu - View commit details
-
Copy full SHA for dd0aaed - Browse repository at this point
Copy the full SHA dd0aaedView commit details -
fix: to fix memory corruption, use
PyUnicode_AsUTF8AndSize
with the…… string size when possible
Configuration menu - View commit details
-
Copy full SHA for a0e3b05 - Browse repository at this point
Copy the full SHA a0e3b05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 667abc3 - Browse repository at this point
Copy the full SHA 667abc3View commit details -
fix: to fix memory corruption, use
PyUnicode_AsUTF8AndSize
with the…… string size when possible
Configuration menu - View commit details
-
Copy full SHA for c804ca9 - Browse repository at this point
Copy the full SHA c804ca9View commit details -
fix:
PyEventLoop
's destructor should not use any Python API, after ……the GIL is already handed over to another thread
Configuration menu - View commit details
-
Copy full SHA for 7c74274 - Browse repository at this point
Copy the full SHA 7c74274View commit details -
fix:
PyUnicodeObject
needs to be well-formed in a debug build of CP……ython Otherwise a `_PyObject_AssertFailed` error will be raised See: `_PyUnicode_CheckConsistency` https://github.com/python/cpython/blob/v3.11.3/Objects/unicodeobject.c#L594-L600, #L552-L553
Configuration menu - View commit details
-
Copy full SHA for 73957c0 - Browse repository at this point
Copy the full SHA 73957c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a13901 - Browse repository at this point
Copy the full SHA 5a13901View commit details -
refactor: replace the use of our own roundtrip
StrType::getValue
me……thod with the simpler `JS_EncodeStringToUTF8` SpiderMonkey API
Configuration menu - View commit details
-
Copy full SHA for 8e365a7 - Browse repository at this point
Copy the full SHA 8e365a7View commit details -
fix: properly handle the reference count when doing
list.concat()
`PyList_SetItem` steals the reference, so we must increase the reference count by 1
Configuration menu - View commit details
-
Copy full SHA for 0eeda35 - Browse repository at this point
Copy the full SHA 0eeda35View commit details -
perf: simply do a pythonic
result = list[:]
to get a copy of all it……ems to the new list
Configuration menu - View commit details
-
Copy full SHA for c63b609 - Browse repository at this point
Copy the full SHA c63b609View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9474990 - Browse repository at this point
Copy the full SHA 9474990View commit details
Commits on Oct 1, 2024
-
Merge branch 'Xmader/feat/python-3.13-support' into Xmader/fix/fix-me…
…m-bugs-using-debug-build
Configuration menu - View commit details
-
Copy full SHA for a1f11b4 - Browse repository at this point
Copy the full SHA a1f11b4View commit details -
fix: reference count for
array_fill
Since each call of `PyList_SetItem` steals a reference (even if its to the same object), we need multiple references to it for it to steal Co-authored-by: Caleb Aikens <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dda2916 - Browse repository at this point
Copy the full SHA dda2916View commit details -
set
GLOBAL_CX = null
in the final cleanup function since it's no lo……nger usable/useful after the context is destroyed
Configuration menu - View commit details
-
Copy full SHA for 5b9deec - Browse repository at this point
Copy the full SHA 5b9deecView commit details -
fix the reference count for dicts
test_get_default_not_found
in Pyt……hon 3.11 Something is double-free-ed during the final finalization: in a debug build of Python, `./Include/object.h:602: _Py_NegativeRefcount: Assertion failed: object has negative ref count` In non-debug build of Python, it simply segfaults at the end during finalization.
Configuration menu - View commit details
-
Copy full SHA for a4762ae - Browse repository at this point
Copy the full SHA a4762aeView commit details
Commits on Oct 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 38309a3 - Browse repository at this point
Copy the full SHA 38309a3View commit details