8245428: Remove unused oopFactory functions
Reviewed-by: stuefe, dholmes
This commit is contained in:
parent
3d659eff6e
commit
47ceb80368
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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;
|
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) {
|
typeArrayOop oopFactory::new_typeArray(BasicType type, int length, TRAPS) {
|
||||||
Klass* type_asKlassOop = Universe::typeArrayKlassObj(type);
|
Klass* type_asKlassOop = Universe::typeArrayKlassObj(type);
|
||||||
TypeArrayKlass* type_asArrayKlass = TypeArrayKlass::cast(type_asKlassOop);
|
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()));
|
objArrayOop obj = new_objArray(klass, length, CHECK_(objArrayHandle()));
|
||||||
return objArrayHandle(THREAD, obj);
|
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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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 objArrayOop new_objectArray(int length, TRAPS);
|
||||||
|
|
||||||
static typeArrayOop new_charArray(const char* utf8_str, 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(BasicType type, int length, TRAPS);
|
||||||
static typeArrayOop new_typeArray_nozero(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
|
// Regular object arrays
|
||||||
static objArrayOop new_objArray(Klass* klass, int length, TRAPS);
|
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 objArrayHandle new_objArray_handle(Klass* klass, int length, TRAPS);
|
||||||
static typeArrayHandle new_byteArray_handle(int length, TRAPS);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SHARE_MEMORY_OOPFACTORY_HPP
|
#endif // SHARE_MEMORY_OOPFACTORY_HPP
|
||||||
|
Loading…
Reference in New Issue
Block a user