ioquatix (Samuel Williams)
05/18/2022
-
07:17 AM
Ruby master
Bug #18782: Race conditions in autoload when loading the same feature with multiple threads.
- @byroot Does this align up with what you are saying?
```ruby
features = $LOADED_FEATURES.dup
path = "./sleep...
ioquatix (Samuel Williams)
05/17/2022
-
08:40 PM
Ruby master
Bug #18782: Race conditions in autoload when loading the same feature with multiple threads.
@fxn said:
> Once the trigger has been executed, it is gone, the way I see it. How is that represented internall...
ioquatix (Samuel Williams)
-
12:21 PM
Ruby master
Feature #18774: Add Queue#pop(timeout:)
- There are several methods which should adopt timeouts, including `SizedQueue#push` and probably `Queue#each`, along w...
ioquatix (Samuel Williams)
-
10:00 AM
Ruby master
Bug #18751: Regression on master for Method#== when comparing public with private method
- It's okay for `==` to not be strong equality and be closer to equivalence. That's why we have different methods for "...
ioquatix (Samuel Williams)
05/15/2022
-
11:36 PM
Ruby master
Bug #18782: Race conditions in autoload when loading the same feature with multiple threads.
- Okay, so I suspected some issue with `autoload_delete` and finally found how to reproduce it.
```c
static void
a...
ioquatix (Samuel Williams)
-
02:36 AM
Ruby master
Bug #18782: Race conditions in autoload when loading the same feature with multiple threads.
- PR: https://github.com/ruby/ruby/pull/5898
ioquatix (Samuel Williams)
-
02:29 AM
Ruby master
Bug #18782: Race conditions in autoload when loading the same feature with multiple threads.
- After debugging the above issue I found a use-after-free bug in
```c
static void
autoload_c_free(void *ptr)
{
s...
ioquatix (Samuel Williams)
-
01:48 PM
Ruby master
Bug #15790: Strange interaction between autoload and $LOADED_FEATURES
- Another weird edge case we have now:
```
File.write("./empty.rb", "Y = 1")
autoload :X, "./empty.rb"
begin
...
ioquatix (Samuel Williams)
-
01:34 PM
Ruby master
Bug #15790: Strange interaction between autoload and $LOADED_FEATURES
- Let me add, that I think it's also reasonable sequence of events/state transition:
```
before failed autoload aut...
ioquatix (Samuel Williams)
-
01:32 PM
Ruby master
Bug #15790: Strange interaction between autoload and $LOADED_FEATURES
- The behaviour described here does not seem strange to me, at least, I'm not sure if it's problematic. @fxn what was t...
ioquatix (Samuel Williams)
Also available in: Atom
Loading...