summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* RJIT: Fix has_rest exit conditionsTakashi Kokubun2023-04-013-9/+9
|
* RJIT: Return CantCompile early for arg0 splatTakashi Kokubun2023-04-011-8/+19
|
* RJIT: Save PC on String#concatTakashi Kokubun2023-04-011-2/+4
|
* RJIT: Rewind stack_size on CantCompile and side exitsTakashi Kokubun2023-04-014-14/+30
| | | | | | | so that we can take an exit whenever we want. As a starter, this commit also pops blockarg earlier than some CantCompile exits.
* RJIT: Let the caller of jit_push_frame handle stack_popTakashi Kokubun2023-04-011-7/+12
| | | | because we want to do this way earlier for other types of calls.
* RJIT: Check stackoverflow earlier for ISEQTakashi Kokubun2023-04-011-6/+17
|
* RJIT: Remove unused countersTakashi Kokubun2023-04-013-27/+9
|
* RJIT: Migrate invokeblock to jit_call_iseqTakashi Kokubun2023-04-011-272/+4
|
* RJIT: Migrate bmethod to jit_call_iseqTakashi Kokubun2023-04-011-21/+5
|
* RJIT: Start moving away from VM-like ISEQ handlingTakashi Kokubun2023-04-014-8/+276
|
* Fix a test in typeprofTakashi Kokubun2023-04-013-3/+3
| | | | | | Revert "Skip typeprof for now" This reverts commit bdbf663cef31e2194bf87ae5c11dfe5525316ca8.
* Skip typeprof for nowTakashi Kokubun2023-04-012-2/+2
| | | | | | It started failing probably because ISEQ removed an unused field. I'll have a look at fixing it on the typeprof side, but let me skip it until it's fixed.
* Remove unused VM_CALL_BLOCKISEQ flagTakashi Kokubun2023-04-013-12/+8
|
* Improve explanation of FCALL and VCALLTakashi Kokubun2023-04-011-13/+13
|
* `*` in an array pattern should not be parsed as nil in ripperKazuki Tsujimoto2023-04-012-5/+5
| | | | | | | | | | | | | | | After 6c0925ba7017efde6091e2ec4f1a6be268166696, it was impossible to distinguish between the presence or absence of `*`. # Before the commit Ripper.sexp('0 in []')[1][0][2][1] #=> [:aryptn, nil, nil, nil, nil] Ripper.sexp('0 in [*]')[1][0][2][1] #=> [:aryptn, nil, nil, [:var_field, nil], nil] # After the commit Ripper.sexp('0 in []')[1][0][2][1] #=> [:aryptn, nil, nil, nil, nil] Ripper.sexp('0 in [*]')[1][0][2][1] #=> [:aryptn, nil, nil, nil, nil] This commit reverts it.
* gdb: Fix a command exampleTakashi Kokubun2023-04-011-1/+1
| | | | | It was actually harder to type `cfp + 1`. `cfp 1` also works and is more useful.
* gdb: Fix specvalTakashi Kokubun2023-04-011-3/+4
| | | | | Somehow my gdb stopped recognizing VM_BLOCK_HANDLER_NONE (macro) today. Just changing it to a safer code.
* gdb: Don't dump params and locals for C framesTakashi Kokubun2023-04-011-11/+12
|
* use `sleep_forever()` on `thread_join_sleep()`Koichi Sasada2023-04-011-7/+10
| | | | because it does same thing.
* [ruby/irb] Drop unnecessary pends for trufflerubyStan Lo2023-03-312-2/+1
| | | | https://github.com/ruby/irb/commit/2517039812
* YJIT: Remove unused variable [ci skip]Alan Wu2023-03-311-1/+1
|
* gdb: Visualize register positions on the leftTakashi Kokubun2023-03-311-1/+14
|
* YJIT: Suppress unnecessary `unsafe` block (#7634)Nobuyoshi Nakada2023-03-312-14/+14
|
* cosmetic changeKoichi Sasada2023-03-311-32/+31
| | | | reorder `sleep_forever()` and so on.
* gdb: Always show actual values in cfpTakashi Kokubun2023-03-311-5/+7
|
* gdb: Show params and locals in cfpTakashi Kokubun2023-03-311-1/+12
|
* gdb: Dump env data in cfp commandTakashi Kokubun2023-03-311-3/+72
|
* pass `th` to `thread_sched_to_waiting()`Koichi Sasada2023-03-314-15/+15
| | | | for future extension
* remove "\n" for `RUBY_DEBUG_LOG()`Koichi Sasada2023-03-311-1/+1
| | | | because `RUBY_DEBUG_LOG()` add "\n" at the end of message.
* rename `rb_thread_t::locking_native_thread`Koichi Sasada2023-03-312-2/+2
| | | | to `rb_thread_t::has_dedicated_nt`
* relax assertionKoichi Sasada2023-03-311-1/+1
| | | | `ec` can be NULL in future.
* add debug log to `rb_ractor_thread_switch`Koichi Sasada2023-03-311-0/+4
|
* reorder `thread_pthread.c` functionsKoichi Sasada2023-03-311-286/+288
|
* add `RUBY_DEBUG_LOG` fo `each_machine_stack_value`Koichi Sasada2023-03-311-0/+1
|
* Expand tabs in .gdbinitTakashi Kokubun2023-03-311-25/+25
|
* Put misc/gdb.py [experimental]Takashi Kokubun2023-03-312-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | This works like: ``` (gdb) cfp CFP (count=3, addr=0x7ffff73fef50): $1 = {pc = 0x555556bf7818, sp = 0x7ffff72ff078, iseq = 0x7ffff2603270, self = 140737344619296, ep = 0x7ffff72ff058, block_code = 0x0, __bp__ = 0x7ffff72ff060, jit_return = 0x555558c2b000} Stack (size=3): [0] FIXNUM: 1 [1] T_STRING: "" bytesize:0 (embed) encoding:1 coderange:7bit $2 = (struct RString *) 0x7ffff249ea80 [2] [PROMOTED] T_OBJECT: $3 = {flags = 21474844769, klass = 140737344040416} $4 = {0x24, 0x24, 0x24} (gdb) cfp + 1 CFP (count=3, addr=0x7ffff73fef90): $5 = {pc = 0x5555567a78f8, sp = 0x7ffff72ff040, iseq = 0x7ffff26032d0, self = 140737344619296, ep = 0x7ffff72ff038, block_code = 0x0, __bp__ = 0x7ffff72ff040, jit_return = 0x555558c2b000} Stack (size=0): ```
* Fix ivar dump for RVARGC in .gdbinitTakashi Kokubun2023-03-301-1/+1
| | | | | It was crashing with: No symbol "ROBJECT_EMBED_LEN_MAX" in current context.
* Revert "dump `RUBY_DEBUG_LOG` logs into `/dev/null`"Koichi Sasada2023-03-311-1/+1
| | | | | | This reverts commit 83667008b925c32b3ab70fb6ec70f7398e960d1e. because not stable yet.
* [ruby/net-http] typofixHiroshi SHIBATA2023-03-311-1/+1
| | | | https://github.com/ruby/net-http/commit/4d31bde125
* [ruby/net-http] Fix previous commitNAKAMURA Usaku2023-03-311-2/+2
| | | | https://github.com/ruby/net-http/commit/1b276e2654
* [ruby/net-http] Limit header lengthNAKAMURA Usaku2023-03-311-0/+8
| | | | https://github.com/ruby/net-http/commit/c245f7f9c8
* `nt->serial` for `RUBY_DEBUG_LOG`Koichi Sasada2023-03-314-16/+65
| | | | | | Show native thread's serial on `RUBY_DEBUG_LOG`. `nt->serial` is also stored into `ruby_nt_serial` if the compiler supports `RB_THREAD_LOCAL_SPECIFIER`.
* dump `RUBY_DEBUG_LOG` logs into `/dev/null`Koichi Sasada2023-03-311-1/+1
| | | | to test debug printing.
* Check if `Bundler::EnvironmentPreserver` is definedNobuyoshi Nakada2023-03-311-1/+4
| | | | | Only `Bundler` might be defined. `EnvironmentPreserver` and its `BUNDLER_PREFIX` would be defined together in the same file.
* [ruby/rdoc] Read generated files in binary modeNobuyoshi Nakada2023-03-311-13/+12
| | | | | | | So that fixes crash with "invalid byte sequence in US-ASCII" on ci.rvm.jp and some RubyCIs. https://github.com/ruby/rdoc/commit/4b416644f0
* [ruby/rdoc] Use `File.binread`Nobuyoshi Nakada2023-03-311-3/+1
| | | | https://github.com/ruby/rdoc/commit/987c609df9
* Bump ossf/scorecard-action from 2.1.2 to 2.1.3dependabot[bot]2023-03-311-1/+1
| | | | | | | | | | | | | | | Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.1.2 to 2.1.3. - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](https://github.com/ossf/scorecard-action/compare/e38b1902ae4f44df626f11ba0734b14fb91f8f86...80e868c13c90f172d68d1f4501dee99e2479f7af) --- updated-dependencies: - dependency-name: ossf/scorecard-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* Fix gc_verify_internal_consistency error for pattern_matching in ripperyui-knk2023-03-311-21/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `gc_verify_internal_consistency` reports "found internal inconsistency" for "test_pattern_matching.rb". http://ci.rvm.jp/results/trunk-gc-asserts@ruby-sp2-docker/4501173 Ruby's parser manages objects by two different ways. 1. For parser * markable node holds objects * call `RB_OBJ_WRITTEN` with `p->ast` as parent * `mark_ast_value` marks objects 2. For ripper * unmarkable node, NODE_RIPPER/NODE_CDECL, holds objects * call `rb_ast_add_mark_object`. This function calls `rb_hash_aset` then `RB_OBJ_WRITTEN` is called with `mark_hash` as parent * `mark_hash` marks objects However in current pattern_matching implementation * markable node holds objects * call `rb_ast_add_mark_object` This commit fix it to be #2. This was inconsistency however always `mark_hash` is made young by `rb_ast_add_mark_object` call then objects are not collected.
* YJIT: Test more kw and rest cases and change exit nameJimmy Miller2023-03-303-7/+9
|
* [ci skip] LLDB: Fix rp for arraysMatt Valentine-House2023-03-301-3/+3
|