Java Doc for DynamicArea.java in  » Code-Analyzer » javapathfinder » gov » nasa » jpf » jvm » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Code Analyzer » javapathfinder » gov.nasa.jpf.jvm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gov.nasa.jpf.jvm.Area
      gov.nasa.jpf.jvm.DynamicArea

DynamicArea
public class DynamicArea extends Area (Code)
DynamicArea is the heap, i.e. the area were all objects created by NEW insn live. Hence the garbage collection mechanism resides here

Inner Class :class structureMap extends PredicateMap

Field Summary
static  DynamicAreaheap
    
 BitSetisRoot
    
 BitSetisUsed
    
 DynamicIntArraylastAttrs
    
 intmarkLevel
    
 booleanoutOfMemory
    
 DynamicIntArrayrefThread
    
 booleanrunFinalizer
    

Constructor Summary
public  DynamicArea(Config config, KernelState ks)
     Creates a new empty dynamic area.

Method Summary
public  voidanalyzeHeap(boolean sweep)
     Our precise mark & sweep garbage collector.
 voidcheckWeakRefs()
    
 ElementInfocreateElementInfo()
    
public  voidgc()
    
public  ElementInfoget(int index)
    
public static  DynamicAreagetHeap()
    
public  booleangetOutOfMemory()
    
public static  voidinit(Config config)
    
 voidinitGc()
    
public  booleanisSchedulingRelevantObject(int objRef)
    
public  booleanisStatic()
    
public  Vectorlinearize(int objref, Vector result)
    
public  VectorlinearizeRoot(int objref)
    
public  VectorlinearizeRoot(int objref, PredicateMap obj)
    
public  voidlog()
    
 voidlogMark(FieldInfo fi, ElementInfo ei, int tid, int attrMask)
    
 voidmarkPinnedDown(int objref)
    
 voidmarkRecursive(int objref)
     recursive attribute propagating marker, used to traverse the object graph (it's here so that we can pass in gc-local data into the ElementInfo methods).
 voidmarkRecursive(int objref, int refTid, int refAttr, int attrMask, FieldInfo fi)
    
 voidmarkStaticRoot(int objref)
    
 voidmarkThreadRoot(int objref, int tid)
    
public  intnewArray(String type, int size, ThreadInfo th)
     Creates a new array of the given type.
public  intnewConstantString(String str)
     Creates a new constant string.
public  intnewObject(ClassInfo ci, ThreadInfo th)
     Creates a new object of the given class.
public  intnewString(String str, ThreadInfo th)
     Creates a new string.
 voidregisterWeakReference(Fields f)
    
public  voidsetOutOfMemory(boolean isOutOfMemory)
    

Field Detail
heap
static DynamicArea heap(Code)



isRoot
BitSet isRoot(Code)



isUsed
BitSet isUsed(Code)
Used to store various mark phase infos



lastAttrs
DynamicIntArray lastAttrs(Code)



markLevel
int markLevel(Code)



outOfMemory
boolean outOfMemory(Code)



refThread
DynamicIntArray refThread(Code)



runFinalizer
boolean runFinalizer(Code)




Constructor Detail
DynamicArea
public DynamicArea(Config config, KernelState ks)(Code)
Creates a new empty dynamic area.




Method Detail
analyzeHeap
public void analyzeHeap(boolean sweep)(Code)
Our precise mark & sweep garbage collector. Be aware of two things (1) it's called every transition (forward) we detect has changed a reference, to ensure heap symmetry (save states), but at the cost of huge gc loads, where we cannot perform all the nasty performance tricks of 'normal' GCs (2) we do even more - we keep track of reachability, i.e. if an object is reachable from a thread root object, to check if it is thread local (in which case we can ignore corresponding field accesses as potential scheduling relevant insns in our on-the-fly partial order reduction). Note that reachability does not mean accessibility, which is much harder



checkWeakRefs
void checkWeakRefs()(Code)
reset all weak references that now point to collected objects to 'null' NOTE: this implementation requires our own Reference/WeakReference implementation, to make sure the 'ref' field is the first one



createElementInfo
ElementInfo createElementInfo()(Code)



gc
public void gc()(Code)



get
public ElementInfo get(int index)(Code)



getHeap
public static DynamicArea getHeap()(Code)



getOutOfMemory
public boolean getOutOfMemory()(Code)



init
public static void init(Config config)(Code)



initGc
void initGc()(Code)



isSchedulingRelevantObject
public boolean isSchedulingRelevantObject(int objRef)(Code)



isStatic
public boolean isStatic()(Code)



linearize
public Vector linearize(int objref, Vector result)(Code)



linearizeRoot
public Vector linearizeRoot(int objref)(Code)



linearizeRoot
public Vector linearizeRoot(int objref, PredicateMap obj)(Code)



log
public void log()(Code)



logMark
void logMark(FieldInfo fi, ElementInfo ei, int tid, int attrMask)(Code)



markPinnedDown
void markPinnedDown(int objref)(Code)



markRecursive
void markRecursive(int objref)(Code)
recursive attribute propagating marker, used to traverse the object graph (it's here so that we can pass in gc-local data into the ElementInfo methods). This method is called on all root objects, and starts the traversal: DynamicArea.markRecursive(objref) <-- tid, default attrMask ElementInfo.markRecursive(tid,attrMask) <-- object attributes Fields.markRecursive(tid,attributes,attrMask) <-- field info DynamicArea.markRecursive(objref,tid,refAttrs, attrMask, fieldInfo)



markRecursive
void markRecursive(int objref, int refTid, int refAttr, int attrMask, FieldInfo fi)(Code)



markStaticRoot
void markStaticRoot(int objref)(Code)
called during non-recursive phase1 marking of all objects reachable from static fields



markThreadRoot
void markThreadRoot(int objref, int tid)(Code)
called during non-recursive phase1 marking of all objects reachable from Thread roots



newArray
public int newArray(String type, int size, ThreadInfo th)(Code)
Creates a new array of the given type.



newConstantString
public int newConstantString(String str)(Code)
Creates a new constant string. only called from LDC and LDC_W



newObject
public int newObject(ClassInfo ci, ThreadInfo th)(Code)
Creates a new object of the given class.



newString
public int newString(String str, ThreadInfo th)(Code)
Creates a new string.



registerWeakReference
void registerWeakReference(Fields f)(Code)



setOutOfMemory
public void setOutOfMemory(boolean isOutOfMemory)(Code)



Fields inherited from gov.nasa.jpf.jvm.Area
public boolean anyChanged(Code)(Java Doc)
public int[] data(Code)(Java Doc)
protected ElementInfo[] elements(Code)(Java Doc)
public BitSet hasChanged(Code)(Java Doc)
public KernelState ks(Code)(Java Doc)

Methods inherited from gov.nasa.jpf.jvm.Area
protected void add(int index, ElementInfo e)(Code)(Java Doc)
public void backtrackTo(ArrayOffset storing, Object backtrack)(Code)(Java Doc)
public int count()(Code)(Java Doc)
abstract ElementInfo createElementInfo()(Code)(Java Doc)
public ElementInfo get(int index)(Code)(Java Doc)
public Object getBacktrackData()(Code)(Java Doc)
public int[] getStoringData()(Code)(Java Doc)
public void hash(HashData hd)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
abstract public boolean isStatic()(Code)(Java Doc)
public Iterator iterator()(Code)(Java Doc)
protected void remove(int index)(Code)(Java Doc)
public void removeAll()(Code)(Java Doc)
void resetVolatiles()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.