Removed vestigial code left over from "waiting queues". Scratch previous comment...
authorstephey <stephey>
Thu, 27 Jan 2011 23:39:33 +0000 (23:39 +0000)
committerstephey <stephey>
Thu, 27 Jan 2011 23:39:33 +0000 (23:39 +0000)
Robust/src/IR/Flat/RuntimeConflictResolver.java
Robust/src/Runtime/oooJava/hashStructure.c
Robust/src/Runtime/oooJava/hashStructure.h

index 324c482c6ad65830e556412e90f9b5c1aa2fb28e..32b216e7bc34bc84b5c25c4637cbf1fbfd8664a3 100644 (file)
@@ -80,7 +80,7 @@ public class RuntimeConflictResolver {
    *     2a) Use Effects to verify we can access something (reads)
    *     2b) Use conflicts to mark conflicts (read/write/strongupdate)
    *     2c) At second level of hash, store Heaproots that can cause conflicts at the field
-   * 3) Walk hash structure to identify and enumerate weakly connected groups and generate waiting queue slots. 
+   * 3) Walk hash structure to identify and enumerate weakly connected groups
    * 4) Build internal representation of the rgs (pruned)
    * 5) Print c methods by walking internal representation
    */
@@ -474,9 +474,7 @@ public class RuntimeConflictResolver {
     
     //Prints out the master traverser Invocation that'll call all other traversers
     //based on traverserID
-    printMasterTraverserInvocation();
-    printResumeTraverserInvocation();
-    
+    printMasterTraverserInvocation();    
     createMasterHashTableArray();
     
     // Adds Extra supporting methods
@@ -570,6 +568,7 @@ public class RuntimeConflictResolver {
   }
 
 
+  //Currently UNUSED method but may be useful in the future.
   //This will print the traverser invocation that takes in a traverserID and starting ptr
   private void printResumeTraverserInvocation() {
     headerFile.println("\nint traverse(void * startingPtr, SESEcommon * record, int traverserID);");
@@ -699,7 +698,7 @@ public class RuntimeConflictResolver {
   
   /*
    * addChecker creates a case statement for every object that is an inset variable, has more
-   * than 1 parent && has conflicts, or where resumes are possible (from waiting queue). 
+   * than 1 parent && has conflicts, or where resumes are possible 
    * See .qualifiesForCaseStatement
    */
   private void addChecker(Taint taint, 
index 36876afe01be3f7e2e6eeecb3bf82e2083f05376..d49a4f92c10cf6cc3d227addf5c065f2062a9cf9 100644 (file)
@@ -5,9 +5,6 @@
 #include "mem.h"
 #include "classdefs.h"
 
-
-//NOTE: this is only temporary (for testing) and will be removed in favor of thread local variables
-//It's basically an array of hashStructures so we can simulate what would happen in a many-threaded version
 __thread HashStructure ** allHashStructures;
 #define ISWRITEBIN(x) (x&BINMASK)
 #define ISREADBIN(x) (!(x&BINMASK))
@@ -38,12 +35,11 @@ inline enqueuerecord(struct rcrRecord *rcrrec, int tmpkey, BinItem_rcr *item) {
   }
 }
 
-//NOTE: only temporary
 HashStructure ** rcr_createMasterHashTableArray(int maxSize){
   return (HashStructure **) malloc(sizeof(HashStructure *) * maxSize);
 }
 
-HashStructure* rcr_createHashtable(int sizeofWaitingQueue){
+HashStructure* rcr_createHashtable(){
   int i=0;
   HashStructure* newTable=(HashStructure*)RUNMALLOC(sizeof(HashStructure));
   for(i=0;i<RNUMBINS;i++){
index 26ec2f406faab70ef89c61d4341cb24941ad979b..e36462478d8865b65ef04d6a06ac996b2d54b9ca 100644 (file)
@@ -80,8 +80,8 @@ typedef struct ReadBinItem_rcr {
 
 extern __thread HashStructure ** allHashStructures;
 
-HashStructure ** rcr_createMasterHashTableArray(int maxSize); //temporary
-HashStructure* rcr_createHashtable(int sizeofWaitingQueue);
+HashStructure ** rcr_createMasterHashTableArray(int maxSize);
+HashStructure* rcr_createHashtable();
 WriteBinItem_rcr* rcr_createWriteBinItem( HashStructure* htable );
 ReadBinItem_rcr* rcr_createReadBinItem( HashStructure* htable );
 inline int rcr_generateKey(void * ptr);