Commit c8f5c7f4963659299ec808c03c7a93849fdcc053
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
| |   |
| 120 | 120 | |
| 121 | 121 | private final VmWriteBarrier writeBarrier; |
| 122 | 122 | |
| private final VmMethod yieldPoint; |
|
| 125 | 123 | private final VmMethod recompileMethod; |
| 126 | 124 | |
| 127 | 125 | private final int magic; |
| … | … | |
| 241 | 241 | "org.jnode.vm.scheduler.VmProcessor", true); |
| 242 | 242 | vmThreadSwitchIndicatorOffset = |
| 243 | 243 | ((VmInstanceField) testField(processorClass.getField("threadSwitchIndicator"))).getOffset(); |
| yieldPoint = testMethod(processorClass.getMethod("yieldPoint", "()V")); |
| 245 | 244 | vmProcessorMeField = (VmInstanceField) testField(processorClass.getField("me")); |
| 246 | 245 | vmProcessorStackEnd = (VmInstanceField) testField(processorClass |
| 247 | 246 | .getField("stackEnd")); |
| … | … | |
| 623 | 623 | */ |
| 624 | 624 | public final VmMethod getClassCastFailedMethod() { |
| 625 | 625 | return classCastFailedMethod; |
| } |
|
| /** |
| * @return Returns the yieldPoint. |
| * @see org.jnode.vm.scheduler.VmProcessor#yieldPoint() |
| */ |
| public final VmMethod getYieldPoint() { |
| return yieldPoint; |
| 634 | 626 | } |
| 635 | 627 | |
| 636 | 628 | /** |
| |   |
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | /** |
| * This method is called by the generated yieldpoints if a threadswitch is |
| * requested. |
| */ |
| final void yieldPoint() { |
|
| } |
|
| /** |
| 360 | 352 | * Is this processor busy switching threads. |
| 361 | 353 | * |
| 362 | 354 | * @return true or false |
| … | … | |
| 411 | 411 | } |
| 412 | 412 | |
| 413 | 413 | /** |
| * This method is called by the timer interrupt with interrupts disabled. |
| * Keep this method as short and as fast as possible! |
| * This method is called by the "yieldpoint" interrupt handler (see "vm-ints.asm") |
| * with interrupts disabled. Try to keep it as short and as fast as possible! |
| 416 | 416 | * |
| 417 | 417 | * @throws org.vmmagic.pragma.UninterruptiblePragma |
| 418 | 418 | */ |