src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp
branchstuefe-new-metaspace-branch
changeset 59272 54750b448264
parent 58838 55ce65813b62
equal deleted inserted replaced
59271:1558266946de 59272:54750b448264
   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();