File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change
1
+ # truffleruby_primitives: true
2
+
1
3
# Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved. This
2
4
# code is released under a tri EPL/GPL/LGPL license. You can use it,
3
5
# redistribute it and/or modify it under the terms of the:
16
18
17
19
it "increases as collections are run" do
18
20
time_before = GC . time
19
- i = 0
20
- while GC . time <= time_before and i < 10
21
- GC . start
22
- i += 1
23
- end
21
+ Primitive . gc_force
24
22
GC . time . should > time_before
25
23
end
26
24
Original file line number Diff line number Diff line change
1
+ # truffleruby_primitives: true
2
+
1
3
# Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved. This
2
4
# code is released under a tri EPL/GPL/LGPL license. You can use it,
3
5
# redistribute it and/or modify it under the terms of the:
25
27
ObjectSpace . undefine_finalizer object
26
28
ObjectSpace . reachable_objects_from ( object ) . should_not include ( finalizer )
27
29
end
28
- GC . start
30
+ Primitive . gc_force
29
31
Truffle ::Debug . drain_finalization_queue # Not needed for correctness
30
32
channel . try_receive . should be_nil
31
33
end
You can’t perform that action at this time.
0 commit comments