equal
deleted
inserted
replaced
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 } |