- 13 Feb, 2015 26 commits
-
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
add a simple_destructor for file objects
-
Kevin Modzelewski authored
Add third GC arena
-
Kevin Modzelewski authored
Previously it was: tier 0: ast interpreter tier 1: llvm, no speculations, no llvm opts tier 2: llvm, w/ speculations, no llvm opts tier 3: llvm, w/ speculations, w/ llvm opts tier 2 seemed pretty useless, and very little would stay in it. Also, OSR would always skip from tier 1 to tier 3. Separately, add configurable OSR/reopt thresholds. This is mostly for the sake of tests, where we can set lower limits and force OSR/reopts to happen.
-
Chris Toshok authored
-
Kevin Modzelewski authored
-
Chris Toshok authored
-
Kevin Modzelewski authored
Generator tracebacks
-
Kevin Modzelewski authored
add reversed() builtin function, as well as compatible __reversed__ methods on list/xrange.
-
Chris Toshok authored
-
Chris Toshok authored
-
Chris Toshok authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Fix: GC must visit the 'iter' field of every BoxedIterWrapper
-
Chris Toshok authored
-
Marius Wachtler authored
-
Marius Wachtler authored
-
Kevin Modzelewski authored
(previously we would just throw an assert)
-
Chris Toshok authored
-
Chris Toshok authored
-
Chris Toshok authored
add a comment about further work for realloc(), and factor out the duplicate list.forEach in large/huge arenas
-
Chris Toshok authored
-
Chris Toshok authored
-
Chris Toshok authored
-
Chris Toshok authored
don't use toggle, since our assert ensures not free only in debug builds. also, more valgrind error disabling for access to the GCAllocation data
-
Chris Toshok authored
port over sgen's idea of LOSSections as a mid-sized arena, so that we now have: SmallArena original non-large allocator, free bitmaps, segregated-fit allocator. handles objects where size <= 3584 bytes LargeArena (new code, size-specific free lists.) handles object where 3584 < size <= ~1 meg HugeArena (original large allocator, 1 mmap per object. handles objects where size > ~1meg
-
- 12 Feb, 2015 14 commits
-
-
Kevin Modzelewski authored
Implement str.join(iterable)
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
We were having problems with spawning subprocesses from threads, since the children would inherit the "wait for another thread to acquire the gil" flag, but would not inherit the thread that would actually try to acquire the gil; this would make the child hang.
-
Marius Wachtler authored
-
Marius Wachtler authored
before we stopped at the generatorEntry func and did not unwind into the caller.
-
Kevin Modzelewski authored
Also, register string memory as additional GC pressure. The subprocess module repeatedly allocates a 1MB str as a buffer for reading from file descriptors. The first issue was that we would never free this memory; but even once we would, we wouldn't trigger a GC since there were only small GC allocations (sizeof(BoxedString) at a time) but with large other memory pressure, so add a hook for adding GC pressure.
-
Kevin Modzelewski authored
We don't call pthread_join on the threads we create, so apparently unless we call pthread_detach we just don't get the resources back (ex stack memory).
-
Kevin Modzelewski authored
This doesn't handle all the cases that CPython does.
-
Kevin Modzelewski authored
And fix a bunch of places that they weren't.
-
Kevin Modzelewski authored
This might introduce a perf regression (ICs get slightly slower) but cleans things up a lot and fixes a few bugs.
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
We clear a patchpoint by writing a jmp-to-slowpath at the beginning. But there could be a stack frame currently inside the IC, and we need to be able to invalidate the IC while letting the other frame return successfully. So make sure that we don't overwrite any potential return address.
-
Kevin Modzelewski authored
Before, we tried to do it based on whether the rewrite we were adding was "compatible" with whatever was already in there. But we weren't really doing this and there were a lot of limitations with this method anyway.
-
Kevin Modzelewski authored
This is kind of hacky due to our method of first doing the rewrite, and then picking the slot to rewrite to. This means that at the time that we create the rewrite, we don't know the exact location of the "num_inside" counter, so we have to go back at the end and rewrite it. We could also switch things to pick the rewrite slot first, but that is also complicated but perhaps more subtly, since during the course of the rewrite the chosen slot could have gotten rewritten! This changeset adds this functionality but doesn't use it for anything.
-