PCP Updates: Memory Management Regressions in __pmFetchInterp()

"Dave Brolley" <[email protected]> Tue, 14 Feb 2017 14:01:00 -0500
Newsgroups gmane.comp.sysutils.pcp
Message-ID <[email protected]>
These regressions, caused by my archive interpolation mode performance 
improvements, were caught by the qa tests 459 and 1079

Dave

-----------------------------------------------------------------------

Changes committed to git://git.pcp.io/brolley/pcp interp-performance

Dave Brolley (1):
       Fix memory management regressions in __pmFetchInterp().

  src/libpcp/src/interp.c |   37 +++++++++++++++++--------------------
  1 file changed, 17 insertions(+), 20 deletions(-)

commit 216ee05026bc6cf41c07a606b3fae02c014a16a9
Author: Dave Brolley <[email protected]>
Date:   Tue Feb 14 13:51:35 2017 -0500

     Fix memory management regressions in __pmFetchInterp().

     - Don't use the return code of pmGetInDomArchive(3) to pre-allocate
       the hash table of instances, unless it is greater than zero.

     - Reduce the chance of a memory leak of the return buffer on error
       by waiting to allocate it until it is needed.

     These changes fix regressions in qa test cases 459 and 1079.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#15159): https://groups.io/g/pcp/message/15159
View All Messages In Topic (1): https://groups.io/g/pcp/topic/4366658
Mute This Topic: https://groups.io/mt/4366658?uid=174580
New Topic: https://groups.io/g/pcp/post
-=-=-
pcp mailing list
[email protected]
https://groups.io/g/pcp/messages
-=-=-
Change Your Subscription: https://groups.io/g/pcp/editsub?uid=174580
Group Home: https://groups.io/g/pcp
Contact Group Owner: [email protected]
Terms of Service: https://groups.io/static/tos
Unsubscribe: https://groups.io/g/pcp/leave/354243/563757577/xyzzy
-=-=-=-=-=-=-=-=-=-=-=-