Skip to content

Commit

Permalink
Merge pull request #4273 from gacholio/callin
Browse files Browse the repository at this point in the history
Remove unused parameters from call-in functions
  • Loading branch information
DanHeidinga authored Jan 15, 2019
2 parents 4d40830 + d9fa7c7 commit dd0d4fd
Show file tree
Hide file tree
Showing 15 changed files with 83 additions and 83 deletions.
2 changes: 1 addition & 1 deletion runtime/codert_vm/decomp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1887,7 +1887,7 @@ performOSR(J9VMThread *currentThread, J9StackWalkState *walkState, J9OSRBuffer *
currentThread->osrJittedFrameCopy = osrJittedFrameCopy;
currentThread->osrFrameIndex = sizeof(J9OSRBuffer);
currentThread->privateFlags |= J9_PRIVATE_FLAGS_OSR_IN_PROGRESS;
currentThread->javaVM->internalVMFunctions->jitFillOSRBuffer(currentThread, osrBlock, 0, 0, 0);
currentThread->javaVM->internalVMFunctions->jitFillOSRBuffer(currentThread, osrBlock);
currentThread->privateFlags &= ~J9_PRIVATE_FLAGS_OSR_IN_PROGRESS;
currentThread->osrBuffer = NULL;
currentThread->osrJittedFrameCopy = NULL;
Expand Down
4 changes: 2 additions & 2 deletions runtime/jcl/common/stdinit.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 1998, 2018 IBM Corp. and others
* Copyright (c) 1998, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -953,7 +953,7 @@ completeInitialization(J9JavaVM * vm)
J9VMThread *currentThread = vm->mainThread;

vmFuncs->internalEnterVMFromJNI(currentThread);
vmFuncs->sendCompleteInitialization(currentThread, 0, 0, 0, 0);
vmFuncs->sendCompleteInitialization(currentThread);
vmFuncs->internalReleaseVMAccess(currentThread);

if (NULL == currentThread->currentException) {
Expand Down
16 changes: 8 additions & 8 deletions runtime/oti/j9nonbuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -4475,7 +4475,7 @@ typedef struct J9InternalVMFunctions {
void ( *acquireExclusiveVMAccess)(struct J9VMThread * vmThread) ;
void ( *releaseExclusiveVMAccess)(struct J9VMThread * vmThread) ;
void ( *internalReleaseVMAccess)(struct J9VMThread * currentThread) ;
void (JNICALL *sendInit)(struct J9VMThread *vmContext, j9object_t object, struct J9Class *senderClass, UDATA lookupOptions, UDATA reserved0) ;
void (JNICALL *sendInit)(struct J9VMThread *vmContext, j9object_t object, struct J9Class *senderClass, UDATA lookupOptions) ;
void ( *internalAcquireVMAccessNoMutex)(struct J9VMThread * vmThread) ;
struct J9Class* ( *internalCreateArrayClass)(struct J9VMThread* vmThread, struct J9ROMArrayClass* romClass, struct J9Class* elementClass) ;
IDATA ( *attachSystemDaemonThread)(struct J9JavaVM * vm, struct J9VMThread ** p_env, const char * threadName) ;
Expand Down Expand Up @@ -4513,7 +4513,7 @@ typedef struct J9InternalVMFunctions {
struct J9Method* ( *resolveInterfaceMethodRef)(struct J9VMThread *vmStruct, J9ConstantPool *constantPool, UDATA cpIndex, UDATA resolveFlags) ;
UDATA ( *getVTableOffsetForMethod)(struct J9Method * method, struct J9Class *clazz, struct J9VMThread *vmThread) ;
IDATA ( *checkVisibility)(struct J9VMThread* currentThread, struct J9Class* sourceClass, struct J9Class* destClass, UDATA modifiers, UDATA lookupOptions) ;
void (JNICALL *sendClinit)(struct J9VMThread *vmContext, struct J9Class *clazz, UDATA reserved1, UDATA reserved2, UDATA reserved3) ;
void (JNICALL *sendClinit)(struct J9VMThread *vmContext, struct J9Class *clazz) ;
void ( *freeStackWalkCaches)(struct J9VMThread * currentThread, J9StackWalkState * walkState) ;
UDATA ( *genericStackDumpIterator)(struct J9VMThread *currentThread, J9StackWalkState *walkState) ;
UDATA ( *exceptionHandlerSearch)(struct J9VMThread *currentThread, J9StackWalkState *walkState) ;
Expand Down Expand Up @@ -4551,8 +4551,8 @@ typedef struct J9InternalVMFunctions {
#endif /* J9VM_INTERP_SIG_QUIT_THREAD || J9VM_RAS_DUMP_AGENTS */
void (JNICALL *initializeAttachedThread)(struct J9VMThread *vmContext, const char *name, j9object_t *group, UDATA daemon, struct J9VMThread *initializee) ;
void ( *initializeMethodRunAddressNoHook)(struct J9JavaVM* vm, J9Method *method) ;
void (JNICALL *sidecarInvokeReflectMethod)(struct J9VMThread *vmContext, jobject methodRef, jobject recevierRef, jobjectArray argsRef, void *unused) ;
void (JNICALL *sidecarInvokeReflectConstructor)(struct J9VMThread *vmContext, jobject constructorRef, jobject recevierRef, jobjectArray argsRef, void *unused) ;
void (JNICALL *sidecarInvokeReflectMethod)(struct J9VMThread *vmContext, jobject methodRef, jobject recevierRef, jobjectArray argsRef) ;
void (JNICALL *sidecarInvokeReflectConstructor)(struct J9VMThread *vmContext, jobject constructorRef, jobject recevierRef, jobjectArray argsRef) ;
struct J9MemorySegmentList* ( *allocateMemorySegmentListWithSize)(struct J9JavaVM * javaVM, U_32 numberOfMemorySegments, UDATA sizeOfElements, U_32 memoryCategory) ;
void ( *freeMemorySegmentListEntry)(struct J9MemorySegmentList *segmentList, struct J9MemorySegment *segment) ;
void ( *acquireExclusiveVMAccessFromExternalThread)(struct J9JavaVM * vm) ;
Expand Down Expand Up @@ -4638,7 +4638,7 @@ typedef struct J9InternalVMFunctions {
void ( *copyUTF8ToUnicode)(struct J9VMThread * vmThread, U_8 * data, UDATA length, UDATA stringFlags, j9object_t charArray, UDATA startIndex) ;
UDATA ( *verifyQualifiedName)(struct J9VMThread *vmThread, j9object_t string) ;
UDATA ( *copyStringToUTF8Helper)(struct J9VMThread *vmThread, j9object_t string, UDATA stringFlags, UDATA stringOffset, UDATA stringLength, U_8 *utf8Data, UDATA utf8DataLength);
void (JNICALL *sendCompleteInitialization)(struct J9VMThread *vmContext, UDATA reserved1, UDATA reserved2, UDATA reserved3, UDATA reserved4) ;
void (JNICALL *sendCompleteInitialization)(struct J9VMThread *vmContext) ;
IDATA ( *J9RegisterAsyncEvent)(struct J9JavaVM * vm, J9AsyncEventHandler eventHandler, void * userData) ;
IDATA ( *J9UnregisterAsyncEvent)(struct J9JavaVM * vm, IDATA handlerKey) ;
IDATA ( *J9SignalAsyncEvent)(struct J9JavaVM * vm, struct J9VMThread * targetThread, IDATA handlerKey) ;
Expand Down Expand Up @@ -4685,7 +4685,7 @@ typedef struct J9InternalVMFunctions {
struct J9Method* ( *findJNIMethod)(struct J9VMThread* currentThread, J9Class* clazz, char* name, char* signature) ;
const char* ( *getJ9VMVersionString)(struct J9JavaVM * vm) ;
j9object_t ( *resolveMethodTypeRef)(struct J9VMThread *vmThread, J9ConstantPool *ramCP, UDATA cpIndex, UDATA resolveFlags) ;
void (JNICALL *sendFromMethodDescriptorString)(struct J9VMThread *vmThread, J9UTF8 *descriptor, J9ClassLoader *classLoader, J9Class *appendArgType, UDATA reserved4) ;
void (JNICALL *sendFromMethodDescriptorString)(struct J9VMThread *vmThread, J9UTF8 *descriptor, J9ClassLoader *classLoader, J9Class *appendArgType) ;
UDATA ( *addToBootstrapClassLoaderSearch)(struct J9JavaVM * vm, const char * pathSegment, UDATA classLoaderType, BOOLEAN enforceJarRestriction) ;
UDATA ( *addToSystemClassLoaderSearch)(struct J9JavaVM * vm, const char * pathSegment, UDATA classLoaderType, BOOLEAN enforceJarRestriction) ;
UDATA ( *queryLogOptions)(struct J9JavaVM *vm, I_32 buffer_size, void *options_buffer, I_32 *data_size) ;
Expand All @@ -4696,8 +4696,8 @@ typedef struct J9InternalVMFunctions {
#endif /* J9VM_THR_LOCK_NURSERY */
void* ( *jniArrayAllocateMemoryFromThread)(struct J9VMThread* vmThread, UDATA sizeInBytes) ;
void ( *jniArrayFreeMemoryFromThread)(struct J9VMThread* vmThread, void* location) ;
void (JNICALL *sendForGenericInvoke)(struct J9VMThread *vmThread, j9object_t methodHandle, j9object_t methodType, UDATA dropFirstArg, UDATA reserved4) ;
void (JNICALL *jitFillOSRBuffer)(struct J9VMThread *vmContext, void *osrBlock, UDATA reserved1, UDATA reserved2, UDATA reserved3) ;
void (JNICALL *sendForGenericInvoke)(struct J9VMThread *vmThread, j9object_t methodHandle, j9object_t methodType, UDATA dropFirstArg) ;
void (JNICALL *jitFillOSRBuffer)(struct J9VMThread *vmContext, void *osrBlock) ;
void (JNICALL *sendResolveMethodHandle)(struct J9VMThread *vmThread, UDATA cpIndex, J9ConstantPool *ramCP, J9Class *definingClass, J9ROMNameAndSignature* nameAndSig) ;
j9object_t ( *resolveConstantDynamic)(struct J9VMThread *vmThread, J9ConstantPool *ramCP, UDATA cpIndex, UDATA resolveFlags) ;
j9object_t ( *resolveInvokeDynamic)(struct J9VMThread *vmThread, J9ConstantPool *ramCP, UDATA cpIndex, UDATA resolveFlags) ;
Expand Down
40 changes: 20 additions & 20 deletions runtime/oti/j9protos.h
Original file line number Diff line number Diff line change
Expand Up @@ -1283,35 +1283,35 @@ extern J9_CFUNC UDATA dropPendingSendPushes (J9VMThread *currentThread);
/* J9VMJavaInterpreterStartup*/
#ifndef _J9VMJAVAINTERPRETERSTARTUP_
#define _J9VMJAVAINTERPRETERSTARTUP_
extern J9_CFUNC void JNICALL cleanUpAttachedThread (J9VMThread *vmContext, UDATA reserved1, UDATA reserved2, UDATA reserved3, UDATA reserved4);
extern J9_CFUNC void JNICALL handleUncaughtException (J9VMThread *vmContext, UDATA reserved1, UDATA reserved2, UDATA reserved3, UDATA reserved4);
extern J9_CFUNC void JNICALL sidecarInvokeReflectMethod (J9VMThread *vmContext, jobject methodRef, jobject recevierRef, jobjectArray argsRef, void *unused);
extern J9_CFUNC void JNICALL sidecarInvokeReflectMethodImpl (J9VMThread *vmContext, jobject methodRef, jobject recevierRef, jobjectArray argsRef, void *unused);
extern J9_CFUNC void JNICALL sendInit (J9VMThread *vmContext, j9object_t object, J9Class *senderClass, UDATA lookupOptions, UDATA reserved0);
extern J9_CFUNC void JNICALL printStackTrace (J9VMThread *vmContext, j9object_t exception, UDATA reserved1, UDATA reserved2, UDATA reserved3);
extern J9_CFUNC void JNICALL sendLoadClass (J9VMThread *vmContext, j9object_t classLoaderObject, j9object_t classNameObject, UDATA reserved1, UDATA reserved2);
extern J9_CFUNC void JNICALL runJavaThread (J9VMThread *vmContext, UDATA reserved1, UDATA reserved2, UDATA reserved3, UDATA reserved4);
extern J9_CFUNC void JNICALL sendCompleteInitialization (J9VMThread *vmContext, UDATA reserved1, UDATA reserved2, UDATA reserved3, UDATA reserved4);
extern J9_CFUNC void JNICALL sendClinit (J9VMThread *vmContext, J9Class *clazz, UDATA reserved1, UDATA reserved2, UDATA reserved3);
extern J9_CFUNC void JNICALL sendInitializationAlreadyFailed (J9VMThread *vmContext, J9Class *clazz, UDATA reserved1, UDATA reserved2, UDATA reserved3);
extern J9_CFUNC void JNICALL sendRecordInitializationFailure (J9VMThread *vmContext, J9Class *clazz, j9object_t throwable, UDATA reserved2, UDATA reserved3);
extern J9_CFUNC void JNICALL cleanUpAttachedThread (J9VMThread *vmContext);
extern J9_CFUNC void JNICALL handleUncaughtException (J9VMThread *vmContext);
extern J9_CFUNC void JNICALL sidecarInvokeReflectMethod (J9VMThread *vmContext, jobject methodRef, jobject recevierRef, jobjectArray argsRef);
extern J9_CFUNC void JNICALL sidecarInvokeReflectMethodImpl (J9VMThread *vmContext, jobject methodRef, jobject recevierRef, jobjectArray argsRef);
extern J9_CFUNC void JNICALL sendInit (J9VMThread *vmContext, j9object_t object, J9Class *senderClass, UDATA lookupOptions);
extern J9_CFUNC void JNICALL printStackTrace (J9VMThread *vmContext, j9object_t exception);
extern J9_CFUNC void JNICALL sendLoadClass (J9VMThread *vmContext, j9object_t classLoaderObject, j9object_t classNameObject);
extern J9_CFUNC void JNICALL runJavaThread (J9VMThread *vmContext);
extern J9_CFUNC void JNICALL sendCompleteInitialization (J9VMThread *vmContext);
extern J9_CFUNC void JNICALL sendClinit (J9VMThread *vmContext, J9Class *clazz);
extern J9_CFUNC void JNICALL sendInitializationAlreadyFailed (J9VMThread *vmContext, J9Class *clazz);
extern J9_CFUNC void JNICALL sendRecordInitializationFailure (J9VMThread *vmContext, J9Class *clazz, j9object_t throwable);
extern J9_CFUNC void JNICALL runCallInMethod (JNIEnv *env, jobject receiver, jclass clazz, jmethodID methodID, void* args);
extern J9_CFUNC void JNICALL internalSendExceptionConstructor (J9VMThread *vmContext, J9Class *exceptionClass, j9object_t exception, j9object_t detailMessage, UDATA constructorIndex);
extern J9_CFUNC void JNICALL sendInitCause (J9VMThread *vmContext, j9object_t receiver, j9object_t cause, UDATA reserved4, UDATA reserved5);
extern J9_CFUNC void JNICALL sendInitCause (J9VMThread *vmContext, j9object_t receiver, j9object_t cause);
extern J9_CFUNC void JNICALL initializeAttachedThread (J9VMThread *vmContext, const char *name, j9object_t *group, UDATA daemon, J9VMThread *initializee);
extern J9_CFUNC void JNICALL initializeAttachedThreadImpl (J9VMThread *vmContext, const char *name, j9object_t *group, UDATA daemon, J9VMThread *initializee);
extern J9_CFUNC void JNICALL runStaticMethod (J9VMThread *vmContext, U_8* className, J9NameAndSignature* selector, UDATA argCount, UDATA* arguments);
extern J9_CFUNC void JNICALL internalRunStaticMethod (J9VMThread *vmContext, J9Method *method, BOOLEAN returnsObject, UDATA argCount, UDATA* arguments);
extern J9_CFUNC void JNICALL sendCheckPackageAccess (J9VMThread *vmContext, J9Class * clazz, j9object_t protectionDomain, UDATA reserved1, UDATA reserved2);
extern J9_CFUNC void JNICALL sidecarInvokeReflectConstructor (J9VMThread *vmContext, jobject constructorRef, jobject recevierRef, jobjectArray argsRef, void *unused);
extern J9_CFUNC void JNICALL sidecarInvokeReflectConstructorImpl (J9VMThread *vmContext, jobject constructorRef, jobject recevierRef, jobjectArray argsRef, void *unused);
extern J9_CFUNC void JNICALL sendFromMethodDescriptorString (J9VMThread *vmThread, J9UTF8 *descriptor, J9ClassLoader *classLoader, J9Class *appendArgType, UDATA reserved4);
extern J9_CFUNC void JNICALL sendCheckPackageAccess (J9VMThread *vmContext, J9Class * clazz, j9object_t protectionDomain);
extern J9_CFUNC void JNICALL sidecarInvokeReflectConstructor (J9VMThread *vmContext, jobject constructorRef, jobject recevierRef, jobjectArray argsRef);
extern J9_CFUNC void JNICALL sidecarInvokeReflectConstructorImpl (J9VMThread *vmContext, jobject constructorRef, jobject recevierRef, jobjectArray argsRef);
extern J9_CFUNC void JNICALL sendFromMethodDescriptorString (J9VMThread *vmThread, J9UTF8 *descriptor, J9ClassLoader *classLoader, J9Class *appendArgType);
extern J9_CFUNC void JNICALL sendResolveMethodHandle (J9VMThread *vmThread, UDATA cpIndex, J9ConstantPool *ramCP, J9Class *definingClass, J9ROMNameAndSignature* nameAndSig);
extern J9_CFUNC void JNICALL sendForGenericInvoke (J9VMThread *vmThread, j9object_t methodHandle, j9object_t methodType, UDATA dropFirstArg, UDATA reserved4);
extern J9_CFUNC void JNICALL sendForGenericInvoke (J9VMThread *vmThread, j9object_t methodHandle, j9object_t methodType, UDATA dropFirstArg);
extern J9_CFUNC void JNICALL sendResolveConstantDynamic (J9VMThread *vmThread, J9ConstantPool *ramCP, UDATA cpIndex, J9ROMNameAndSignature* nameAndSig, U_16* bsmData);
extern J9_CFUNC void JNICALL sendResolveInvokeDynamic (J9VMThread *vmThread, J9ConstantPool *ramCP, UDATA callSiteIndex, J9ROMNameAndSignature* nameAndSig, U_16* bsmData);
extern J9_CFUNC void JNICALL jitFillOSRBuffer (struct J9VMThread *vmContext, void *osrBlock, UDATA reserved1, UDATA reserved2, UDATA reserved3);
extern J9_CFUNC void JNICALL sendRunThread(J9VMThread *vmContext, j9object_t tenantContext, UDATA reserved1, UDATA reserved2, UDATA reserved3);
extern J9_CFUNC void JNICALL jitFillOSRBuffer (struct J9VMThread *vmContext, void *osrBlock);
extern J9_CFUNC void JNICALL sendRunThread(J9VMThread *vmContext, j9object_t tenantContext);
#endif /* _J9VMJAVAINTERPRETERSTARTUP_ */

/* J9VMNativeHelpersLarge*/
Expand Down
6 changes: 3 additions & 3 deletions runtime/sunvmi/sunvmi.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2002, 2018 IBM Corp. and others
* Copyright (c) 2002, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -328,7 +328,7 @@ JVM_NewInstanceFromConstructor_Impl(JNIEnv * env, jobject c, jobjectArray args)

obj = (*env)->AllocObject(env, classRef);
if (obj) {
vmFuncs->sidecarInvokeReflectConstructor(vmThread, c, obj, args, NULL);
vmFuncs->sidecarInvokeReflectConstructor(vmThread, c, obj, args);
if ((*env)->ExceptionCheck(env)) {
(*env)->DeleteLocalRef(env, obj);
obj = (jobject) NULL;
Expand All @@ -351,7 +351,7 @@ JVM_InvokeMethod_Impl(JNIEnv * env, jobject method, jobject obj, jobjectArray ar

Trc_SunVMI_InvokeMethod_Entry(vmThread, method, obj, args);

vmThread->javaVM->internalVMFunctions->sidecarInvokeReflectMethod(vmThread, method, obj, args, NULL);
vmThread->javaVM->internalVMFunctions->sidecarInvokeReflectMethod(vmThread, method, obj, args);

Trc_SunVMI_InvokeMethod_Exit(vmThread, vmThread->returnValue);

Expand Down
8 changes: 4 additions & 4 deletions runtime/vm/BytecodeInterpreter.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 1991, 2018 IBM Corp. and others
* Copyright (c) 1991, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -3035,7 +3035,7 @@ done:;
} else {
pushObjectInSpecialFrame(REGISTER_ARGS, instance);
updateVMStruct(REGISTER_ARGS);
sendInit(_currentThread, instance, senderClass, J9_LOOK_NEW_INSTANCE|J9_LOOK_REFLECT_CALL, 0);
sendInit(_currentThread, instance, senderClass, J9_LOOK_NEW_INSTANCE|J9_LOOK_REFLECT_CALL);
VMStructHasBeenUpdated(REGISTER_ARGS);
if (VM_VMHelpers::exceptionPending(_currentThread)) {
rc = GOTO_THROW_CURRENT_EXCEPTION;
Expand Down Expand Up @@ -7904,7 +7904,7 @@ done:;
} else {
buildGenericSpecialStackFrame(REGISTER_ARGS, 0);
updateVMStruct(REGISTER_ARGS);
sendForGenericInvoke (_currentThread, mhReceiver, type, FALSE /* dropFirstArg */, 0 /* reserved */);
sendForGenericInvoke (_currentThread, mhReceiver, type, FALSE /* dropFirstArg */);
VMStructHasBeenUpdated(REGISTER_ARGS);
mhReceiver = (j9object_t) _currentThread->returnValue;
if (VM_VMHelpers::exceptionPending(_currentThread)) {
Expand Down Expand Up @@ -8027,7 +8027,7 @@ done:;
buildGenericSpecialStackFrame(REGISTER_ARGS, 0);
pushObjectInSpecialFrame(REGISTER_ARGS, varHandle);
updateVMStruct(REGISTER_ARGS);
sendForGenericInvoke(_currentThread, methodHandle, callSiteType, FALSE /* dropFirstArg */, 0 /* reserved */);
sendForGenericInvoke(_currentThread, methodHandle, callSiteType, FALSE /* dropFirstArg */);
VMStructHasBeenUpdated(REGISTER_ARGS);
varHandle = popObjectInSpecialFrame(REGISTER_ARGS);
restoreGenericSpecialStackFrame(REGISTER_ARGS);
Expand Down
8 changes: 4 additions & 4 deletions runtime/vm/ClassInitialization.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 1991, 2018 IBM Corp. and others
* Copyright (c) 1991, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -90,7 +90,7 @@ initializeImpl(J9VMThread *currentThread, J9Class *clazz)
}

if (J9ROMCLASS_HAS_CLINIT(clazz->romClass)) {
sendClinit(currentThread, clazz, 0, 0, 0);
sendClinit(currentThread, clazz);
clazz = VM_VMHelpers::currentClass(clazz);
if (VM_VMHelpers::exceptionPending(currentThread)) {
TRIGGER_J9HOOK_VM_CLASS_INITIALIZE_FAILED(vm->hookInterface, currentThread, clazz);
Expand Down Expand Up @@ -470,7 +470,7 @@ classInitStateMachine(J9VMThread *currentThread, J9Class *clazz, J9ClassInitStat
if (desiredState < J9_CLASS_INIT_INITIALIZED) {
Trc_VM_classInitStateMachine_desiredStateReached(currentThread);
} else {
sendInitializationAlreadyFailed(currentThread, clazz, 0, 0, 0);
sendInitializationAlreadyFailed(currentThread, clazz);
}
goto done;
}
Expand Down Expand Up @@ -551,7 +551,7 @@ classInitStateMachine(J9VMThread *currentThread, J9Class *clazz, J9ClassInitStat
j9object_t throwable = currentThread->currentException;
currentThread->currentException = NULL;
PUSH_OBJECT_IN_SPECIAL_FRAME(currentThread, initializationLock);
sendRecordInitializationFailure(currentThread, clazz, throwable, 0, 0);
sendRecordInitializationFailure(currentThread, clazz, throwable);
initializationLock = POP_OBJECT_IN_SPECIAL_FRAME(currentThread);
clazz = VM_VMHelpers::currentClass(clazz);
initializationLock = setInitStatus(currentThread, clazz, J9ClassInitFailed, initializationLock);
Expand Down
Loading

0 comments on commit dd0d4fd

Please sign in to comment.