equal
deleted
inserted
replaced
880 return allocate_memory(req); |
880 return allocate_memory(req); |
881 } |
881 } |
882 |
882 |
883 MetaWord* ShenandoahHeap::satisfy_failed_metadata_allocation(ClassLoaderData* loader_data, |
883 MetaWord* ShenandoahHeap::satisfy_failed_metadata_allocation(ClassLoaderData* loader_data, |
884 size_t size, |
884 size_t size, |
885 metaspace::MetadataType mdtype) { |
885 Metaspace::MetadataType mdtype) { |
886 MetaWord* result; |
886 MetaWord* result; |
887 |
887 |
888 // Inform metaspace OOM to GC heuristics if class unloading is possible. |
888 // Inform metaspace OOM to GC heuristics if class unloading is possible. |
889 if (heuristics()->can_unload_classes()) { |
889 if (heuristics()->can_unload_classes()) { |
890 ShenandoahHeuristics* h = heuristics(); |
890 ShenandoahHeuristics* h = heuristics(); |