× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Diane,

You wrote:
>The MATHSAT instruction does not return allocation information if operand
>3 is hex 02 and the heap is a default heap.

But I am using hex 00 for operand 3 because I'm only interested in the
counts but they are still zero.  I am pulling this data into a 1000 byte
field even though there is only 128 bytes provided in the hex 00
materialization.  The data is very peculiar because the only allocation
field that shows a count is the Total number of reallocations.

>The following information will be added to the MI architecture in a
>future release:

>If operand 3 is equal to hex 02 AND the heap being used is a default
>heap, then not all the allocation information is available.
>Specifically, the following fields in the template will always be
>zero:

>--Current number of outstanding allocations
>--Total number of frees
>--Total number of allocations
>--Maximum number of outstanding allocations

That doesn't seem right.  The 440 MI reference says that the allocation
template information returned for a hex 02 materialization is an array
which is repeated for the value in Current number of outstanding
allocations.  Now you say that value is zero for a hex 02 materialization
so how can the allocation template be navigated if the number of elements
is zero?  Does that mean that the allocation template is not provided for
the default heap?

You might also be interested to know that the MATRMD include in
QSYSINC/MIH is missing the _Packed qualifier from the
_MATRMD_0x17_Template_T structure which causes the C compiler to pad the
structure with 2-byte fields and causes no end of strife with the returned
values.  Materializing hex 17 data with MATRMD showed my little 170-2291
with 29 million threads and tasks!

Regards,
Simon Coulter.

--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists
   http://www.flybynight.com.au/

   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175   mailto: shc@flybynight.com.au   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.