Axiom finalization cache does not work on PyPy
Bug #829879 reported by
Tristan Seligmann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Divmod Axiom |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
`Axiom._fincache`, the code in `Store` that uses it, and the relevant tests rely on objects being deallocated and weakref finalizers being called at very specific times. On PyPy, these events do not occur at quite the same times that the code expects, resulting in errors. I believe it is possible to cope with this by adjusting the way the code uses the cache; while items may still linger in the cache for longer than they would have on CPython, I do not think this should cause any application-level breakage except in application code that is doing extremely unsupported things.
Related branches
lp:~divmod-dev/divmod.org/829879-pypy-finalization-semantics
- Laurens Van Houtven: Approve
- Jean-Paul Calderone: Approve
-
Diff: 236 lines (+117/-38)3 files modifiedAxiom/axiom/_fincache.py (+111/-34)
Axiom/axiom/store.py (+5/-3)
Axiom/axiom/test/test_reference.py (+1/-1)
Changed in divmod-axiom: | |
status: | New → Fix Committed |
Changed in divmod-axiom: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.