use of org.jikesrvm.scheduler.RVMThread in project JikesRVM by JikesRVM.
the class CodePatchSyncRequestVisitorTest method normalThreadsTakePartInHandshake.
@Test
public void normalThreadsTakePartInHandshake() throws Exception {
RVMThread normalThread = RVMThread.getCurrentThread();
assertTrue(codePatchSyncReqVisitor.includeThread(normalThread));
}
use of org.jikesrvm.scheduler.RVMThread in project JikesRVM by JikesRVM.
the class CodePatchSyncRequestVisitorTest method checkAndSignalSetsCodePatchingFlag.
@Test
public void checkAndSignalSetsCodePatchingFlag() throws Exception {
Thread t = new ThreadWithTimeout();
t.start();
RVMThread rvmThread = JikesRVMSupport.getThread(t);
assertFalse(rvmThread.codePatchSyncRequested);
codePatchSyncReqVisitor.checkAndSignal(rvmThread);
assertTrue(rvmThread.codePatchSyncRequested);
t.interrupt();
}
Aggregations