I use the gsk functions from C++ with no (known!) issues. I will look at the
code when I get back to the office Thursday.
CharlesSent from a mobile; please excuse the brevity
-------- Original message --------
From: Janet Graff <[email protected]>
Date: 02/02/2016 3:33 PM (GMT-08:00)
To: [email protected]
Subject: Re: memory leak doing gsk_environment_open()
I have run RPTSTG on the application several times in the past and tuned
things. I can do this again. However I can see this leak every time I run
through an HTTP creation of socket, request, and socket termination. Which is
what makes me believe that either the memory isn't cleaned up or the sequence
of functions I am calling is incorrect.
I see the memory usage on every gsk_environment_open() but I never see the
memory freed on any of the close or shutdown calls.
This is indeed C.
Janet
---- replied to message ---
Janet,
I assume this is a C application by the long and lower-case function names you
mentioned. Have you run it with the LE RPTSTG option turned on? Maybe your
HEAP parameters cause LE to request that 1M storage as a secondary heap chunk
because the "gsk_*" routines need some heap storage, and I do not believe that
heap chunks are freed until termination of the enclave, even if there are no
current storage allocations in the chunk(s). RPTSTG output may help you tune
the initial heap size so that secondary chunks are not needed.
Just a thought.
Peter
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN