This portal is to open public enhancement requests against IBM Z Software products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).
We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:
Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,
Post an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.
IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.
ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.
See this idea on ideas.ibm.com
Copyless call-by-value
In the current implementation, call-by-value allocates memory for function parameters and call-by-reference does not. Call-by-value must be used if the caller must be sure that the callee does not modify the argument. Moreover, call-by-value has nicer semantics; it is much easier to understand the workings of a program that uses by call-by-value rather than call-by-reference because of the no-change guarantee. However, call-by-value can negatively impact performance as was clearly observed with logging in the BCD application.
KBC therefore submits a request for enhancement to IBM to combine the nice semantics of call-by-value with the superior performance of call-by-reference. This would mean that the argument would not be copied and the caller would have the guarantuee that the object passed into the function is not modified. The immutability guarantuee should be the same as if a copy had been made: arbitrarily deeply nested components of variables of complex data types, e.g. fields of records, must remain unchanged when a call returns.
EGL assignment rules are not very strict and assignment often relies on implicit type conversions. When such implicit conversion is needed, it may be difficult to avoid a copy.
At present, KBC does not have firm views on the details of the syntax that would trigger this new parameter passing mechanism. Obviously, backward compatibility with the current language definition prevents the default parameter passing mechanism and the inOut parameter modifier to trigger the new behavior. An additional parameter modifier for copyless pass-by-value would be acceptable, as would altered behavior of the in parameter modifier.
Nonetheless, KBC would appreciate the opportunity to review IBM's detailed proposals.
This RFE has already been discussed with Matthew Heitz.
Idea priority | Medium |
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
Due to processing by IBM, this request was reassigned to have the following updated attributes:
Brand - Servers and Systems Software
Product family - Programming Languages
Product - Business Developer
For recording keeping, the previous attributes were:
Brand - Rational
Product family - Design & development
Product - Business Developer
This RFE's Headline was changed after submission to reflect the headline of an internal request we were already considering, but will now track here.
This has been implemented in fix pack 7.5.1.5 with a new const modifier for in and inout function parameters. A const parameter cannot be modified within the function, so EGL does not need to make a copy of it to pass to the function.
Thank you for this suggestion. This is one of several enhancements we are looking at to improve Java runtime performance when processing structured records. We expect to implement improvements in this area in a 7.5.x fix pack.