Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f41b6d9e3874
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6a454ef5fadf
Choose a head ref

Commits on Apr 14, 2015

  1. Copy the full SHA
    883a9e1 View commit details
  2. fix, dry and simplify the internals or various local-context-provider…

    … impls :
    
    - share the logic of obtaining a global runtime
    - when global runtime is used make sure we always return the correct instance config!
    - introduce & use LocalContext's internal getRuntime for lazy runtime initialization
    - support contructors for all providers without the lazy argument
    kares committed Apr 14, 2015
    Copy the full SHA
    e9d7308 View commit details
  3. cleanup SingletonLocalContextProvider for the outside world

    correctly synchronize local context setup/teardown (on our class)!
    kares committed Apr 14, 2015
    Copy the full SHA
    e55e808 View commit details
  4. fine to make the LocalContext instance final - it does not do any (ru…

    …ntime) initialization
    kares committed Apr 14, 2015
    Copy the full SHA
    f1b60d8 View commit details
  5. re-use LocalContext's fields instead of introducing static ones in si…

    …ngleton provider impl
    kares committed Apr 14, 2015
    Copy the full SHA
    aeaa154 View commit details
  6. unused imports

    kares committed Apr 14, 2015
    Copy the full SHA
    275d875 View commit details
  7. Copy the full SHA
    ef5854f View commit details
  8. Copy the full SHA
    c1668dd View commit details
  9. Copy the full SHA
    cab825c View commit details
  10. Copy the full SHA
    2ae146b View commit details
  11. Copy the full SHA
    d4892f5 View commit details
  12. Copy the full SHA
    b59efb5 View commit details
  13. Copy the full SHA
    c2106e1 View commit details
  14. dry out ClassVariable some

    kares committed Apr 14, 2015
    Copy the full SHA
    5724239 View commit details
  15. Copy the full SHA
    56a067d View commit details
  16. extract checking whether variable sharing is enabled into a helper + …

    …fields can go final
    kares committed Apr 14, 2015
    Copy the full SHA
    c453ff5 View commit details
  17. Copy the full SHA
    f63f00b View commit details
  18. Copy the full SHA
    f393116 View commit details
  19. Copy the full SHA
    ac78d46 View commit details
  20. Copy the full SHA
    383215c View commit details
  21. Copy the full SHA
    1a51f27 View commit details
  22. Copy the full SHA
    9a9fa60 View commit details
  23. Copy the full SHA
    7dbc742 View commit details
  24. Copy the full SHA
    6a454ef View commit details
Showing with 1,433 additions and 1,071 deletions.
  1. +67 −66 core/src/main/java/org/jruby/embed/ScriptingContainer.java
  2. +52 −13 core/src/main/java/org/jruby/embed/internal/AbstractLocalContextProvider.java
  3. +224 −181 core/src/main/java/org/jruby/embed/internal/BiVariableMap.java
  4. +19 −16 core/src/main/java/org/jruby/embed/internal/ConcurrentLocalContextProvider.java
  5. +33 −21 core/src/main/java/org/jruby/embed/internal/EmbedEvalUnitImpl.java
  6. +1 −4 core/src/main/java/org/jruby/embed/internal/EmbedRubyInterfaceAdapterImpl.java
  7. +54 −32 core/src/main/java/org/jruby/embed/internal/LocalContext.java
  8. +24 −26 core/src/main/java/org/jruby/embed/internal/SingleThreadLocalContextProvider.java
  9. +61 −50 core/src/main/java/org/jruby/embed/internal/SingletonLocalContextProvider.java
  10. +17 −6 core/src/main/java/org/jruby/embed/internal/ThreadSafeLocalContextProvider.java
  11. +1 −1 core/src/main/java/org/jruby/embed/jsr223/JRubyEngine.java
  12. +22 −27 core/src/main/java/org/jruby/embed/jsr223/JRubyScriptEngineManager.java
  13. +45 −48 core/src/main/java/org/jruby/embed/jsr223/ServiceFinder.java
  14. +42 −43 core/src/main/java/org/jruby/embed/variable/AbstractVariable.java
  15. +61 −59 core/src/main/java/org/jruby/embed/variable/Argv.java
  16. +32 −41 core/src/main/java/org/jruby/embed/variable/ClassVariable.java
  17. +68 −79 core/src/main/java/org/jruby/embed/variable/Constant.java
  18. +57 −65 core/src/main/java/org/jruby/embed/variable/GlobalVariable.java
  19. +16 −8 core/src/main/java/org/jruby/embed/variable/InstanceVariable.java
  20. +32 −38 core/src/main/java/org/jruby/embed/variable/LocalGlobalVariable.java
  21. +18 −13 core/src/main/java/org/jruby/embed/variable/PersistentLocalVariable.java
  22. +8 −4 core/src/main/java/org/jruby/embed/variable/TransientLocalVariable.java
  23. +26 −40 core/src/main/java/org/jruby/embed/variable/VariableInterceptor.java
  24. +193 −77 core/src/test/java/org/jruby/embed/internal/BiVariableMapTest.java
  25. +39 −1 core/src/test/java/org/jruby/embed/internal/ConcurrentLocalContextProviderTest.java
  26. +139 −0 core/src/test/java/org/jruby/embed/internal/SingletonLocalContextProviderTest.java
  27. +39 −37 core/src/test/java/org/jruby/embed/jsr223/JRubyEngineFactoryTest.java
  28. +43 −75 core/src/test/java/org/jruby/embed/jsr223/JRubyEngineTest.java
Loading