equal
deleted
inserted
replaced
35 class ThreadsList; |
35 class ThreadsList; |
36 |
36 |
37 struct DeflateMonitorCounters { |
37 struct DeflateMonitorCounters { |
38 int nInuse; // currently associated with objects |
38 int nInuse; // currently associated with objects |
39 int nInCirculation; // extant |
39 int nInCirculation; // extant |
40 int nScavenged; // reclaimed |
40 int nScavenged; // reclaimed (global and per-thread) |
41 double perThreadTimes; // per-thread scavenge times |
41 double perThreadTimes; // per-thread scavenge times |
42 }; |
42 }; |
43 |
43 |
44 class ObjectSynchronizer : AllStatic { |
44 class ObjectSynchronizer : AllStatic { |
45 friend class VMStructs; |
45 friend class VMStructs; |
112 static void omFlush(Thread * Self); |
112 static void omFlush(Thread * Self); |
113 |
113 |
114 // Inflate light weight monitor to heavy weight monitor |
114 // Inflate light weight monitor to heavy weight monitor |
115 static ObjectMonitor* inflate(Thread * Self, oop obj, const InflateCause cause); |
115 static ObjectMonitor* inflate(Thread * Self, oop obj, const InflateCause cause); |
116 // This version is only for internal use |
116 // This version is only for internal use |
117 static ObjectMonitor* inflate_helper(oop obj); |
117 static void inflate_helper(oop obj); |
118 static const char* inflate_cause_name(const InflateCause cause); |
118 static const char* inflate_cause_name(const InflateCause cause); |
119 |
119 |
120 // Returns the identity hash value for an oop |
120 // Returns the identity hash value for an oop |
121 // NOTE: It may cause monitor inflation |
121 // NOTE: It may cause monitor inflation |
122 static intptr_t identity_hash_value_for(Handle obj); |
122 static intptr_t identity_hash_value_for(Handle obj); |