Mercurial > hg > graal-compiler
diff src/share/vm/c1/c1_Runtime1.cpp @ 6515:e722fa145b37
Fixed VS2010 warnings in HotSpot.
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Fri, 05 Oct 2012 10:13:19 +0200 |
parents | 921005bb0b45 |
children | 2a0c9f20baa1 |
line wrap: on
line diff
--- 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); }