6621728: Heap inspection should not crash in the face of C-heap exhaustion

Deal more gracefully with situations where C-heap scratch space cannot be had

Reviewed-by: jmasa
This commit is contained in:
Y. Srinivas Ramakrishna 2008-02-26 15:57:49 -08:00
parent 63f1de52fc
commit 51bf19209d
2 changed files with 70 additions and 32 deletions

View file

@ -98,8 +98,9 @@ class KlassInfoTable: public StackObj {
};
KlassInfoTable(int size, HeapWord* ref);
~KlassInfoTable();
void record_instance(const oop obj);
bool record_instance(const oop obj);
void iterate(KlassInfoClosure* cic);
bool allocation_failed() { return _buckets == NULL; }
};
class KlassInfoHisto : public StackObj {