8198265: Make CollectorPolicy::satisfy_failed_metadata_allocation() virtual
authorpliden
Mon, 19 Feb 2018 15:44:56 +0100
changeset 49021 975f5e109be2
parent 49020 6d61be5959e0
child 49022 83fd70753121
8198265: Make CollectorPolicy::satisfy_failed_metadata_allocation() virtual Reviewed-by: stefank, eosterlund
src/hotspot/share/gc/shared/collectorPolicy.hpp
--- a/src/hotspot/share/gc/shared/collectorPolicy.hpp	Mon Feb 19 15:44:56 2018 +0100
+++ b/src/hotspot/share/gc/shared/collectorPolicy.hpp	Mon Feb 19 15:44:56 2018 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2018, Oracle and/or its affiliates. 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
@@ -132,9 +132,9 @@
 
   virtual CardTableRS* create_rem_set(MemRegion reserved);
 
-  MetaWord* satisfy_failed_metadata_allocation(ClassLoaderData* loader_data,
-                                               size_t size,
-                                               Metaspace::MetadataType mdtype);
+  virtual MetaWord* satisfy_failed_metadata_allocation(ClassLoaderData* loader_data,
+                                                       size_t size,
+                                                       Metaspace::MetadataType mdtype);
 };
 
 class ClearedAllSoftRefs : public StackObj {