摘要:
通过前面的分析,创建的insttanceKlass 都没放入了java_lang_Class::fixup_mirror_list()这里类的数组里面了,所有的instance列举如下 list->at(8) $3 = 0x7f6d6800f2b8 "java/lang/Object" (gdb) 阅读全文
摘要:
进入 // Methods bool has_final_method = false; AccessFlags promoted_flags; promoted_flags.set_flags(0); Array<Method*>* methods = parse_methods(access_f 阅读全文
摘要:
当index=18的时候JVM_CONSTANT_Utf8 case JVM_CONSTANT_Utf8 : { cfs->guarantee_more(2, CHECK); // utf8_length u2 utf8_length = cfs->get_u2_fast(); u1* utf8_b 阅读全文
摘要:
接上篇的继续 ConstantPool* constant_pool = ConstantPool::allocate(_loader_data, length, CHECK_(nullHandle)); _cp = constant_pool; // save in case of errors 阅读全文
摘要:
先看bt栈 (gdb) bt #0 ConstantPool::allocate (loader_data=0x7fe21802e868, length=87, __the_thread__=0x7fe21800b800) at /home/atzhang/atzhang/openjdksource 阅读全文
摘要:
#include <iostream> using namespace std; class C {}; class A:public C { private: long a; long b; long c; public: A(long a,long b,long c){ this->a=a;th 阅读全文
摘要:
current路径: #0 Array<unsigned char>::operator new (size=8, loader_data=0x7fd4c802e868, length=87, read_only=false, __the_thread__=0x7fd4c800b800) at /h 阅读全文
摘要:
子类在new 对象的 时候 父类的new 进行了重载,那么会调用父类的operater new() 函数 #include <iostream> #include <string> using namespace std; class Animal { string name; public: vo 阅读全文
摘要:
现在做一下记录,这个看了两天,看的过程发现了很多c++的高级特性,没接触过,还得慢慢撸,禁止很慢 那么现在开始 吧 先打两个断点 java.c:351 JavaMain(void * _args) { JavaMainArgs *args = (JavaMainArgs *)_args; 文件加载的 阅读全文
摘要:
Interpreter类, class Interpreter: public CC_INTERP_ONLY(CppInterpreter) NOT_CC_INTERP(TemplateInterpreter) { public: // Debugging/printing static Inter 阅读全文