From commits-return-46222-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Fri Nov 02 20:45:11 2007 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 33506 invoked from network); 2 Nov 2007 20:45:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2007 20:45:11 -0000 Received: (qmail 47674 invoked by uid 500); 2 Nov 2007 20:44:59 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 47655 invoked by uid 500); 2 Nov 2007 20:44:59 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 47646 invoked by uid 99); 2 Nov 2007 20:44:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Nov 2007 13:44:59 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Nov 2007 20:45:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AAB9B714201 for ; Fri, 2 Nov 2007 13:44:50 -0700 (PDT) Message-ID: <21044002.1194036290689.JavaMail.jira@brutus> Date: Fri, 2 Nov 2007 13:44:50 -0700 (PDT) From: "Ilya Berezhniuk (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-5065) [drlvm][jit] OpcodeDesc structure is padded incorrectly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [drlvm][jit] OpcodeDesc structure is padded incorrectly ------------------------------------------------------- Key: HARMONY-5065 URL: https://issues.apache.org/jira/browse/HARMONY-5065 Project: Harmony Issue Type: Bug Components: DRLVM Reporter: Ilya Berezhniuk Priority: Minor OpcodeDesc structure is padded to 128 bytes with char[] array which size is calculated using a sum of other fields size. This approach does not consider default enum size and field alignment. I've checked sizeof(OpcodeDesc) on IA-32 Windows/Linux, it's 132 bytes. So if the goal was performance gain, then this goal is not achieved. Probably #pragma pack(1) should be used to eliminate field alignment, and sizeof() should be used for padding size calculation. On the other hand, unaligned fields can also affect performance, so additional padding should be used for frequently accessed fields. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.