Author: zoltan
Date: 2005-03-12 20:39:07 -0500 (Sat, 12 Mar 2005)
New Revision: 41742

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/icall.c
   trunk/mono/mono/metadata/threads-types.h
   trunk/mono/mono/metadata/threads.c
Log:
2005-03-13  Zoltan Varga  <[EMAIL PROTECTED]>

        * icall.c threads.c threads-types.h: Remove slothash icalls as they
        are no longer used.


Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2005-03-12 23:32:33 UTC (rev 41741)
+++ trunk/mono/mono/metadata/ChangeLog  2005-03-13 01:39:07 UTC (rev 41742)
@@ -1,3 +1,8 @@
+2005-03-13  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * icall.c threads.c threads-types.h: Remove slothash icalls as they
+       are no longer used.
+
 2005-03-11  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * object.c (compute_class_bitmap): Add support for generics. Fixes

Modified: trunk/mono/mono/metadata/icall.c
===================================================================
--- trunk/mono/mono/metadata/icall.c    2005-03-12 23:32:33 UTC (rev 41741)
+++ trunk/mono/mono/metadata/icall.c    2005-03-13 01:39:07 UTC (rev 41742)
@@ -6552,8 +6552,6 @@
        {"SetSerializedCurrentCulture", 
ves_icall_System_Threading_Thread_SetSerializedCurrentCulture},
        {"SetSerializedCurrentUICulture", 
ves_icall_System_Threading_Thread_SetSerializedCurrentUICulture},
        {"Sleep_internal", ves_icall_System_Threading_Thread_Sleep_internal},
-       {"SlotHash_lookup", ves_icall_System_Threading_Thread_SlotHash_lookup},
-       {"SlotHash_store", ves_icall_System_Threading_Thread_SlotHash_store},
        {"Start_internal", ves_icall_System_Threading_Thread_Start_internal},
        {"Suspend_internal", ves_icall_System_Threading_Thread_Suspend},
        {"Thread_free_internal", 
ves_icall_System_Threading_Thread_Thread_free_internal},

Modified: trunk/mono/mono/metadata/threads-types.h
===================================================================
--- trunk/mono/mono/metadata/threads-types.h    2005-03-12 23:32:33 UTC (rev 
41741)
+++ trunk/mono/mono/metadata/threads-types.h    2005-03-13 01:39:07 UTC (rev 
41742)
@@ -49,8 +49,6 @@
 extern MonoArray* 
ves_icall_System_Threading_Thread_GetSerializedCurrentUICulture (MonoThread 
*this_obj);
 extern void ves_icall_System_Threading_Thread_SetCachedCurrentUICulture 
(MonoThread *this_obj, MonoObject *culture);
 void ves_icall_System_Threading_Thread_SetSerializedCurrentUICulture 
(MonoThread *this_obj, MonoArray *arr);
-extern void ves_icall_System_Threading_Thread_SlotHash_store(MonoObject *data);
-extern MonoObject *ves_icall_System_Threading_Thread_SlotHash_lookup(void);
 extern HANDLE 
ves_icall_System_Threading_Mutex_CreateMutex_internal(MonoBoolean owned, 
MonoString *name, MonoBoolean *created);
 extern void ves_icall_System_Threading_Mutex_ReleaseMutex_internal (HANDLE 
handle );
 extern HANDLE ves_icall_System_Threading_Events_CreateEvent_internal 
(MonoBoolean manual, MonoBoolean initial, MonoString *name);

Modified: trunk/mono/mono/metadata/threads.c
===================================================================
--- trunk/mono/mono/metadata/threads.c  2005-03-12 23:32:33 UTC (rev 41741)
+++ trunk/mono/mono/metadata/threads.c  2005-03-13 01:39:07 UTC (rev 41742)
@@ -119,9 +119,6 @@
 /* function called when a new thread has been created */
 static MonoThreadCallbacks *mono_thread_callbacks = NULL;
 
-/* The TLS key that holds the LocalDataStoreSlot hash in each thread */
-static guint32 slothash_key = -1;
-
 /* The default stack size for each thread */
 static guint32 default_stacksize = 0;
 #define default_stacksize_for_thread(thread) ((thread)->stack_size? 
(thread)->stack_size: default_stacksize)
@@ -834,29 +831,6 @@
        return(FALSE);
 }
 
-void ves_icall_System_Threading_Thread_SlotHash_store(MonoObject *data)
-{
-       MONO_ARCH_SAVE_REGS;
-
-       THREAD_DEBUG (g_message (G_GNUC_PRETTY_FUNCTION ": Storing key %p", 
data));
-
-       /* Object location stored here */
-       TlsSetValue(slothash_key, data);
-}
-
-MonoObject *ves_icall_System_Threading_Thread_SlotHash_lookup(void)
-{
-       MonoObject *data;
-
-       MONO_ARCH_SAVE_REGS;
-
-       data=TlsGetValue(slothash_key);
-       
-       THREAD_DEBUG (g_message (G_GNUC_PRETTY_FUNCTION ": Retrieved key %p", 
data));
-       
-       return(data);
-}
-
 /* FIXME: exitContext isnt documented */
 gboolean ves_icall_System_Threading_WaitHandle_WaitAll_internal(MonoArray 
*mono_handles, gint32 ms, gboolean exitContext)
 {
@@ -1596,8 +1570,6 @@
        mono_thread_start_cb = start_cb;
        mono_thread_attach_cb = attach_cb;
 
-       slothash_key=TlsAlloc();
-
        /* Get a pseudo handle to the current process.  This is just a
         * kludge so that wapi can build a process handle if needed.
         * As a pseudo handle is returned, we don't need to clean

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to