comparison src/share/vm/runtime/globals.hpp @ 2250:f7de3327c683

7017124: Fix some VM stats to avoid 32-bit overflow Summary: Added new method inc_stat_counter() to increment long statistic values and use atomic long load and store. Reviewed-by: dholmes, jrose, phh, never
author kvn
date Mon, 07 Feb 2011 10:34:39 -0800
parents 3582bf76420e
children 850b2295a494
comparison
equal deleted inserted replaced
2249:3763ca6579b7 2250:f7de3327c683
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
710 "use only malloc/free for allocation (no resource area/arena)") \ 710 "use only malloc/free for allocation (no resource area/arena)") \
711 \ 711 \
712 develop(bool, PrintMalloc, false, \ 712 develop(bool, PrintMalloc, false, \
713 "print all malloc/free calls") \ 713 "print all malloc/free calls") \
714 \ 714 \
715 develop(bool, PrintMallocStatistics, false, \
716 "print malloc/free statistics") \
717 \
715 develop(bool, ZapResourceArea, trueInDebug, \ 718 develop(bool, ZapResourceArea, trueInDebug, \
716 "Zap freed resource/arena space with 0xABABABAB") \ 719 "Zap freed resource/arena space with 0xABABABAB") \
717 \ 720 \
718 notproduct(bool, ZapVMHandleArea, trueInDebug, \ 721 notproduct(bool, ZapVMHandleArea, trueInDebug, \
719 "Zap freed VM handle space with 0xBCBCBCBC") \ 722 "Zap freed VM handle space with 0xBCBCBCBC") \