Skip to content

Replace tempirep with RProc#5275

Merged
matz merged 1 commit into
mruby:masterfrom
dearblue:read_irep
Jan 10, 2021
Merged

Replace tempirep with RProc#5275
matz merged 1 commit into
mruby:masterfrom
dearblue:read_irep

Conversation

@dearblue

Copy link
Copy Markdown
Contributor

Previously I used the RData object to avoid a memory leak in mrb_irep if src/load.c failed.
ref: #4250
commit: f1523d2

Considering that the RProc object will be created in the subsequent process, it is preferable to create the RProc object from the beginning.
Along with this, the inside of read_irep() is replaced with the processing centered on the RProc object.

The global function that returns the mrb_irep pointer is still provided for compatibility.

Previously I used the `RData` object to avoid a memory leak in `mrb_irep` if `src/load.c` failed.
ref: mruby#4250
commit: f1523d2

Considering that the `RProc` object will be created in the subsequent process, it is preferable to create the `RProc` object from the beginning.
Along with this, the inside of `read_irep()` is replaced with the processing centered on the `RProc` object.

The global function that returns the `mrb_irep` pointer is still provided for compatibility.
@dearblue dearblue requested a review from matz as a code owner January 10, 2021 12:58
@matz matz merged commit dc5ade3 into mruby:master Jan 10, 2021
@dearblue dearblue deleted the read_irep branch January 11, 2021 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants