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

Disable multithreading in lx for now. #352

Merged
merged 1 commit into from
Apr 28, 2021
Merged

Commits on Apr 28, 2021

  1. Disable multithreading in lx for now.

    Running this in a loop:
    
        $ while true; do sleep 0.1; ./build/bin/lx -l test < src/lx/lexer.lx \
            && echo ok; done
    
    Produces a stream of intermittent failures. There appears to be
    unsynchronized access to a shared/global resource, and races on
    either `realloc`ing or `free`ing it can nondeterministically lead
    to memory corruption.
    
    For now, change to using only one thread -- issue #351 exists as a
    reminder to-enable this once the underlying problem has been fixed.
    silentbicycle committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    ae73900 View commit details
    Browse the repository at this point in the history