add destructors
[cdsspec-compiler.git] / src / edu / uci / eecs / codeGenerator / Environment.java
1 package edu.uci.eecs.codeGenerator;
2
3 import java.util.ArrayList;
4
5 /**
6  * <p>
7  * This class contains some constant strings related to the code generation
8  * process.
9  * </p>
10  * 
11  * @author Peizhao Ou
12  * 
13  */
14 public class Environment {
15         public final static String HomeDir = System.getProperty("user.dir");
16         public final static String ModelCheckerHome = System
17                         .getProperty("user.home")
18                         + "/model-checker-priv/model-checker-priv/";
19         public final static String BenchmarksDir = ModelCheckerHome
20                         + "/benchmarks/";
21         public final static String ModelCheckerTestDir = ModelCheckerHome
22                         + "/test-cdsspec/";
23         public final static String GeneratedFilesDir = ModelCheckerTestDir;
24
25         public final static String REGISTER = "register";
26         public final static String MS_QUEUE = "ms-queue";
27         public final static String LINUXRWLOCKS = "linuxrwlocks";
28         public final static String MCS_LOCK = "mcs-lock";
29         public final static String DEQUE = "chase-lev-deque-bugfix";
30         public final static String TREIBER_STACK = "treiber-stack";
31         public final static String TICKET_LOCK = "ticket-lock";
32         public final static String SEQLOCK = "seqlock";
33         public final static String READ_COPY_UPDATE = "read-copy-update";
34         public final static String CONCURRENT_MAP = "concurrent-hashmap";
35         public final static String SPSC = "spsc-bugfix";
36         public final static String MPMC = "mpmc-queue";
37         
38         public final static String[] Benchmarks = {
39                 REGISTER,
40                 MS_QUEUE,
41                 LINUXRWLOCKS,
42                 MCS_LOCK,
43                 DEQUE,
44                 TREIBER_STACK,
45                 TICKET_LOCK,
46                 SEQLOCK,
47                 READ_COPY_UPDATE,
48                 CONCURRENT_MAP,
49                 SPSC,
50                 MPMC
51         }; 
52
53 }