harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Harmony Wiki] Update of "Jitrino OPT/lock method" by Mikhail Fursov
Date Thu, 08 May 2008 10:25:25 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Harmony Wiki" for change notification.

The following page has been changed by Mikhail Fursov:

New page:
'lock_method' action is used to lock the data associated with a method in VM.

Due to the fact that the same method can be compiled or recompiled in different threads, JIT
uses per-method locks to protect methods data during modifications. 

Examples of methods data: compiled version of the method, byte-code mapping information, unwind
information, GC-map information, inline information.

Warning: No Java code must be executed when JIT holds a native lock. This means that the whole
compilation can be locked only when lazy resolution mode is used. If you turn lazy resolution
mode off, its preferable to move 'lock_method' action to the end of the compilation pipeline
and place it before the emitter action. Note that in this configuration parallel compilation
of the same method consumes more memory and CPU resources because of multiple versions of
IR created.

View raw message