Re: Non-Deterministic / Unpredictable Behavior (Again) [SOLVED]
Randall R Schulz <[email protected]> Sat, 12 Apr 2008 08:03:15 -0700
| Newsgroups | gmane.comp.windows.devel.java.advanced |
|---|---|
| Message-ID | <[email protected]> |
On Saturday 12 April 2008 07:54, Attila Szegedi wrote: > On 2008.04.12., at 16:12, Randall R Schulz wrote: > > ... > > In order to make it harder (ideally, impossible) to figure out an > object's address in the address space of the process, the identity > hash code function actually uses an automorphic transformation on the > address space, using the object's first allocated address (the > transformation in question ain't exactly a XOR if I remember > correctly from last time I dug in Sun JVM source code, but is > similar). The key for the transformation (i.e. the XOR value) is > randomly chosen on each JVM startup, which would explain the > differing behavior. Fascinating. Why try to obfuscate the virtual address of instances? Is there some magic incantation that lets one specify the transformation key for cases (testing, e.g.) in which repeatability might be desired? > Attila. Randall Schulz =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com