@@ -1161,8 +1161,8 @@ v6 = FooModEverywhere
1161
1161
Base. Serializer. serialize_type (s, TestSerCnt)
1162
1162
serialize (s, t. v)
1163
1163
global testsercnt_d
1164
- cnt = get! (testsercnt_d, object_id (t), 0 )
1165
- testsercnt_d[object_id (t)] = cnt+ 1
1164
+ cnt = get! (testsercnt_d, objectid (t), 0 )
1165
+ testsercnt_d[objectid (t)] = cnt+ 1
1166
1166
end
1167
1167
1168
1168
Base. deserialize (s:: AbstractSerializer , :: Type{TestSerCnt} ) = TestSerCnt (deserialize (s))
@@ -1174,22 +1174,22 @@ for i in 1:5
1174
1174
remotecall_fetch (()-> tsc, id_other)
1175
1175
end
1176
1176
# should have been serialized only once
1177
- @test testsercnt_d[object_id (tsc)] == 1
1177
+ @test testsercnt_d[objectid (tsc)] == 1
1178
1178
1179
1179
# hash values are changed
1180
1180
n= 5
1181
- testsercnt_d[object_id (tsc)] = 0
1181
+ testsercnt_d[objectid (tsc)] = 0
1182
1182
for i in 1 : n
1183
1183
tsc. v[i] = i
1184
1184
remotecall_fetch (()-> tsc, id_other)
1185
1185
end
1186
1186
# should have been serialized as many times as the loop
1187
- @test testsercnt_d[object_id (tsc)] == n
1187
+ @test testsercnt_d[objectid (tsc)] == n
1188
1188
1189
1189
# Multiple references in a closure should be serialized only once.
1190
1190
global mrefs = TestSerCnt (fill (1. ,10 ))
1191
1191
@test remotecall_fetch (()-> (mrefs. v, 2 * mrefs. v, 3 * mrefs. v), id_other) == (fill (1. ,10 ), fill (2. ,10 ), fill (3. ,10 ))
1192
- @test testsercnt_d[object_id (mrefs)] == 1
1192
+ @test testsercnt_d[objectid (mrefs)] == 1
1193
1193
1194
1194
1195
1195
# nested anon functions
@@ -1239,9 +1239,9 @@ global ids_func = ()->ids_cleanup
1239
1239
clust_ser = (Distributed. worker_from_id (id_other)). w_serializer
1240
1240
@test remotecall_fetch (ids_func, id_other) == ids_cleanup
1241
1241
1242
- @test haskey (clust_ser. glbs_sent, object_id (ids_cleanup))
1242
+ @test haskey (clust_ser. glbs_sent, objectid (ids_cleanup))
1243
1243
finalize (ids_cleanup)
1244
- @test ! haskey (clust_ser. glbs_sent, object_id (ids_cleanup))
1244
+ @test ! haskey (clust_ser. glbs_sent, objectid (ids_cleanup))
1245
1245
1246
1246
# TODO Add test for cleanup from `clust_ser.glbs_in_tnobj`
1247
1247
0 commit comments