Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some recursion-checking tests #1367

Open
wants to merge 4,868 commits into
base: master
Choose a base branch
from
Open

Add some recursion-checking tests #1367

wants to merge 4,868 commits into from

Conversation

kmod
Copy link
Collaborator

@kmod kmod commented Sep 13, 2016

No description provided.

undingen and others added 30 commits July 8, 2016 12:29
only lookup __[set/get/del]slice__ for slice AST nodes
Or rather, have execfile() be more permissive in what it accepts.
It may still abort when we get to pickGlobalsAndLocals() and we
discover that we can't actually execute in that particular attrwrapper.
It keeps timing out
Support attrwrapper as globals argument to execfile
VRegSet: use a llvm bitvector as representation
The repro is:
- import a.b, and in a.b do
- import a.b as ab

This will cause an attribute error, since a.b (the name) is successfully importable,
but a.b (the attribute) doesn't exist yet.
I had spelled the test name wrong
(it uses old-style iteration)
And crazily, there is code that relies on this.

I wouldn't usually want to give in to code relying on such an
esoteric feature, but this seems to be a speedup as well (though
that deserves looking into, itself).
- special-case classes that we know have a fixed length (ex str)
- do patchpoints for getIterHelper
Cython try to store argcount, nlocals, and varnames through PyCode_New.
But Pyston don't do anything with those or support getting them back
out.
In PyDict_Next, the 3rd argument `pkey` and 4th argument pvalue could be
NULL. lxml will try to call it by PyDict_Next(kwdict, &pos, &key, 0).
And a check like CPython did.
Because scipy rely on NumPy, so add scipy test to numpy_test.py. And
rename it to scipy_test.py. numpy_full_test.py will check numpy test
suite. The scipy_test.py only for check scipy test suite. But scipy test
will take a long time. So disabled it by default.
This is hacky, but delve into scipy souce code to fix the numerous
implicit function declaration is not make sense for now.
at somepoint we really should split all this common code into a function...
keep track of which variables are known to be a python bool so that we can remove some of the nonzero() calls
… r15, rbx, rbp in PPs and the bjit

Keeping the available registers in a bitset makes it more memory efficient and
also easier and more performant to calculate a subset of the registers.
I will soon implement the 'otherThan' functionality using it which would fix the current problem of only allowing to exclude one register
use r12, r15 and rbx in bjit and inside bjit ICs, remove some nonzero checks
Daetalus and others added 20 commits September 12, 2016 07:16
[WIP]Let GCC 5 happy and update the CPython test notes
We symlink the CPython tests into our tests directory to control which
ones we will attempt to run.  A bunch of the tests though need other
test files in order to run, and we hadn't symlinked those in.

At some point we should switch to symlinking the Lib/test directory instead
of individual files, but for now this helps.
Main difference is lowering the recursion-depth on unoptimized
builds, since we need more stack space per python frame.
to not conflict with CPython's -O.  They're quite similar
(increase optimization level), but some tests ask for -O when
they don't really want our version of it.
For some reason the max-RSS limit doesn't seem to be kicking in.
Switch to putting a limit on the virtual size instead, and bump the
limit from 500MB to 1.5GB.
needed because of how we symlink things
ie did some quick debugging and added test notes
Two of these tests pass in release mode but not in debug (one is a timeout, the other is an assertion)
Two of them are failing in both and I don't know why I marked them as succeeding.
and only run the small variant in debug mode to avoid timeouts.
Previously I had tried splitting it in half, but it looks like that's
both not enough to avoid timeouts, and it also has a race condition when
trying to run two copies of the test at the same time (one will read the
not-fully-written pickled output of the other).
Take a pass over the CPython tests
kmod and others added 5 commits September 20, 2016 15:22
@kmod kmod force-pushed the master branch 2 times, most recently from 352fd89 to 6488a3e Compare October 28, 2020 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants