7195789: NPG: assert(used + free == capacity) failed: Accounting is wrong The assertion failure was occurring at a point where an allocation by another thread could invalidate the expected consistency. Created an unsafe version of used_in_bytes() for use in those cases. http://cr.openjdk.java.net/~jmasa/7195789/webrev.00/