File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
src/main/java/com/github/javabdd Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -1329,7 +1329,7 @@ public String toString() {
1329
1329
/**
1330
1330
* Singleton object for cache statistics.
1331
1331
*/
1332
- protected static CacheStats cachestats = new CacheStats ();
1332
+ protected CacheStats cachestats = new CacheStats ();
1333
1333
1334
1334
/**
1335
1335
* <p>Return the current cache statistics for this BDD factory.</p>
Original file line number Diff line number Diff line change @@ -54,17 +54,8 @@ private JFactory() { }
54
54
public static BDDFactory init (int nodenum , int cachesize ) {
55
55
BDDFactory f = new JFactory ();
56
56
f .initialize (nodenum , cachesize );
57
- if (cachestats .enabled ) addShutdownHook (f );
58
57
return f ;
59
58
}
60
-
61
- static void addShutdownHook (final BDDFactory f ) {
62
- Runtime .getRuntime ().addShutdownHook (new Thread () {
63
- public void run () {
64
- System .out .println (f .getCacheStats ().toString ());
65
- }
66
- });
67
- }
68
59
69
60
boolean ZDD = false ;
70
61
You can’t perform that action at this time.
0 commit comments