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: 456b024590f1^
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d1e9ada77bfe
Choose a head ref

Commits on Feb 27, 2015

  1. Copy the full SHA
    456b024 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 Feb 27, 2015
    Copy the full SHA
    8249c14 View commit details
  3. cleanup SingletonLocalContextProvider for the outside world

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

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

    …ngleton provider impl
    kares committed Feb 27, 2015
    Copy the full SHA
    b4810e6 View commit details
  6. unused imports

    kares committed Feb 27, 2015
    Copy the full SHA
    a6b0a58 View commit details
  7. Copy the full SHA
    58cf29e View commit details
  8. Copy the full SHA
    ad2ab12 View commit details
  9. Copy the full SHA
    9e40f00 View commit details
  10. Copy the full SHA
    29ecce9 View commit details
  11. Copy the full SHA
    0aa3c72 View commit details
  12. Copy the full SHA
    4b4ef42 View commit details
  13. Copy the full SHA
    cfbbabe View commit details
  14. dry out ClassVariable some

    kares committed Feb 27, 2015
    Copy the full SHA
    1ed921d View commit details
  15. Copy the full SHA
    627f0a8 View commit details
  16. extract checking whether variable sharing is enabled into a helper + …

    …fields can go final
    kares committed Feb 27, 2015
    Copy the full SHA
    0c3d4dc View commit details
  17. Copy the full SHA
    6c8dec0 View commit details
  18. Copy the full SHA
    6d4a7e7 View commit details
  19. Copy the full SHA
    ddaca2d View commit details
  20. Copy the full SHA
    eea186f View commit details
  21. Copy the full SHA
    fa88240 View commit details
  22. Copy the full SHA
    c6e9fc3 View commit details
  23. Copy the full SHA
    93e69e9 View commit details
  24. Copy the full SHA
    d1e9ada View commit details
Showing with 1,436 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. +42 −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