有一个枚举结构,但我不明白这个枚举中'0xDEAD - 2'的含义。
enum TerminatedTypes {
_not_terminated = 0xDEAD - 2,
_thread_exiting,
_thread_terminated,
_vm_exited
};
从上面的代码,我能得到什么样的好处?
上面的代码在 openjdk8 的 'hotspot/src/share/vm/runtime/thread.hpp' 中。
我正在研究jdk的源代码,请帮助我。