FAQ Update
Bryce McKinlay
bryce@albatross.co.nz
Thu Nov 4 15:00:00 GMT 1999
Tom Tromey wrote:
> >>>>> "Jeff" == Jeff Sturm <jsturm@sigma6.com> writes:
>
> Jeff> Are you using Alexandre's DECL_INLINE patches? I saw this
> Jeff> too... I worked around it by marking a few particular methods
> Jeff> `final' instead of `private'... they are still inlined but not
> Jeff> optimized away.
>
> This is a problem. In some cases we have native methods that use
> private fields (or methods) in other packages -- so even a heuristic
> like "don't remove an unused private method if there is a native
> method" won't work right now. (Probably we should change the code and
> still use this heuristic, but I haven't really thought about it.)
Obviously, only a classes own native method's should be allowed access to its
private fields and methods. We should really fix the offending code if privates
are somehow being accessed outside the class, so this heuristic sounds like it
would be a sufficient fix.
regards
[ bryce ]
More information about the Java
mailing list