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

LB() can try to scan to i < 0 #1177

Closed
parrt opened this issue Apr 16, 2016 · 0 comments
Closed

LB() can try to scan to i < 0 #1177

parrt opened this issue Apr 16, 2016 · 0 comments

Comments

@parrt
Copy link
Member

parrt commented Apr 16, 2016

LB scans w/o checking i:

        while ( n<=k ) {
            // skip off-channel tokens
            i = previousTokenOnChannel(i - 1, channel);
            n++;
        }

then we fail an assertion in sync() called from previousTokenOnChannel():

    protected boolean sync(int i) {
        assert i >= 0;
        int n = i - tokens.size() + 1; // how many more elements we need?
...
    }
@parrt parrt closed this as completed in 0a7e90f Dec 10, 2016
@parrt parrt added this to the 4.6 milestone Dec 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant