Skip to content

Commit

Permalink
Merge pull request #648 from dkimitsa/fix/createvm-sigabrt
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Ski authored Jun 11, 2022
2 parents 031c503 + e115030 commit 14ca1d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/vm/core/src/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,11 @@ Class* rvmFindClassUsingLoader(Env* env, const char* className, Object* classLoa
}

Class* rvmFindLoadedClass(Env* env, const char* className, Object* classLoader) {
obtainClassLock();
Class* clazz = getLoadedClass(env, className);
releaseClassLock();
if (rvmExceptionOccurred(env)) return NULL;
if (clazz && !CLASS_IS_STATE_INITIALIZED(clazz)) return NULL;
return clazz;
}

Expand Down

0 comments on commit 14ca1d4

Please sign in to comment.