提交 03788d6b 编写于 作者: K Kuai Wei 提交者: kuaiwei

[JWarmUp] change for windows build

Summary:
  change build script and to code to support windows platform

Test Plan:
  existing test cases

Reviewers:
  shiyue, chuansheng

Issue:
  https://aone.alibaba-inc.com/task/22514166

CR:
上级 950ba377
...@@ -168,6 +168,7 @@ VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/services ...@@ -168,6 +168,7 @@ VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/services
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/trace VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/trace
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/utilities VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/utilities
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/libadt VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/libadt
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/jwarmup
VM_PATH=$(VM_PATH);$(WorkSpace)/src/os/windows/vm VM_PATH=$(VM_PATH);$(WorkSpace)/src/os/windows/vm
VM_PATH=$(VM_PATH);$(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm VM_PATH=$(VM_PATH);$(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm
VM_PATH=$(VM_PATH);$(WorkSpace)/src/cpu/$(Platform_arch)/vm VM_PATH=$(VM_PATH);$(WorkSpace)/src/cpu/$(Platform_arch)/vm
...@@ -276,6 +277,9 @@ bytecodeInterpreterWithChecks.obj: ..\generated\jvmtifiles\bytecodeInterpreterWi ...@@ -276,6 +277,9 @@ bytecodeInterpreterWithChecks.obj: ..\generated\jvmtifiles\bytecodeInterpreterWi
{$(COMMONSRC)\share\vm\libadt}.cpp.obj:: {$(COMMONSRC)\share\vm\libadt}.cpp.obj::
$(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $< $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
{$(COMMONSRC)\share\vm\jwarmup}.cpp.obj::
$(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
{$(COMMONSRC)\share\vm\opto}.cpp.obj:: {$(COMMONSRC)\share\vm\opto}.cpp.obj::
$(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $< $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
......
...@@ -385,7 +385,7 @@ void ProfileRecorder::write_u8(u8 value) { ...@@ -385,7 +385,7 @@ void ProfileRecorder::write_u8(u8 value) {
void ProfileRecorder::write_string(const char* src, size_t len) { void ProfileRecorder::write_string(const char* src, size_t len) {
_logfile->write(src, len); _logfile->write(src, len);
_logfile->write("\0", 1); _logfile->write("\0", 1);
_pos += len + 1; _pos += (unsigned int)len + 1;
update_max_symbol_length((int)len); update_max_symbol_length((int)len);
} }
...@@ -461,7 +461,7 @@ void ProfileRecorder::write_header() { ...@@ -461,7 +461,7 @@ void ProfileRecorder::write_header() {
_pos += RECORD_COUNTS_WIDTH; _pos += RECORD_COUNTS_WIDTH;
offset += RECORD_COUNTS_WIDTH; offset += RECORD_COUNTS_WIDTH;
// record time // record time
*(unsigned jlong*)((char*)header_buf + offset) = os::javaTimeMillis(); *(jlong*)((char*)header_buf + offset) = os::javaTimeMillis();
_pos += TIME_WIDTH; _pos += TIME_WIDTH;
offset += TIME_WIDTH; offset += TIME_WIDTH;
// write to file // write to file
...@@ -1618,7 +1618,7 @@ bool JitWarmUpLogParser::parse_header() { ...@@ -1618,7 +1618,7 @@ bool JitWarmUpLogParser::parse_header() {
} }
#define CREATE_SYMBOL(char_name) \ #define CREATE_SYMBOL(char_name) \
SymbolTable::new_symbol(char_name, strlen(char_name), Thread::current()) SymbolTable::new_symbol(char_name, (int)strlen(char_name), Thread::current())
bool JitWarmUpLogParser::parse_class_init_section() { bool JitWarmUpLogParser::parse_class_init_section() {
ResourceMark rm; ResourceMark rm;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册