Skip to content

Commit ec9ecc1

Browse files
committed
poly_destroy_handle was renamed
1 parent a7e6195 commit ec9ecc1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,8 @@ def run_shared_lib_test(args=None):
434434
return status;
435435
}
436436
437-
poly_destroy_handle(isolate_thread, engine_builder);
438-
poly_destroy_handle(isolate_thread, builder);
437+
poly_delete_reference(isolate_thread, engine_builder);
438+
poly_delete_reference(isolate_thread, builder);
439439
440440
return poly_ok;
441441
}
@@ -446,7 +446,7 @@ def run_shared_lib_test(args=None):
446446
return status;
447447
}
448448
449-
status = poly_destroy_handle(isolate_thread, context);
449+
status = poly_delete_reference(isolate_thread, context);
450450
if (status != poly_ok) {
451451
return status;
452452
}
@@ -456,7 +456,7 @@ def run_shared_lib_test(args=None):
456456
return status;
457457
}
458458
459-
status = poly_destroy_handle(isolate_thread, engine);
459+
status = poly_delete_reference(isolate_thread, engine);
460460
if (status != poly_ok) {
461461
return status;
462462
}
@@ -483,10 +483,10 @@ def run_shared_lib_test(args=None):
483483
int32_t result_value;
484484
poly_value_as_int32(isolate_thread, value, &result_value);
485485
486-
assert_ok("primitive free failed", poly_destroy_handle(isolate_thread, primitive_object) == poly_ok);
487-
assert_ok("value free failed", poly_destroy_handle(isolate_thread, value) == poly_ok);
486+
assert_ok("primitive free failed", poly_delete_reference(isolate_thread, primitive_object) == poly_ok);
487+
assert_ok("value free failed", poly_delete_reference(isolate_thread, value) == poly_ok);
488488
assert_ok("value computation was incorrect", result_value == 42 * 42);
489-
assert_ok("func free failed", poly_destroy_handle(isolate_thread, func) == poly_ok);
489+
assert_ok("func free failed", poly_delete_reference(isolate_thread, func) == poly_ok);
490490
assert_ok("Context tear down failed.", tear_down_context() == poly_ok);
491491
return 0;
492492
}

0 commit comments

Comments
 (0)