Skip to content

Commit a3f605d

Browse files
Rename rawNewInstance to allocateInstance
1 parent 88e6126 commit a3f605d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/hub/crema/CremaSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ interface CremaDispatchTable {
6565
* Creates a new instance of {@code type} without running any constructor yet. The caller should
6666
* make sure to run a constructor before publishing the result.
6767
*/
68-
Object rawNewInstance(ResolvedJavaType type);
68+
Object allocateInstance(ResolvedJavaType type);
6969

7070
Object execute(ResolvedJavaMethod targetMethod, Object[] args);
7171

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/reflect/CremaConstructorAccessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public Object newInstance(Object[] args) throws InvocationTargetException {
4444
verifyArguments(args);
4545
ensureDeclaringClassInitialized();
4646

47-
Object newReference = CremaSupport.singleton().rawNewInstance(targetMethod.getDeclaringClass());
47+
Object newReference = CremaSupport.singleton().allocateInstance(targetMethod.getDeclaringClass());
4848
Object[] finalArgs = new Object[args.length + 1];
4949
finalArgs[0] = newReference;
5050
System.arraycopy(args, 0, finalArgs, 1, args.length);

substratevm/src/com.oracle.svm.interpreter/src/com/oracle/svm/interpreter/CremaSupportImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ public Object execute(ResolvedJavaMethod targetMethod, Object[] args) {
729729
}
730730

731731
@Override
732-
public Object rawNewInstance(ResolvedJavaType type) {
732+
public Object allocateInstance(ResolvedJavaType type) {
733733
return InterpreterToVM.createNewReference((InterpreterResolvedJavaType) type);
734734
}
735735
}

0 commit comments

Comments
 (0)