summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-16[ruby/irb] Show code page by irb_info on Windowsaycabta
https://github.com/ruby/irb/commit/6160d74199
2021-07-16[ruby/irb] Escape space in free-spacing modeaycabta
https://github.com/ruby/irb/commit/085ac42947
2021-07-16* 2021-07-16 [ci skip]git
2021-07-15[Bug #18014] Add assertion to verify freelistPeter Zhu
This commit adds an assertion has been added after `gc_page_sweep` to verify that the freelist length is equal to the number of free slots in the page. Notes: Merged: https://github.com/ruby/ruby/pull/4613
2021-07-15[Bug #18014] Fix memory leak in GC when using RactorsPeter Zhu
When a Ractor is removed, the freelist in the Ractor cache is not returned to the GC, leaving the freelist permanently lost. This commit recycles the freelist when the Ractor is destroyed, preventing a memory leak from occurring. Notes: Merged: https://github.com/ruby/ruby/pull/4613
2021-07-15[Bug #18014] Fix rb_gc_force_recycle unmark before sweepPeter Zhu
If we force recycle an object before the page is swept, we should clear it in the mark bitmap. If we don't clear it in the bitmap, then during sweeping we won't account for this free slot so the `free_slots` count of the page will be incorrect. Notes: Merged: https://github.com/ruby/ruby/pull/4613
2021-07-15Make Struct#keyword_init? return nil by default [Feature #18008]Nobuyoshi Nakada
2021-07-15Regularize keyword_init values not to hold the argument objectNobuyoshi Nakada
2021-07-15Add tests and NEWS [Feature #18008]NARUSE, Yui
2021-07-15struct.c: Add keyword_init? singleton method for StructClass (#4609)hkdnet
Fixes [Feature #18008] Notes: Merged-By: nurse <naruse@airemix.jp>
2021-07-15rb_interned_id_p: does not exist卜部昌平
This declaration was added at commit 0ee5a49dd4ffbbb285c25fa6cba88370ce9 without its implementation. Must be a mistake. Note also that we ended up having this exct same functionality implemented under a name of rb_check_id().
2021-07-15rb_enc_casefold: does not exist卜部昌平
This declaration was added at commit 0ee5a49dd4ffbbb285c25fa6cba88370ce9 without its implementation. Must be a mistake.
2021-07-15process.c: Call rb_thread_atfork in rb_fork_rubyYusuke Endoh
All occurrences of rb_fork_ruby are followed by a call rb_thread_fork in the created child process. This is refactoring and a potential preparation for [Feature #17795]. (rb_fork_ruby may be wrapped by Process._fork_.)
2021-07-15Fix typo in flag in NEWS.mdPatrik Ragnarsson
Notes: Merged: https://github.com/ruby/ruby/pull/4653
2021-07-15[ruby/fiddle] Handle#file_name results in very platform dependentNobuyoshi Nakada
2021-07-15* 2021-07-15 [ci skip]git
2021-07-15[ruby/fiddle] Module file name may be the realpathNobuyoshi Nakada
Even when the path which was used to dlopen may be a symlink.
2021-07-14[ruby/fiddle] fixed the test on case-insensitive filesystemNobuyoshi Nakada
2021-07-14[ruby/fiddle] Add Fiddle::Handle#file_name ↵Kenta Murata
(https://github.com/ruby/fiddle/pull/88) https://github.com/ruby/fiddle/commit/4ee1c6fc4b
2021-07-14[ruby/fiddle] Check HAVE_RUBY_MEMORY_VIEW_H rather than API version ↵Nobuyoshi Nakada
(https://github.com/ruby/fiddle/pull/86) https://github.com/ruby/fiddle/commit/c5abcc3a7e
2021-07-14[ruby/fiddle] Return the module handle value in Fiddle::Handle#to_i and add ↵Kenta Murata
FIddle::Handle#to_ptr (https://github.com/ruby/fiddle/pull/87) https://github.com/ruby/fiddle/commit/170111a0cb
2021-07-14* 2021-07-14 [ci skip]git
2021-07-14Merge RubyGems/Bundler master from 8459ebd6ad65ce3397233416dc64083ae7572bb9Hiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/4648
2021-07-13Get `ruby_nonempty_memcpy` to have C linkagextkoba
Fixes [Bug #17788] Notes: Merged: https://github.com/ruby/ruby/pull/4429
2021-07-13[ruby/fiddle] update dependenciesNobuyoshi Nakada
2021-07-13[ruby/irb] Add an explanation of default sub commands of "measure", which ↵aycabta
are :time and :stackprof https://github.com/ruby/irb/commit/759be5a344
2021-07-13[ruby/fiddle] Check HAVE_RUBY_MEMORY_VIEW_H rather than API versionNobuyoshi Nakada
https://github.com/ruby/fiddle/commit/93f9564446
2021-07-13[ruby/error_highlight] Set the binary mode for Tempfile creation in a testYusuke Endoh
https://github.com/ruby/error_highlight/commit/8273d3b6f2
2021-07-13[ruby/fiddle] Update required_ruby_version ↵Nobuyoshi Nakada
(https://github.com/ruby/fiddle/pull/85) Drop supports for old versions, keeping 2.5 as CI supports it for now. https://github.com/ruby/fiddle/commit/90634e7c55
2021-07-13[ruby/fiddle] Use have_header and have_type to detect memory view availabilitySutou Kouhei
Fix https://github.com/ruby/fiddle/pull/84 It may detect ruby/memory_view.h for system Ruby that is installed in /usr. We can use RUBY_API_VERSION_MAJOR to detect memory view availability because memory view is available since Ruby 3.0. Reported by Jun Aruga. Thanks!!! https://github.com/ruby/fiddle/commit/3292929830
2021-07-13[ruby/fiddle] Add "offsetof" to Struct classes ↵Aaron Patterson
(https://github.com/ruby/fiddle/pull/83) * Add "offsetof" to Struct classes I need to get the offset of a member inside a struct without allocating the struct. This patch adds an "offsetof" class method to structs that are generated. The usage is like this: ```ruby MyStruct = struct [ "int64_t i", "char c", ] MyStruct.offsetof("i") # => 0 MyStruct.offsetof("c") # => 8 ``` * Update test/fiddle/test_c_struct_builder.rb Co-authored-by: Sutou Kouhei <kou@cozmixng.org> https://github.com/ruby/fiddle/commit/4e3b60c5b6 Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
2021-07-13[ruby/fiddle] Bump versionSutou Kouhei
https://github.com/ruby/fiddle/commit/049138b4b8
2021-07-13[ruby/fiddle] MemoryView: ensure reset rb_memory_view_t::obj on errorSutou Kouhei
https://github.com/ruby/fiddle/commit/0ed39345fe
2021-07-13[ruby/fiddle] StringValuePtr may change the valSutou Kouhei
https://github.com/ruby/fiddle/commit/bddca7c895
2021-07-13[ruby/fiddle] Add MemoryView.export and MemoryView#release ↵Sutou Kouhei
(https://github.com/ruby/fiddle/pull/80) fix https://github.com/ruby/fiddle/pull/79 Users can release memory views explicitly before process exit. Reported by xtkoba. Thanks!!! https://github.com/ruby/fiddle/commit/1de64b7e76
2021-07-13[ruby/fiddle] Add Fiddle::MemoryView#to_s ↵Sutou Kouhei
(https://github.com/ruby/fiddle/pull/78) Fix https://github.com/ruby/fiddle/pull/74 Reported by dsisnero. Thanks!!!
2021-07-13[ruby/fiddle] test: fix SetLastError's input typeSutou Kouhei
https://github.com/ruby/fiddle/commit/ca5e6a0404
2021-07-13[ruby/fiddle] test: use double quote for string literalSutou Kouhei
https://github.com/ruby/fiddle/commit/fab7eab95b
2021-07-13[ruby/fiddle] test: add a test for win32_last_socket_errorSutou Kouhei
https://github.com/ruby/fiddle/commit/c86cec03cd
2021-07-13[ruby/fiddle] test: add missing receiverSutou Kouhei
https://github.com/ruby/fiddle/commit/1da3b4af16
2021-07-13[ruby/fiddle] windows: use GetLastError() for win32_last_errorSutou Kouhei
Ruby: [Bug #11579] Patch by cremno phobia. Thanks!!! https://github.com/ruby/fiddle/commit/760a8f9b14
2021-07-13[ruby/fiddle] Bump versionSutou Kouhei
https://github.com/ruby/fiddle/commit/3784cfeec4
2021-07-13tool/sync_default_gems.rb: remove CRsNobuyoshi Nakada
2021-07-13sync_default_gems.rb: expand links to PRs of the upstreamNobuyoshi Nakada
2021-07-13[ruby/error_highlight] Support a file that has no final newlineYusuke Endoh
https://github.com/ruby/error_highlight/commit/9d671284cb
2021-07-13[ruby/error_highlight] Support hard tabsYusuke Endoh
Now, the highlight line is created by replacing non-tab characters with spaces, and keeping all hard tabs as-is. This means the highlight line has the completely same indentation as the code snippet line. Fixes #7 https://github.com/ruby/error_highlight/commit/38f20fa542
2021-07-13* 2021-07-13 [ci skip]git
2021-07-13Expose `rb_obj_is_fiber`.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/4646
2021-07-12[ruby/error_highlight] Update a test for multibyte charactersYusuke Endoh
https://github.com/ruby/error_highlight/commit/2fc70d7f8e
2021-07-12[ruby/error_highlight] Stop showing a code snippet if it has non-ascii ↵Yusuke Endoh
characters See https://github.com/ruby/error_highlight/issues/4 https://github.com/ruby/error_highlight/commit/c20efd3961