Skip to content

Commit 4d67ce7

Browse files
committed
Adding TruffleBoundary to ZipImporter
1 parent 8e81676 commit 4d67ce7

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/zipimporter/PZipImporter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public PZipImporter(LazyPythonClass cls, PDict zipDirectoryCache) {
120120
}
121121
}
122122

123+
@CompilerDirectives.TruffleBoundary
123124
private static SearchOrderEntry[] defineSearchOrder() {
124125
return new SearchOrderEntry[]{
125126
new SearchOrderEntry(SEPARATOR + "__init__.py",

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/zipimporter/ZipImporterBuiltins.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,6 @@ protected List<? extends NodeFactory<? extends PythonBuiltinBaseNode>> getNodeFa
8484
return ZipImporterBuiltinsFactory.getFactories();
8585
}
8686

87-
private static void checkInitCalled(PZipImporter self) {
88-
if (self.getPrefix() == null) {
89-
90-
}
91-
}
92-
9387
@Builtin(name = __INIT__, fixedNumOfPositionalArgs = 1)
9488
@TypeSystemReference(PythonArithmeticTypes.class)
9589
@GenerateNodeFactory

0 commit comments

Comments
 (0)