1.1 --- a/src/share/vm/gc_implementation/shared/generationCounters.hpp Thu Apr 21 01:16:20 2011 -0700 1.2 +++ b/src/share/vm/gc_implementation/shared/generationCounters.hpp Thu Apr 21 10:23:44 2011 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2002, 2011, 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 @@ -61,10 +61,11 @@ 1.11 } 1.12 1.13 virtual void update_all() { 1.14 - _current_size->set_value(_virtual_space->committed_size()); 1.15 + _current_size->set_value(_virtual_space == NULL ? 0 : 1.16 + _virtual_space->committed_size()); 1.17 } 1.18 1.19 const char* name_space() const { return _name_space; } 1.20 + 1.21 }; 1.22 - 1.23 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_GENERATIONCOUNTERS_HPP