Message5897
One could also potentially implement sys.getrefcount using JVMTI to introspect the heap:
http://download.oracle.com/docs/cd/E17476_01/javase/1.5.0/docs/guide/jvmti/jvmti.html#IterateOverReachableObjects
However, some big issues: it would certainly not the O(1) op one expects with sys.getrefcount(o); and JVMTI is not guaranteed to exist, and its usage certainly would violate the security model in most/all containers.
I don't know how AMF is using this, but presumably this is related to deep-copy ops, in which case the approach used by the copy module might be preferable. |
|
Date |
User |
Action |
Args |
2010-07-14 18:54:23 | zyasoft | set | messageid: <1279133663.73.0.0407335714787.issue1634@psf.upfronthosting.co.za> |
2010-07-14 18:54:23 | zyasoft | set | recipients:
+ zyasoft, thijs |
2010-07-14 18:54:23 | zyasoft | link | issue1634 messages |
2010-07-14 18:54:22 | zyasoft | create | |
|