- 01 Apr, 2015 1 commit
-
-
Kevin Modzelewski authored
a few changes which help out GC performance
-
- 31 Mar, 2015 7 commits
-
-
Chris Toshok authored
-
Chris Toshok authored
-
Chris Toshok authored
-
Chris Toshok authored
when looking up a child hidden class we look up the attr in the child_index map, then get the HiddenClass* from the children vector (at that index.) this speeds up GC substantially by letting us visit the range from the vector as opposed to iterating through the stringmap.
-
Chris Toshok authored
add a map-like container that keeps its values contiguous so we can use the efficient gc_visitor->visitRange.
-
Kevin Modzelewski authored
Somewhat tricky since it assumes __dict__ is always a dict object; I think I caught most of the places though.
-
Travis Hance authored
implemented kmod's suggestions
-
- 30 Mar, 2015 6 commits
-
-
Kevin Modzelewski authored
through syntax error when you to `del` a var stored in a closure
-
Kevin Modzelewski authored
add option to tester script to skip specified tests
-
Kevin Modzelewski authored
Conflicts: src/codegen/ast_interpreter.cpp src/runtime/types.cpp
-
Kevin Modzelewski authored
Update INSTALLING.md
-
Chris Toshok authored
-
Weng Shiwei authored
add "sudo" before apt-get It seems a typo?
-
- 28 Mar, 2015 3 commits
-
-
Chris Toshok authored
add StackRoot<> and #defines for DECREF
-
Chris Toshok authored
add a variadic template ctor that delegates to T's constructor (making things potentially a bit more compact for constructing rooted boxes)
-
Chris Toshok authored
-
- 27 Mar, 2015 7 commits
-
-
Kevin Modzelewski authored
Misc fixes for virtualenv / pip
-
Marius Wachtler authored
-
Marius Wachtler authored
+ fix a test failing because of a slightly different error message than cpython 2.7.8
-
Marius Wachtler authored
-
Kevin Modzelewski authored
Previously we would say that they were coming from the same file as they are executed in, typically on line 1, which would give a misleading traceback saying that the module docstring threw the error. Now, do what CPython does and say that the file is "<string>", and don't display the source line. The method is pretty hacky right now, where it only makes this adjustment when generating the traceback. Instead we should probably get rid of storing the BoxedModule in the sourceinfo in the first place, and just passing around the relevant info (fn, locals, globals, etc).
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Conflicts: src/codegen/ast_interpreter.cpp src/codegen/irgen/irgenerator.cpp src/codegen/pypa-parser.cpp
-
- 26 Mar, 2015 16 commits
-
-
Kevin Modzelewski authored
in merge: - with_ctxclass_instance_attrs now succeeds due to d1387d74 - merge ~conflict in LangPrimitive opcodes
-
Kevin Modzelewski authored
Remove dbg -O and release -n configurations. Just for dev; leave Travis-CI the way it is for now.
-
Kevin Modzelewski authored
They test what happens when a weakref's referent gets collected, but I guess in certain build configurations we would keep the object alive due to some sort of different memory layout (got saved in a CSR or a stack slot that didn't get rewritten, etc). Adding some extra function calls seems to help, though it's hard to tell how reliable it is.
-
Kevin Modzelewski authored
Misc fixes for pip part 3
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Use cpythons isinstance and issubclass implementation
-
Kevin Modzelewski authored
Use the pypa parser as the default parser.
-
Marius Wachtler authored
and let the interpreter actually do a cls lookup when encountering a ClsAttribute node...
-
Marius Wachtler authored
but both args have to fit into an int...
-
Marius Wachtler authored
-
Marius Wachtler authored
-
Marius Wachtler authored
This commit removes our implementation of this functions, because they could not handle mixing of old and new style classes. And having two implementations with very similar name but different results is very confusing. Also adds __subclasscheck__ and __instancecheck__ support
-
Marius Wachtler authored
Switches the meaning of -x. In addition update to latest pypa version
-
Kevin Modzelewski authored
Previously it was UNTRACKED and the object's gcHandler would scan it if necessary. This worked ok most of the time but caused issues when we subclass from an extension class: the memory for those classes are allocated conservatively, which meant that a gc handler wasn't called. One potential approach would be to allocate extension objects as PYTHON allocations but with a gcHandler that both scans conservatively and also knows about the attrs array. But for now it seems easier to allocate the attrs array as a PRECISE array (which means it gets scanned) rather than UNTRACKED, since it will automatically get picked up (and provide better gc safety in general and remove one of the odd gc cases). I didn't realize that we weren't using PRECISE at all and that it wasn't completely working, so this change also required setting kind_data for PRECISE allocations, and fixing the way we keep this updated during gc_realloc.
-
Kevin Modzelewski authored
- Add some more time functions - Workaround for logging for now, to not try to show the caller frame - Copy over everything in LIBPYSTON in the cmake build (useful for django to copy over things like templates) - Allow str/unicode subclasses in more places - Add a BoxedFile gc handler - PyLong_FromString - set.difference - iter(iter(""))
-
Travis Hance authored
-