Use size_of_val
instead of manual calculation
#109287
Merged
size_of_val
instead of manual calculation
#109287