Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8082993 | emb-9 | Volker Simonis | P4 | Resolved | Fixed | team |
For the following code in arraycopynode.cpp which was introduced by JDK-6912521:
bool ArrayCopyNode::finish_transform(...) {
...
if (in(TypeFunc::Control) != ctl) {
...
return NULL;
}
}
older versions of GCC and maybe other compilers warn about:
/arraycopynode.cpp:458: warning: converting to non-pointer type 'bool' from NULL
The fix is trivial - just return false instead of NULL as this is already done in several other places in the same function.
bool ArrayCopyNode::finish_transform(...) {
...
if (in(TypeFunc::Control) != ctl) {
...
return NULL;
}
}
older versions of GCC and maybe other compilers warn about:
/arraycopynode.cpp:458: warning: converting to non-pointer type 'bool' from NULL
The fix is trivial - just return false instead of NULL as this is already done in several other places in the same function.
- backported by
-
JDK-8082993 Fix warning "converting to non-pointer type 'bool' from NULL" in arraycopynode.cpp
-
- Resolved
-
- relates to
-
JDK-6912521 System.arraycopy works slower than the simple loop for little lengths
-
- Resolved
-