@@ -103,7 +103,7 @@ Object[] doMethodCached(PythonObject method, Object[] userArguments, PKeyword[]
103
103
@ Cached ("create()" ) GetSignatureNode getSignatureNode ,
104
104
@ Cached ("create()" ) GetDefaultsNode getDefaultsNode ,
105
105
@ Cached ("create()" ) GetKeywordDefaultsNode getKwDefaultsNode ,
106
- @ Cached ("method" ) @ SuppressWarnings ("unused" ) PythonObject cachedMethod ) {
106
+ @ Cached (value = "method" , weak = true ) @ SuppressWarnings ("unused" ) PythonObject cachedMethod ) {
107
107
108
108
// We do not directly cache these objects because they are compilation final anyway and the
109
109
// getter check the appropriate assumptions.
@@ -118,11 +118,11 @@ Object[] doMethodCached(PythonObject method, Object[] userArguments, PKeyword[]
118
118
"getSelf(method) == cachedSelf" }, limit = "getVariableArgumentInlineCacheLimit()" , replaces = "doMethodCached" , assumptions = "singleContextAssumption()" )
119
119
Object [] doMethodFunctionAndSelfCached (PythonObject method , Object [] userArguments , PKeyword [] keywords ,
120
120
@ Cached ("create()" ) CreateAndCheckArgumentsNode createAndCheckArgumentsNode ,
121
- @ Cached ("getFunction(method)" ) @ SuppressWarnings ("unused" ) Object cachedFunction ,
121
+ @ Cached (value = "getFunction(method)" , weak = true ) @ SuppressWarnings ("unused" ) Object cachedFunction ,
122
122
@ Cached ("create()" ) GetSignatureNode getSignatureNode ,
123
123
@ Cached ("create()" ) GetDefaultsNode getDefaultsNode ,
124
124
@ Cached ("create()" ) GetKeywordDefaultsNode getKwDefaultsNode ,
125
- @ Cached ("getSelf(method)" ) Object cachedSelf ) {
125
+ @ Cached (value = "getSelf(method)" , weak = true ) Object cachedSelf ) {
126
126
127
127
// We do not directly cache these objects because they are compilation final anyway and the
128
128
// getter check the appropriate assumptions.
@@ -138,7 +138,7 @@ Object[] doMethodFunctionCached(PythonObject method, Object[] userArguments, PKe
138
138
@ Cached ("create()" ) GetSignatureNode getSignatureNode ,
139
139
@ Cached ("create()" ) GetDefaultsNode getDefaultsNode ,
140
140
@ Cached ("create()" ) GetKeywordDefaultsNode getKwDefaultsNode ,
141
- @ Cached ("getFunction(method)" ) @ SuppressWarnings ("unused" ) Object cachedFunction ) {
141
+ @ Cached (value = "getFunction(method)" , weak = true ) @ SuppressWarnings ("unused" ) Object cachedFunction ) {
142
142
143
143
// We do not directly cache these objects because they are compilation final anyway and the
144
144
// getter check the appropriate assumptions.
@@ -155,7 +155,7 @@ Object[] doFunctionCached(PythonObject callable, Object[] userArguments, PKeywor
155
155
@ Cached ("create()" ) GetSignatureNode getSignatureNode ,
156
156
@ Cached ("create()" ) GetDefaultsNode getDefaultsNode ,
157
157
@ Cached ("create()" ) GetKeywordDefaultsNode getKwDefaultsNode ,
158
- @ Cached ("callable" ) @ SuppressWarnings ("unused" ) PythonObject cachedCallable ) {
158
+ @ Cached (value = "callable" , weak = true ) @ SuppressWarnings ("unused" ) PythonObject cachedCallable ) {
159
159
160
160
// We do not directly cache these objects because they are compilation final anyway and the
161
161
// getter check the appropriate assumptions.
0 commit comments