[svn:parrot] r41371 - trunk/include/parrot

chromatic at svn.parrot.org chromatic at svn.parrot.org
Sat Sep 19 22:38:12 UTC 2009


Author: chromatic
Date: Sat Sep 19 22:38:10 2009
New Revision: 41371
URL: https://trac.parrot.org/parrot/changeset/41371

Log:
[include] Rearranged parrot_runloop_t struct to try to minimize cache misses;
it may be a fool's errand, given the size of the jmp_buff struct, but....

Modified:
   trunk/include/parrot/call.h

Modified: trunk/include/parrot/call.h
==============================================================================
--- trunk/include/parrot/call.h	Sat Sep 19 21:16:31 2009	(r41370)
+++ trunk/include/parrot/call.h	Sat Sep 19 22:38:10 2009	(r41371)
@@ -25,10 +25,12 @@
  * runloop ID, so it still needs to be a separate stack for a while longer. */
 
 typedef struct parrot_runloop_t {
-    Parrot_jump_buff         resume;        /* jmp_buf */
     struct parrot_runloop_t *prev;          /* interpreter's runloop
                                              * jump buffer stack */
     opcode_t                *handler_start; /* Used in exception handling */
+
+    /* let the biggest element cross the cacheline boundary */
+    Parrot_jump_buff         resume;        /* jmp_buf */
 } parrot_runloop_t;
 
 typedef parrot_runloop_t Parrot_runloop;


More information about the parrot-commits mailing list