Skip to content

Commit 820aff5

Browse files
committed
HashMapStorage: missing gil in call to length message
1 parent cb02884 commit 820aff5

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/HashMapStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static HashingStorage setItemNotSupportedKey(HashMapStorage self, Object key, Ob
261261
@CachedLibrary(limit = "1") HashingStorageLibrary newLib, @Cached GilNode gil) {
262262
boolean mustRelease = gil.acquire();
263263
try {
264-
HashingStorage newStore = EconomicMapStorage.create(self.length());
264+
HashingStorage newStore = EconomicMapStorage.create(self.length(gil));
265265
thisLib.addAllToOther(self, newStore);
266266
newLib.setItem(newStore, key, value);
267267
return newStore;

0 commit comments

Comments
 (0)