File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1275,8 +1275,14 @@ public static boolean executeUncached(Object type) {
1275
1275
return InstancesOfTypeHaveWeakrefsNodeGen .getUncached ().execute (null , type );
1276
1276
}
1277
1277
1278
+ @ Specialization (guards = "!isNativeObject(type)" )
1279
+ static boolean doManaged (Object type ,
1280
+ @ Cached (inline = false ) ReadAttributeFromObjectNode read ) {
1281
+ return read .execute (type , T___WEAKREF__ ) != PNone .NO_VALUE ;
1282
+ }
1283
+
1278
1284
@ Specialization
1279
- static boolean doGeneric (Node inliningTarget , Object type ,
1285
+ static boolean doNative (Node inliningTarget , PythonAbstractNativeObject type ,
1280
1286
@ Cached GetWeakListOffsetNode getWeakListOffsetNode ) {
1281
1287
return getWeakListOffsetNode .execute (inliningTarget , type ) != 0 ;
1282
1288
}
You can’t perform that action at this time.
0 commit comments