Mercurial > hg > graal-jvmci-8
comparison src/share/vm/ci/ciObjectFactory.cpp @ 20360:833b0f92429a
8046598: Scalable Native memory tracking development
Summary: Enhance scalability of native memory tracking
Reviewed-by: coleenp, ctornqvi, gtriantafill
author | zgu |
---|---|
date | Wed, 27 Aug 2014 08:19:12 -0400 |
parents | 2c6ef90f030a |
children | 6a528388c7da |
comparison
equal
deleted
inserted
replaced
20359:4d3a43351904 | 20360:833b0f92429a |
---|---|
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; |