File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 38
38
*/
39
39
package com .oracle .graal .python .builtins .objects .cext ;
40
40
41
- import com .oracle .graal .python .PythonLanguage ;
42
41
import com .oracle .truffle .api .interop .ForeignAccess ;
43
- import com .oracle .truffle .api .interop .Message ;
44
42
import com .oracle .truffle .api .interop .TruffleObject ;
45
43
46
44
/**
@@ -73,19 +71,6 @@ public boolean isNative() {
73
71
return nativePointer != null ;
74
72
}
75
73
76
- @ Override
77
- protected void finalize () throws Throwable {
78
- if (nativePointer != null ) {
79
- TruffleObject freeCString = (TruffleObject ) PythonLanguage .getContext ().getEnv ().importSymbol ("truffle_free_cstr" );
80
- assert freeCString != null ;
81
- try {
82
- ForeignAccess .sendExecute (Message .createExecute (1 ).createNode (), freeCString , nativePointer );
83
- } catch (Exception e ) {
84
- // ignore
85
- }
86
- }
87
- }
88
-
89
74
static boolean isInstance (TruffleObject o ) {
90
75
return o instanceof CStringWrapper ;
91
76
}
You can’t perform that action at this time.
0 commit comments