Skip to content

Comments

Memory reduction changes#174

Open
tnidigan wants to merge 2 commits intoqualcomm:mainfrom
tnidigan:urm-memory-reduction
Open

Memory reduction changes#174
tnidigan wants to merge 2 commits intoqualcomm:mainfrom
tnidigan:urm-memory-reduction

Conversation

@tnidigan
Copy link

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 kartnema requested review from jpagadal and rajulup February 16, 2026 07:49
@kartnema
Copy link
Contributor

kartnema commented Feb 16, 2026

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

Can you check the issues

@tnidigan tnidigan force-pushed the urm-memory-reduction branch from 657d866 to 4c6b6a0 Compare February 18, 2026 17:15
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