< prev index next >

src/hotspot/share/interpreter/oopMapCache.hpp

Print this page
@@ -90,10 +90,11 @@
                                    // mask_size <= small_mask_limit,
                                    // ptr to bit mask otherwise
                                    // "protected" so that sub classes can
                                    // access it without using trickery in
                                    // methd bit_mask().
+   int            _num_oops;
  #ifdef ASSERT
    bool _resource_allocate_bit_mask;
  #endif
  
    // access methods

@@ -137,10 +138,11 @@
    void print() const;
  
    int number_of_entries() const                  { return mask_size() / bits_per_entry; }
    bool is_dead(int offset) const                 { return (entry_at(offset) & (1 << dead_bit_number)) != 0; }
    bool is_oop (int offset) const                 { return (entry_at(offset) & (1 << oop_bit_number )) != 0; }
+   int  num_oops() const                          { return _num_oops; }
  
    int expression_stack_size() const              { return _expression_stack_size; }
  
  };
  
< prev index next >