RFR (S): 8022956: Clang: enable return type warnings on BSD
Christian Thalinger
christian.thalinger at oracle.com
Tue Aug 20 12:01:50 PDT 2013
On Aug 20, 2013, at 11:03 AM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:
> Christian,
>
> Can you explain removal of SafeFetch methods in os_bsd_zero.cpp? zero does not generate stubs. Right?
Not in the classic way. SafeFetch32 and SafeFetchN are defined in stubGenerator_zero.cpp and the addresses are assigned to the entries:
// Safefetch stubs.
StubRoutines::_safefetch32_entry = CAST_FROM_FN_PTR(address, StubGenerator::SafeFetch32);
StubRoutines::_safefetch32_fault_pc = NULL;
StubRoutines::_safefetch32_continuation_pc = NULL;
StubRoutines::_safefetchN_entry = CAST_FROM_FN_PTR(address, StubGenerator::SafeFetchN);
StubRoutines::_safefetchN_fault_pc = NULL;
StubRoutines::_safefetchN_continuation_pc = NULL;
-- Chris
>
> Thanks,
> Vladimir
>
> On 8/19/13 5:30 PM, Christian Thalinger wrote:
>> http://cr.openjdk.java.net/~twisti/8022956/webrev/
>>
>> 8022956: Clang: enable return type warnings on BSD
>> Reviewed-by:
>>
>> While implementing a new feature I noticed that Clang isn't complaining about wrong return types while Sun Studio does. The reason is that we turned it off. Turning it on only needs one small code change (plus a bunch of fixes for Zero). We probably should do the same on Linux but I don't have a Linux machine with Clang installed available.
>>
>> make/bsd/makefiles/gcc.make
>> src/cpu/zero/vm/assembler_zero.cpp
>> src/cpu/zero/vm/cppInterpreter_zero.cpp
>> src/cpu/zero/vm/frame_zero.cpp
>> src/cpu/zero/vm/frame_zero.inline.hpp
>> src/cpu/zero/vm/icBuffer_zero.cpp
>> src/cpu/zero/vm/interp_masm_zero.hpp
>> src/cpu/zero/vm/interpreter_zero.cpp
>> src/cpu/zero/vm/nativeInst_zero.hpp
>> src/cpu/zero/vm/register_zero.cpp
>> src/cpu/zero/vm/relocInfo_zero.cpp
>> src/cpu/zero/vm/sharedRuntime_zero.cpp
>> src/cpu/zero/vm/vtableStubs_zero.cpp
>> src/os_cpu/bsd_x86/vm/os_bsd_x86.cpp
>> src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp
>> src/os_cpu/bsd_zero/vm/thread_bsd_zero.hpp
>>
More information about the hotspot-dev
mailing list