Branch: refs/heads/master
Home:   http://github.com/penberg/jato

Commit: 973e171a0bd245ed401f5b1f68f3b5062199e2d5
    
http://github.com/penberg/jato/commit/973e171a0bd245ed401f5b1f68f3b5062199e2d5
Author: Pekka Enberg <penb...@cs.helsinki.fi>
Date:   2009-09-17 (Thu, 17 Sep 2009)

Changed paths:
  M arch/x86/include/arch/registers_32.h

Log Message:
-----------
x86: Register state saving

This patch introduces a save_registers() function that can be used to
take a snapshot of general purpose registers. This is needed in the
gc_alloc() function to save registers in case we need to enter a
safepoint and need to scan them for references.

We also need a save_signal_registers() function for converting gregset_t
to struct register_state so we can pass register contents to the
gc_safepoint() function.

Cc: Tomek Grabiec <tgrab...@gmail.com>
Cc: Vegard Nossum <vegard.nos...@gmail.com>
Acked-by: Arthur HUILLET <arthur.huil...@free.fr>
Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi>


Commit: e3cb10c89a436d57fa0a3671bf82684f8d822b5e
    
http://github.com/penberg/jato/commit/e3cb10c89a436d57fa0a3671bf82684f8d822b5e
Author: Pekka Enberg <penb...@cs.helsinki.fi>
Date:   2009-09-17 (Thu, 17 Sep 2009)

Changed paths:
  M arch/x86/include/arch/registers_64.h

Log Message:
-----------
x86-64: Register state saving

Add save_registers() and save_signal_registers() to x86-64 as well.

Cc: Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro>
Cc: Tomek Grabiec <tgrab...@gmail.com>
Cc: Vegard Nossum <vegard.nos...@gmail.com>
Acked-by: Arthur HUILLET <arthur.huil...@free.fr>
Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi>


Commit: 9b8c1bae05a5c621330b359a7e785545116c74c2
    
http://github.com/penberg/jato/commit/9b8c1bae05a5c621330b359a7e785545116c74c2
Author: Pekka Enberg <penb...@cs.helsinki.fi>
Date:   2009-09-17 (Thu, 17 Sep 2009)

Changed paths:
  M include/vm/gc.h
  M vm/gc.c
  M vm/signal.c

Log Message:
-----------
gc: Pass register state to gc_start() and gc_safepoint()

Save registers in gc_alloc() and pass them to gc_safepoint() so the
latter can scan them for references. Also save the registers in signal
handler and pass them to gc_safepoint(). We need to use pre-allocated
thread-local memory because we can't use the stack or malloc() in the
signal handler.

Cc: Tomek Grabiec <tgrab...@gmail.com>
Cc: Vegard Nossum <vegard.nos...@gmail.com>
Acked-by: Arthur HUILLET <arthur.huil...@free.fr>
Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi>



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to