Skip to content

Memory reduction changes#174

Closed
Tarun Balaji Nidiganti (tnidigan) wants to merge 2 commits into
qualcomm:mainfrom
tnidigan:urm-memory-reduction
Closed

Memory reduction changes#174
Tarun Balaji Nidiganti (tnidigan) wants to merge 2 commits into
qualcomm:mainfrom
tnidigan:urm-memory-reduction

Conversation

@tnidigan

Copy link
Copy Markdown
Contributor

This Pull Request Implements Visibility Reduction for libRestuneCore.so to optimize memory usage. By compiling with hidden visibility by default and only exporting the necessary Public API and required internal helpers, we reduce the size of the Dynamic Symbol Table (.dynsym) and decrease runtime relocations.

Changes Implemented:
Build System: Added -fvisibility=hidden to target_compile_options in CMakeLists.txt for the RestuneCore target.
Public API: Explicitly exported the main URM entry points (e.g., Restune_Init, Restune_Deinit) using attribute((visibility("default"))).
Cross-Boundary Helpers: Exported necessary internal Singleton classes (e.g., TargetRegistry, ResourceRegistry) and helper functions (e.g., submitPropGetRequest, PulseMonitor daemons) that are defined in the library but required by the urm executable.

@kartnema

Kartik Nema (kartnema) commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

Hi Tarun Balaji Nidiganti (@tnidigan), the build is failing with this patch.
https://github.com/qualcomm/userspace-resource-manager/actions/runs/22053231312

Can you check the issues

@kartnema Kartik Nema (kartnema) marked this pull request as draft March 10, 2026 06:31
@github-actions

Copy link
Copy Markdown

This pull request has been marked as stale due to 60 days of inactivity. To prevent automatic closure in 10 days, remove the stale label or add a comment. You can reopen a closed pull request at any time.

@github-actions github-actions Bot added the Stale label May 10, 2026
@github-actions github-actions Bot closed this May 20, 2026
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.

2 participants