src/share/vm/interpreter/invocationCounter.cpp

changeset 4936
aeaca88565e6
parent 2314
f95d63e2154a
child 6876
710a3c8b516e
     1.1 --- a/src/share/vm/interpreter/invocationCounter.cpp	Thu Apr 04 21:15:43 2013 -0700
     1.2 +++ b/src/share/vm/interpreter/invocationCounter.cpp	Tue Apr 09 17:17:41 2013 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -104,15 +104,19 @@
    1.11  
    1.12  static address do_nothing(methodHandle method, TRAPS) {
    1.13    // dummy action for inactive invocation counters
    1.14 -  method->invocation_counter()->set_carry();
    1.15 -  method->invocation_counter()->set_state(InvocationCounter::wait_for_nothing);
    1.16 +  MethodCounters* mcs = method->method_counters();
    1.17 +  assert(mcs != NULL, "");
    1.18 +  mcs->invocation_counter()->set_carry();
    1.19 +  mcs->invocation_counter()->set_state(InvocationCounter::wait_for_nothing);
    1.20    return NULL;
    1.21  }
    1.22  
    1.23  
    1.24  static address do_decay(methodHandle method, TRAPS) {
    1.25    // decay invocation counters so compilation gets delayed
    1.26 -  method->invocation_counter()->decay();
    1.27 +  MethodCounters* mcs = method->method_counters();
    1.28 +  assert(mcs != NULL, "");
    1.29 +  mcs->invocation_counter()->decay();
    1.30    return NULL;
    1.31  }
    1.32  

mercurial