Skip to content

Conversation

@casperisfine
Copy link

It cause the array to be marked as unprotected, when this happen enough times it triggers a major GC run.

@casperisfine casperisfine force-pushed the avoid-rarray-ptr branch 2 times, most recently from 5204306 to 53a59b0 Compare February 3, 2023 13:58
It cause the array to be marked as unprotected, when this
happen enough times it triggers a major GC run.
@casperisfine casperisfine merged commit 555fba7 into 1-0-stable-shopify Feb 3, 2023
@casperisfine casperisfine deleted the avoid-rarray-ptr branch February 3, 2023 14:52
arg4 = (char **) malloc((arg6+1)*sizeof(char *));
for(i = 0; i < arg6; i ++) {
str = rb_string_value(&RARRAY_PTR(argv[3])[i]);
str = rb_ary_entry(argv[1], i);

Choose a reason for hiding this comment

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

This was argv[3] before and it's now argv[1]?

Copy link
Author

Choose a reason for hiding this comment

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

Woops. I'm surprised the test suite pass, but not sure how much we can trust it. Thanks for the catch.

Copy link
Author

Choose a reason for hiding this comment

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

Fixed in 28b5840

@casperisfine casperisfine mentioned this pull request Apr 3, 2023
40 tasks
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.

3 participants