jruby-startup 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/generate-appcds +2 -0
- data/lib/jruby/startup/appcds.rb +8 -6
- data/lib/jruby/startup/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2599a23a9c7930d94dc23cfd5f13a769436f3989bff2af30de6749a484cd7f7
|
4
|
+
data.tar.gz: 7b6ea750b5269b6d0f852310752e7933a09bef735f5e001cdc1785ed08be11ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5684ca5572213d23a933406343c1b294c9468ad135756019f5b6a892d6b4c15c5f67458f3346c4d6cc668afadf1de16b71b1dc7589f75ce1aaa1684ba373d11a
|
7
|
+
data.tar.gz: bfcde2950df51795445ff9adc11c6294da932354ae2824fae89e298de65cb1a907fed7448ba4f3cbb80db870f1293bb23530762e4303ca6f208db1561d69229a
|
data/bin/generate-appcds
CHANGED
data/lib/jruby/startup/appcds.rb
CHANGED
@@ -24,23 +24,25 @@ module JRuby::Startup::AppCDS
|
|
24
24
|
ENV['VERIFY_JRUBY'] = '1'
|
25
25
|
|
26
26
|
# Dump list of classes for this command line
|
27
|
-
puts "*** Outputting list of classes at #{jruby_list}"
|
27
|
+
puts "*** Outputting list of classes at #{jruby_list}\n\n"
|
28
28
|
|
29
29
|
fail unless system "VERIFY_JRUBY=1 JAVA_OPTS='-XX:DumpLoadedClassList=#{jruby_list}' #{jruby_exe} #{command_line}"
|
30
30
|
|
31
31
|
# Use class list to generate AppCDS archive
|
32
|
-
puts "*** Generating shared AppCDS archive at #{jruby_jsa}"
|
32
|
+
puts "\n*** Generating shared AppCDS archive at #{jruby_jsa}\n\n"
|
33
33
|
|
34
34
|
fail unless system "VERIFY_JRUBY=1 JAVA_OPTS='-Xshare:dump -XX:G1HeapRegionSize=2m -XX:+UnlockDiagnosticVMOptions -XX:SharedClassListFile=#{jruby_list} -XX:SharedArchiveFile=#{jruby_jsa}' #{jruby_exe} #{command_line}"
|
35
35
|
|
36
36
|
# Display env vars to use for the new archive
|
37
37
|
puts <<~END
|
38
|
-
*** Success!
|
39
38
|
|
40
|
-
|
39
|
+
*** Success!
|
40
|
+
|
41
|
+
JRuby versions 9.2.1 or higher should detect #{jruby_jsa} and use it automatically.
|
42
|
+
For versions of JRuby 9.2 or earlier, set the following environment variables:
|
41
43
|
|
42
|
-
VERIFY_JRUBY=1
|
43
|
-
JAVA_OPTS="-XX:G1HeapRegionSize=2m -XX:SharedArchiveFile
|
44
|
+
VERIFY_JRUBY=1
|
45
|
+
JAVA_OPTS="-XX:G1HeapRegionSize=2m -XX:SharedArchiveFile=/Users/headius/projects/jruby/lib/jruby.jsa"
|
44
46
|
END
|
45
47
|
end
|
46
48
|
end
|