comparison src/share/vm/code/nmethod.cpp @ 7693:826632227602

fixed visual studio warnings
author Christian Haeubl <haeubl@ssw.jku.at>
date Mon, 04 Feb 2013 14:35:52 +0100
parents 0b646334c5f7
children b8f261ba79c6 41fc46da946a
comparison
equal deleted inserted replaced
7692:301cbb131b5d 7693:826632227602
593 #endif 593 #endif
594 ) 594 )
595 { 595 {
596 assert(debug_info->oop_recorder() == code_buffer->oop_recorder(), "shared OR"); 596 assert(debug_info->oop_recorder() == code_buffer->oop_recorder(), "shared OR");
597 code_buffer->finalize_oop_references(method); 597 code_buffer->finalize_oop_references(method);
598 size_t leaf_graph_ids_size = leaf_graph_ids == NULL ? 0 : round_to(sizeof(jlong) * leaf_graph_ids->length(), oopSize); 598 int leaf_graph_ids_size = leaf_graph_ids == NULL ? 0 : round_to(sizeof(jlong) * leaf_graph_ids->length(), oopSize);
599 // create nmethod 599 // create nmethod
600 nmethod* nm = NULL; 600 nmethod* nm = NULL;
601 { MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag); 601 { MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
602 int nmethod_size = 602 int nmethod_size =
603 allocation_size(code_buffer, sizeof(nmethod)) 603 allocation_size(code_buffer, sizeof(nmethod))
909 _unwind_handler_offset = code_offset() + offsets->value(CodeOffsets::UnwindHandler); 909 _unwind_handler_offset = code_offset() + offsets->value(CodeOffsets::UnwindHandler);
910 } else { 910 } else {
911 _unwind_handler_offset = -1; 911 _unwind_handler_offset = -1;
912 } 912 }
913 913
914 size_t leaf_graph_ids_size = leaf_graph_ids == NULL ? 0 : round_to(sizeof(jlong) * leaf_graph_ids->length(), oopSize); 914 int leaf_graph_ids_size = leaf_graph_ids == NULL ? 0 : round_to(sizeof(jlong) * leaf_graph_ids->length(), oopSize);
915 915
916 _oops_offset = data_offset(); 916 _oops_offset = data_offset();
917 _metadata_offset = _oops_offset + round_to(code_buffer->total_oop_size(), oopSize); 917 _metadata_offset = _oops_offset + round_to(code_buffer->total_oop_size(), oopSize);
918 _scopes_data_offset = _metadata_offset + round_to(code_buffer->total_metadata_size(), wordSize); 918 _scopes_data_offset = _metadata_offset + round_to(code_buffer->total_metadata_size(), wordSize);
919 919