hotspot/src/cpu/x86/vm/stubGenerator_x86_64.cpp
changeset 18073 f02460441ddc
parent 17622 4037daf22a17
child 18507 61bfc8995bb3
equal deleted inserted replaced
18069:e6d4971c8650 18073:f02460441ddc
    79 
    79 
    80 class StubGenerator: public StubCodeGenerator {
    80 class StubGenerator: public StubCodeGenerator {
    81  private:
    81  private:
    82 
    82 
    83 #ifdef PRODUCT
    83 #ifdef PRODUCT
    84 #define inc_counter_np(counter) (0)
    84 #define inc_counter_np(counter) ((void)0)
    85 #else
    85 #else
    86   void inc_counter_np_(int& counter) {
    86   void inc_counter_np_(int& counter) {
    87     // This can destroy rscratch1 if counter is far from the code cache
    87     // This can destroy rscratch1 if counter is far from the code cache
    88     __ incrementl(ExternalAddress((address)&counter));
    88     __ incrementl(ExternalAddress((address)&counter));
    89   }
    89   }