Request for reviews (M): 7017124: VM statistic use 32-bit values which may overflow
Vladimir Kozlov
vladimir.kozlov at oracle.com
Thu Feb 3 18:36:33 PST 2011
David Holmes wrote:
> Vladimir Kozlov said the following on 02/04/11 12:28:
>> OK, I am taking monotonic statement back. Yes, the value may decrease
>> if a thread loads value before other threads but stores it after other
>> threads already updated it. But I still want to use atomic load and store
>> since otherwise the value will be garbage.
>
> I totally agree that you want the functionality of inc_counter, with
> atomic load and store, but that function is not itself atomic and so
> does not belong in the Atomic class.
OK. I will move it to other place.
Vladimir
More information about the hotspot-dev
mailing list