Search in sources :

Example 21 with RVMThread

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));
}
Also used : RVMThread(org.jikesrvm.scheduler.RVMThread) Test(org.junit.Test)

Example 22 with RVMThread

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();
}
Also used : RVMThread(org.jikesrvm.scheduler.RVMThread) RVMThread(org.jikesrvm.scheduler.RVMThread) Test(org.junit.Test)

Aggregations

RVMThread (org.jikesrvm.scheduler.RVMThread)22 Unpreemptible (org.vmmagic.pragma.Unpreemptible)7 Address (org.vmmagic.unboxed.Address)7 Entrypoint (org.vmmagic.pragma.Entrypoint)6 CompiledMethod (org.jikesrvm.compilers.common.CompiledMethod)5 Offset (org.vmmagic.unboxed.Offset)5 NoInline (org.vmmagic.pragma.NoInline)4 OptCompiledMethod (org.jikesrvm.compilers.opt.runtimesupport.OptCompiledMethod)3 AbstractRegisters (org.jikesrvm.architecture.AbstractRegisters)2 Test (org.junit.Test)2 Inline (org.vmmagic.pragma.Inline)2 UnpreemptibleNoWarn (org.vmmagic.pragma.UnpreemptibleNoWarn)2 LockInfo (java.lang.management.LockInfo)1 MonitorInfo (java.lang.management.MonitorInfo)1 ThreadInfo (java.lang.management.ThreadInfo)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 RVMMethod (org.jikesrvm.classloader.RVMMethod)1 RVMType (org.jikesrvm.classloader.RVMType)1 ArchBaselineCompiledMethod (org.jikesrvm.compilers.baseline.ppc.ArchBaselineCompiledMethod)1 Assembler (org.jikesrvm.compilers.common.assembler.ia32.Assembler)1