comparison src/share/vm/interpreter/linkResolver.cpp @ 7949:5daaddd917a1

8006040: NPG: on_stack processing wastes space in ConstantPool Summary: Added on_stack bit to flags. Also MetadataMarkOnStack is used for more than JVMTI so had to be moved. Reviewed-by: dholmes, stefank
author coleenp
date Wed, 23 Jan 2013 10:34:29 -0500
parents f34d701e952e
children f16e75e0cf11 1cabf9c80e84
comparison
equal deleted inserted replaced
7632:2ef7061f13b4 7949:5daaddd917a1
1 /* 1 /*
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, 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.
1239 } 1239 }
1240 1240
1241 1241
1242 void LinkResolver::resolve_invokedynamic(CallInfo& result, constantPoolHandle pool, int index, TRAPS) { 1242 void LinkResolver::resolve_invokedynamic(CallInfo& result, constantPoolHandle pool, int index, TRAPS) {
1243 assert(EnableInvokeDynamic, ""); 1243 assert(EnableInvokeDynamic, "");
1244 pool->set_invokedynamic(); // mark header to flag active call sites 1244 pool->set_has_invokedynamic(); // mark header to flag active call sites
1245 1245
1246 //resolve_pool(<resolved_klass>, method_name, method_signature, current_klass, pool, index, CHECK); 1246 //resolve_pool(<resolved_klass>, method_name, method_signature, current_klass, pool, index, CHECK);
1247 Symbol* method_name = pool->name_ref_at(index); 1247 Symbol* method_name = pool->name_ref_at(index);
1248 Symbol* method_signature = pool->signature_ref_at(index); 1248 Symbol* method_signature = pool->signature_ref_at(index);
1249 KlassHandle current_klass = KlassHandle(THREAD, pool->pool_holder()); 1249 KlassHandle current_klass = KlassHandle(THREAD, pool->pool_holder());