src/hotspot/share/gc/shared/preservedMarks.cpp
changeset 59249 29b0d0b61615
parent 57777 90ead0febf56
child 59290 97d13893ec3c
equal deleted inserted replaced
59248:e92153ed8bdc 59249:29b0d0b61615
    53 void PreservedMarks::restore_and_increment(volatile size_t* const total_size_addr) {
    53 void PreservedMarks::restore_and_increment(volatile size_t* const total_size_addr) {
    54   const size_t stack_size = size();
    54   const size_t stack_size = size();
    55   restore();
    55   restore();
    56   // Only do the atomic add if the size is > 0.
    56   // Only do the atomic add if the size is > 0.
    57   if (stack_size > 0) {
    57   if (stack_size > 0) {
    58     Atomic::add(stack_size, total_size_addr);
    58     Atomic::add(total_size_addr, stack_size);
    59   }
    59   }
    60 }
    60 }
    61 
    61 
    62 #ifndef PRODUCT
    62 #ifndef PRODUCT
    63 void PreservedMarks::assert_empty() {
    63 void PreservedMarks::assert_empty() {