谢谢。
instanceOopDesc 以及oopDesc 的源码
class instanceOopDesc : public oopDesc
class oopDesc { friend class VMStructs; private: volatile markOop _mark; union _metadata { wideKlassOop _klass; narrowOop _compressed_klass; } _metadata; // Fast access to barrier set. Must be initialized. static BarrierSet* _bs; public: enum ConcSafeType { IsUnsafeConc = false, IsSafeConc = true };
回答MR.R 关于jdk版本的问题
我在win7 x86下编译了jvm
E:\WorkSpace\JVM\openjdk\build\windows-i586\j2sdk-image\bin\java -version
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-gaoling_2013_04_15_00_11-b00)
OpenJDK Client VM (build 21.0-b17, mixed mode)
在win7 x64下用vs2012打开hotspot做调试(x64+vs2012实在编译不过去)
E:\WorkSpace\JVM\openjdk\hotspot\build\vs-i486\compiler1\debug\hotspot.exe -version
Using java runtime at: E:\WorkSpace\JVM\openjdk\build\windows-i586\j2sdk-image\jre
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-gaoling_2013_04_15_00_11-b00)
OpenJDK Client VM (build 21.0-b17-internal-debug, mixed mode)