Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
dalvik
Commits
0433badc
Commit
0433badc
authored
11 years ago
by
Mathieu Chartier
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Use RETURN_PTR(NULL) instead of RETURN_VOID in newNonMovableArray."
parents
b2ff8010
bfc21912
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vm/native/dalvik_system_VMRuntime.cpp
vm/native/dalvik_system_VMRuntime.cpp
+3
-3
No files found.
vm/native/dalvik_system_VMRuntime.cpp
View file @
0433badc
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment