Revision: 5663
          http://jnode.svn.sourceforge.net/jnode/?rev=5663&view=rev
Author:   crawley
Date:     2009-08-26 11:52:35 +0000 (Wed, 26 Aug 2009)

Log Message:
-----------
Removed some dead code and fixed a misleading javadoc comment about how
VmProcess.reschedule() gets called.

Modified Paths:
--------------
    trunk/core/src/core/org/jnode/vm/compiler/EntryPoints.java
    trunk/core/src/core/org/jnode/vm/scheduler/VmProcessor.java

Modified: trunk/core/src/core/org/jnode/vm/compiler/EntryPoints.java
===================================================================
--- trunk/core/src/core/org/jnode/vm/compiler/EntryPoints.java  2009-08-24 
18:49:03 UTC (rev 5662)
+++ trunk/core/src/core/org/jnode/vm/compiler/EntryPoints.java  2009-08-26 
11:52:35 UTC (rev 5663)
@@ -120,8 +120,6 @@
 
     private final VmWriteBarrier writeBarrier;
 
-    private final VmMethod yieldPoint;
-
     private final VmMethod recompileMethod;
 
     private final int magic;
@@ -243,7 +241,6 @@
                 "org.jnode.vm.scheduler.VmProcessor", true);
             vmThreadSwitchIndicatorOffset =
                 ((VmInstanceField) 
testField(processorClass.getField("threadSwitchIndicator"))).getOffset();
-            yieldPoint = testMethod(processorClass.getMethod("yieldPoint", 
"()V"));
             vmProcessorMeField = (VmInstanceField) 
testField(processorClass.getField("me"));
             vmProcessorStackEnd = (VmInstanceField) testField(processorClass
                 .getField("stackEnd"));
@@ -629,14 +626,6 @@
     }
 
     /**
-     * @return Returns the yieldPoint.
-     * @see org.jnode.vm.scheduler.VmProcessor#yieldPoint()
-     */
-    public final VmMethod getYieldPoint() {
-        return yieldPoint;
-    }
-
-    /**
      * @return Returns the recompileMethod.
      * @see VmMethod#recompileMethod(int, int)
      */

Modified: trunk/core/src/core/org/jnode/vm/scheduler/VmProcessor.java
===================================================================
--- trunk/core/src/core/org/jnode/vm/scheduler/VmProcessor.java 2009-08-24 
18:49:03 UTC (rev 5662)
+++ trunk/core/src/core/org/jnode/vm/scheduler/VmProcessor.java 2009-08-26 
11:52:35 UTC (rev 5663)
@@ -349,14 +349,6 @@
     }
 
     /**
-     * This method is called by the generated yieldpoints if a threadswitch is
-     * requested.
-     */
-    final void yieldPoint() {
-
-    }
-
-    /**
      * Is this processor busy switching threads.
      *
      * @return true or false
@@ -419,8 +411,8 @@
     }
 
     /**
-     * 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!
      *
      * @throws org.vmmagic.pragma.UninterruptiblePragma
      */


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jnode-svn-commits mailing list
Jnode-svn-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jnode-svn-commits

Reply via email to