Skip to content

Make Time load its Ruby-impl side#8473

Merged
enebo merged 3 commits intojruby:10-devfrom
enebo:time_require
Dec 2, 2024
Merged

Make Time load its Ruby-impl side#8473
enebo merged 3 commits intojruby:10-devfrom
enebo:time_require

Conversation

@enebo
Copy link
Member

@enebo enebo commented Dec 1, 2024

This one is confusing. We have some Ruby impl but time.rb depends
on date.rb which is a stdlib loaded thing. So we need to load it
after enough of JRuby it bootstrapped but we want this loaded
ultimately the same time as the Java impl of Time. I just
put it at the end of Ruby#init but this is probably not right?

enebo added 2 commits December 1, 2024 13:09
While doing this I realized we in almost all cases run this
method twice.  I pruned back to only call this once and this
eliminated almost all the calls.
This one is confusing.  We have some Ruby impl but time.rb depends
on date.rb which is a stdlib loaded thing.  So we need to load it
after enough of JRuby it bootstrapped but we want this loaded
ultimately the same time as the Java impl of Time.  I just
put it at the end of Ruby#init but this is probably not right?
@enebo enebo added this to the JRuby 10.0.0.0 milestone Dec 1, 2024
@enebo enebo requested a review from headius December 1, 2024 20:25
@enebo enebo merged commit 32cf38b into jruby:10-dev Dec 2, 2024
@enebo enebo deleted the time_require branch December 2, 2024 20:49
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.

1 participant