Skip to content

Instantly share code, notes, and snippets.

@enebo
enebo / a.diff
Created February 25, 2020 20:31
diff --git a/core/src/main/java/org/jruby/Ruby.java b/core/src/main/java/org/jruby/Ruby.java
index d21b780e1a..d530c60e84 100644
--- a/core/src/main/java/org/jruby/Ruby.java
+++ b/core/src/main/java/org/jruby/Ruby.java
@@ -2924,10 +2924,16 @@ public final class Ruby implements Constantizable {
Ruby runtime = context.runtime;
RubyBinding binding = RubyBinding.newBinding(runtime, context.currentBinding());
+ RubyString eventNameString = runtime.newString(eventName.equals("c_return") ?
+ "c-return" :
@enebo
enebo / a.txt
Created February 18, 2020 20:18
system ~/work/release/release/jruby-9.2.10.0 master 1485% ./bin/jruby ../../../snippets/runner --ruby `pwd`/bin/jruby
$ /home/enebo/work/release/release/jruby-9.2.10.0/bin/jruby -S gem install rails --version=6.0.2.1
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.ext.openssl.SecurityHelper (file:/home/enebo/work/release/release/jruby-9.2.10.0/lib/ruby/stdlib/jopenssl.jar) to field java.security.MessageDigest.provider
WARNING: Please consider reporting this to the maintainers of org.jruby.ext.openssl.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
@enebo
enebo / a.diff
Created February 18, 2020 17:27
diff --git a/maven/jruby-dist/src/main/assembly/common.xml b/maven/jruby-dist/src/main/assembly/common.xml
index 9ad7764ef0..956553abca 100644
--- a/maven/jruby-dist/src/main/assembly/common.xml
+++ b/maven/jruby-dist/src/main/assembly/common.xml
@@ -57,6 +57,8 @@
<include>docs/**/*</include>
<include>tool/nailgun/*</include>
<include>tool/nailgun/**/*.c</include>
+ <include>bin/.dev_mode.java_opts</include>
+ <include>bin/.jruby.*</include>
system ~/work/release/release/jruby-9.2.10.0 master 1378% ./bin/jruby ../../../snippets/runner --ruby `pwd`/bin/jruby
2020-02-18T09:13:06.973-06:00 [main] WARN FilenoUtil : Native subprocess control requires open access to sun.nio.ch
Pass '--add-opens java.base/sun.nio.ch=org.jruby.dist' or '=org.jruby.core' to enable.
$ /home/enebo/work/release/release/jruby-9.2.10.0/bin/jruby -S gem install rails --version=6.0.2.1
2020-02-18T09:13:09.116-06:00 [main] WARN FilenoUtil : Native subprocess control requires open access to sun.nio.ch
Pass '--add-opens java.base/sun.nio.ch=org.jruby.dist' or '=org.jruby.core' to enable.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.ext.openssl.SecurityHelper (file:/home/enebo/work/release/release/jruby-9.2.10.0/lib/ruby/stdlib/jopenssl.jar) to constructor java.security.cert.CertificateFactory(java.security.cert.CertificateFactorySpi,java.security.Provider,java.lang.String)
WARNING: Please consider reporting this to t
[INFO] --- maven-javadoc-plugin:2.7:jar (attach-javadocs) @ jruby-core ---
[INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.7:javadoc' has not be previously called for the project: 'org.jruby:jruby-stdlib:jar:9.2.10.0'. Trying to invoke it...
/bin/sh: switchml: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `switchml'
/bin/sh: _module_raw: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `_module_raw'
/usr/bin/sh: switchml: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `switchml'
/usr/bin/sh: _module_raw: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `_module_raw'
java_import java.awt.image.BufferedImage
java_import javax.swing.JFrame
class Mandelbrot < JFrame
MAX_ITER = 570;
ZOOM = 150.0;
def initialize
super("Mandelbrot Set")
setBounds(100, 100, 800, 600);
java_import java.awt.image.BufferedImage
java_import javax.swing.JFrame
class Mandelbrot < JFrame
MAX_ITER, ZOOM = 1200, 350.0
def initialize
super("Mandelbrot Set")
setBounds(100, 100, 800, 600)
setDefaultCloseOperation(EXIT_ON_CLOSE)
java_import java.awt.image.BufferedImage
java_import javax.swing.JFrame
class Mandelbrot < JFrame
MAX_ITER, ZOOM = 1200, 350.0
def initialize
super("Mandelbrot Set")
setBounds(100, 100, 800, 600)
setDefaultCloseOperation(EXIT_ON_CLOSE)
@enebo
enebo / MandelBrot.java
Last active February 8, 2020 06:48
Mildly modified from some Mandelbrot site.
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import javax.swing.JFrame;
public class Mandelbrot extends JFrame {
private final int MAX_ITER = 570;
private final double ZOOM = 150;
private BufferedImage image;
public Mandelbrot() {
@enebo
enebo / a.txt
Last active January 28, 2020 22:34
system ~/work/jruby/frogger master # 1183% sh -x ./test.sh
+ MAKE_ARCHIVE=-J-XX:ArchiveClassesAtExit=ir.jsa
+ READ_ARCHIVE=-J-XX:SharedArchiveFile=ir.jsa
+ CACHE=-Xcompile.cache.classes=true
+ DONT_CACHE=-Xcompile.cache.classes=true
+ DEV=--dev
+ COMPILE=-X+C
+ GC=-J-XX:+UseParallelGC
+ TIME=15
+ java -version