hotspot/src/share/vm/opto/buildOopMap.cpp
changeset 46620 750c6edff33b
parent 37248 11a660dbbb8e
child 46625 edefffab74e2
equal deleted inserted replaced
46619:a3919f5e8d2b 46620:750c6edff33b
   564   int max_reg = _regalloc->_max_reg; // Current array extent
   564   int max_reg = _regalloc->_max_reg; // Current array extent
   565 
   565 
   566   Arena *A = Thread::current()->resource_area();
   566   Arena *A = Thread::current()->resource_area();
   567   Block_List worklist;          // Worklist of pending blocks
   567   Block_List worklist;          // Worklist of pending blocks
   568 
   568 
   569   int max_reg_ints = round_to(max_reg, BitsPerInt)>>LogBitsPerInt;
   569   int max_reg_ints = align_up(max_reg, BitsPerInt)>>LogBitsPerInt;
   570   Dict *safehash = NULL;        // Used for assert only
   570   Dict *safehash = NULL;        // Used for assert only
   571   // Compute a backwards liveness per register.  Needs a bitarray of
   571   // Compute a backwards liveness per register.  Needs a bitarray of
   572   // #blocks x (#registers, rounded up to ints)
   572   // #blocks x (#registers, rounded up to ints)
   573   safehash = new Dict(cmpkey,hashkey,A);
   573   safehash = new Dict(cmpkey,hashkey,A);
   574   do_liveness( _regalloc, _cfg, &worklist, max_reg_ints, A, safehash );
   574   do_liveness( _regalloc, _cfg, &worklist, max_reg_ints, A, safehash );