Home | History | Annotate | Download | only in src-art

Lines Matching refs:Operation

64     private static abstract class Operation {
66 * Perform the action represented by this operation. Returns true if the thread should
72 private final static class OOM extends Operation {
88 private final static class SigQuit extends Operation {
131 private final static class Alloc extends Operation {
148 private final static class LargeAlloc extends Operation {
166 private final static class NonMovingAlloc extends Operation {
185 private final static class StackTrace extends Operation {
196 private final static class Exit extends Operation {
203 private final static class Sleep extends Operation {
216 private final static class TimedWait extends Operation {
237 private final static class Wait extends Operation {
256 private final static class TimedPark extends Operation {
268 private final static class SyncAndWork extends Operation {
287 // An operation requiring the acquisition of a permit from a semaphore
288 // for its execution. This operation has been added to exercise
292 private final static class QueuedWait extends Operation {
327 private final static Map<Operation, Double> createDefaultFrequencyMap(Object lock,
329 Map<Operation, Double> frequencyMap = new HashMap<Operation, Double>();
346 private final static Map<Operation, Double> createAllocFrequencyMap() {
347 Map<Operation, Double> frequencyMap = new HashMap<Operation, Double>();
356 private final static Map<Operation, Double> createLockFrequencyMap(Object lock) {
357 Map<Operation, Double> frequencyMap = new HashMap<Operation, Double>();
372 private static Map<Operation, Double> updateFrequencyMap(Map<Operation, Double> in,
387 Operation op = null;
419 in = new HashMap<Operation, Double>();
426 private static void normalize(Map<Operation, Double> map) {
436 Set<Operation> tmp = new HashSet<>(map.keySet());
437 for (Operation op : tmp) {
450 Map<Operation, Double> frequencyMap = null;
478 // Processing an argument of the form "-<operation>:X"
599 Map<Operation, Double> frequencyMap) throws Exception {
607 // the frequencyMap values. We fill out an Operation[]
609 // Operation[] is shuffled so that there is more random
612 // Fill in the Operation[] array for each thread by laying
613 // down references to operation according to their desired
619 Operation[] operations = new Operation[operationsPerThread];
623 for (Operation op : frequencyMap.keySet()) {
634 // Randomize the operation order
641 // Enable to dump operation counts per thread to make sure its
645 Operation[] operations = threadStresses[t].operations;
646 Map<Operation, Integer> distribution = new HashMap<Operation, Integer>();
647 for (Operation operation : operations) {
648 Integer ops = distribution.get(operation);
654 distribution.put(operation, ops);
657 for (Operation op : frequencyMap.keySet()) {
664 // ensures that thread that exit due to operation Exit will be
753 protected final Operation[] operations;
759 private Main(Object lock, int id, Operation[] operations) {
771 Operation operation = operations[nextOperation];
774 + " operation " + nextOperation
775 + " is " + operation);
778 if (!operation.perform()) {
792 Operation[] operations,
809 Operation operation = operations[i];
812 + " operation " + i
813 + " is " + operation);
815 // Ignore the result of the performed operation, making
817 operation.perform();