-
Bug
-
Resolution: Fixed
-
P4
-
8, 9
-
OS X 10.10.3
Xcode 6.3 (6D570)
-
b64
-
x86_64
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8082663 | emb-9 | Staffan Larsen | P4 | Resolved | Fixed | team |
JDK-8264086 | openjdk8u302 | Paul Hohensee | P4 | Resolved | Fixed | b01 |
JDK-8237379 | 8u251 | Unassigned | P4 | Resolved | Fixed | b02 |
JDK-8239629 | emb-8u251 | Unassigned | P4 | Resolved | Fixed | team |
Yesterday I updated to the latests Xcode 6.3 which brought Clang 6.1 to my
machine. Later I tried to build jdk9 and ran into this thing:
error: 'this' pointer cannot be null in well-defined C++ code; pointer may be
assumed to always convert to true [-Werror,-Wundefined-bool-conversion]
Caused by this :
if (!this)...
I've found 2 files are affected by this problem:
* dev/hotspot/src/share/vm/libadt/set.cpp:60
* dev/hotspot/src/share/vm/adlc/formssel.cpp:3395
Code around those lines doesn't seem to have changed since 2007 (at least).
Unfortunately I'm not familiar with C++, and in order to build jdk9 I googled a
bit and found that dereferencing a null pointer in this case would lead to an
undefined behaviour. So I'm asking you whether these conditionals are needed or
it's something we can remove. (For now I commented them out from my working
copy).
machine. Later I tried to build jdk9 and ran into this thing:
error: 'this' pointer cannot be null in well-defined C++ code; pointer may be
assumed to always convert to true [-Werror,-Wundefined-bool-conversion]
Caused by this :
if (!this)...
I've found 2 files are affected by this problem:
* dev/hotspot/src/share/vm/libadt/set.cpp:60
* dev/hotspot/src/share/vm/adlc/formssel.cpp:3395
Code around those lines doesn't seem to have changed since 2007 (at least).
Unfortunately I'm not familiar with C++, and in order to build jdk9 I googled a
bit and found that dereferencing a null pointer in this case would lead to an
undefined behaviour. So I'm asking you whether these conditionals are needed or
it's something we can remove. (For now I commented them out from my working
copy).
- backported by
-
JDK-8082663 "if( !this )" construct prevents build on Xcode 6.3
-
- Resolved
-
-
JDK-8237379 "if( !this )" construct prevents build on Xcode 6.3
-
- Resolved
-
-
JDK-8239629 "if( !this )" construct prevents build on Xcode 6.3
-
- Resolved
-
-
JDK-8264086 "if( !this )" construct prevents build on Xcode 6.3
-
- Resolved
-
- relates to
-
JDK-8055838 Hotspot does not compile with clang 6.0 (OS X Yosemite)
-
- Resolved
-
-
JDK-8138820 JDK Hotspot build fails with Xcode 7.0.1
-
- Resolved
-
(1 relates to)