Weldon Washburn wrote: > Artem, > I'd like to confirm what you said. For GC_BIT_MASK, it looks like the > bottom > two bits of byte number one is available for exclusive GC use. If the GC > needs to alter these two bits while the mutator(s) are running, the GC > needs > to use CAS on the entire 32 bits of obj_info. Does this sound right?
Doing 32-bit CAS while mutators are running looks like a safe solution. However, it can degrade performance considerably. Can we instead consider locking the object monitor before modifying its header bits? --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]