changeset 49184:8026f64901de

8197841: Remove unused function Universe::create_heap_ext Reviewed-by: rkennke, eosterlund, hseigel
author ehelin
date Wed, 28 Feb 2018 16:00:20 +0100
parents 268beecd832a
children 5d1b75086f98
files src/hotspot/share/memory/universe.cpp src/hotspot/share/memory/universe.hpp src/hotspot/share/memory/universe_ext.cpp
diffstat 3 files changed, 2 insertions(+), 39 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/memory/universe.cpp	Wed Feb 28 15:10:21 2018 +0100
+++ b/src/hotspot/share/memory/universe.cpp	Wed Feb 28 16:00:20 2018 +0100
@@ -760,14 +760,8 @@
 // HeapBased - Use compressed oops with heap base + encoding.
 
 jint Universe::initialize_heap() {
-  jint status = JNI_ERR;
-
-  _collectedHeap = create_heap_ext();
-  if (_collectedHeap == NULL) {
-    _collectedHeap = create_heap();
-  }
-
-  status = _collectedHeap->initialize();
+  _collectedHeap = create_heap();
+  jint status = _collectedHeap->initialize();
   if (status != JNI_OK) {
     return status;
   }
--- a/src/hotspot/share/memory/universe.hpp	Wed Feb 28 15:10:21 2018 +0100
+++ b/src/hotspot/share/memory/universe.hpp	Wed Feb 28 16:00:20 2018 +0100
@@ -220,7 +220,6 @@
   static size_t _heap_used_at_last_gc;
 
   static CollectedHeap* create_heap();
-  static CollectedHeap* create_heap_ext();
   static jint initialize_heap();
   static void initialize_basic_type_mirrors(TRAPS);
   static void fixup_mirrors(TRAPS);
--- a/src/hotspot/share/memory/universe_ext.cpp	Wed Feb 28 15:10:21 2018 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-/*
- * Copyright (c) 2015, 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
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- *
- */
-
-#include "precompiled.hpp"
-#include "memory/universe.hpp"
-
-CollectedHeap* Universe::create_heap_ext() {
-  return NULL;
-}