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

Parallel lock free testing, remove potential deadlocks, cache static data, go to descriptor via test #3752

Merged
merged 20 commits into from
Jun 26, 2022

Commits on Jun 21, 2022

  1. Implement fast parallel lock-free in-process testing for Java

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    84c9780 View commit details
    Browse the repository at this point in the history
  2. Add final modifier to all static fields where it's possible

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    e942e1a View commit details
    Browse the repository at this point in the history
  3. Remove doubtful and not used static fields

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    36b885c View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2022

  1. Fix potential deadlocks in Java runtime

    Referencing subclass ParserRuleContext from superclass RuleContext initializer might lead to class loading deadlock
    
    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    4ccbb41 View commit details
    Browse the repository at this point in the history
  2. Unify C#, C++, Dart, Go, Python runtimes

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    dbce6b2 View commit details
    Browse the repository at this point in the history
  3. Use AtomicInteger instead of int for static PredictionContext.globalN…

    …odeCount
    
    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    8861ac4 View commit details
    Browse the repository at this point in the history
  4. Remove lock in Generator (now ANTLR tool is thread-safe)

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    3c30268 View commit details
    Browse the repository at this point in the history
  5. Cache templates for codegen to static field, load only one time

    Remove useless loadTemplates overloads
    
    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    7c5b3c2 View commit details
    Browse the repository at this point in the history
  6. Cache LeftRecursiveRules.stg to static field

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    f19cd67 View commit details
    Browse the repository at this point in the history
  7. Cache ANTLR error message templates to static field

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    6681a7a View commit details
    Browse the repository at this point in the history
  8. Cache runtime test templates to static field

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    93970f4 View commit details
    Browse the repository at this point in the history
  9. Clarify message of failed runtime tests

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    1b9d77c View commit details
    Browse the repository at this point in the history
  10. Pass testSourceUri to dynamicTest and to dynamicContainer for conveni…

    …ent navigation to tests data in IntelliJ
    
    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    99fab5c View commit details
    Browse the repository at this point in the history
  11. Extract prepareGrammars method

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    8e6e1ed View commit details
    Browse the repository at this point in the history
  12. Remove useless and outdated files

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    2e8e3a8 View commit details
    Browse the repository at this point in the history
  13. Update pom.xml in runtime-testsuite

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    22cbf3c View commit details
    Browse the repository at this point in the history
  14. Use runtimePath instead of targetClassesPath for runtimes' sources

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    d287f1c View commit details
    Browse the repository at this point in the history
  15. Update doc

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    f235d33 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2022

  1. Fix potential problems with concurrent access to hash maps

    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    d40067d View commit details
    Browse the repository at this point in the history
  2. Restore info about mvn -Dtest=java.** test in antlr-project-testing.md

    Fix misprint
    
    Signed-off-by: Ivan Kochurkin <[email protected]>
    KvanTTT committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    de255cc View commit details
    Browse the repository at this point in the history