Mercurial > hg > graal-jvmci-8
comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/CompilerObject.java @ 2056:b7f06f504206
Removed compiler object tracking.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Fri, 14 Jan 2011 13:22:50 +0100 |
parents | 3c0a889a176b |
children | 569d3fe7d65c |
comparison
equal
deleted
inserted
replaced
2055:99ad52189524 | 2056:b7f06f504206 |
---|---|
22 | 22 |
23 import java.io.*; | 23 import java.io.*; |
24 | 24 |
25 | 25 |
26 /** | 26 /** |
27 * Marker interface for all HotSpot Ri... types. | 27 * Parent class for all HotSpot Ri... types. |
28 * | 28 * |
29 * @author Lukas Stadler | 29 * @author Lukas Stadler |
30 */ | 30 */ |
31 public abstract class CompilerObject implements Serializable { | 31 public abstract class CompilerObject implements Serializable { |
32 | |
33 | |
34 private static final boolean PrintStats = false; | |
35 private static int AllocatedCount; | |
36 private static int FinalizeCount; | |
37 | |
38 public CompilerObject() { | |
39 AllocatedCount++; | |
40 if (PrintStats && AllocatedCount % 1000 == 0) { | |
41 System.out.println("Allocated " + AllocatedCount); | |
42 } | |
43 } | |
44 | |
45 @Override | |
46 protected void finalize() throws Throwable { | |
47 FinalizeCount++; | |
48 if (PrintStats && FinalizeCount % 1000 == 0) { | |
49 System.out.println("Finalized " + FinalizeCount); | |
50 } | |
51 super.finalize(); | |
52 } | |
53 } | 32 } |