- 13 Feb, 2015 3 commits
-
-
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 13 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
-
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.
-
- 11 Feb, 2015 6 commits
-
-
Kevin Modzelewski authored
Thanks to @denji for the report!
-
Kevin Modzelewski authored
We weren't scanning it as part of the gc handler, so eventually it would get collected and then __name__ would break. (un)fortunately, in the cases that would use it, it looks like it would always get replaced by another string (the only thing being allocated out of that size bin?), so it would look like the __name__ was just wrong. Anyway, this should fix interp2.py
-
Kevin Modzelewski authored
I'm surprised we got away so long without handling them! Also, it looks like del statements go through full tuple unpacking -- so you can do something like del (l[1], [c.b])
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
So that we have a whole number of pointers to scan. I think there's a bunch more we can do to optimize this situation (do we even need to scan these at all?) but this seems like the simplest way to make this work for now.
-
Kevin Modzelewski authored
Need to unbox-rebox bools like we do for ints and floats.
-
- 10 Feb, 2015 3 commits
-
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Also, improve rewriting to still be able to rewrite object construction. For now, be able to rewrite the case that a function takes kwargs but the kwargs is empty. Also, add an even faster path to typeCallInternal. This is partially obviated by the improved rewriting, but we might as well keep it.
-
Kevin Modzelewski authored
And add a test that would have caught this specific case. Would be nice if we had some way of verifying these more generally...
-
- 09 Feb, 2015 7 commits
-
-
Kevin Modzelewski authored
I don't think the current implementation will be that fast and will probably do poorly in sort()/sorted() microbenchmarks. My feeling is that it doesn't matter that much, but if it does there are some things we can do to optimize it.
-
Kevin Modzelewski authored
Unwinding: remember the bounds of the interpreter function
-
Marius Wachtler authored
for -I and 'import optparse' this will result in about 5% speedup
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
The InternedString change conflicted with Travis's keyword-params change, since the arg names were switched to InternedStrings. I decided to not intern the param names any more, and instead represent them as llvm::StringRef. Another option would be to intern the builtin ones, even though there's no independent benefit to doing so, since that would let us use InternedStrings more generally. Probably the "best" but most complicated would be to have the StringRef version and then an InternedString version as well that was constructed when needed.
-
- 08 Feb, 2015 1 commit
-
-
Kevin Modzelewski authored
Getset set
-
- 07 Feb, 2015 7 commits
-
-
Kevin Modzelewski authored
Add the '__pyston__' module
-
Kevin Modzelewski authored
-
Marius Wachtler authored
it lets scripts control some of the internal options will be used for interpreter performance tracking
-
Travis Hance authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Also, move exceptions.py since that conflicts
-
Kevin Modzelewski authored
-