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