From c204a2eacf870a05f1ccde63e4da452017b6e2f5 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Wed, 25 Jan 2017 00:36:45 +0100 Subject: kern/sref: implement weak references --- test/test_sref_dirty_zeroes.c | 2 +- test/test_sref_noref.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_sref_dirty_zeroes.c b/test/test_sref_dirty_zeroes.c index 6080219..042fb68 100644 --- a/test/test_sref_dirty_zeroes.c +++ b/test/test_sref_dirty_zeroes.c @@ -110,7 +110,7 @@ test_setup(void) condition_init(&test_condition); mutex_init(&test_lock); - sref_counter_init(&test_counter, test_noref); + sref_counter_init(&test_counter, NULL, test_noref); test_transient_ref = 0; thread_attr_init(&attr, THREAD_KERNEL_PREFIX "test_inc"); diff --git a/test/test_sref_noref.c b/test/test_sref_noref.c index 0895de4..d9fe63b 100644 --- a/test/test_sref_noref.c +++ b/test/test_sref_noref.c @@ -141,7 +141,7 @@ test_run(void *arg) panic("vm_kmem_alloc: %s", error_str(ERROR_NOMEM)); } - sref_counter_init(&obj->ref_counter, test_obj_noref); + sref_counter_init(&obj->ref_counter, NULL, test_obj_noref); printk("page allocated, 1 reference, publishing\n"); -- cgit v1.2.3