@@ -392,14 +392,14 @@ pub struct DwarfUnwindManager {
392392 /// Per-process mapping information
393393 pub proc_info : HashMap < u32 , ProcInfo > ,
394394 /// Next shard_id to assign to a new binary
395- next_shard_id : u8 ,
395+ next_shard_id : u16 ,
396396 /// Fast metadata-based cache for hot path lookups (stat-based)
397- metadata_cache : HashMap < FileMetadata , u8 > , // metadata -> shard_id
397+ metadata_cache : HashMap < FileMetadata , u16 > , // metadata -> shard_id
398398 /// Cache of parsed ELF binary shard IDs, keyed by build ID
399399 /// Falls back to path-based caching for binaries without build IDs
400- binary_cache : HashMap < BuildId , u8 > , // build_id -> shard_id
400+ binary_cache : HashMap < BuildId , u16 > , // build_id -> shard_id
401401 /// Fallback cache for binaries without build IDs (keyed by path)
402- path_cache : HashMap < std:: path:: PathBuf , u8 > , // path -> shard_id
402+ path_cache : HashMap < std:: path:: PathBuf , u16 > , // path -> shard_id
403403}
404404
405405impl Default for DwarfUnwindManager {
@@ -445,12 +445,12 @@ impl DwarfUnwindManager {
445445
446446 /// Rescan a process's memory mappings and load any new ones.
447447 /// Returns the list of new shard IDs added (for incremental eBPF updates).
448- pub fn refresh_process ( & mut self , tgid : u32 ) -> Result < Vec < u8 > , String > {
448+ pub fn refresh_process ( & mut self , tgid : u32 ) -> Result < Vec < u16 > , String > {
449449 // Track number of shards before update
450450 let old_len = self . binary_tables . len ( ) ;
451451 self . scan_and_update ( tgid) ?;
452452 // Find new shards: those added after old_len
453- let new_shard_ids: Vec < u8 > = ( old_len as u8 ..self . binary_tables . len ( ) as u8 ) . collect ( ) ;
453+ let new_shard_ids: Vec < u16 > = ( old_len as u16 ..self . binary_tables . len ( ) as u16 ) . collect ( ) ;
454454 Ok ( new_shard_ids)
455455 }
456456
@@ -498,7 +498,7 @@ impl DwarfUnwindManager {
498498 end : 0 ,
499499 load_bias : 0 ,
500500 shard_id : SHARD_NONE ,
501- _pad1 : [ 0 ; 3 ] ,
501+ _pad1 : [ 0 ; 2 ] ,
502502 table_count : 0 ,
503503 } ; MAX_PROC_MAPS ] ,
504504 } ) ;
@@ -714,7 +714,7 @@ impl DwarfUnwindManager {
714714 end : end_addr,
715715 load_bias,
716716 shard_id,
717- _pad1 : [ 0 ; 3 ] ,
717+ _pad1 : [ 0 ; 2 ] ,
718718 table_count,
719719 } ;
720720 proc_info. mapping_count += 1 ;
0 commit comments