该脚本由 ByteLoader 前同步码组成,编译好的代码以字节字符串的形式保存。
The script consists of the ByteLoader preamble, with the compiled code stored as a byte string.
创建同步代码块产生了16行的字节码,而创建同步方法仅产生了5行。
Creating the synchronized block yielded 16 lines of bytecode, whereas synchronizing the method returned just 5.
每个在GC堆中分配的对象有一个8字节的头(同步块+方法表指针)。
Each object allocated on the GC heap has an 8-byte overhead (sync block + method table pointer).
应用推荐