src/hotspot/share/runtime/interfaceSupport.cpp
changeset 47765 b7c7428eaab9
parent 47216 71c04702a3d5
child 49449 ef5d5d343e2a
equal deleted inserted replaced
47764:029d5efaaa6c 47765:b7c7428eaab9
    45 long InterfaceSupport::_fullgc_alot_invocation = 0;
    45 long InterfaceSupport::_fullgc_alot_invocation = 0;
    46 
    46 
    47 Histogram* RuntimeHistogram;
    47 Histogram* RuntimeHistogram;
    48 
    48 
    49 RuntimeHistogramElement::RuntimeHistogramElement(const char* elementName) {
    49 RuntimeHistogramElement::RuntimeHistogramElement(const char* elementName) {
    50   static volatile jint RuntimeHistogram_lock = 0;
    50   static volatile int RuntimeHistogram_lock = 0;
    51   _name = elementName;
    51   _name = elementName;
    52   uintx count = 0;
    52   uintx count = 0;
    53 
    53 
    54   while (Atomic::cmpxchg(1, &RuntimeHistogram_lock, 0) != 0) {
    54   while (Atomic::cmpxchg(1, &RuntimeHistogram_lock, 0) != 0) {
    55     while (OrderAccess::load_acquire(&RuntimeHistogram_lock) != 0) {
    55     while (OrderAccess::load_acquire(&RuntimeHistogram_lock) != 0) {