Skip to content

Demotion mrb_f_raise() in kernel.c from MRB_API too - #6070

Merged
matz merged 1 commit into
mruby:masterfrom
komainu8:demotion-mrb_f_raise-from-mrb_api
Sep 28, 2023
Merged

Demotion mrb_f_raise() in kernel.c from MRB_API too#6070
matz merged 1 commit into
mruby:masterfrom
komainu8:demotion-mrb_f_raise-from-mrb_api

Conversation

@komainu8

Copy link
Copy Markdown
Contributor

The prototype declaration of mrb_f_raise() has arleady demoted from MRB_API in a below commit.

0898ce9

However, the entity of mrb_f_raise() in kernel.c is set MRB_API yet.
Therefore, mruby occures build error with MSVC(in Visual Studio 2022) as below.

https://github.com/groonga/groonga/actions/runs/6310140553/job/17131485675#step:11:2067

The cause of the above error that we define both mrb_f_raise() with MRB_API and mrb_f_raise() without MRB_API.


The results of rake test of this PR.

>>> Test host <<<
mrbtest - Embeddable Ruby Test

.........................................................................................?.............................................................................................................................................................................................................................................................................................................................................................................?.....................................................................................................................................................................................................................................................?..................??.................................................................................................................................................................................................................................................................................................................................................................................................................................................................??...............................................................................................................................................................................................................................................
Skip: File.expand_path (with ENV) (mrbgems: mruby-io)
Skip: Proc#source_location (mrbgems: mruby-proc-ext)
Skip: Kernel.caller, Kernel#caller => backtrace isn't available (mrbgems: mruby-kernel-ext)
Skip: Method#source_location (mrbgems: mruby-method)
Skip: UnboundMethod#source_location (mrbgems: mruby-method)
Skip: GC in rescue => backtrace isn't available (core)
Skip: Method call in rescue => backtrace isn't available (core)
  Total: 1412
     OK: 1405
     KO: 0
  Crash: 0
Warning: 0
   Skip: 7
   Time: 0.05 seconds

>>> Bintest host <<<
bintest - Command Binary Test

..............................................................
  Total: 62
     OK: 62
     KO: 0
  Crash: 0
Warning: 0
   Skip: 0
   Time: 0.09 seconds

@komainu8
komainu8 requested a review from matz as a code owner September 26, 2023 13:33
@github-actions github-actions Bot added the core label Sep 26, 2023
kou pushed a commit to groonga/groonga that referenced this pull request Sep 27, 2023
Because the performance of Groonga degrades when presym disable.
In addition, the mruby's issues about escape has arleady fixed in
upstream as below probably.


mruby/mruby@03a42b5

mruby/mruby@25f3608

Therefore, we use the master branch of mruby( 15bb6a9f9b9b114b97cfa18631c46be90669adde ) in this PR.

But the revision has a MRB_API problem. mruby/mruby#6070 should fix it.

@dearblue dearblue left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

The prototype declaration of mrb_f_raise() has arleady demoted from
MRB_API in a below commit.

mruby@0898ce9

However, the entity of mrb_f_raise() in kernel.c is set MRB_API yet.
Therefore, mruby occures build error with MSVC(in Visual Studio 2022) as below.

https://github.com/groonga/groonga/actions/runs/6310140553/job/17131485675#step:11:2067

The cause of the above error that we define both mrb_f_raise() with
MRB_API and mrb_f_raise() without MRB_API.
@komainu8
komainu8 force-pushed the demotion-mrb_f_raise-from-mrb_api branch from f5f61b8 to d55cec4 Compare September 28, 2023 00:18
kou added a commit to groonga/groonga that referenced this pull request Sep 28, 2023
@matz
matz merged commit 67f1f09 into mruby:master Sep 28, 2023
@komainu8

Copy link
Copy Markdown
Contributor Author

Thanks!

@komainu8
komainu8 deleted the demotion-mrb_f_raise-from-mrb_api branch September 29, 2023 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants