equal
deleted
inserted
replaced
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) { |