X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Funit-tests%2Ftest-conc-hashtable.c;fp=mono%2Funit-tests%2Ftest-conc-hashtable.c;h=c5303a1a6cd7b3060fae2b5be3aeeaa1815d952b;hb=5e3db4ff8d7e0a0fb18650f714d5f458341c95ea;hp=23865ad88441b185637df6aec6dc1d094e3586d6;hpb=f1c147af8f1f823014163d4c021a2717cdc2a1da;p=mono.git diff --git a/mono/unit-tests/test-conc-hashtable.c b/mono/unit-tests/test-conc-hashtable.c index 23865ad8844..c5303a1a6cd 100644 --- a/mono/unit-tests/test-conc-hashtable.c +++ b/mono/unit-tests/test-conc-hashtable.c @@ -328,14 +328,25 @@ benchmark_glib (void) g_hash_table_destroy (h); } +static void +thread_state_init (MonoThreadUnwindState *ctx) +{ +} + + int main (void) { MonoThreadInfoCallbacks cb = { NULL }; + MonoThreadInfoRuntimeCallbacks ticallbacks; int res = 0; CHECKED_MONO_INIT (); mono_threads_init (&cb, sizeof (MonoThreadInfo)); + memset (&ticallbacks, 0, sizeof (ticallbacks)); + ticallbacks.thread_state_init = thread_state_init; + mono_threads_runtime_init (&ticallbacks); + mono_thread_info_attach ((gpointer)&cb); // benchmark_conc ();