< prev index next >

src/hotspot/share/interpreter/oopMapCache.cpp

Print this page
*** 275,20 ***
    LogStream st(Log(interpreter, oopmap)::trace());
  
    if (log) 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");
      if (log) st.print("%d", v1 ? 1 : 0);
    }
    if (log) st.cr();
  
    if (log) 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");
      if (log) st.print("%d", v1 ? 1 : 0);
    }
    if (log) st.cr();
    return true;
--- 275,20 ---
    LogStream st(Log(interpreter, oopmap)::trace());
  
    if (log) 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");
      if (log) st.print("%d", v1 ? 1 : 0);
    }
    if (log) st.cr();
  
    if (log) 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");
      if (log) st.print("%d", v1 ? 1 : 0);
    }
    if (log) st.cr();
    return true;

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