[issue26891] CPython doesn't work when you disable refcounting

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Well, CPython requires reference counting. This issue looks highly experimental with not activity for 3 years, I close it. -- nosy: +vstinner resolution: -> not a bug stage: needs patch -> resolved status: open -> closed

[issue26891] CPython doesn't work when you disable refcounting

2016-04-30 Thread Larry Hastings
Larry Hastings added the comment: Here is my theory: if the code asserts that it's true, and the code normally runs fine, then it's normally true, and therefore I can remove the assertion and the code will run correctly. I haven't hit that assertion in the peephole optimizer. But I have

[issue26891] CPython doesn't work when you disable refcounting

2016-04-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Just now I'm reading the code of the peephole optimizer, and it contains such assertion since it modifies the lnotab bytes array in-place. May be there are other similar cases. -- ___ Python tracker

[issue26891] CPython doesn't work when you disable refcounting

2016-04-30 Thread Larry Hastings
Larry Hastings added the comment: I did as you suggested. I also discovered that _Py_NewReference is usually a macro, and I'd only fixed the version in Objects/object.c (the one not being used). When I fixed both those things, and switched the makefile so it uses a different Python

[issue26891] CPython doesn't work when you disable refcounting

2016-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is other code that sets refcount. Include/object.h:764:Py_REFCNT(op) = 1) Objects/moduleobject.c:38:Py_REFCNT(def) = 1; Objects/longobject.c:5450:Py_REFCNT(op) = refcnt + 1; Objects/unicodeobject.c:1762:Py_REFCNT(unicode)

[issue26891] CPython doesn't work when you disable refcounting

2016-04-29 Thread Larry Hastings
Changes by Larry Hastings : -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue26891] CPython doesn't work when you disable refcounting

2016-04-29 Thread Larry Hastings
New submission from Larry Hastings: So here's a strange one. I want to do some mysterious experiments with CPython. So I disabled refcount changes in CPython. I changed Py_INCR and Py_DECR so they expand to nothing. I had to change some other macros to match (SETREF, XSETREF, and the