[bug fix] Fix the size calculation for shmem TOC

Started by Tsunakawa, Takayukialmost 6 years ago3 messageshackers
Jump to latest
#1Tsunakawa, Takayuki
tsunakawa.takay@fujitsu.com

Hello,

The attached patch fixes a trivial mistake in the calculation of shmem TOC. The original code allocates unduly large memory because it adds the result of add_size() to its left argument.

Regards
Takayuki Tsunakawa

Attachments:

0001-Fix-size-calculation-for-shmem-TOC.patchapplication/octet-stream; name=0001-Fix-size-calculation-for-shmem-TOC.patchDownload+2-3
#2Fujii Masao
masao.fujii@oss.nttdata.com
In reply to: Tsunakawa, Takayuki (#1)
Re: [bug fix] Fix the size calculation for shmem TOC

On 2021/01/14 17:47, tsunakawa.takay@fujitsu.com wrote:

Hello,

The attached patch fixes a trivial mistake in the calculation of shmem TOC. The original code allocates unduly large memory because it adds the result of add_size() to its left argument.

Thanks for the report and patch! The patch looks good to me.

Regards,

--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

#3Fujii Masao
masao.fujii@oss.nttdata.com
In reply to: Fujii Masao (#2)
Re: [bug fix] Fix the size calculation for shmem TOC

On 2021/01/14 18:15, Fujii Masao wrote:

On 2021/01/14 17:47, tsunakawa.takay@fujitsu.com wrote:

Hello,

The attached patch fixes a trivial mistake in the calculation of shmem TOC.  The original code allocates unduly large memory because it adds the result of add_size() to its left argument.

Thanks for the report and patch! The patch looks good to me.

Pushed and back-patched to v11. Thanks!

Regards,

--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION