File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 93
93
import com .oracle .graal .python .nodes .truffle .PythonArithmeticTypes ;
94
94
import com .oracle .graal .python .nodes .util .CastToJavaLongLossyNode ;
95
95
import com .oracle .graal .python .nodes .util .CastToJavaStringNode ;
96
+ import com .oracle .graal .python .runtime .GilNode ;
96
97
import com .oracle .graal .python .runtime .PosixConstants ;
97
98
import com .oracle .graal .python .runtime .PosixConstants .IntConstant ;
98
99
import com .oracle .graal .python .runtime .PosixSupportLibrary ;
101
102
import com .oracle .graal .python .runtime .PythonContext ;
102
103
import com .oracle .graal .python .runtime .PythonCore ;
103
104
import com .oracle .graal .python .runtime .PythonOptions ;
104
- import com .oracle .graal .python .runtime .GilNode ;
105
105
import com .oracle .graal .python .runtime .exception .PException ;
106
106
import com .oracle .graal .python .runtime .exception .PythonExitException ;
107
107
import com .oracle .graal .python .runtime .object .PythonObjectFactory ;
@@ -730,18 +730,14 @@ PTuple pipe(VirtualFrame frame,
730
730
@ Cached GilNode gil ,
731
731
@ CachedLibrary ("getPosixSupport()" ) PosixSupportLibrary posixLib ) {
732
732
int [] pipe ;
733
- boolean thrown = false ;
734
733
gil .release (true );
735
734
try {
736
735
pipe = posixLib .pipe (getPosixSupport ());
737
736
} catch (PosixException e ) {
738
- thrown = true ;
739
737
gil .acquire (); // need to acquire the gil to construct the OSError object
740
738
throw raiseOSErrorFromPosixException (frame , e );
741
739
} finally {
742
- if (!thrown ) {
743
- gil .acquire ();
744
- }
740
+ gil .acquire ();
745
741
}
746
742
return factory ().createTuple (new Object []{pipe [0 ], pipe [1 ]});
747
743
}
You can’t perform that action at this time.
0 commit comments