# HG changeset patch # User Christian Haeubl # Date 1349424799 -7200 # Node ID e722fa145b37dcc9565906287c2dcd5777d44744 # Parent edea9ba7ac7b2f690353d6a393ca8fabfc3fd79c Fixed VS2010 warnings in HotSpot. diff -r edea9ba7ac7b -r e722fa145b37 src/share/vm/c1/c1_Runtime1.cpp --- a/src/share/vm/c1/c1_Runtime1.cpp Fri Oct 05 09:48:01 2012 +0200 +++ b/src/share/vm/c1/c1_Runtime1.cpp Fri Oct 05 10:13:19 2012 +0200 @@ -755,9 +755,9 @@ JRT_END JRT_ENTRY(void, Runtime1::graal_log_object(JavaThread* thread, oop obj, jint flags)) - bool string = flags & LOG_OBJECT_STRING; - bool address = flags & LOG_OBJECT_ADDRESS; - bool newline = flags & LOG_OBJECT_NEWLINE; + bool string = mask_bits_are_true(flags, LOG_OBJECT_STRING); + bool address = mask_bits_are_true(flags, LOG_OBJECT_ADDRESS); + bool newline = mask_bits_are_true(flags, LOG_OBJECT_NEWLINE); if (!string) { if (!address && obj->is_oop_or_null(true)) { char buf[O_BUFLEN]; @@ -783,7 +783,7 @@ char *detail_msg = NULL; if (format != NULL) { const char* buf = java_lang_String::as_utf8_string(format); - int detail_msg_length = strlen(buf) * 2; + size_t detail_msg_length = strlen(buf) * 2; detail_msg = (char *) NEW_RESOURCE_ARRAY(u_char, detail_msg_length); jio_snprintf(detail_msg, detail_msg_length, buf, value); } diff -r edea9ba7ac7b -r e722fa145b37 src/share/vm/graal/graalCodeInstaller.cpp --- a/src/share/vm/graal/graalCodeInstaller.cpp Fri Oct 05 09:48:01 2012 +0200 +++ b/src/share/vm/graal/graalCodeInstaller.cpp Fri Oct 05 10:13:19 2012 +0200 @@ -454,7 +454,7 @@ Bytecodes::Code code = Bytecodes::java_code_at(method, method->bcp_from(bci)); reexecute = Interpreter::bytecode_should_reexecute(code); if (frame != NULL) { - reexecute = (BytecodeFrame::duringCall(frame) == 0); + reexecute = (BytecodeFrame::duringCall(frame) == JNI_FALSE); } } @@ -510,7 +510,7 @@ DebugToken* expressions_token = _debug_recorder->create_scope_values(expressions); DebugToken* monitors_token = _debug_recorder->create_monitor_values(monitors); - bool throw_exception = BytecodeFrame::rethrowException(frame); + bool throw_exception = BytecodeFrame::rethrowException(frame) == JNI_TRUE; _debug_recorder->describe_scope(pc_offset, method, NULL, bci, reexecute, throw_exception, false, false, locals_token, expressions_token, monitors_token); }