comparison src/share/vm/compiler/compileBroker.cpp @ 18007:364b73402247

Merge
author asaha
date Thu, 22 May 2014 11:09:06 -0700
parents a9becfeecd1b 5656140324ed
children f73af4455d7d
comparison
equal deleted inserted replaced
17920:382a82b0a3e7 18007:364b73402247
1 /* 1 /*
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
2087 // Record this compilation for debugging purposes. 2087 // Record this compilation for debugging purposes.
2088 void CompileBroker::set_last_compile(CompilerThread* thread, methodHandle method, bool is_osr, int comp_level) { 2088 void CompileBroker::set_last_compile(CompilerThread* thread, methodHandle method, bool is_osr, int comp_level) {
2089 ResourceMark rm; 2089 ResourceMark rm;
2090 char* method_name = method->name()->as_C_string(); 2090 char* method_name = method->name()->as_C_string();
2091 strncpy(_last_method_compiled, method_name, CompileBroker::name_buffer_length); 2091 strncpy(_last_method_compiled, method_name, CompileBroker::name_buffer_length);
2092 _last_method_compiled[CompileBroker::name_buffer_length - 1] = '\0'; // ensure null terminated
2092 char current_method[CompilerCounters::cmname_buffer_length]; 2093 char current_method[CompilerCounters::cmname_buffer_length];
2093 size_t maxLen = CompilerCounters::cmname_buffer_length; 2094 size_t maxLen = CompilerCounters::cmname_buffer_length;
2094 2095
2095 if (UsePerfData) { 2096 if (UsePerfData) {
2096 const char* class_name = method->method_holder()->name()->as_C_string(); 2097 const char* class_name = method->method_holder()->name()->as_C_string();