< prev index next >

src/hotspot/share/memory/metaspace.cpp

Print this page

        

*** 392,402 **** size_now, words); *pstat = size_now - words; } static void inc_stat_atomically(volatile size_t* pstat, size_t words) { ! Atomic::add(words, pstat); } static void dec_stat_atomically(volatile size_t* pstat, size_t words) { const size_t size_now = *pstat; assert(size_now >= words, "About to decrement counter below zero " --- 392,402 ---- size_now, words); *pstat = size_now - words; } static void inc_stat_atomically(volatile size_t* pstat, size_t words) { ! Atomic::add(pstat, words); } static void dec_stat_atomically(volatile size_t* pstat, size_t words) { const size_t size_now = *pstat; assert(size_now >= words, "About to decrement counter below zero "
< prev index next >