Re: optimizing synchronization

Date view Thread view Subject view Author view

From: Archie Cobbs (archie@whistle.com)
Date: Wed Jan 13 1999 - 14:43:23 EST


Godmar Back writes:
> This is possible because MONITOR_ENTER and MONITOR_EXIT always occur in pairs.
> However, it will require changes to the JIT to store the address of the
> lock returned from MONITOR_ENTER somewhere, presumably on the stack.

I remember hearing about some talk (Sun? IBM?) that described
doing exactly this: they made the same observation, ie, that
monitor lock information naturally can be stored on the stack,
since Java locks are really 'stack based'. The implication was
that this was a clever thing to do and was a win.

> Anyway, that's another medium-sized project to look forward to.

Cool :-)

-Archie

___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:41 EDT