Commit 0433badc authored by Mathieu Chartier's avatar Mathieu Chartier Committed by Gerrit Code Review
Browse files

Merge "Use RETURN_PTR(NULL) instead of RETURN_VOID in newNonMovableArray."

parents b2ff8010 bfc21912
......@@ -104,11 +104,11 @@ static void Dalvik_dalvik_system_VMRuntime_newNonMovableArray(const u4* args,
if (elementClass == NULL) {
dvmThrowNullPointerException("elementClass == null");
RETURN_VOID();
RETURN_PTR(NULL);
}
if (length < 0) {
dvmThrowNegativeArraySizeException(length);
RETURN_VOID();
RETURN_PTR(NULL);
}
// TODO: right now, we don't have a copying collector, so there's no need
......@@ -120,7 +120,7 @@ static void Dalvik_dalvik_system_VMRuntime_newNonMovableArray(const u4* args,
ALLOC_NON_MOVING);
if (newArray == NULL) {
assert(dvmCheckException(dvmThreadSelf()));
RETURN_VOID();
RETURN_PTR(NULL);
}
dvmReleaseTrackedAlloc((Object*) newArray, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment