-nopgcpp commandline option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9491 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a1a8cda04e
commit
5167d7f3ec
3 changed files with 22 additions and 6 deletions
|
|
@ -71,6 +71,10 @@ The most notable differences to Java are the following:
|
|||
When invoking SWIG use the <tt>-csharp</tt> command line option instead of <tt>-java</tt>.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
The <tt>-nopgcpp</tt> command line option does not exist.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
The <tt>-package</tt> command line option does not exist.
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -268,8 +268,8 @@ swig -java -help
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>-package <name></td>
|
||||
<td>set name of the Java package to <name></td>
|
||||
<td>-nopgcpp</td>
|
||||
<td>suppress the premature garbage collection prevention parameter</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
@ -277,6 +277,11 @@ swig -java -help
|
|||
<td>generate the low-level functional interface instead of proxy classes </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>-package <name></td>
|
||||
<td>set name of the Java package to <name></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>
|
||||
|
|
@ -2831,8 +2836,9 @@ and therefore there is no possibility of premature garbage collection. In practi
|
|||
</p>
|
||||
|
||||
<p>
|
||||
The premature garbage collection prevention parameter for proxy classes is generated by default.
|
||||
It does impose a slight overhead and can be suppressed by specifying the 'nopgcpp' attribute in the "jnitype" <a href="#java_typemaps">Java typemap</a>.
|
||||
The premature garbage collection prevention parameter for proxy classes is generated by default whenever proxy classes are passed by value, reference or with a pointer.
|
||||
The additional parameters do impose a slight performance overhead and the parameter generation can be suppressed globally with the <tt>-nopgcpp</tt> commandline option.
|
||||
More selective suppression is possible with the 'nopgcpp' attribute in the "jnitype" <a href="#java_typemaps">Java typemap</a>.
|
||||
The attribute is a flag and so should be set to "1" to enable the suppression, or it can be omitted or set to "0" to disable.
|
||||
For example:
|
||||
</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue