Skip to content

Commit f6ce153

Browse files
committed
Remove -dirvtable from the optimizations included by -O as it this option currently leads to memory leaks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
1 parent b966af2 commit f6ce153

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGES.current

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Version 1.3.41 (in progress)
22
============================
33

4+
2010-02-27: wsfulton
5+
[Python] Remove -dirvtable from the optimizations included by -O as it this option
6+
currently leads to memory leaks as reported by Johan Blake.
7+
48
2010-02-13: wsfulton
59
[Ruby] A few fixes for compiling under ruby-1.9.x including patch from 'Nibble'.
610

Source/Modules/python.cxx

+2-3
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ static const char *usage3 = (char *) "\
143143
-proxydel - Generate a __del__ method even though it is now redundant (default) \n\
144144
-safecstrings - Use safer (but slower) C string mapping, generating copies from Python -> C/C++\n\
145145
-threads - Add thread support for all the interface\n\
146-
-O - Enable all the optimization options: \n\
147-
-modern -fastdispatch -dirvtable -nosafecstrings -fvirtual -noproxydel \n\
146+
-O - Enable the following optimization options: \n\
147+
-modern -fastdispatch -nosafecstrings -fvirtual -noproxydel \n\
148148
-fastproxy -fastinit -fastunpack -fastquery -modernargs -nobuildnone \n\
149149
-py3 - Generate code with Python 3 specific features:\n\
150150
Function annotation \n\
@@ -405,7 +405,6 @@ class PYTHON:public Language {
405405
} else if (strcmp(argv[i], "-O") == 0) {
406406
classic = 0;
407407
modern = 1;
408-
dirvtable = 1;
409408
safecstrings = 0;
410409
buildnone = 0;
411410
nobuildnone = 1;

0 commit comments

Comments
 (0)