Mercurial > hg > Members > kono > jpf-core
diff src/main/gov/nasa/jpf/util/event/Event.java @ 1:f6886b2bda4a
first set of post v7 patches
general part of extendTransition optimization, which skips transition breaks (and hence state matching) if vm.extend_transitions is set, and the next CG has only a single choice that does not require a break (e.g. context switch). This is mainly meant to be a state space optimization, and complements the null return on the CG creator side, which is extension/domain specific and also cuts into observability from listeners (no CG - no CG notifications).
Note this is only the first part of the patch and probably too general in most cases. The second part extends this with an interface that can control breaks dynamically (e.g. from listeners).
Added a ChoiceGenerator.setCurrent() (empty by default) that can be used as a CG type specific hook to expand/modify choices once the CG becomes active
Added the first part of the patch that allows SUT context expansion of EventChoiceGenerators, which is required to make the new event system work in situations that need to add additional events based on the current SUT state (e.g. statemachines with timeout events).
Fix for INVOKEDYNAMIC causing a NPE for recycled/restored function objects (Nastaran's patch)
author | Peter Mehlitz <Peter.C.Mehlitz@nasa.gov> |
---|---|
date | Fri, 23 Jan 2015 11:08:46 -0800 |
parents | 61d41facf527 |
children | b920e6b1be83 |
line wrap: on
line diff
--- a/src/main/gov/nasa/jpf/util/event/Event.java Fri Jan 23 10:14:01 2015 -0800 +++ b/src/main/gov/nasa/jpf/util/event/Event.java Fri Jan 23 11:08:46 2015 -0800 @@ -25,21 +25,22 @@ import java.util.List; /** - * class that represents an external stimulus to the SUT, which is produced by EnvironmentModel instances + * class that represents an external stimulus to the SUT, which is produced by EventTree instances + * (our environment models) * - * Note that albeit concrete EnvironmentModels can provide their own, specialized Event types, this class + * Note that albeit concrete EventTree can provide their own, specialized Event types, this class * is generic enough that we don't declare it as abstract */ public class Event implements Cloneable { static final Object[] NO_ARGUMENTS = new Object[0]; - //--- linkage protected Event next; protected Event prev; protected Event alt; + //--- payload protected String name; protected Object[] arguments;