Lines Matching refs:sensor
47 SensorInfo* sensor = pool->usage_sensor();
48 if (sensor != NULL) {
49 has_requests = has_requests || sensor->has_pending_requests();
68 SensorInfo* sensor = pool->usage_sensor();
70 if (sensor != NULL && sensor->has_pending_requests()) {
71 sensor->process_pending_requests(CHECK);
88 SensorInfo* sensor = pool->usage_sensor();
89 if (sensor != NULL &&
93 sensor->set_gauge_sensor_level(usage,
95 has_pending_requests = has_pending_requests || sensor->has_pending_requests();
107 SensorInfo* sensor = pool->usage_sensor();
108 if (sensor == NULL ||
118 sensor->set_gauge_sensor_level(usage,
120 if (sensor->has_pending_requests()) {
121 // notify sensor state update
129 SensorInfo* sensor = pool->gc_usage_sensor();
130 if (sensor == NULL ||
140 sensor->set_counter_sensor_level(usage, pool->gc_usage_threshold());
142 if (sensor->has_pending_requests()) {
143 // notify sensor state update
181 // The sensor will be triggered if:
183 // the sensor is currently off and no pending
186 // the sensor will be off (i.e. sensor is currently on
192 // The sensor will be cleared if:
194 // the sensor is currently on and no pending
197 // the sensor will be on (i.e. sensor is currently off
219 // if the sensor is off or will be off due to _pending_clear_ > 0
220 // Request to trigger the sensor
226 // pending requests to clear this sensor.
228 // since the resulting sensor flag should be on.
235 // Request to clear the sensor if the sensor is on or will be on due to
242 // simple counter attribute. The sensor will be triggered
251 // The sensor will be triggered if:
253 // of the current sensor state.
255 // The sensor will be cleared if:
257 // the sensor is currently on; or
259 // the sensor will be on (i.e. sensor is currently off
337 // Holds Service_lock and update the sensor state
348 // Holds Service_lock and update the sensor state
352 // reactivated the sensor in the meantime because it was triggered again.
364 Handle sensor(THREAD, _sensor_obj);
367 JavaCallArguments args(sensor);