1.1 --- a/src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.inline.hpp Fri Jul 16 10:09:15 2010 -0700 1.2 +++ b/src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.inline.hpp Fri Jul 16 21:33:21 2010 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2002, 2008, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -124,3 +124,11 @@ 1.11 } 1.12 } 1.13 } 1.14 + 1.15 +#if TASKQUEUE_STATS 1.16 +void PSPromotionManager::record_steal(StarTask& p) { 1.17 + if (is_oop_masked(p)) { 1.18 + ++_masked_steals; 1.19 + } 1.20 +} 1.21 +#endif // TASKQUEUE_STATS