Mercurial > hg > graal-compiler
comparison src/share/vm/opto/indexSet.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 | f95d63e2154a |
children |
comparison
equal
deleted
inserted
replaced
2249:3763ca6579b7 | 2250:f7de3327c683 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1998, 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. |
350 | 350 |
351 #ifdef ASSERT | 351 #ifdef ASSERT |
352 void tally_iteration_statistics() const; | 352 void tally_iteration_statistics() const; |
353 | 353 |
354 // BitBlock allocation statistics | 354 // BitBlock allocation statistics |
355 static uint _alloc_new; | 355 static julong _alloc_new; |
356 static uint _alloc_total; | 356 static julong _alloc_total; |
357 | 357 |
358 // Block density statistics | 358 // Block density statistics |
359 static long _total_bits; | 359 static julong _total_bits; |
360 static long _total_used_blocks; | 360 static julong _total_used_blocks; |
361 static long _total_unused_blocks; | 361 static julong _total_unused_blocks; |
362 | 362 |
363 // Sanity tests | 363 // Sanity tests |
364 void verify() const; | 364 void verify() const; |
365 | 365 |
366 static int _serial_count; | 366 static int _serial_count; |