MantisBT - Community
View Issue Details
0023393Community[OCCT] OCCT:Foundation Classespublic2012-08-19 10:592012-11-16 13:17
Roman Lygin 
Roman Lygin 
normalfeature 
closedfixed 
ALL
[OCCT] 6.5.3 
[OCCT] 6.5.4[OCCT] 6.5.4 
0023393: Improve usability of OSD_MAllocHook::CollectBySize
1. Fields of OSD_MAllocHook::CollectBySize are made public (not private) to enable access for debugging purposes.
2. Added field myMaxAllocSize to denote maximum tracked size

This will improve usability of the hook due to ability to access its contents programmatically, not only via a dump file generated by MakeReport(). For instance a regression test for 0023392 could be extended with a check
if (OSD_MAllocHook::GetCollectBySize()->myTotalLeftSize == 0) {
  //OK
} else {
  //FAIL
}
No tags attached.
related to 0023392closed Roman Lygin Memory leak in OCAF in debug mode 
Issue History
2012-08-19 10:59Roman LyginNew Issue
2012-08-19 10:59Roman LyginAssigned To => abv
2012-08-19 11:02Roman LyginNote Added: 0021283
2012-08-19 11:02Roman LyginStatusnew => resolved
2012-08-19 11:25abvAssigned Toabv => msv
2012-08-20 17:33msvNote Added: 0021291
2012-08-20 17:33msvAssigned Tomsv => bugmaster
2012-08-20 17:33msvStatusresolved => reviewed
2012-08-23 13:06abvRelationship addedrelated to 0023392
2012-08-23 13:25apnNote Added: 0021322
2012-08-23 13:27apnNote Edited: 0021322bug_revision_view_page.php?bugnote_id=21322#r4176
2012-08-23 13:28apnStatusreviewed => tested
2012-08-27 16:17rlnChangeset attached => occt master 1cc1abe1
2012-08-27 16:17rlnAssigned Tobugmaster => rln
2012-08-27 16:17rlnStatustested => verified
2012-08-27 16:17rlnResolutionopen => fixed
2012-08-31 11:59aivAssigned Torln => Roman Lygin
2012-09-03 17:47bugmasterTarget Version => 6.5.4
2012-11-16 13:14bugmasterFixed in Version => 6.5.4
2012-11-16 13:17bugmasterStatusverified => closed

Notes
(0021283)
Roman Lygin   
2012-08-19 11:02   
Fix pushed to the repository
(0021291)
msv   
2012-08-20 17:33   
The fix is OK for me.
No testing is needed.
(0021322)
apn   
2012-08-23 13:25   
(edited on: 2012-08-23 13:27)
Test case will be added after testing in debug mode.
In optimize mode we get empty report file 'cause function OSD_MAllocHook::CollectBySize::MakeReport does not go into the condition
"if (myArray[i].nbAlloc > 0 || myArray[i].nbFree > 0} "