存储对象引用 [英] Storage of object reference
本文介绍了存储对象引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对象引用是否存储为32位值?
换句话说,是一个简单的读取或写入对象引用
原子语句?
Is an object reference stored as a 32 bit value?
In other words, is a simple read or write of an object reference an
atomic statement?
推荐答案
2007-11-16 15:28:34 -0800,GeezerButler< ku ****** @ gmail.comsaid:
On 2007-11-16 15:28:34 -0800, GeezerButler <ku******@gmail.comsaid:
对象引用是否存储为32位值?
换句话说,是一个简单的读取或写入对象引用
原子语句?
Is an object reference stored as a 32 bit value?
In other words, is a simple read or write of an object reference an
atomic statement?
是的。
Yes.
除非你在64位机器上,对吧? />
" Peter Duniho"写道:
Unless you are on a 64 bit machine, right?
"Peter Duniho" wrote:
2007-11-16 15:28:34 -0800,GeezerButler< ku ****** @ gmail.comsaid:
On 2007-11-16 15:28:34 -0800, GeezerButler <ku******@gmail.comsaid:
对象引用是否存储为32位值?
换句话说,是对象引用的简单读取或写入
原子声明?
Is an object reference stored as a 32 bit value?
In other words, is a simple read or write of an object reference an
atomic statement?
是。
Yes.
2007-11-16 17:36 :01 - 0800,Family Tree Mike
< Fa ************ @ discussion.microsoft.comsaid:
On 2007-11-16 17:36:01 -0800, Family Tree Mike
<Fa************@discussions.microsoft.comsaid:
除非你在64位机器上,对吧?
Unless you are on a 64 bit machine, right?
好吧,a)即使在64位平台上,分配引用应该是一个原子操作,而b)AFAIK那里还没有64位版本的.NET,
所以即使在64位平台上,我的理解是.NET引用
仍然只是32位宽。
Pete
Well, a) even on a 64-bit platform, assigning a reference should be an
atomic operation, and b) AFAIK there''s no 64-bit version of .NET yet,
so even on a 64-bit platform it''s my understanding that .NET references
are still only 32-bits wide.
Pete
这篇关于存储对象引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文