changeset 49200:975f5e109be2

8198265: Make CollectorPolicy::satisfy_failed_metadata_allocation() virtual Reviewed-by: stefank, eosterlund
author pliden
date Mon, 19 Feb 2018 15:44:56 +0100
parents 6d61be5959e0
children 83fd70753121
files src/hotspot/share/gc/shared/collectorPolicy.hpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 {