Benoit Daloze
Benoit Daloze
`pty` is used by the tests of the `debug` gem: https://github.com/ruby/debug/blob/d0a3372a864d3906ac2a81907b9222dba15883be/test/support/utils.rb#L3 It would be worth trying if importing the `pty` sources from CRuby works.
@bjfish Could you try that?
Note that `(2**64)-1` is not LONG_MAX, LONG_MAX is `(2**63)-1`. With `(2**63)-1` it also fails: ``` $ ruby -e 'puts Time.at((2**63)-1)' core/time.rb:313:in `at': UNIX epoch + 9223372036854775807 seconds out of range...
When I run it I get different errors: ``` 1) Error: TreeSitter::NodeTest#test_gets_children: RuntimeError: External LLVMFunction ts_document_new cannot be found. (com.oracle.truffle.llvm.runtime.except.LLVMLinkerException) Translated to internal error /home/eregon/code/ruby-tree-sitter/ext/tree-sitter/document.c:11:in `rb_document_alloc' /home/eregon/.rubies/truffleruby-dev/lib/truffle/truffle/cext.rb:1235:in `__allocate__' /home/eregon/code/ruby-tree-sitter/test/tree-sitter/test_node.rb:20:in `setup'...
Follow-ups for this after https://github.com/oracle/truffleruby/pull/2189: * Avoiding an extra lookup in DeleteLastNode: https://github.com/oracle/truffleruby/pull/2189#discussion_r544231540 (done in #2011 too) * Make `Truffle::ThreadOperations.detect_recursion` a primitive so it's always split, in a cheaper way...
Related optimization in CRuby, to avoid using the recursion logic when we know we'd call Kernel#hash: https://github.com/ruby/ruby/pull/3987
The mirroring simply copies the description from the PR. In short, there is a SharedIndicesMap per class, and that SharedIndicesMap is shared for corresponding classes (e.g., by where they are...
Thank you for the bug report, we'll try to take a look and reproduce it.
Yes, there is `GC.stat` and `GC.stat(key)`: ``` $ ruby -e 'pp GC.stat' {:time=>24, :count=>3, :minor_gc_count=>3, :major_gc_count=>0, :unknown_count=>0, :heap_available_slots=>530579456, :heap_live_slots=>54923264, :heap_free_slots=>475656192, # the 4 stats related to heap size: :used=>54923264, :committed=>530579456,...
> I sometimes just this - as long as you only do it once a second or so it's fine. That's the whole process rss so it's a different measurement,...