Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@headius
Copy link
Member

@headius headius commented Feb 12, 2025

This experimental flag can be passed to JRuby, with or without Ruby arguments, to regenerate the AppCDS archive jruby.jsa under the lib dir of the current JRuby install. This file is automatically used if present by the launcher to improve startup time.

This experimental flag can be passed to JRuby, with or without Ruby
arguments, to regenerate the AppCDS archive jruby.jsa under the lib
dir of the current JRuby install. This file is automatically used
if present by the launcher to improve startup time.
@headius headius added this to the JRuby 9.4.13.0 milestone Feb 12, 2025
@headius
Copy link
Member Author

headius commented Feb 12, 2025

Relates to #8610.

@headius headius merged commit 318d513 into jruby:master Feb 12, 2025
94 of 95 checks passed
@headius headius deleted the appcds_cache_flag branch February 12, 2025 19:17
Comment on lines +637 to +639
if $regenerate_jsa_file & [ \'"$ruby_args"\' = "' '" ]; then
assign ruby_args '-e' '1'
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks like a pretty fragile way to check that the ruby_args array is empty, I would prefer to either parse it and check $# or we could get clever and match against *[![:space:]]*. Also quotes are unnecessary on line 638

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh and there's a bug here, & forks off a subshell so if [ "$ruby_args" = " " ] then this will always execute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants