[llvm-commits] [vmkit] r50420 - /vmkit/trunk/lib/Mvm/GCMmap2/gcthread.h

Nicolas Geoffray nicolas.geoffray at lip6.fr
Tue Apr 29 07:59:32 PDT 2008


Author: geoffray
Date: Tue Apr 29 09:59:31 2008
New Revision: 50420

URL: http://llvm.org/viewvc/llvm-project?rev=50420&view=rev
Log:
In a service environment, all threads contain a meta information, which is the current
service it is executing.


Modified:
    vmkit/trunk/lib/Mvm/GCMmap2/gcthread.h

Modified: vmkit/trunk/lib/Mvm/GCMmap2/gcthread.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/Mvm/GCMmap2/gcthread.h?rev=50420&r1=50419&r2=50420&view=diff

==============================================================================
--- vmkit/trunk/lib/Mvm/GCMmap2/gcthread.h (original)
+++ vmkit/trunk/lib/Mvm/GCMmap2/gcthread.h Tue Apr 29 09:59:31 2008
@@ -25,10 +25,16 @@
    int                _tid;
   
 public:
+#ifdef SERVICE_GC
+   void* meta;
+#endif
   inline GCThreadCollector() {}
    inline GCThreadCollector(GCThreadCollector *pred, int t, void *p, int m) : CircularBase(pred) {
     _base_sp = p;
     _tid = t;
+#ifdef SERVICE_GC
+    meta = 0;
+#endif
   }
 
   /* This function is only called in two cases:
@@ -71,7 +77,6 @@
 };
 
 class GCThread {
-  GCThreadCollector        base;
   GCLockRecovery         _globalLock;     /* global lock for gcmalloc */
   LockNormal              _stackLock;     /* stack lock for synchronization */
   Cond                    _stackCond;     /* condition for unlocking other tasks (write protect) */
@@ -82,6 +87,7 @@
 
   
 public:
+  GCThreadCollector        base;
   Key<GCThreadCollector>  _loc;
   GCThread() {
     _nb_threads = 0;





More information about the llvm-commits mailing list