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. |
110 HandleMark handle_mark(thread); |
110 HandleMark handle_mark(thread); |
111 |
111 |
112 // This Arena is long lived and exists in the resource mark of the |
112 // This Arena is long lived and exists in the resource mark of the |
113 // compiler thread that initializes the initial ciObjectFactory which |
113 // compiler thread that initializes the initial ciObjectFactory which |
114 // creates the shared ciObjects that all later ciObjectFactories use. |
114 // creates the shared ciObjects that all later ciObjectFactories use. |
115 Arena* arena = new (mtCompiler) Arena(); |
115 Arena* arena = new (mtCompiler) Arena(mtCompiler); |
116 ciEnv initial(arena); |
116 ciEnv initial(arena); |
117 ciEnv* env = ciEnv::current(); |
117 ciEnv* env = ciEnv::current(); |
118 env->_factory->init_shared_objects(); |
118 env->_factory->init_shared_objects(); |
119 |
119 |
120 _initialized = true; |
120 _initialized = true; |