Instantly share code, notes, and snippets.

View gist:a7e1e819555f53f892947795c12f7983
This file has been truncated, but you can view the full file.
Coverage may be inaccurate; set the "--debug" command line option, or do JRUBY_OPTS="--debug" or set the "debug.fullTrace=true" option in your .jrubyrc
/home/vagrant/.rbenv/versions/jruby-9.2.1.0-dev/lib/ruby/gems/shared/bundler/gems/simplecov-994dbff2780a/lib/simplecov.rb:53: warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
==> Loading config from ENV or use default
==> Running specs with JRuby version 9.2.1.0-SNAPSHOT
/home/vagrant/.rbenv/versions/jruby-9.2.1.0-dev/lib/ruby/gems/shared/bundler/gems/rails-abda6fc3e82b/activerecord/lib/active_record/connection_handling.rb:113: warning: shadowing outer local variable - role
/home/vagrant/.rbenv/versions/jruby-9.2.1.0-dev/lib/ruby/gems/shared/bundler/gems/ruby-plsql-914c46ab36d2/lib/plsql/jdbc_connection.rb:225: warning: constant ::Fixnum is deprecated
View gist:b46011747891bdce3664ad374ed3dac0
[] ~/projects/jruby $ pickjdk 6
New JDK: jdk1.8.0_181.jdk
[] ~/projects/jruby $ time jruby -e 1
real 0m2.013s
user 0m5.435s
sys 0m0.276s
[] ~/projects/jruby $ time jruby --dev -e 1
View gist:88ef499ffbf9ed86e6f74713ac0fafac
[--dev] ~/projects/jruby $ java -classpath lib/jruby.jar org.jruby.Main -e 'puts "hello"'
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.util.SecurityHelper (file:/Users/headius/projects/jruby/lib/jruby.jar) to field java.lang.reflect.Field.modifiers
WARNING: Please consider reporting this to the maintainers of org.jruby.util.SecurityHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
hello
[--dev] ~/projects/jruby $ java --module-path lib/jruby.jar org.jruby.Main -e 'puts "hello"'
hello
View gist:329f9efe0655747df7ee2c08eacc6aff
travis_fold:start:worker_info
Worker information
hostname: 36a7f7d8-2f0f-412d-9cf7-fc88fdb52e28@1.production-1-worker-org-04-packet
version: v4.1.2 https://github.com/travis-ci/worker/tree/91246b057ccd93649046771f29221f839c19a7d3
instance: a9d24cf travisci/ci-garnet:packer-1512502276-986baf0 (via amqp)
startup: 1.164570249s
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
Build language: java
View gist:0a61a59fa925b268469be210fca5794b
$ jar --file=../jcodings/target/jcodings.jar --describe-module --release 11
releases: 9
org.jruby.jcodings jar:file:///Users/headius/projects/jnr-ffi/../jcodings/target/jcodings.jar/!META-INF/versions/9/module-info.class open
exports org.jcodings
exports org.jcodings.ascii
exports org.jcodings.constants
exports org.jcodings.exception
exports org.jcodings.specific
exports org.jcodings.spi
View gist:3b25c4f587701423b4e47e66b9b23f4e
[] ~/projects/jruby $ JAVA_OPTS='-XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc' time jruby --dev -S gem list
[0.010s][info][gc] Resizeable heap; starting at 256M, max: 4096M, step: 128M
[0.010s][info][gc] Using TLAB allocation; max: 4096K
[0.010s][info][gc] Elastic TLABs enabled; elasticity: 1.10x
[0.010s][info][gc] Elastic TLABs decay enabled; decay time: 1000ms
[0.010s][info][gc] Using Epsilon
[0.808s][info][gc] Full GC request for "Metadata GC Threshold" is ignored
[0.817s][info][gc] Full GC request for "Metadata GC Threshold" is ignored
[0.826s][info][gc] Full GC request for "Metadata GC Threshold" is ignored
[0.849s][info][gc] Full GC request for "Metadata GC Threshold" is ignored
View aargh.md

Multi-release version of the open org.jcodings module, which exports all its packages.

[] ~/projects/jcodings $ git grep -C 5 multiReleaseOutput
pom.xml-            <goals>
pom.xml-              <goal>compile</goal>
pom.xml-            </goals>
pom.xml-            <configuration>
pom.xml-              <release>9</release>
pom.xml:              <multiReleaseOutput>true</multiReleaseOutput>
View java 11
[] ~/projects/jruby $ time jruby -e 1
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.util.SecurityHelper to field java.lang.reflect.Field.modifiers
WARNING: Please consider reporting this to the maintainers of org.jruby.util.SecurityHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
real 0m2.027s
user 0m4.314s
sys 0m0.306s
View snippit.java
public static ObjectAllocator specializeForVariables(RubyClass klass, Set<String> foundVariables) {
int size = foundVariables.size();
ClassAndAllocator cna = getClassForSize(size);
if (cna == null) {
final String clsPath = "org/jruby/gen/RubyObject" + size;
Class specialized;
synchronized (LOADER) {
try {
View Loop.java
public class Loop {
public static void main(String[] args) {
while (true) { }
}
}