Commit e78ace1c authored by Xavier Thompson's avatar Xavier Thompson

Optimise default runtime 'iso' check

parent 5d0d221d
......@@ -92,7 +92,7 @@
/* Object graph inspection methods */
virtual int CyObject_iso() const {
return this->nogil_ob_refcnt == 1;
return this->CyObject_GETREF() == 1;
}
virtual void CyObject_traverse_iso(void (*visit)(const CyObject *o, void *arg), void *arg) const {
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment