src/hotspot/share/oops/method.cpp
changeset 51334 cc2c79d22508
parent 51263 b5aac518b097
child 51793 6cd1ee2b4fa1
equal deleted inserted replaced
51333:f6641fcf7b7e 51334:cc2c79d22508
  2049 };
  2049 };
  2050 
  2050 
  2051 // Something that can't be mistaken for an address or a markOop
  2051 // Something that can't be mistaken for an address or a markOop
  2052 Method* const JNIMethodBlock::_free_method = (Method*)55;
  2052 Method* const JNIMethodBlock::_free_method = (Method*)55;
  2053 
  2053 
  2054 JNIMethodBlockNode::JNIMethodBlockNode(int num_methods) : _next(NULL), _top(0) {
  2054 JNIMethodBlockNode::JNIMethodBlockNode(int num_methods) : _top(0), _next(NULL) {
  2055   _number_of_methods = MAX2(num_methods, min_block_size);
  2055   _number_of_methods = MAX2(num_methods, min_block_size);
  2056   _methods = NEW_C_HEAP_ARRAY(Method*, _number_of_methods, mtInternal);
  2056   _methods = NEW_C_HEAP_ARRAY(Method*, _number_of_methods, mtInternal);
  2057   for (int i = 0; i < _number_of_methods; i++) {
  2057   for (int i = 0; i < _number_of_methods; i++) {
  2058     _methods[i] = JNIMethodBlock::_free_method;
  2058     _methods[i] = JNIMethodBlock::_free_method;
  2059   }
  2059   }