hotspot/src/share/vm/memory/heapInspection.hpp
Print this page
rev 611 : Merge
*** 1,10 ****
#ifdef USE_PRAGMA_IDENT_HDR
#pragma ident "@(#)heapInspection.hpp 1.17 07/07/02 11:47:11 JVM"
#endif
/*
! * Copyright 2002-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,10 ----
#ifdef USE_PRAGMA_IDENT_HDR
#pragma ident "@(#)heapInspection.hpp 1.17 07/07/02 11:47:11 JVM"
#endif
/*
! * Copyright 2002-2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 99,110 ****
enum {
cit_size = 20011
};
KlassInfoTable(int size, HeapWord* ref);
~KlassInfoTable();
! void record_instance(const oop obj);
void iterate(KlassInfoClosure* cic);
};
class KlassInfoHisto : public StackObj {
private:
GrowableArray<KlassInfoEntry*>* _elements;
--- 99,111 ----
enum {
cit_size = 20011
};
KlassInfoTable(int size, HeapWord* ref);
~KlassInfoTable();
! bool record_instance(const oop obj);
void iterate(KlassInfoClosure* cic);
+ bool allocation_failed() { return _buckets == NULL; }
};
class KlassInfoHisto : public StackObj {
private:
GrowableArray<KlassInfoEntry*>* _elements;