src/share/vm/interpreter/invocationCounter.hpp

changeset 4267
bd7a7ce2e264
parent 2314
f95d63e2154a
child 6470
abe03600372a
     1.1 --- a/src/share/vm/interpreter/invocationCounter.hpp	Fri Nov 09 08:36:17 2012 -0800
     1.2 +++ b/src/share/vm/interpreter/invocationCounter.hpp	Mon Nov 12 14:03:53 2012 -0800
     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, 2012, 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 @@ -40,6 +40,7 @@
    1.11  
    1.12  class InvocationCounter VALUE_OBJ_CLASS_SPEC {
    1.13    friend class VMStructs;
    1.14 +  friend class ciReplay;
    1.15   private:                             // bit no: |31  3|  2  | 1 0 |
    1.16    unsigned int _counter;              // format: [count|carry|state]
    1.17  
    1.18 @@ -85,6 +86,8 @@
    1.19    void set_carry();                              // set the sticky carry bit
    1.20    void set_carry_flag()                          {  _counter |= carry_mask; }
    1.21  
    1.22 +  int raw_counter()                              { return _counter; }
    1.23 +
    1.24    // Accessors
    1.25    State  state() const                           { return (State)(_counter & state_mask); }
    1.26    bool   carry() const                           { return (_counter & carry_mask) != 0; }

mercurial