< prev index next >
src/hotspot/share/runtime/vmThread.cpp
Print this page
rev 57079 : imported patch 8234796
@@ -427,26 +427,25 @@
}
static VM_None safepointALot_op("SafepointALot");
static VM_Cleanup cleanup_op;
-class HandshakeALotTC : public ThreadClosure {
+class HandshakeALotHS : public HandshakeOperation {
public:
- virtual void do_thread(Thread* thread) {
+ HandshakeALotHS() : HandshakeOperation("HandshakeALot") {}
+ void do_thread(JavaThread* jt) {
#ifdef ASSERT
- assert(thread->is_Java_thread(), "must be");
- JavaThread* jt = (JavaThread*)thread;
jt->verify_states_for_handshake();
#endif
}
};
VM_Operation* VMThread::no_op_safepoint() {
// Check for handshakes first since we may need to return a VMop.
if (HandshakeALot) {
- HandshakeALotTC haltc;
- Handshake::execute(&haltc);
+ HandshakeALotHS halhs;
+ Handshake::execute(&halhs);
}
// Check for a cleanup before SafepointALot to keep stats correct.
long interval_ms = SafepointTracing::time_since_last_safepoint_ms();
bool max_time_exceeded = GuaranteedSafepointInterval != 0 &&
(interval_ms >= GuaranteedSafepointInterval);
< prev index next >