Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use map instead of stack to store task_info #3920

Merged

Conversation

yanivagman
Copy link
Collaborator

1. Explain what the PR does

Currently we use the stack to initialize task_info in the sched_process_fork program. Since task_info_t has a size of ~200 bytes, we should opt to put it on a map, and not on the stack.

"Replace me with make check-pr output"

2. Explain how to test it

3. Other comments

Currently we use the stack to initialize task_info in the
sched_process_fork program. Since task_info_t has a size of ~200 bytes,
we should opt to put it on a map, and not on the stack.
@yanivagman yanivagman force-pushed the sched_process_fork_less_mem branch from 07947a4 to dbb3ff6 Compare March 14, 2024 22:03
Copy link
Member

@geyslan geyslan left a comment

Choose a reason for hiding this comment

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

LGTM

@yanivagman yanivagman merged commit e81c9f0 into aquasecurity:main Mar 14, 2024
32 checks passed
@yanivagman yanivagman deleted the sched_process_fork_less_mem branch March 14, 2024 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants