Skip to content
Permalink
Browse files

8245428: Remove unused oopFactory functions

Reviewed-by: stuefe, dholmes
  • Loading branch information
Coleen Phillimore
Coleen Phillimore committed May 20, 2020
1 parent 3d659ef commit 47ceb80368affe9c5c2aabe1e6922fa8d88021fa
Showing with 3 additions and 14 deletions.
  1. +1 −10 src/hotspot/share/memory/oopFactory.cpp
  2. +2 −4 src/hotspot/share/memory/oopFactory.hpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2020, 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
@@ -88,10 +88,6 @@ typeArrayOop oopFactory::new_charArray(const char* utf8_str, TRAPS) {
return result;
}

typeArrayOop oopFactory::new_tenured_charArray(int length, TRAPS) {
return TypeArrayKlass::cast(Universe::charArrayKlassObj())->allocate(length, THREAD);
}

typeArrayOop oopFactory::new_typeArray(BasicType type, int length, TRAPS) {
Klass* type_asKlassOop = Universe::typeArrayKlassObj(type);
TypeArrayKlass* type_asArrayKlass = TypeArrayKlass::cast(type_asKlassOop);
@@ -132,8 +128,3 @@ objArrayHandle oopFactory::new_objArray_handle(Klass* klass, int length, TRAPS)
objArrayOop obj = new_objArray(klass, length, CHECK_(objArrayHandle()));
return objArrayHandle(THREAD, obj);
}

typeArrayHandle oopFactory::new_byteArray_handle(int length, TRAPS) {
typeArrayOop obj = new_byteArray(length, CHECK_(typeArrayHandle()));
return typeArrayHandle(THREAD, obj);
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2020, 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
@@ -48,7 +48,6 @@ class oopFactory: AllStatic {
static objArrayOop new_objectArray(int length, TRAPS);

static typeArrayOop new_charArray(const char* utf8_str, TRAPS);
static typeArrayOop new_tenured_charArray(int length, TRAPS);

static typeArrayOop new_typeArray(BasicType type, int length, TRAPS);
static typeArrayOop new_typeArray_nozero(BasicType type, int length, TRAPS);
@@ -57,9 +56,8 @@ class oopFactory: AllStatic {
// Regular object arrays
static objArrayOop new_objArray(Klass* klass, int length, TRAPS);

// Helpers that return handles
// Helper that returns a Handle
static objArrayHandle new_objArray_handle(Klass* klass, int length, TRAPS);
static typeArrayHandle new_byteArray_handle(int length, TRAPS);
};

#endif // SHARE_MEMORY_OOPFACTORY_HPP

0 comments on commit 47ceb80

Please sign in to comment.
You can’t perform that action at this time.