< prev index next >

src/hotspot/share/interpreter/oopMapCache.cpp

Print this page
*** 280,20 ***
    LogStream st(logv.trace());
  
    st.print("Locals (%d): ", max_locals);
    for(int i = 0; i < max_locals; i++) {
      bool v1 = is_oop(i)               ? true : false;
!     bool v2 = vars[i].is_reference()  ? true : false;
      assert(v1 == v2, "locals oop mask generation error");
      st.print("%d", v1 ? 1 : 0);
    }
    st.cr();
  
    st.print("Stack (%d): ", stack_top);
    for(int j = 0; j < stack_top; j++) {
      bool v1 = is_oop(max_locals + j)  ? true : false;
!     bool v2 = stack[j].is_reference() ? true : false;
      assert(v1 == v2, "stack oop mask generation error");
      st.print("%d", v1 ? 1 : 0);
    }
    st.cr();
    return true;
--- 280,20 ---
    LogStream st(logv.trace());
  
    st.print("Locals (%d): ", max_locals);
    for(int i = 0; i < max_locals; i++) {
      bool v1 = is_oop(i)               ? true : false;
!     bool v2 = vars[i].is_reference();
      assert(v1 == v2, "locals oop mask generation error");
      st.print("%d", v1 ? 1 : 0);
    }
    st.cr();
  
    st.print("Stack (%d): ", stack_top);
    for(int j = 0; j < stack_top; j++) {
      bool v1 = is_oop(max_locals + j)  ? true : false;
!     bool v2 = stack[j].is_reference();
      assert(v1 == v2, "stack oop mask generation error");
      st.print("%d", v1 ? 1 : 0);
    }
    st.cr();
    return true;

*** 371,11 ***
      if (entry_index == max_locals) {
        cell = stack;
      }
  
      // set oop bit
!     if ( cell->is_reference()) {
        value |= (mask << oop_bit_number );
      }
  
      // set dead bit
      if (!cell->is_live()) {
--- 371,11 ---
      if (entry_index == max_locals) {
        cell = stack;
      }
  
      // set oop bit
!     if (cell->is_reference()) {
        value |= (mask << oop_bit_number );
      }
  
      // set dead bit
      if (!cell->is_live()) {
< prev index next >