Mercurial > hg > graal-jvmci-8
diff src/share/vm/ci/ciObjectFactory.cpp @ 3669:53636e2c9d03
No longer use shared ciFactory. Remove make_global usage in code installer.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 18 Nov 2011 14:14:37 +0100 |
parents | 0e8a2a629afb |
children | f198b24093f3 |
line wrap: on
line diff
--- a/src/share/vm/ci/ciObjectFactory.cpp Fri Nov 18 13:30:47 2011 +0100 +++ b/src/share/vm/ci/ciObjectFactory.cpp Fri Nov 18 14:14:37 2011 +0100 @@ -88,9 +88,9 @@ // If the shared ci objects exist append them to this factory's objects - if (_shared_ci_objects != NULL) { + /*if (_shared_ci_objects != NULL) { _ci_objects->appendAll(_shared_ci_objects); - } + }*/ _unloaded_methods = new (arena) GrowableArray<ciMethod*>(arena, 4, 0, NULL); _unloaded_klasses = new (arena) GrowableArray<ciKlass*>(arena, 8, 0, NULL); @@ -101,14 +101,6 @@ _symbols = new (arena) GrowableArray<ciSymbol*>(arena, 100, 0, NULL); } -void ciObjectFactory::cleanup() { - int start = 0; - if (_shared_ci_objects != NULL) start = _shared_ci_objects->length(); - for (int i = start; i < _ci_objects->length(); ++i) { - _ci_objects->at(i)->cleanup(); - } -} - // ------------------------------------------------------------------ // ciObjectFactory::ciObjectFactory void ciObjectFactory::initialize() { @@ -227,13 +219,13 @@ ciSymbol* ciObjectFactory::get_symbol(Symbol* key) { - vmSymbols::SID sid = vmSymbols::find_sid(key); + /*vmSymbols::SID sid = vmSymbols::find_sid(key); if (sid != vmSymbols::NO_SID) { // do not pollute the main cache with it ciSymbol* result = vm_symbol_at(sid); assert(result != NULL, ""); return result; - } + }*/ assert(vmSymbols::find_sid(key) == vmSymbols::NO_SID, ""); ciSymbol* s = new (arena()) ciSymbol(key, vmSymbols::NO_SID);