Skip to content

RDK-58045 : Addressing big parameter passed by value in rbuscore.c#361

Open
rosemarybennyy wants to merge 2 commits intordkcentral:developfrom
rosemarybennyy:topic/low-priority-cid-155035
Open

RDK-58045 : Addressing big parameter passed by value in rbuscore.c#361
rosemarybennyy wants to merge 2 commits intordkcentral:developfrom
rosemarybennyy:topic/low-priority-cid-155035

Conversation

@rosemarybennyy
Copy link
Copy Markdown
Contributor

Reason for change: Addressing big parameter passed by value in rbuscore.c
Test Procedure: as per RDK-58045
Risks: Low

@rosemarybennyy rosemarybennyy requested a review from a team as a code owner September 16, 2025 12:53
@rosemarybennyy rosemarybennyy force-pushed the topic/low-priority-cid-155035 branch from 05a2b10 to 19e653b Compare September 17, 2025 16:30
Comment thread src/core/rbuscore.c Outdated
} *queued_request_t;

void queued_request_create(queued_request_t* req, rtMessageHeader hdr, rbusMessage msg, server_object_t obj)
void queued_request_create(queued_request_t* req, const rtMessageHeader* hdr, rbusMessage msg, server_object_t obj)
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.

update the return code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated

@rosemarybennyy rosemarybennyy force-pushed the topic/low-priority-cid-155035 branch from 5234b43 to fef87d9 Compare September 18, 2025 04:57
Reason for change:  If rtMessageHeader is a large struct, passing it by value will copy the entire struct
                    onto the stack, which can be inefficient and unnecessary if the function does not need to modify
                    the original struct.
Test Procedure: As per RDK-58045
Risks: Low
@rosemarybennyy rosemarybennyy force-pushed the topic/low-priority-cid-155035 branch from fef87d9 to 19c64b1 Compare September 19, 2025 12:48
@rosemarybennyy rosemarybennyy force-pushed the topic/low-priority-cid-155035 branch from 514b7ce to d896a05 Compare September 19, 2025 13:27
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