通常采用的通用公平市价会计核算制度不使用参照计算;因此,依赖参考计算的任何办法都不会依赖典型的国际交易日志。 但是,如果提及联合核查机制,这种执行可能要慢得多。
It s not clear to me what approach you suggest in your posting. If you want somehow detect that a reference is made to an object, most likely, even the most trivial object usages would break your detection, e.g.
{
A a = new A();
a.m();
}
这有两个问题:
- Reading the local variable a already makes a reference to the object (on the evaluation stack). If "making a reference" is already considered as "not eligible as a stack object", then the approach of stack objects would be impractical
- A method is called on the object, which, in turn, might make a reference to
this
inside, invisible to the caller. So even if you have a policy that somehow allows access to local variables containing stack objects, you can t really allow method calls for stack objects. As that would include the call to finalize()
, having stack object would be fairly pointless.