comparison src/share/vm/shark/sharkCompiler.cpp @ 14225:16e101c8691f

8029305: add type tag to AbstractCompiler Reviewed-by: iveresov, kvn
author twisti
date Mon, 06 Jan 2014 17:23:07 -0800
parents de6a9e811145
children d8041d695d19 81ccf2c854c7
comparison
equal deleted inserted replaced
14224:a7e8ff4a1838 14225:16e101c8691f
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 * Copyright 2008, 2009, 2010, 2011 Red Hat, Inc. 3 * Copyright 2008, 2009, 2010, 2011 Red Hat, Inc.
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * 5 *
6 * This code is free software; you can redistribute it and/or modify it 6 * This code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 only, as 7 * under the terms of the GNU General Public License version 2 only, as
56 MAttrs("mattr", 56 MAttrs("mattr",
57 cl::CommaSeparated); 57 cl::CommaSeparated);
58 } 58 }
59 59
60 SharkCompiler::SharkCompiler() 60 SharkCompiler::SharkCompiler()
61 : AbstractCompiler() { 61 : AbstractCompiler(shark) {
62 // Create the lock to protect the memory manager and execution engine 62 // Create the lock to protect the memory manager and execution engine
63 _execution_engine_lock = new Monitor(Mutex::leaf, "SharkExecutionEngineLock"); 63 _execution_engine_lock = new Monitor(Mutex::leaf, "SharkExecutionEngineLock");
64 MutexLocker locker(execution_engine_lock()); 64 MutexLocker locker(execution_engine_lock());
65 65
66 // Make LLVM safe for multithreading 66 // Make LLVM safe for multithreading