Mercurial > hg > graal-jvmci-8
comparison src/share/vm/compiler/compileBroker.cpp @ 2256:173926398291
7018673: Zero: 6953144, 6990754 and 7009756 made some changes which broke Zero
Reviewed-by: kvn, chrisphi, twisti
author | twisti |
---|---|
date | Fri, 11 Feb 2011 03:17:53 -0800 |
parents | 3582bf76420e |
children | 850b2295a494 |
comparison
equal
deleted
inserted
replaced
2255:bf29934d2f4f | 2256:173926398291 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1999, 2011, 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. |
766 // CompileBroker::init_compiler_threads | 766 // CompileBroker::init_compiler_threads |
767 // | 767 // |
768 // Initialize the compilation queue | 768 // Initialize the compilation queue |
769 void CompileBroker::init_compiler_threads(int c1_compiler_count, int c2_compiler_count) { | 769 void CompileBroker::init_compiler_threads(int c1_compiler_count, int c2_compiler_count) { |
770 EXCEPTION_MARK; | 770 EXCEPTION_MARK; |
771 #ifndef ZERO | |
771 assert(c2_compiler_count > 0 || c1_compiler_count > 0, "No compilers?"); | 772 assert(c2_compiler_count > 0 || c1_compiler_count > 0, "No compilers?"); |
773 #endif // !ZERO | |
772 if (c2_compiler_count > 0) { | 774 if (c2_compiler_count > 0) { |
773 _c2_method_queue = new CompileQueue("C2MethodQueue", MethodCompileQueue_lock); | 775 _c2_method_queue = new CompileQueue("C2MethodQueue", MethodCompileQueue_lock); |
774 } | 776 } |
775 if (c1_compiler_count > 0) { | 777 if (c1_compiler_count > 0) { |
776 _c1_method_queue = new CompileQueue("C1MethodQueue", MethodCompileQueue_lock); | 778 _c1_method_queue = new CompileQueue("C1MethodQueue", MethodCompileQueue_lock); |