Use of pointer casts in the interpreter
Kresten Krab Thorup
krab@gnu.org
Sun Aug 8 23:53:00 GMT 1999
Per Bothner <per@bothner.com> writes:
> I've gotten to the point that Kawa now crashes in the Interpreter,
> which led me to look at interpret.cc. There are a bunch of
> pointer casts in there. Such casts are unsafe, as the gcc
> optimizer makes aliasing assumptions based on the types of
> pointers. In general, I think it is cleaner to use a union
> anyway.
Yes. I had some mighty nice functions that I would inline all over the
place, which is what caused the stack frames to be so big. So, in
fact the comment about stack frames being too big is out of date.
-- Kresten
Kresten Krab Thorup, Ph.D. Candidate
c/o Yonezawa Laboratory
Department of Information Science
The University of Tokyo
7-3-1 Hongo, Bunkyo-ku, Tokyo 113 Japan
Fax: +81-(0)3-5689-4365
Phone: +81-(0)3-5841-4118
Mobile: +81-(0)90-3693-5715
More information about the Java
mailing list