src/share/vm/ci/ciMethod.cpp

changeset 2982
ddd894528dbc
parent 2639
8033953d67ff
child 2988
2c359f27615c
     1.1 --- a/src/share/vm/ci/ciMethod.cpp	Wed Jun 22 14:45:37 2011 -0700
     1.2 +++ b/src/share/vm/ci/ciMethod.cpp	Thu Jun 23 17:14:06 2011 -0700
     1.3 @@ -125,7 +125,8 @@
     1.4    _name = env->get_symbol(h_m()->name());
     1.5    _holder = env->get_object(h_m()->method_holder())->as_instance_klass();
     1.6    ciSymbol* sig_symbol = env->get_symbol(h_m()->signature());
     1.7 -  _signature = new (env->arena()) ciSignature(_holder, sig_symbol);
     1.8 +  constantPoolHandle cpool = h_m()->constants();
     1.9 +  _signature = new (env->arena()) ciSignature(_holder, cpool, sig_symbol);
    1.10    _method_data = NULL;
    1.11    // Take a snapshot of these values, so they will be commensurate with the MDO.
    1.12    if (ProfileInterpreter || TieredCompilation) {
    1.13 @@ -152,7 +153,7 @@
    1.14    // These fields are always filled in.
    1.15    _name = name;
    1.16    _holder = holder;
    1.17 -  _signature = new (CURRENT_ENV->arena()) ciSignature(_holder, signature);
    1.18 +  _signature = new (CURRENT_ENV->arena()) ciSignature(_holder, constantPoolHandle(), signature);
    1.19    _intrinsic_id = vmIntrinsics::_none;
    1.20    _liveness = NULL;
    1.21    _can_be_statically_bound = false;

mercurial