1.1 --- a/src/share/vm/services/g1MemoryPool.cpp Mon Apr 19 05:40:21 2010 -0700 1.2 +++ b/src/share/vm/services/g1MemoryPool.cpp Thu Apr 22 10:02:38 2010 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved. 1.6 + * Copyright 2007-2010 Sun Microsystems, Inc. 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 @@ -45,7 +45,7 @@ 1.11 1.12 // See the comment at the top of g1MemoryPool.hpp 1.13 size_t G1MemoryPoolSuper::eden_space_used(G1CollectedHeap* g1h) { 1.14 - size_t young_list_length = g1h->young_list_length(); 1.15 + size_t young_list_length = g1h->young_list()->length(); 1.16 size_t eden_used = young_list_length * HeapRegion::GrainBytes; 1.17 size_t survivor_used = survivor_space_used(g1h); 1.18 eden_used = subtract_up_to_zero(eden_used, survivor_used);