Home | History | Annotate | Download | only in src

Lines Matching refs:Operation

51     private static abstract class Operation {
53 * Perform the action represented by this operation. Returns true if the thread should
59 private final static class OOM extends Operation {
75 private final static class SigQuit extends Operation {
118 private final static class Alloc extends Operation {
135 private final static class LargeAlloc extends Operation {
153 private final static class StackTrace extends Operation {
164 private final static class Exit extends Operation {
171 private final static class Sleep extends Operation {
184 private final static class TimedWait extends Operation {
205 private final static class Wait extends Operation {
224 private final static class SyncAndWork extends Operation {
243 private final static Map<Operation, Double> createDefaultFrequencyMap(Object lock) {
244 Map<Operation, Double> frequencyMap = new HashMap<Operation, Double>();
258 private final static Map<Operation, Double> createLockFrequencyMap(Object lock) {
259 Map<Operation, Double> frequencyMap = new HashMap<Operation, Double>();
273 private static Map<Operation, Double> updateFrequencyMap(Map<Operation, Double> in,
288 Operation op = null;
312 in = new HashMap<Operation, Double>();
319 private static void normalize(Map<Operation, Double> map) {
329 Set<Operation> tmp = new HashSet<>(map.keySet());
330 for (Operation op : tmp) {
342 Map<Operation, Double> frequencyMap = null;
412 Map<Operation, Double> frequencyMap) throws Exception {
420 // the Operation.frequency values. We fill out an Operation[]
422 // Operation[] is shuffled so that there is more random
425 // Fill in the Operation[] array for each thread by laying
426 // down references to operation according to their desired
432 Operation[] operations = new Operation[operationsPerThread];
436 for (Operation op : frequencyMap.keySet()) {
447 // Randomize the operation order
454 // Enable to dump operation counts per thread to make sure its
455 // sane compared to Operation.frequency
458 Operation[] operations = threadStresses[t].operations;
459 Map<Operation, Integer> distribution = new HashMap<Operation, Integer>();
460 for (Operation operation : operations) {
461 Integer ops = distribution.get(operation);
467 distribution.put(operation, ops);
470 for (Operation op : frequencyMap.keySet()) {
477 // ensures that thread that exit due to Operation.EXIT will be
527 // up threads in Operation.WAIT
561 protected final Operation[] operations;
567 private Main(Object lock, int id, Operation[] operations) {
579 Operation operation = operations[nextOperation];
582 + " operation " + nextOperation
583 + " is " + operation);
586 if (!operation.perform()) {
600 Operation[] operations,
617 Operation operation = operations[i];
620 + " operation " + i
621 + " is " + operation);
623 operation.perform();