Commit c8f5c7f4963659299ec808c03c7a93849fdcc053

  • avatar
  • crawley <crawley @407389f7-7c16-0410…ad85acb55d7f.>
  • Wed Aug 26 13:52:35 CEST 2009
Removed some dead code and fixed a misleading javadoc comment about how
VmProcess.reschedule() gets called.


git-svn-id: http://jnode.svn.sourceforge.net/svnroot/jnode/trunk@5663 407389f7-7c16-0410-9eee-ad85acb55d7f
  
120120
121121 private final VmWriteBarrier writeBarrier;
122122
123 private final VmMethod yieldPoint;
124
125123 private final VmMethod recompileMethod;
126124
127125 private final int magic;
241241 "org.jnode.vm.scheduler.VmProcessor", true);
242242 vmThreadSwitchIndicatorOffset =
243243 ((VmInstanceField) testField(processorClass.getField("threadSwitchIndicator"))).getOffset();
244 yieldPoint = testMethod(processorClass.getMethod("yieldPoint", "()V"));
245244 vmProcessorMeField = (VmInstanceField) testField(processorClass.getField("me"));
246245 vmProcessorStackEnd = (VmInstanceField) testField(processorClass
247246 .getField("stackEnd"));
623623 */
624624 public final VmMethod getClassCastFailedMethod() {
625625 return classCastFailedMethod;
626 }
627
628 /**
629 * @return Returns the yieldPoint.
630 * @see org.jnode.vm.scheduler.VmProcessor#yieldPoint()
631 */
632 public final VmMethod getYieldPoint() {
633 return yieldPoint;
634626 }
635627
636628 /**
  
349349 }
350350
351351 /**
352 * This method is called by the generated yieldpoints if a threadswitch is
353 * requested.
354 */
355 final void yieldPoint() {
356
357 }
358
359 /**
360352 * Is this processor busy switching threads.
361353 *
362354 * @return true or false
411411 }
412412
413413 /**
414 * This method is called by the timer interrupt with interrupts disabled.
415 * Keep this method as short and as fast as possible!
414 * This method is called by the "yieldpoint" interrupt handler (see "vm-ints.asm")
415 * with interrupts disabled. Try to keep it as short and as fast as possible!
416416 *
417417 * @throws org.vmmagic.pragma.UninterruptiblePragma
418418 */