harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "史成荣" <icyr...@gmail.com>
Subject [drlvm][jitrino]
Date Fri, 14 Dec 2007 07:57:30 GMT
    As we know, the key word of "synchronized" in Java will translated into
monenter/monexit pair. And synchronization shoud contain two functions, One
is the mutex lock and the other is the *memory barrier*. I traced the
compiling pipeline from Java bytecode to LIR, found the  monenter/monexit
pair is finally transformed into some assembly codes among
which there are codes to call the interface function provided by Thread
Manager. But I didn't find any function provided by Thread Manager
implementing the *memory barrier.* It seams that only the mutex lock is
    I don't know if I am right. Can anyone give some suggestions?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message