From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28995 invoked by alias); 15 Mar 2006 20:26:34 -0000 Received: (qmail 28976 invoked by uid 48); 15 Mar 2006 20:26:34 -0000 Date: Wed, 15 Mar 2006 20:26:00 -0000 Message-ID: <20060315202634.28975.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgcj/25934] fast instanceof checking In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "tromey at gcc dot gnu dot org" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2006-q1/txt/msg00393.txt.bz2 List-Id: ------- Comment #2 from tromey at gcc dot gnu dot org 2006-03-15 20:26 ------- Now I think we don't need to do anything here. We already handle the common cases. For instance, if the target is an interface we will use the IDT to do this test. This is reasonably fast. Also if both classes in question are concrete, we will use the 'ancestors' array to do a constant-time check. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25934