comparison src/share/vm/compiler/compileBroker.cpp @ 17595:3eed8712d410

Merge with jdk8u11-b12
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 15 Oct 2014 12:09:28 +0200
parents 4a6e24a8fc2c 5656140324ed
children 52b4284cb496
comparison
equal deleted inserted replaced
17560:562643f42b65 17595:3eed8712d410
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.
2168 // Record this compilation for debugging purposes. 2168 // Record this compilation for debugging purposes.
2169 void CompileBroker::set_last_compile(CompilerThread* thread, methodHandle method, bool is_osr, int comp_level) { 2169 void CompileBroker::set_last_compile(CompilerThread* thread, methodHandle method, bool is_osr, int comp_level) {
2170 ResourceMark rm; 2170 ResourceMark rm;
2171 char* method_name = method->name()->as_C_string(); 2171 char* method_name = method->name()->as_C_string();
2172 strncpy(_last_method_compiled, method_name, CompileBroker::name_buffer_length); 2172 strncpy(_last_method_compiled, method_name, CompileBroker::name_buffer_length);
2173 _last_method_compiled[CompileBroker::name_buffer_length - 1] = '\0'; // ensure null terminated
2173 char current_method[CompilerCounters::cmname_buffer_length]; 2174 char current_method[CompilerCounters::cmname_buffer_length];
2174 size_t maxLen = CompilerCounters::cmname_buffer_length; 2175 size_t maxLen = CompilerCounters::cmname_buffer_length;
2175 2176
2176 if (UsePerfData) { 2177 if (UsePerfData) {
2177 const char* class_name = method->method_holder()->name()->as_C_string(); 2178 const char* class_name = method->method_holder()->name()->as_C_string();